my dog learned polymorphism*
The moose likes JSP and the fly likes Confused Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Confused" Watch "Confused" New topic
Author

Confused

william gates
Ranch Hand

Joined: Feb 21, 2007
Posts: 112
I have some servlets, javabeans, and plenty of JSPs. Certain aspects of my web app are not working and the server admin told me the reason was because,

"The problem is each jsp is not creating a service() method ".

I thought in servlets you can override the service method, but you don't have to if you override the doPost or doGet.

But from my understanding you really shouldn't be overriding the _jspServiceMethod.

Is this an issue inside the websphere container, which i have no control over, or is this an issue in the way I've written my JSPs?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Originally posted by william gates:
"The problem is each jsp is not creating a service() method ".


The server admin is apparently somewhat lacking in JSP know-how.

The JSP container creates a servlet on behalf of the JSP, and which implements the service method.

Whatever, your issue is, that ain't it.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
william gates
Ranch Hand

Joined: Feb 21, 2007
Posts: 112
thanks for the response.

I was going crazy thinking maybe the server admin is right and something is wrong with what I wrote, but in the back of my head I just kept thinking, "wait a second, your not the one wrong here."
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

What are the symptoms of the non-working pages?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Confused
 
Similar Threads
HTML method for service()?
Rookie Question about Servlet's Service method
overridding service()
servlets: can we override service method ?if yes how and why?if no then why?
When does a _jspService() run?