Hi folks

I got one doubt
My requirement is
I have one HTML page with some form fields
the action URL is /MyServlet
In this servlet i  get request parmeters
and process it and redirect it to a JSP page.

I use request dispatcher.forward ...
In that JSP page i want to get display some form
values which user entered.
Simple thing.

I store one object say proxy in session.
This proxy has method to retreive a object say
UserInfo which encapsulates the form data

I have some question I don't know whether it's
possible using JSP and beans
My bean is are UserInfo.java

1) The HTML page can it user userbean tag and
setproperty tag to set the values in UserInfo directly
without calling request.getparameter in servlet.
I think it can't be possible becoz JSP gets executed
before the page gets loaded Am i rite?

Also If it's possible how do  i communicate instance
of that user bean object back to servlet.?
I don't want to store the userbean object in session.
I am sort of confused with this concepts.

2) Afetr the servlet processing  I call a JSP
i want to get the userInfo object.
The only way out is from Proxy stored in session and
get Userinfo.
But this is not feasible for design sake
Is there a way i use usebean and getproperty.
But i am not clear how use bean works
and it gets instances. and same as we want.?


3) I don't see use to use bean set property method
if we don't save the bean in session
I want to know how to move around same instance of
bean
without messing up with session
Or whether i have got already in JSP page the old
instance if i use scope = session or application

I would appreciate if someone clears this dounbts
about
instance of bean and scope thing and how the old
instance is obtained.
Also the setpropery is it possible on first HTML page
which gets data.

Regards
Parag



__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to