aspose file tools*
The moose likes Websphere and the fly likes JSP Expression Compilation Problem. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "JSP Expression Compilation Problem." Watch "JSP Expression Compilation Problem." New topic
Author

JSP Expression Compilation Problem.

MohammadYasin Shaikh
Greenhorn

Joined: Aug 18, 2008
Posts: 3
hi guys
I am Having IRAD 7.0 with WebSpere 6.1 integrated.In IRAD 7.0 ,in one of the jsp i have used expressions in javascript like
var k='<%=MyBean.getName()%>'.It is working fine with IRAD 7.0 and WebSpehre 6.1 integrated.But if i make the EAR of project and deploy on full fledge server of Webspere 6.0 and not 6.1 which is in IRAD 7.0,then it is giving javascript error.if i do view source,then the expressions are remaining as it is i.e. expressions are not getting converted to string or object.please help

Thanks and regards
Yasin Shaikh
Mujeebur Rahman
Greenhorn

Joined: Jul 10, 2008
Posts: 20
Before answering your stuff, one basic query.

Do any of the JSP expression work in your code?.
MohammadYasin Shaikh
Greenhorn

Joined: Aug 18, 2008
Posts: 3
All JSP Expressions are not working in WebSphere 6.0 server.Is we have to do any settings for that in admin console.
Mujeebur Rahman
Greenhorn

Joined: Jul 10, 2008
Posts: 20
I don't think so that special settings required. debug like this,
1) Clear the cached JSP in AppServer temp folder (java file, class files etc)
2) Access this JSP
3) Check the .java file and .class file(decompile) to see weather it has really translated JSP code into java.

Eager to see your results.
MohammadYasin Shaikh
Greenhorn

Joined: Aug 18, 2008
Posts: 3
Hi,
Problem was solved.
Actually there was commented line
//< ![CDATA[<br /> javascript code with expression used<br /> //]]>
after removing commented lines it is working fine.
Strange...
Thanks and regards
Yasin shaikh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Expression Compilation Problem.