You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by panpan <xi...@yahoo.com> on 2007/06/01 18:41:16 UTC
NullPointerException with Struts and Struts2 plus Sitemesh
I have this logon.jsp page which was developed from struts. I got this new
assigment to add struts2 tag to it. I've migrated other mixed pages with
sitemesh successfully. This logon.jsp page doesn't use sitemesh and I only
add one struts2 tag line <s:url action=""/>. I don't know what happend. The
below is the execption:
11:17:57,345 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:58)
at
org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport
.java:54)
at
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport
.java:49)
at org.apache.jsp.logon_jsp._jspx_meth_s_form_0(logon_jsp.java:520)
at org.apache.jsp.logon_jsp._jspService(logon_jsp.java:189)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:173)
at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.jav
a:672)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispat
cher.java:463)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.
java:398)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.ja
va:301)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.j
ava:263)
at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesReque
stProcessor.java:239)
at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequest
Processor.java:302)
at
com.greenview.fpi.web.theme.ThemeRequestProcessor.processForwardConfig(ThemeReq
uestProcessor.java:46)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:173)
at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:11
9)
at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.jav
a:672)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispat
cher.java:463)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.
java:398)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.ja
va:301)
at
org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuth
enticator.java:315)
at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthentica
tor.java:243)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.ja
va:490)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:10
7)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConn
ection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:5
27)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.
java:112)
at java.lang.Thread.run(Thread.java:595)
11:17:57,345 ERROR [[action]] Servlet.service() for servlet action threw
exception
java.lang.NullPointerException
at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:58)
at
org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport
.java:54)
at
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport
.java:49)
at org.apache.jsp.logon_jsp._jspx_meth_s_form_0(logon_jsp.java:520)
at org.apache.jsp.logon_jsp._jspService(logon_jsp.java:189)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:173)
at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.jav
a:672)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispat
cher.java:463)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.
java:398)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.ja
va:301)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.j
ava:263)
at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesReque
stProcessor.java:239)
at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequest
Processor.java:302)
at
com.greenview.fpi.web.theme.ThemeRequestProcessor.processForwardConfig(ThemeReq
uestProcessor.java:46)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:173)
at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:11
9)
at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.jav
a:672)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispat
cher.java:463)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.
java:398)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.ja
va:301)
at
org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuth
enticator.java:315)
at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthentica
tor.java:243)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.ja
va:490)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:10
7)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConn
ection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:5
27)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.
java:112)
at java.lang.Thread.run(Thread.java:595)
I add sitemesh plugin and struts2-struts1-plugin, they don't help.
I've debuged and find the problem is
org.apache.struts2.dispatcher.FilterDispatcher.doFilter() didn't get called.
I got stuck here! Please help me! Any advises would be appreciated.
--
View this message in context: http://www.nabble.com/NullPointerException-with-Struts-and-Struts2-plus-Sitemesh-tf3853336.html#a10916370
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: NullPointerException with Struts and Struts2 plus Sitemesh
Posted by panpan <xi...@yahoo.com>.
Hi Dave.
I found the problem is because this logon page has been configured
externally for jboss server. The jboss server dosn't know the S2.
Thanks,
Yan
panpan wrote:
>
> Hi Dave,
>
> Thanks for your reply and time.
> In the web.xml, I have both S1 and S2 configuration inside. So S1 and S2
> tag should function together well. I have other page which has mixed s1
> tag nad s2 tag and works very well.
>
> The reason is like what WW response mentioned: FilterDispatcher is never
> being applied to the request resulting ValueStack being null.
>
> I'm just wondering why FilterDispatcher.doFilter() is not been called once
> I add S2 tag to this logon.jsp. From my understanding it should since I
> have all configuration in the web.xml. Once I remove the S2 tag, I can see
> FilterDispatcher.doFilter() is been called.
>
> Could you please give hint about what might cause not calling
> FilterDispatcher.doFIlter().
>
> Thanks a lot!
>
> Below is my web.xml file.
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
> <display-name>FPI Web Application</display-name>
>
> <context-param>
> <param-name>contextConfigLocation</param-name>
> <param-value>/WEB-INF/applicationContext*.xml</param-value>
> </context-param>
>
> <filter>
> <filter-name>dumper</filter-name>
>
> <filter-class>com.greenview.fpi.web.util.RequestDumperFilter</filter-class>
> </filter>
>
> <filter>
> <filter-name>downtimeAccessFilter</filter-name>
>
> <filter-class>com.greenview.fpi.web.security.DowntimeAccessFilter</filter-class>
> </filter>
>
> <filter>
> <filter-name>httpSessionContextIntegration</filter-name>
>
> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
> </filter>
>
> <filter>
> <filter-name>userEnabledAuthorizationFilter</filter-name>
>
> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
> </filter>
>
> <filter>
> <filter-name>pwExpirationAuthorizationFilter</filter-name>
>
> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
> </filter>
> <filter>
> <filter-name>updateEmailAuthorizationFilter</filter-name>
>
> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
> </filter>
> <filter>
> <filter-name>unreadMessagesAuthorizationFilter</filter-name>
>
> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
> </filter>
>
> <filter>
> <filter-name>struts2-cleanup</filter-name>
>
> <filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
> </filter>
>
> <filter>
> <filter-name>sitemesh</filter-name>
>
> <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
> </filter>
>
> <!-- Struts 2 Configuration -->
> <filter>
> <filter-name>struts2</filter-name>
>
> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
> </filter>
>
> <filter-mapping>
> <filter-name>struts2-cleanup</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
> <filter-mapping>
> <filter-name>sitemesh</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
> <filter-mapping>
> <filter-name>struts2</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
> <filter-mapping>
> <filter-name>dumper</filter-name>
> <servlet-name>action</servlet-name>
> </filter-mapping>
>
> <filter-mapping>
> <filter-name>downtimeAccessFilter</filter-name>
> <url-pattern>/restricted/*</url-pattern>
> </filter-mapping>
>
> <filter-mapping>
> <filter-name>httpSessionContextIntegration</filter-name>
> <url-pattern>/restricted/*</url-pattern>
> </filter-mapping>
>
> <filter-mapping>
> <filter-name>userEnabledAuthorizationFilter</filter-name>
> <url-pattern>/restricted/*</url-pattern>
> </filter-mapping>
>
> <filter-mapping>
> <filter-name>pwExpirationAuthorizationFilter</filter-name>
> <url-pattern>/restricted/*</url-pattern>
> </filter-mapping>
>
> <filter-mapping>
> <filter-name>updateEmailAuthorizationFilter</filter-name>
> <url-pattern>/restricted/*</url-pattern>
> </filter-mapping>
>
> <filter-mapping>
> <filter-name>unreadMessagesAuthorizationFilter</filter-name>
> <url-pattern>/restricted/*</url-pattern>
> </filter-mapping>
>
> <listener>
>
> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
> </listener>
>
> <session-config>
> <session-timeout>40</session-timeout>
> </session-config>
>
> <!--
> To use non XDoclet listeners, create a listeners.xml file that
> contains the additional listeners and place it in your
> project's merge dir.
> -->
>
> <servlet>
> <servlet-name>LenderSearchServlet</servlet-name>
>
> <servlet-class>com.gtg.pcinsurance.web.lender.ProcessLenderAjaxRequest</servlet-class>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>LenderSearchServlet</servlet-name>
> <url-pattern>/policy/ProcessLenderAjaxRequest</url-pattern>
> </servlet-mapping>
>
> <service-ref>
> <service-ref-name>service/LenderWebService</service-ref-name>
>
> <service-interface>com.gtg.pcinsurance.webservice_client.lender.LenderInquiryWebService</service-interface>
> <wsdl-file>WEB-INF/wsdl/LenderInquiryWebService.wsdl</wsdl-file>
>
> <jaxrpc-mapping-file>META-INF/lender-mapping-client.xml</jaxrpc-mapping-file>
> </service-ref>
>
> <service-ref>
> <service-ref-name>service/AcordWebService</service-ref-name>
>
> <service-interface>com.greenview.propertyinsurance.webserviceclient.acord.AcordWebService</service-interface>
> <wsdl-file>WEB-INF/wsdl/AcordWebService.wsdl</wsdl-file>
>
> <jaxrpc-mapping-file>META-INF/acord-mapping-client.xml</jaxrpc-mapping-file>
> </service-ref>
>
> <service-ref>
> <service-ref-name>service/AddressInquiryWebService</service-ref-name>
>
> <service-interface>com.greenview.propertyinsurance.webserviceclient.address.AddressInquiryWebService</service-interface>
> <wsdl-file>WEB-INF/wsdl/AddressInquiryWebService.wsdl</wsdl-file>
>
> <jaxrpc-mapping-file>META-INF/address-mapping-client.xml</jaxrpc-mapping-file>
> </service-ref>
> <service-ref>
> <service-ref-name>service/LocationISOService</service-ref-name>
>
> <service-interface>com.lmt.iso.location.sei.client.LocationISO</service-interface>
> <wsdl-file>WEB-INF/wsdl/LocationISOService.wsdl</wsdl-file>
>
> <jaxrpc-mapping-file>META-INF/location-iso-mapping-client.xml</jaxrpc-mapping-file>
> </service-ref>
> <!-- Standard Action Servlet Configuration (with debugging) -->
> <servlet>
> <servlet-name>action</servlet-name>
> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> <init-param>
> <param-name>config</param-name>
> <param-value>/WEB-INF/struts-config.xml</param-value>
> </init-param>
> <init-param>
> <param-name>debug</param-name>
> <param-value>2</param-value>
> </init-param>
> <init-param>
> <param-name>detail</param-name>
> <param-value>2</param-value>
> </init-param>
> <load-on-startup>2</load-on-startup>
> </servlet>
>
> <servlet>
> <servlet-name>CompanyImage</servlet-name>
>
> <servlet-class>com.gtg.pcinsurance.web.imageserv.CompanyImageServlet</servlet-class>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>CompanyImage</servlet-name>
> <url-pattern>/CompanyImage</url-pattern>
> </servlet-mapping>
>
> <servlet>
> <servlet-name>ImageViewer</servlet-name>
> <servlet-class>com.fpi.web.policy.ViewImageAttachment</servlet-class>
> </servlet>
>
> <servlet>
> <servlet-name>StartupServlet</servlet-name>
> <servlet-class>com.greenview.fpi.web.util.StartupServlet</servlet-class>
> <load-on-startup>2</load-on-startup>
> </servlet>
>
> <!-- Standard Action Servlet Mapping -->
> <servlet-mapping>
> <servlet-name>action</servlet-name>
> <url-pattern>*.do</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>ImageViewer</servlet-name>
> <url-pattern>/restricted/policy/ViewImageAttachment</url-pattern>
> </servlet-mapping>
>
> <!--
> To specify mime mappings, create a file named mime-mappings.xml, put it
> in your project's mergedir.
> Organize mime-mappings.xml following this DTD slice:
>
> <!ELEMENT mime-mapping (extension, mime-type)>
> -->
>
> <!-- The Usual Welcome File List -->
> <welcome-file-list>
> <welcome-file>index.jsp</welcome-file>
> </welcome-file-list>
>
> <error-page>
> <error-code>500</error-code>
> <location>/error.jsp</location>
> </error-page>
>
> <!--
> To specify error pages, create a file named error-pages.xml, put it in
> your project's mergedir.
> Organize error-pages.xml following this DTD slice:
>
> <!ELEMENT error-page ((error-code | exception-type), location)>
> -->
>
> <!-- JDBC DataSources (java:comp/env/jdbc) -->
> <resource-ref>
> <description>The default DS</description>
> <res-ref-name>jdbc/DefaultDS</res-ref-name>
> <res-type>javax.sql.DataSource</res-type>
> <res-auth>Container</res-auth>
> </resource-ref>
>
> <resource-ref>
> <description>SIS Datasource</description>
> <res-ref-name>jdbc/DB2DS</res-ref-name>
> <res-type>javax.sql.DataSource</res-type>
> <res-auth>Container</res-auth>
> </resource-ref>
>
> <!-- Our secuity settings -->
> <security-constraint>
> <web-resource-collection>
> <web-resource-name>Restricted</web-resource-name>
> <!-- The URLs to protect -->
> <!--
> <url-pattern>/pages/*</url-pattern>
> <url-pattern>/tiles/*</url-pattern>
> <url-pattern>/group/*</url-pattern>
> <url-pattern>/user/*</url-pattern>
> <url-pattern>/quote/*</url-pattern>
> <url-pattern>/policy/*</url-pattern>
> <url-pattern>/message/*</url-pattern>
> <url-pattern>/logon.do</url-pattern>
> -->
> <url-pattern>/restricted/*</url-pattern>
> </web-resource-collection>
> <auth-constraint>
> <!-- The authorized users -->
> <role-name>User</role-name>
> </auth-constraint>
> </security-constraint>
>
> <login-config>
> <auth-method>FORM</auth-method>
> <realm-name>EBasic Authentication Area</realm-name>
> <form-login-config>
>
> <form-login-page>/index.do?method=viewCompanyMessagesLogin</form-login-page>
> <form-error-page>/logon-error.jsp</form-error-page>
> </form-login-config>
> </login-config>
>
> <security-role>
> <description>Any user</description>
> <role-name>User</role-name>
> </security-role>
>
> </web-app>
>
>
>
>
> Dave Newton-4 wrote:
>>
>> --- panpan <xi...@yahoo.com> wrote:
>>> They're served throught S1 and S2 since I'm in the
>>> middle for migration from S1 to S2.
>>
>> It is not clear to me that an S2 tag would function
>> under an S1 mapping because there won't be a value
>> stack, which is what the stack trace implies.
>>
>> The WW response claims that if no value stack is found
>> one will be created; I guess you'd need to start
>> looking there, since it seems like one isn't... but
>> would there be any values in it?
>>
>> d.
>>
>>
>>
>>
>> ____________________________________________________________________________________
>> Get your own web address.
>> Have a HUGE year through Yahoo! Small Business.
>> http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/NullPointerException-with-Struts-and-Struts2-plus-Sitemesh-tf3853336.html#a10950580
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: NullPointerException with Struts and Struts2 plus Sitemesh
Posted by panpan <xi...@yahoo.com>.
Hi Dave,
Thanks for your reply and time.
In the web.xml, I have both S1 and S2 configuration inside. So S1 and S2 tag
should function together well. I have other page which has mixed s1 tag nad
s2 tag and works very well.
The reason is like what WW response mentioned: FilterDispatcher is never
being applied to the request resulting ValueStack being null.
I'm just wondering why FilterDispatcher.doFilter() is not been called once I
add S2 tag to this logon.jsp. From my understanding it should since I have
all configuration in the web.xml. Once I remove the S2 tag, I can see
FilterDispatcher.doFilter() is been called.
Could you please give hint about what might cause not calling
FilterDispatcher.doFIlter().
Thanks a lot!
Below is my web.xml file.
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
<display-name>FPI Web Application</display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext*.xml</param-value>
</context-param>
<filter>
<filter-name>dumper</filter-name>
<filter-class>com.greenview.fpi.web.util.RequestDumperFilter</filter-class>
</filter>
<filter>
<filter-name>downtimeAccessFilter</filter-name>
<filter-class>com.greenview.fpi.web.security.DowntimeAccessFilter</filter-class>
</filter>
<filter>
<filter-name>httpSessionContextIntegration</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter>
<filter-name>userEnabledAuthorizationFilter</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter>
<filter-name>pwExpirationAuthorizationFilter</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter>
<filter-name>updateEmailAuthorizationFilter</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter>
<filter-name>unreadMessagesAuthorizationFilter</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter>
<filter-name>struts2-cleanup</filter-name>
<filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
</filter>
<filter>
<filter-name>sitemesh</filter-name>
<filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
</filter>
<!-- Struts 2 Configuration -->
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2-cleanup</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>sitemesh</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>dumper</filter-name>
<servlet-name>action</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>downtimeAccessFilter</filter-name>
<url-pattern>/restricted/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>httpSessionContextIntegration</filter-name>
<url-pattern>/restricted/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>userEnabledAuthorizationFilter</filter-name>
<url-pattern>/restricted/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>pwExpirationAuthorizationFilter</filter-name>
<url-pattern>/restricted/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>updateEmailAuthorizationFilter</filter-name>
<url-pattern>/restricted/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>unreadMessagesAuthorizationFilter</filter-name>
<url-pattern>/restricted/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<session-config>
<session-timeout>40</session-timeout>
</session-config>
<!--
To use non XDoclet listeners, create a listeners.xml file that
contains the additional listeners and place it in your
project's merge dir.
-->
<servlet>
<servlet-name>LenderSearchServlet</servlet-name>
<servlet-class>com.gtg.pcinsurance.web.lender.ProcessLenderAjaxRequest</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>LenderSearchServlet</servlet-name>
<url-pattern>/policy/ProcessLenderAjaxRequest</url-pattern>
</servlet-mapping>
<service-ref>
<service-ref-name>service/LenderWebService</service-ref-name>
<service-interface>com.gtg.pcinsurance.webservice_client.lender.LenderInquiryWebService</service-interface>
<wsdl-file>WEB-INF/wsdl/LenderInquiryWebService.wsdl</wsdl-file>
<jaxrpc-mapping-file>META-INF/lender-mapping-client.xml</jaxrpc-mapping-file>
</service-ref>
<service-ref>
<service-ref-name>service/AcordWebService</service-ref-name>
<service-interface>com.greenview.propertyinsurance.webserviceclient.acord.AcordWebService</service-interface>
<wsdl-file>WEB-INF/wsdl/AcordWebService.wsdl</wsdl-file>
<jaxrpc-mapping-file>META-INF/acord-mapping-client.xml</jaxrpc-mapping-file>
</service-ref>
<service-ref>
<service-ref-name>service/AddressInquiryWebService</service-ref-name>
<service-interface>com.greenview.propertyinsurance.webserviceclient.address.AddressInquiryWebService</service-interface>
<wsdl-file>WEB-INF/wsdl/AddressInquiryWebService.wsdl</wsdl-file>
<jaxrpc-mapping-file>META-INF/address-mapping-client.xml</jaxrpc-mapping-file>
</service-ref>
<service-ref>
<service-ref-name>service/LocationISOService</service-ref-name>
<service-interface>com.lmt.iso.location.sei.client.LocationISO</service-interface>
<wsdl-file>WEB-INF/wsdl/LocationISOService.wsdl</wsdl-file>
<jaxrpc-mapping-file>META-INF/location-iso-mapping-client.xml</jaxrpc-mapping-file>
</service-ref>
<!-- Standard Action Servlet Configuration (with debugging) -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet>
<servlet-name>CompanyImage</servlet-name>
<servlet-class>com.gtg.pcinsurance.web.imageserv.CompanyImageServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CompanyImage</servlet-name>
<url-pattern>/CompanyImage</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>ImageViewer</servlet-name>
<servlet-class>com.fpi.web.policy.ViewImageAttachment</servlet-class>
</servlet>
<servlet>
<servlet-name>StartupServlet</servlet-name>
<servlet-class>com.greenview.fpi.web.util.StartupServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- Standard Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ImageViewer</servlet-name>
<url-pattern>/restricted/policy/ViewImageAttachment</url-pattern>
</servlet-mapping>
<!--
To specify mime mappings, create a file named mime-mappings.xml, put it in
your project's mergedir.
Organize mime-mappings.xml following this DTD slice:
<!ELEMENT mime-mapping (extension, mime-type)>
-->
<!-- The Usual Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>500</error-code>
<location>/error.jsp</location>
</error-page>
<!--
To specify error pages, create a file named error-pages.xml, put it in
your project's mergedir.
Organize error-pages.xml following this DTD slice:
<!ELEMENT error-page ((error-code | exception-type), location)>
-->
<!-- JDBC DataSources (java:comp/env/jdbc) -->
<resource-ref>
<description>The default DS</description>
<res-ref-name>jdbc/DefaultDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<resource-ref>
<description>SIS Datasource</description>
<res-ref-name>jdbc/DB2DS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<!-- Our secuity settings -->
<security-constraint>
<web-resource-collection>
<web-resource-name>Restricted</web-resource-name>
<!-- The URLs to protect -->
<!--
<url-pattern>/pages/*</url-pattern>
<url-pattern>/tiles/*</url-pattern>
<url-pattern>/group/*</url-pattern>
<url-pattern>/user/*</url-pattern>
<url-pattern>/quote/*</url-pattern>
<url-pattern>/policy/*</url-pattern>
<url-pattern>/message/*</url-pattern>
<url-pattern>/logon.do</url-pattern>
-->
<url-pattern>/restricted/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<!-- The authorized users -->
<role-name>User</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>EBasic Authentication Area</realm-name>
<form-login-config>
<form-login-page>/index.do?method=viewCompanyMessagesLogin</form-login-page>
<form-error-page>/logon-error.jsp</form-error-page>
</form-login-config>
</login-config>
<security-role>
<description>Any user</description>
<role-name>User</role-name>
</security-role>
</web-app>
Dave Newton-4 wrote:
>
> --- panpan <xi...@yahoo.com> wrote:
>> They're served throught S1 and S2 since I'm in the
>> middle for migration from S1 to S2.
>
> It is not clear to me that an S2 tag would function
> under an S1 mapping because there won't be a value
> stack, which is what the stack trace implies.
>
> The WW response claims that if no value stack is found
> one will be created; I guess you'd need to start
> looking there, since it seems like one isn't... but
> would there be any values in it?
>
> d.
>
>
>
>
> ____________________________________________________________________________________
> Get your own web address.
> Have a HUGE year through Yahoo! Small Business.
> http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/NullPointerException-with-Struts-and-Struts2-plus-Sitemesh-tf3853336.html#a10950209
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: NullPointerException with Struts and Struts2 plus Sitemesh
Posted by Dave Newton <ne...@yahoo.com>.
--- panpan <xi...@yahoo.com> wrote:
> They're served throught S1 and S2 since I'm in the
> middle for migration from S1 to S2.
It is not clear to me that an S2 tag would function
under an S1 mapping because there won't be a value
stack, which is what the stack trace implies.
The WW response claims that if no value stack is found
one will be created; I guess you'd need to start
looking there, since it seems like one isn't... but
would there be any values in it?
d.
____________________________________________________________________________________
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: NullPointerException with Struts and Struts2 plus Sitemesh
Posted by panpan <xi...@yahoo.com>.
They're served throught S1 and S2 since I'm in the middle for migration from
S1 to S2.
I got a replay from WebWork forum:
Hi Newuser,
>From the stack trace it looks like FilterDispatcher is never being applied
to the request resulting ValueStack being null, hence NPE. How does the
mapping of web.xml looks like? I am wondering could it be that all this time
sturts1 is being applied and struts2 doesn at all cuase from the stack
trace, can't see where s2 FilterDispatcher kicks in (or if there's still one
in s2).
We might want to check out (TagUtils.java:58) and see which like is causing
NPE, as far as i can recall, WebWork will creates a values stack if it is
not available form request's attribute which if s2 FilterDispatcher never
kicks in, there will never be one
I guess we might want to keep an eye on the thread posted in struts malling
list, they are probably understand more of the situation i guess as it
involves both sturts1 and struts2.
It doesn't look like its a problem with sitemesh. Issue WW-1388 looks like a
different issue althogether.
Cheers.
Thanks,
Yan
Dave Newton-4 wrote:
>
> --- panpan <xi...@yahoo.com> wrote:
>> Don't understand this one.
>
> *Please* just say whether or not the page you're
> serving is being served through S1 or S2.
>
>> If you see the below struts JIRA link:
>>
>> http://issues.apache.org/struts/browse/WW-1388
>>
>> It has the almost same exception as mine.
>
> "Almost the same exception"? Because they're both an
> NPE?
>
> :/
>
> d.
>
>
>
>
> ____________________________________________________________________________________
> Park yourself in front of a world of choices in alternative vehicles.
> Visit the Yahoo! Auto Green Center.
> http://autos.yahoo.com/green_center/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/NullPointerException-with-Struts-and-Struts2-plus-Sitemesh-tf3853336.html#a10948837
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: NullPointerException with Struts and Struts2 plus Sitemesh
Posted by panpan <xi...@yahoo.com>.
They're served throught S1 and S2 since I'm in the middle of migrating from
S1 to S2.
I got a replay from WebWork forum:
Hi Newuser,
>From the stack trace it looks like FilterDispatcher is never being applied
to the request resulting ValueStack being null, hence NPE. How does the
mapping of web.xml looks like? I am wondering could it be that all this time
sturts1 is being applied and struts2 doesn at all cuase from the stack
trace, can't see where s2 FilterDispatcher kicks in (or if there's still one
in s2).
We might want to check out (TagUtils.java:58) and see which like is causing
NPE, as far as i can recall, WebWork will creates a values stack if it is
not available form request's attribute which if s2 FilterDispatcher never
kicks in, there will never be one
I guess we might want to keep an eye on the thread posted in struts malling
list, they are probably understand more of the situation i guess as it
involves both sturts1 and struts2.
It doesn't look like its a problem with sitemesh. Issue WW-1388 looks like a
different issue althogether.
Cheers.
Thanks,
Yan
Dave Newton-4 wrote:
>
> --- panpan <xi...@yahoo.com> wrote:
>> Don't understand this one.
>
> *Please* just say whether or not the page you're
> serving is being served through S1 or S2.
>
>> If you see the below struts JIRA link:
>>
>> http://issues.apache.org/struts/browse/WW-1388
>>
>> It has the almost same exception as mine.
>
> "Almost the same exception"? Because they're both an
> NPE?
>
> :/
>
> d.
>
>
>
>
> ____________________________________________________________________________________
> Park yourself in front of a world of choices in alternative vehicles.
> Visit the Yahoo! Auto Green Center.
> http://autos.yahoo.com/green_center/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/NullPointerException-with-Struts-and-Struts2-plus-Sitemesh-tf3853336.html#a10948837
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: NullPointerException with Struts and Struts2 plus Sitemesh
Posted by Dave Newton <ne...@yahoo.com>.
--- panpan <xi...@yahoo.com> wrote:
> Don't understand this one.
*Please* just say whether or not the page you're
serving is being served through S1 or S2.
> If you see the below struts JIRA link:
>
> http://issues.apache.org/struts/browse/WW-1388
>
> It has the almost same exception as mine.
"Almost the same exception"? Because they're both an
NPE?
:/
d.
____________________________________________________________________________________
Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: NullPointerException with Struts and Struts2 plus Sitemesh
Posted by panpan <xi...@yahoo.com>.
Hi Dave,
I'm doing migration from S1 to S2. S1 and S2 should work together
peacefully. I add those required configuration in web.xml and jars in the
classpath. I've done other pages sucessfully with mixed S1 tag and S2 tag.
Don't understand this one.
I found the problem is that
org.apache.struts2.dispatcher.FilterDispatcher.doFilter() hasn't been
called. Once I remove this S2 tag. the FilterDispatcher.doFilter() would be
called immediatelly.
If you see the below struts JIRA link:
http://issues.apache.org/struts/browse/WW-1388
It has the almost same exception as mine. Both the
FIlterDispatcher.doFilter() didn't been called.
Thanks a lot,
Yan
Dave Newton-4 wrote:
>
> --- panpan <xi...@yahoo.com> wrote:
>> This page is originally served through struts1.
>> During the migration to struts 2, I need to add a
> new
>> feature to this page using struts 2 tag to
>> invoke the struts 2 action.
>
> Well... if the page isn't being served through the S2
> filter I'm not sure which, if any, of the S2 tags will
> actually work.
>
> d.
>
>
>
>
> ____________________________________________________________________________________
> Moody friends. Drama queens. Your life? Nope! - their life, your story.
> Play Sims Stories at Yahoo! Games.
> http://sims.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/NullPointerException-with-Struts-and-Struts2-plus-Sitemesh-tf3853336.html#a10917361
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: NullPointerException with Struts and Struts2 plus Sitemesh
Posted by panpan <xi...@yahoo.com>.
Hi Dave,
I'm doing migration from S1 to S2. S1 and S2 should work together
peacefully. I add those required configuration in web.xml and jars in the
classpath. I've done other pages sucessfully with mixed S1 tag and S2 tag.
Don't understand this one.
I found the problem is that
org.apache.struts2.dispatcher.FilterDispatcher.doFilter() hasn't been
called. Once I remove this S2 tag. the FilterDispatcher.doFilter() would be
called immediatelly.
If you see the below struts JIRA link:
http://issues.apache.org/struts/browse/WW-1388
It has the almost same exception with mine. Both the
FIlterDispatcher.doFilter() didn't been called.
Thanks a lot,
Yan
Dave Newton-4 wrote:
>
> --- panpan <xi...@yahoo.com> wrote:
>> This page is originally served through struts1.
>> During the migration to struts 2, I need to add a
> new
>> feature to this page using struts 2 tag to
>> invoke the struts 2 action.
>
> Well... if the page isn't being served through the S2
> filter I'm not sure which, if any, of the S2 tags will
> actually work.
>
> d.
>
>
>
>
> ____________________________________________________________________________________
> Moody friends. Drama queens. Your life? Nope! - their life, your story.
> Play Sims Stories at Yahoo! Games.
> http://sims.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/NullPointerException-with-Struts-and-Struts2-plus-Sitemesh-tf3853336.html#a10917361
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: NullPointerException with Struts and Struts2 plus Sitemesh
Posted by panpan <xi...@yahoo.com>.
Hi Dave,
I'm doing migration from S1 to S2. S1 and S2 should work together
peacefully. I add those required configuration in web.xml and jars in the
classpath. I've done other pages sucessfully with mixed S1 tag and S2 tag.
Don't understand this one.
I found the problem is that
org.apache.struts2.dispatcher.FilterDispatcher.doFilter() hasn't been
called. Once I remove this S2 tag. the FilterDispatcher.doFilter() would be
called immediatelly.
If you see the below struts JIRA link:
http://issues.apache.org/struts/browse/WW-1388
It has the almost same exception as mine. Both the
FIlterDispatcher.doFilter() didn't been called. Don't see how they fix this
problem.
Thanks a lot,
Yan
Dave Newton-4 wrote:
>
> --- panpan <xi...@yahoo.com> wrote:
>> This page is originally served through struts1.
>> During the migration to struts 2, I need to add a
> new
>> feature to this page using struts 2 tag to
>> invoke the struts 2 action.
>
> Well... if the page isn't being served through the S2
> filter I'm not sure which, if any, of the S2 tags will
> actually work.
>
> d.
>
>
>
>
> ____________________________________________________________________________________
> Moody friends. Drama queens. Your life? Nope! - their life, your story.
> Play Sims Stories at Yahoo! Games.
> http://sims.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/NullPointerException-with-Struts-and-Struts2-plus-Sitemesh-tf3853336.html#a10917361
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: NullPointerException with Struts and Struts2 plus Sitemesh
Posted by Dave Newton <ne...@yahoo.com>.
--- panpan <xi...@yahoo.com> wrote:
> This page is originally served through struts1.
> During the migration to struts 2, I need to add a
new
> feature to this page using struts 2 tag to
> invoke the struts 2 action.
Well... if the page isn't being served through the S2
filter I'm not sure which, if any, of the S2 tags will
actually work.
d.
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: NullPointerException with Struts and Struts2 plus Sitemesh
Posted by panpan <xi...@yahoo.com>.
Hi Dave,
Thanks for your reply and sorry for the confusion!
This page is originally served through struts1. During the migration to
struts 2, I need to add a new feature to this page using struts 2 tag to
invoke the struts 2 action.
Please help me!
pp
Dave Newton-4 wrote:
>
> I'm confused.
>
> --- panpan <xi...@yahoo.com> wrote:
>> This logon.jsp page doesn't use sitemesh and I only
>> add one struts2 tag line <s:url action=""/>. I don't
>> know what happend.
>
> Is the page being served through S2?
>
> d.
>
>
>
>
> ____________________________________________________________________________________
> Park yourself in front of a world of choices in alternative vehicles.
> Visit the Yahoo! Auto Green Center.
> http://autos.yahoo.com/green_center/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/NullPointerException-with-Struts-and-Struts2-plus-Sitemesh-tf3853336.html#a10916849
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: NullPointerException with Struts and Struts2 plus Sitemesh
Posted by Dave Newton <ne...@yahoo.com>.
I'm confused.
--- panpan <xi...@yahoo.com> wrote:
> This logon.jsp page doesn't use sitemesh and I only
> add one struts2 tag line <s:url action=""/>. I don't
> know what happend.
Is the page being served through S2?
d.
____________________________________________________________________________________
Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org