Re: [java ee programming] JSP Problem

2010-09-17 Thread Haroon Chaudhry
Hi, Try getting in habit of using tags. Java code in "view" is not a good idea. You can do same as follows: Administrator You will need to define tag lib if you have not already done that. <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%> Hope this helped. Haroon On F

Re: [java ee programming] JSP Problem

2010-09-17 Thread dfparker1
See further info on string comparison http://leepoint.net/notes-java/data/expressions/22compareobjects.html http://download.oracle.com/javase/1.4.2/docs/api/java/lang/String.html This format is preferred - equals or compareTo; e.g., <% if(sSAPNo.equals("01199")){ %> Administrator <% } %> On