hi,
my if statement is
DriverManager.registerDriver(new
oracle.jdbc.driver.OracleDriver());
con=DriverManager.getConnection("jdbc:oracle:thin:@'ip..address..':1521:ORCL","scott","tiger");
Statement statement= con.createStatement();
ResultSet rs= statement.executeQuery("SELECT * from
terminal where termkey ='345'");
if(rs.next()==true)
...
the rest u know
sorry for not writing this earlier
-anurag
--- Vidyasagar Guduru <[EMAIL PROTECTED]> wrote: > It
might be there is some problem with your if
> statement ? by the way how u r checking the strings
> with '==' of Object.equeals() method ?
>
> Sagar.
> --- anurag dewan <[EMAIL PROTECTED]> wrote:
> > 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
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
>
===========================================================================
> 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
____________________________________________________________
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