You probably want to use one of the many web
application frameworks out there rather than
hand-coding servlets and JSPs from scratch. There
are, of course, a dizzying array to choose from.
Currently, I would look at:
Tapestry
WebWork
JSF (JavaServerFaces)
Struts
in that order. Of these, I have the most experience
with Struts, but believe the others to be better
choices for a brand new app. Though getting started
with one of these will be a bit of a learning curve at
first, you will end up with far less code to write,
and more importantly, maintain.
Good luck!
--Chris
--- sdgesa gaeharth <pollux1234567890@xxxxxxxxx>
wrote:
> Yes it does make sense!! I tried this(see below) and
> it seems to work!!. Thanks!!! My next problem is
> obvious. I have to put the "if statement" anywhere
> I
> out.print members of the formToValidate object, or
> else I get an error. Is there a way to write this so
> there is no scripting on the jsp page, like putting
> the new validatedForm object into a JSTL tag ? This
> leads into my next question. Am I designing this
> app
> corectlly or is there a better way to do what I am
> doing.
>
> thanks again
>
> <jsp:include page="/header.jsp" />
> <%@ taglib prefix="c"
> uri="http://java.sun.com/jstl/core"%>
> <%@ page import="java.util.*,
> com.bdi.www.members.MemberValidateForm" %>
> <%if (request.getAttribute("formToValidate") !=
> null){
> MemberValidateForm validatedForm =
> (MemberValidateForm)
> request.getAttribute("formToValidate");
> }%>
> ...
>
>
>
>
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> http://promotions.yahoo.com/new_mail
>
> ---------
> You may unsubscribe from this mailing list
> by sending a blank email addressed to:
> users-unsubscribe@xxxxxxxxxx
>
> --
> Find additional help by sending a blank email
> addressed to:
> users-help@xxxxxxxxxx
>
>
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
|