java - Netbeans Servlet not progressing after a certain point -


the application i'm developing based on java ee , target build web-based airline application enters new tours in derby database , displays when requested. manually added table field , right want display field information on webpage.

jsp page takes tour id user:

<html> <head>     <meta http-equiv="content-type" content="text/html; charset=utf-8">     <title>jsp page</title> </head> <body>     <form action="tourplanservlet" method="post">         tour id:<input type ="text" name = "tourid" >         <input type = "hidden" name = "action" value ="recordentry">         <p>press submit find tour</p>         <p><input type="submit" name="submit" value="submit"></p>     </form> </body> 

servlet takes int input jsp:

private static tourplanfacaderemote tpfr1;   public void init() {     try {         context initial = new initialcontext();         tpfr1 = (tourplanfacaderemote) initial.lookup("tourplanfacade");     } catch (exception ex) {         system.err.println("caught exception:");         ex.printstacktrace();     } }      protected void processrequest(httpservletrequest request, httpservletresponse response)                 throws servletexception, ioexception {             response.setcontenttype("text/html;charset=utf-8");             try (printwriter out = response.getwriter()) {              string tourid = request.getparameter("tourid");              //the servlet stops progressing line below              tourplandetails td = tpfr1.gettourplan(tourid);             request.getsession().setattribute("tour", td);               requestdispatcher rd = request.getrequestdispatcher("viewtourplan.jsp");             rd.forward(request, response);      }  } 

the gettourplan method exposed in tourplanfacaderemote:

public tourplandetails gettourplan(string tourid) {         tourplandetails tpd1 = null;         try {             tourplanal93 tp1 = em.find(tourplanal93.class, tourid);             tpd1 = new tourplandetails(tp1.gettourid(), tp1.gettitle(), tp1.getdetails(), tp1.getcapacity());         } catch (exception ex) {          }         return tpd1;     } 

like mentioned before, servlet stops progressing point sends tourid gettourplan method. suggestions why?


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -