aspose file tools*
The moose likes JSP and the fly likes JavaBean vs Post from a JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JavaBean vs Post from a JSP" Watch "JavaBean vs Post from a JSP" New topic
Author

JavaBean vs Post from a JSP

Sylvain Bouchard
Greenhorn

Joined: Apr 12, 2004
Posts: 3
Hello ranchers,
I need information about populating a bean in a JSP page just before submit the request to a servlet. There's a way to do it? or I must read all the params in the servlet and update the bean, before processing it?
Here is the big picture:
1- useBean to populate my FORM
2- Modify the data
3- set the new bean property to send to the servlet
4- processing
5- forward somewhere else the updated bean
thanks
Bobby Robinson
SCJP
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

Not possible.
All of the Java in your JSP page executes before the HTML page is sent to the client. Once sent, your JSP is done with its job; no further Java processing is possible.
The only thing you can do once the page has been sent to the client is the usual DHTML/Javascript processing.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaBean vs Post from a JSP
 
Similar Threads
Using a bean inside another bean
use bean instance in servlet
JavaBean vs Post from a JSP
Using javax.servlet.Filter servlet for Post-processing
generate xhtml from csv file in java