Re: Problem using JSP expressin in Struts 2

2011-02-12 Thread Chris Pratt
JSP Expressions are not allowed in the Struts 2 Tag Libs because of security concerns allowing hackers to use JSP EL to inject OGNL into the tags to do bad things. If you don't care about this problem, you can copy the struts .tld file out of the struts.jar file and add

Re: Problem using JSP expressin in Struts 2

2011-02-12 Thread Ashish Shrivastava
Thanks a lot Chris. I tried with the option and it is working fine :). We will think about the security risk and decide whether to update or not. But as you mentioned that JSP EL is not supported in struts this mean old JSP applications (which uses scriptlet or JSP EL) either can not be upgraded

error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread abhishek jain
hi, I am running a simple search of a product via Hibernate on struts code, the code runs fine when i run via a function in public static void main when i run the same code via struts i get the following exception, the code is: public static void main(String[] args) { ProductsDAO pd =

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread Dave Newton
Chances are you're not running using the same classpath. Dave On Sat, Feb 12, 2011 at 8:20 AM, abhishek jain abhishek.netj...@gmail.com wrote: hi, I am running a simple search of a product via Hibernate on struts code, the code runs fine when i run via a function in public static void main

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread Maurizio Cucchiara
It looks like there something wrong in your dependencies. Check your classpath (I'm not sure, but at first glance it'd seem the antlr library version). I could be proprably wrong but it not seems a struts problem. Maurizio Cucchiara Il giorno 12/feb/2011 14.20, abhishek jain

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread abhishek jain
hi, I am using myeclipse , and using its own default classpath. I have two antlr-2.7.2.jar in Struts core libraries and antlr-2.7.6.jar in hibernate core libraries. I tried removing antlr-2.7.2.jar and still the problem persists. thanks abhishek On Sat, Feb 12, 2011 at 7:05 PM, Maurizio

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread Dave Newton
You need to determine which versions you're actually depending on. Are you attempting to do dependency management manually?! Dave On Sat, Feb 12, 2011 at 9:32 AM, abhishek jain abhishek.netj...@gmail.com wrote: hi, I am using myeclipse , and using its own default classpath. I have two

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread abhishek jain
no, i am not that experienced in java to do dependency management manually, i just tried removing the library after the probelm just in case it solved thanks abhi On Sat, Feb 12, 2011 at 8:06 PM, Dave Newton davelnew...@gmail.com wrote: You need to determine which versions you're actually

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread Dave Newton
On Sat, Feb 12, 2011 at 9:39 AM, abhishek jain abhishek.netj...@gmail.com wrote: no, i am not that experienced in java to do dependency management manually, i just tried removing the library after the probelm just in case it solved How are you doing dependency management? Dave

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread abhishek jain
On Sat, Feb 12, 2011 at 8:12 PM, Dave Newton davelnew...@gmail.com wrote: On Sat, Feb 12, 2011 at 9:39 AM, abhishek jain abhishek.netj...@gmail.com wrote: no, i am not that experienced in java to do dependency management manually, i just tried removing the library after the probelm just in

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread Dave Newton
On Sat, Feb 12, 2011 at 10:58 AM, abhishek jain abhishek.netj...@gmail.com wrote: I am not doing any dependency management, i am just relying on myeclipse, what is the best way, I'm not sure; I haven't used MyEclipse in some time (but I did for quite awhile; very often worth the (minimal) cost.

Re: error while running code of struts2.x and hibernate 3.3: java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I

2011-02-12 Thread abhishek jain
On Sat, Feb 12, 2011 at 9:47 PM, Dave Newton davelnew...@gmail.com wrote: On Sat, Feb 12, 2011 at 10:58 AM, abhishek jain abhishek.netj...@gmail.com wrote: I am not doing any dependency management, i am just relying on myeclipse, what is the best way, I'm not sure; I haven't used

Re: Problem using JSP expressin in Struts 2

2011-02-12 Thread Chris Pratt
You can use JSP EL just fine (I'd still suggest getting rid of Scriplets, they're just bad mojo), you just can't pass them to the Struts Tags as attributes. You can use your own JSP Tag Libraries (I do), and use EL anywhere on the page with the exception of the s: tag attributes. And there are

Struts2-OSGI, Simple Question

2011-02-12 Thread Frans Thamura
hi al anyone can explain, a simple vision or direction if we wanna to use Struts2-OSGI Plugins got this URL http://struts.apache.org/2.1.8.1/docs/osgi-plugin.html but still dunno how to use it, do we can use struts2-plugins or action modularity on top of it? F