khurt louis williams wrote:

> I wrote this very simple servlet to take one argument from the URL ( page ) and
> display the corresponding page.  However, I am having trouble with the flow
> control logic.  page== "init" always evaluates to false.  Can someone explain to
> me what I am doing incorrectly.

Variable page is a String. Try methods relative to Strings. Here, try equals method.

    if (page.equals("init")) ...
--
Gilles Broche
06 84 28 33 48

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to