It seems to me that the "...", as in "if(...)", is rather fundamental to how
you expect the code to behave. Perhaps it would help us help you if you
could tell us just what condition you are trying to check?

Martin.

----- Original Message -----
From: "anurag dewan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 26, 2001 9:00 PM
Subject: a very basic problem


> hi,
> In my main.jsp page i am getting the username and
> password form the user,checking it from the database
> and if correct then redirecting the user to the
> login.jsp.
> This procedure is going on fine...
> but when trying to redirect the user to an error.jsp
> page when the
> username or password is not correct, there is a
> problem.
> the code is like..
>
> if(...)
> { %>
> <jsp:forward page="login.jsp" />
> <% }
> else { %>
> <jsp:forward page="error.jsp" />
> <% } %>
> </form>
>
> On executing the page...it directly goes to error.jsp.
> I think initially when the textboxes are blank..it
> takes it for
> wrong username or password and goes to error.jsp.
> Any suggestions on how to tackle it....
> -anurag
>
> ____________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to