wood burning stoves 2.0*
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
Author

Not displaying string in JSP

Indravadan T Patel
Greenhorn

Joined: Sep 09, 2007
Posts: 29
HI ALL,

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
%>

<%=footer%>


And Java file :
constant.java

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.

Regards,
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?

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

Joined: Dec 11, 2004
Posts: 13410

See:
http://faq.javaranch.com/java/BeansNotFound


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not displaying string in JSP