It's not a secret anymore!
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "defining beans in struts-el" Watch "defining beans in struts-el" New topic

defining beans in struts-el

Dave Mere
Ranch Hand

Joined: Oct 25, 2004
Posts: 37

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

Joined: Sep 22, 2005
Posts: 15

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:
You will find the taglib reference links in the menu to the left.

Hope it helped.
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.

Consultant, Sima Solutions
I agree. Here's the link:
subject: defining beans in struts-el
It's not a secret anymore!