This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes write request.setAttribute( Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "write request.setAttribute("key", "value")" Watch "write request.setAttribute("key", "value")" New topic

write request.setAttribute("key", "value")

John Smith

Joined: Oct 07, 2003
Posts: 15
which tag should I use to display the value in a JSP page by using struts tag?

Ranch Hand

Joined: Dec 08, 2004
Posts: 111


Try this

Use <html:text> with disabled attribute set to true.
bhuvan sundar
Ranch Hand

Joined: Mar 02, 2005
Posts: 104

you can use the <bean:write> tag to display values from a bean. or you can also use <bean:message> tag to display values from the Properties file to a JSP.

Hope it helps

I agree. Here's the link:
subject: write request.setAttribute("key", "value")
It's not a secret anymore!