Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not displaying string in JSP

 
Indravadan T Patel
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic