Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

scriptlets to tags

 
shah rah
Ranch Hand
Posts: 124
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Employee emp = (Employee)session.getAttribute("empInfo");

=emp.getName()

I have scriplets on my page and I would like to use tags. How to do the above using struts tags?. appreciate your help
 
Nick Williamson
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you'll probably want JSTL tags as well.

http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/c/tld-summary.html

once you import that you can do something like this.



[ May 18, 2007: Message edited by: Nick Williamson ]
[ May 18, 2007: Message edited by: Nick Williamson ]
 
shah rah
Ranch Hand
Posts: 124
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I would like to know how to do this using struts tag
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The scope="session" is optional. If it's not provided, Struts will search in all scopes for a bean named "empInfo".
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic