File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes defining beans in struts-el Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "defining beans in struts-el" Watch "defining beans in struts-el" New topic
Author

defining beans in struts-el

Dave Mere
Ranch Hand

Joined: Oct 25, 2004
Posts: 37
Hi

I've just started using struts-el and am having some difficulty finding resources to help me with this. So two questions really . . .

1) how do I define the bean I'm passing through to my jsp? bean efine is depreciated I know but I can't find any replacement.

2) Can anyone point me in the direction of a good struts-el web resource. Just tags & syntax would be really helpful!

Thanks v much!
P-A Rosenberg
Greenhorn

Joined: Sep 22, 2005
Posts: 15
Hi

1) I would create the bean in my Action class and register the bean to the session or the request that will make it available to the JSP page.

2) Here's some info on the el library: http://struts.apache.org/struts-el/index.html
You will find the taglib reference links in the menu to the left.

Hope it helped.
//P-A
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The struts-el tags are the same as the regular struts tags. The only real difference is that you can use EL expressions anywhere a runtime expression is allowed.


Merrill
Consultant, Sima Solutions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: defining beans in struts-el
 
Similar Threads
Struts EL tag library stability
struts-el vs EL
el tags
Ignore Expression Language (EL) Evaluation
Struts and EL?