This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes Load data only using form bean, without action class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Load data only using form bean, without action class" Watch "Load data only using form bean, without action class" New topic
Author

Load data only using form bean, without action class

Micale Raj
Ranch Hand

Joined: Jul 01, 2009
Posts: 30

HI,

I want to load data for a popup window just using a form bean's load method (without using action class ). How to do this ?

Thank you !
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8262

You need some way to receive an HTTP request. The standard way to to that in Java is a Servlet. The servlet loads the form bean and puts it in the request as an attribute. In the JSP you can access the form bean via the implicit request object.
Frankly, it is easier to work with the framework rather than against it.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Micale Raj
Ranch Hand

Joined: Jul 01, 2009
Posts: 30

Joe Ess wrote:You need some way to receive an HTTP request. The standard way to to that in Java is a Servlet. The servlet loads the form bean and puts it in the request as an attribute. In the JSP you can access the form bean via the implicit request object.
Frankly, it is easier to work with the framework rather than against it.


Thank you very much for the reply. I did it using <html:form action="formBeanMappingName"></html:form> from struts taglib. Thanks !
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Load data only using form bean, without action class
 
Similar Threads
How to use post method with ajax
Want to display result on the page
the data in form is not being displayed :
Action Chaining
Submit button