File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes error in jsp declaration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "error in jsp declaration" Watch "error in jsp declaration" New topic
Author

error in jsp declaration

Prabu
Greenhorn

Joined: Jun 13, 2001
Posts: 6
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)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error in jsp declaration