|
Hi there,
I am working with JWS 2.0 and MS-Access.
I am trying to do a static html page->jsp page<-servlet communication, which can be summerized as follows: I have a static html page with a form. Here, I am
passing two parameters to my JSP page. The JSP page is supposed to retrieve the
parameters. It then 'includes' another file in its output. This anothere file is
a servlet. To get output from this servlet file, the JSP page is passing two
parameters to servlet. The Servlet retrieves these two parameters in its doGet()
method, do its part of processing (it is database handling), and then returns to
JSP page. Then, the JSP page is supposed to display itself, including the
results of the servlet file.
However, when I press the button in my static html page, it tries to access JSP page, and then it gives an error, saying an internal error has occured. No details are provided. I am using IE 5. The HTML file is in public_html folder. JSP page is in /examples/jsp/samples/myDemo. This folder is created by me and also houses my another jsp pages, which all of them are running fine. Servlet is in /servlets dir. The 'action' in the form tag of html page is --> "http://rajneesh:8080/examples/jsp/samples/myDemo/search.jsp" while the method is "GET". In JSP page, the jsp notations are used as
follos:
<%! String pick=""; String val="";%> <% pick = request.getParameter("choice"); val = request.getParameter("chVal"); %> <% jsp:include page="/servlet/search"; flush="true"; %> <jsp:param name="choice" value="pick"/> <jsp:param name="value" value="val"/> </jsp:include> In servlet file, method doGet() is used to retrieve
the parameters.
Any help will be highly appreciated. Also, tell me
if it is the right approach.
Rajneesh Garg
Keep Smiling. It does improve your face
value. :-)
|
