File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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

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

Jaidev Arer
Ranch Hand

Joined: Mar 12, 2010
Posts: 38
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.
David Newton

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Jan 10, 2002
Posts: 63844

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

[Asking smart questions] [About Bear] [Books by Bear]
Kabron Kline

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

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

I agree. Here's the link:
subject: How to pass value from .java to .jsp in struts.
jQuery in Action, 3rd edition