File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp:useBean error in WebSphere

 
Bruce Jin
Ranch Hand
Posts: 672
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a simple JSP file mm1.jsp that uses a bean (bean is in websphere classpath)
<html>
<head> <title> Dictionary Select </title> </head>
<body>
<jsp:useBean id="abean" class="MRCPS.MRC007" />
<h2> Dictionary Selection </h2>
</body>
</html>
This file compiles and runs OK in Tomcat (on PC) but got this strange error in WebSphere:
Message: Server caught unhandled exception from servlet [JSP 1.0 Processor]: Compilation of "mm1.jsp" failed: /QIBM/UserData/WebASAdv/default/temp/default_host/mrcps/_mm1_2E_jsp_jsp_1.java:20: '}' expected. static StringBuffer[] _jspx_html_data = null; ^ 1 error
If I remove the useBean line then it runs OK in WebSphere:
<html>
<head> <title> Dictionary Select </title> </head>
<body>
<h2> Dictionary Selection </h2>
</body>
</html
Any ideas?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13048
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would certainly start by looking at the generated Java code to see what the lines around 20 contain.
Bill
 
Bruce Jin
Ranch Hand
Posts: 672
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
WebSphere on AS/400 (iSeries) does not give people generated servlet java code. The code is encoded (or serialized) I guess.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic