• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP cannot call Servlet

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please I need some help...
I have a jsp which uses a bean .. the bean is placed in web-inf\classes\VioSys...
Now after I call the jsp it calls the bean and everything works fine.. Once the jsp page is loaded ... I submit form that calls a servlet and it does not find the servlet...
I placed my servlet in web-inf\classes.
My servlet does not use the bean or have anything to do with it... Its not in package VioSys either....
Please Please help me...
 
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It may be helpful to give us the error message from the log file or if using WSAD, from the console.
The problem, from what you said is not the bean but that the servlet is not visible, if it exists, to the JSP. Possible reasons for this may be that you have mispelled the servlet name in the JSP or that the servlet is not specified in the web.xml file. Also make sure there is no errors in the servlet and that the .class files was generated in the correct location.
Without the printStackTrace or some clue as to what the error really is, I can only speculate.
 
riya s
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't have any errror messages and the output file also looks fine... Just gives me 404 error.. My jsp file submits a form using get and calls the servlets get method
 
riya s
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have got the problem now...
When I create a jar file I get that error
com.ibm.etools.archive.exception.NotSupportedException: Type is unrecognized or not yet supported: PUBLIC_ID=-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN;SYSTEM_ID=http://java.sun.com/dtd/application_1_3.dtd
What is happening is that I am trying to deploy a Servlet 2.3 into WebSphere 4.0. Servlet 2.2 spec is supported by websphere.
What is the solution to this? Is there a patch or a jar file I need to add to application server bin directory that will accept my servlets?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic