Here is a tutorial.
http://www.java-samples.co
and this is very helpful
http://java.sun.com/javaee
Main Topics
Browse All Topicshi all,
i want to know if the following is possible if yes please give me a small example.
I have :
servlet:"RequestHandler"
JSP:"Form.jsp" some text fields and a submit button
class: formBean
using the text areas in the form i would like to populate the bean and when the submit button is clicked the RequestHandler will just get the bean and do stuff with it.
im using tomcat 6.0
method= post
RequestHandler is the servlet
Secondly if you can direct me to a good resource , so i can get a good underastanding of jsp and servlets
thanks in advance for any help
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Here is a tutorial.
http://www.java-samples.co
and this is very helpful
http://java.sun.com/javaee
I have come accross the following lin of code to set the bean properties
<jsp:setProperty name="FormBean" property="*" />
im told that it will take the input datafrom the request and sets the relevant property in the bean, providing the names are the same.
however im not sure wher tio put this lline i.e. inside the form or outside the fiorm
@isarasoo: Please note that http:#25190548 doesn't contain any code attachment.
Business Accounts
Answer for Membership
by: mwvisa1Posted on 2009-08-25 at 07:41:17ID: 25178071
Yes it is possible. You would basically scope you JavaBean to be a higher scope than page, like say session scope. Application scope would probably not be appropriate for user form submission IMHO.
ns.FormBea n" /> ts/jsp/tag s/11/ synta xref11.fm1 4.html
per/techni calArticle s/ javaserv erpages/se rvlets_jsp /
om/article s/display. html? artic le=2001060 501&page=1
<jsp:useBean id="formBean" scope="session" class="your.package.of.bea
Syntax ref.: http://java.sun.com/produc
<form action="/RequestHandler" method="post">
<input type="text" size="10" name="id" />
<jsp:setProperty name="formBean" property="id" param="id"/>
</form>
When submitted, the Servlet reads the bean from session.
Here is a good reference on Model View Controller (MVC) design pattern:
http://java.sun.com/develo
Example of utilizing Servlet / JSP / JavaBean :
(Believe this is going the other way, so it finishes off MVC thought by getting the final results to View)
http://www.stardeveloper.c
Hope that helps.
--isa