Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error in jsp declaration

 
Prabu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i tried to run a jsp page using weblogic4.5.1 ,i got the following errors.Here I'm using the ResourceBundle class.It has a property file called forms.properties.It has two assignments
like process.success=success.jsp
process.retry=retry.jsp
So in the jsp
<%!
ResourceBundle bundle =null;
public void jspInit() {
bundle = ResourceBundle.getBundle("forms");

}
%>
String s = "<%= bundle.getString("process.success") %>";
<jsp:forward page="<%= s %>" />

Here i'm getting the following errors
D:\forprabu\jsp\_process.java:54: ';' expected.
probably occurred due to an error in process.jsp line 20:
String s = "<%= bundle.getString("process.success") %>";
D:\forprabu\jsp\_process.java:54: String not terminated at end of line.
probably occurred due to an error in process.jsp line 20:
String s = "<%= bundle.getString("process.success") %>";
It is not forwarding the request to the success.jsp( b'coz process.success=succcess.jsp)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic