rss
twitter

Friday, May 27, 2011

Error in Struts2 OGNL expressions when migrating to Netbeans 7

Encountered ":" at line 1, column 9. Was expecting one of: "}" ... "." ... "]" ... ">" ... "<" ... Netbeans 7 will show the above error in jsp pages when migrating to Netbeans 7.0 from lower version for the following type of syntax. list="#{true:'On',false:'Off'}" But it will not affect the output of the JSP ...
Read more...

Bookmark and Share

Tuesday, May 24, 2011

Apache commons methods for generating random numbers in Java

New class is introduced in apache.commons for generating random numbers by calling a method. These methods can be accessed by importing import org.apache.commons.lang.math.RandomUtils; These methods can be accessed by double rnddouble= RandomUtils.nextDouble(); float rndfloat= RandomUtils.nextFloat()); int rndfloat= RandomUtils.nextInt()); ...
Read more...

Bookmark and Share

Friday, May 20, 2011

Adobe Released Flash Player 10.3 for Android mobiles

Adobe released new Flash player version 10.3 for android based mobile phones. In Adobe Flash Player 10.3 for Android mobiles Adobe fixed more security holes and introduced additional enhancements to their Adobe Flash Player on the Android platform. On Android 3.1 devices, Adobe Flash 10.3 now supports hardware-accelerated videos to deliver smoother video playback.The latest version of Adobe ...
Read more...

Bookmark and Share

Wednesday, May 11, 2011

Greater than comparison in Freemarker tags

In Freemarker we can test the lesser than condition directly  . <#if value1 < valu2> value1 is less than value2 </#if> But we can't do the same for greater than (>) in freemarker tag like //Wrong method <#if value1 > valu2> value1 is greater than value2 </#if> The above one is wrong because the first occurrence of  > sign will ...
Read more...

Bookmark and Share

Wednesday, May 04, 2011

JSP Error : Attribute qualified names must be unique within an element

Today i have upgraded my Netbeans IDE and Tomcat to latest versions ie Netbeans 7.0 and Apache Tomcat to Tomcat 7.0.12 . After successful migration of Netbeans and Tomcat to latest versions, i try to import and run my existing application but it fails to compile some JSP files. It throws the following errors. SEVERE: Servlet.service() for servlet jsp threw exception ...
Read more...

Bookmark and Share

Tuesday, May 03, 2011

Training video in Adobe site to learn Flex in a week

Adobe proving the video tutorials in adobe site to learn Flex technology. Quote from the website: "Learn Flex in a week by going through this video training course. To maximize your learning, we recommend that you view the videos and complete the exercises in the order that they are listed. If you run into problems and have questions, you can ask a question on the Flex in a Week forum." Day 1...
Read more...

Bookmark and Share

Monday, May 02, 2011

ORA-06575 Package or function is in an invalid state in Oracle Stored procedure

Normally this "ORA-06575 Package or function is in an invalid state" error come when the stored procedure in invalid state.To make the stored procedure to valid state we need to recompile the particular stored procedure once again. To recompile the oracle procedure run this, SQL> alter procedure Procedure_Name compile; SQL> show errors This will give if any error in stored procedure ...
Read more...

Bookmark and Share

Sunday, May 01, 2011

Access Java Static Methods in Struts2 Using OGNL

We can access static methods and static constants of java class using OGNL tags in struts2 , as we do in normal jsp scriptlet. In OGNL @ tag is used to access static methods and varibles, here is the syntax toaccess the static method. @classname@methodname(arg)If using Struts 2.1.x means that you need additional parameter in struts.xml. You need to define the following parameter in struts.xml ...
Read more...

Bookmark and Share

Saturday, April 30, 2011

Replace all characters with in two tags using Regular expressions in Java

We can do the string functions like replace and find using simple regular expressions easily.Regular expression is easier to use with javascript replace function. Here are the regular expressions to replace the entire contents occur between two tags in Java. Here, for example the regular expression removes the content in <-! Tag -> and <-! End Tag ->. In java we need to use Pattern ...
Read more...

Bookmark and Share

Wednesday, January 12, 2011

Adding date in Flex using Flex datepart

By using Datepart in flex we can increase or decrease the particular part of the date in flex  , Gareth suggested a dateAdd method to do this date addition in simple steps, using datepart we can add or subtract particular part of the date easily. By using datepart, adding 1 to datepart["date"] we get the next day date,datepart["week"] we get the next week date. Source Code : public static ...
Read more...

Bookmark and Share

Wednesday, January 05, 2011

VRule and HRule controls in Flex

The VRule and HRule controls in Flex are act as a divider(separator) in a container. VRule control helps to draw a vertical line, this control creates a single vertical divinding line within a container. VRule controls are defined in flex in mxml tag   Here is the example code for VRule control. <?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/...
Read more...

Bookmark and Share

Label Cloud

Must Buy

  © Blogger templates by Ourblogtemplates.com updated with zenplate.com tips

Back to TOP