File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Not displaying string in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Not displaying string in JSP" Watch "Not displaying string in JSP" New topic

Not displaying string in JSP

Indravadan T Patel

Joined: Sep 09, 2007
Posts: 29

I have a problem with the JSP that was not display the correct value of the String. Story is just like that : I have used the <%=footer%> in my JSP and declare that footer in Java class as static final as FOOTER ="Some Text".

Suppose JSP is just like :
Some other coding here

String footer = constant.FOOTER


And Java file :

public class constant {

public static final String FOOTER = "Some Text";

So, in websshpere server the some JSP show the changes and some JSP did not show the changes if I made with java file FOOTER String.

Indravadan Patel
K Kiran Kumar
Ranch Hand

Joined: Jan 04, 2006
Posts: 109
Hi Indravadan,

What is the value of string FOOTER retrieved in the JSP page?? Are you getting any errors in the JSP page?

[ May 16, 2008: Message edited by: K Kiran Kumar ]
Ben Souther

Joined: Dec 11, 2004
Posts: 13410


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Not displaying string in JSP
jQuery in Action, 3rd edition