This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Error Message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Error Message" Watch "Error Message" New topic
Author

Error Message

Chris Goh
Greenhorn

Joined: Aug 23, 2001
Posts: 23
org.apache.jasper.JasperException: Unable to compile class for JSPC:\Tomcat\jakarta-tomcat-3.2.3\work\localhost_8080\_0002flogin_0002flogin_0002ejsplogin_jsp_22.java:102: Method getRequestSessionId() not found in interface javax.servlet.http.HttpServletRequest.
String sessionid = request.getRequestSessionId();

can anyone tell me what the error means?
James Hobson
Ranch Hand

Joined: Aug 28, 2001
Posts: 140
I could be wrong, I think it means you spelt the method name wrong:
getRequestedSessionId()
instead of getRequestSessionId()
Manjunath Reddy
Ranch Hand

Joined: Jul 26, 2001
Posts: 60
Why not use String sessionId = session.getId(); ?
Chris Goh
Greenhorn

Joined: Aug 23, 2001
Posts: 23
what is the difference between the two suggested syntax?
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Well, I can't find getRequestedSessionId(), so I think there's only one way... getId()
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Error Message
 
jQuery in Action, 3rd edition