i am developing a small simple project in
struts framework.
in which a accept a roll no from user and display result..
for displaying i have two jsp(pass.jsp and fail.jsp)
one struts action (ResultGenAction.java)
one strutsformBean(ResultGenBean.java)
bean fetches marks from database acctording to rollno given be user and sends a boolean value true and false showing pass or fail.
if pass then view should be pass.jsp.
if fail then view should be fail.jsp.
i have made forward entries in struts-config file..
as:-
<action input="/" name="ResultGenBean" path="/EnterRoll.jsp" scope="request" type="Result.ResultGenAction" validate="false">
<forward name="p" path="/WEB-INF/pass.jsp"/>
<forward name="f" path="/WEB-INF/fail.jsp"/>
</action>
when i enter roll no for example 101 which is available in database and it is pass,but i get a blank response instead of a full marksheet through pass.jsp
same for all roll nos....it is not working
please help me in sorting out this problem..