[JBoss-user] [HTTPD, Servlets JSP] - JSP Compiler error

2004-12-30 Thread svdath
Whenever I try to compile the following code in JBoss, it gives  Nullpointer 
Exception:
jsp:include page = '%=WSSUtils.JSP_COMMON_PATH+SLA.jsp%'
jsp:param name=FORM_NAME value=document.frmSubmitServiceRequests /
jsp:param name=SELECTED_SERVICE 
value='%=eCRMRequest!=null?eCRMRequest.getParameter(setService):null%' /
jsp:param name=SELECTED_PRODUCT 
value='%=eCRMRequest!=null?eCRMRequest.getParameter(setProduct):null%' /
/jsp:include

If the same code is written in the below mentioned way, the compilation goes 
fine:

jsp:include page = 
'%=WSSUtils.JSP_COMMON_PATH+SLA.jsp?FORM_NAME=document.frmSubmitServiceRequestsSELECTED_SERVICE=eCRMRequest!=null?eCRMRequest.getParameter(setService):nullSELECTED_PRODUCT=eCRMRequest!=null?eCRMRequest.getParameter(setProduct):null%'


Can anybody throw some light on this.

-Vinay


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3860166#3860166

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3860166


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets JSP] - JSP Compiler error

2004-12-28 Thread svdath
Hi,
  I have the following piece of code in my JSp:
jsp:include page = '%=WSSUtils.JSP_COMMON_PATH+SLA.jsp%'
jsp:param name=FORM_NAME value=document.frmSubmitServiceRequests /
jsp:param name=SELECTED_SERVICE 
value='%=eCRMRequest!=null?eCRMRequest.getParameter(setService):null%' /
jsp:param name=SELECTED_PRODUCT 
value='%=eCRMRequest!=null?eCRMRequest.getParameter(setProduct):null%' /
/jsp:include

when compiling in Jboss 3.2.1, i get a Nullpointer exception error. The same 
piece of code works fine in Weblogic.


The line in the java file where i am getting this error is:
  JspRuntimeLibrary.include(request, response, 
WSSUtils.JSP_COMMON_PATH+SLA.jsp + 
((WSSUtils.JSP_COMMON_PATH+SLA.jsp).indexOf('?')0? '': '?') + FORM_NAME= 
+ document.frmSubmitServiceRequests +  + SELECTED_SERVICE= + 
java.net.URLEncoder.encode( + 
eCRMRequest!=null?eCRMRequest.getParameter(setService):null) +  + 
SELECTED_PRODUCT= + java.net.URLEncoder.encode( + 
eCRMRequest!=null?eCRMRequest.getParameter(setProduct):null), out, false);

Below is the stacktrace i am getting:

java.lang.NullPointerException
at 
org.apache.jsp.NewServiceRequest_jsp._jspService(NewServiceRequest_jsp.java:515)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
at org.mortbay.http.HttpServer.service(HttpServer.java:863)
at org.jboss.jetty.Jetty.service(Jetty.java:460)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)



-Vinay




View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3860069#3860069

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3860069


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user