This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes How to pass value from .java to .jsp in struts. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to pass value from .java to .jsp in struts." Watch "How to pass value from .java to .jsp in struts." New topic
Author

How to pass value from .java to .jsp in struts.

Jaidev Arer
Ranch Hand

Joined: Mar 12, 2010
Posts: 38
Hi,
I need help in passing value from the action class to a JSP.
In java i get the value from the form bean and from there i have to pass the value to the next JSP.
i am using struts framework. java file and JSP is included in the action mapping.
Thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Put it in a form or in a scoped attribute?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Kabron Kline
Greenhorn

Joined: Aug 07, 2009
Posts: 20
Please post your Struts action class and JSP.
Bunty Naagar
Greenhorn

Joined: Feb 27, 2007
Posts: 14
You can use OGNL if your jsp is called from the action class


SCJP 5, SCWCD 5
 
wood burning stoves
 
subject: How to pass value from .java to .jsp in struts.