java - Accessing struts 2 jsp from non-struts 2 action -


I have a servicelet that takes us to the current jsp, called "home.jsp". It is made up of several JSPF pieces. So the struture is

like

Home.jsp jsp1, jsp2 and so on.

Now we have moved part of the module struts2 and a "new .jsp" (uses the String 2 tag) which we need to include inside "home.jsp". To achieve this I

    
< P> returns the result as "new.jsp".

But when I press Sewlett, I get an exception about the Straits 2 filter despatcher during rendering. The exception mark is associated.

Please make it clear, then (1) this is possible, while the S2 operation

  does not present it via an S2 jsp Is to render> ** (2) ** Is there anything missing?  

The following exception trace is:

  The Strat Dispatcher can not be found. It is usually done using a string tag without the associated filter, the struts tag is useful only when the request is passed through its servlet filter, which starts the traits dispatcher for this tag. - [unknown] organization on org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack (StrutsBodyTagSupport.java:44) on org.apache.struts2.views.jsp.TagUtils.getStack (TagUtils.java:60). Apache.struts2.views.jsp.ComponentTagSupport.do at Startart (ComponentTagSupport.java:48) org.apache.jsp.matterhome_jsp._jspx_meth_s_005faction_005f0 (matterhome_jsp.java:5021) at org.apache.jsp.matterhome_jsp._jspService (matterhome_jsp. java: 1339) org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:98 at javax.servlet.http.HttpServlet.service (HttpServlet.java:803) on org.apache.jasper.servlet.JspServletWrapper.service ) org.apache.jasper.servlet.JspServlet.service (on org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:329) on JspServlet.java:265) (JspServletWrapper.java:331) on javax.servlet On. http.HttpServlet.service (HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.ja on Va: 26 9) org.apache.catalina.core.ApplicationFilterChain on org.apache.catalina.core Org.apache.catalina.core.ApplicationDispatcher.invoke (ApplicationDispatcher.java:691) at .doFilter (applicationFilterChain.java:188). .apeepiseediapacrkprosessent (applicationDispatcher.java:469) on org.apache.catalina.core.ApplicationDispatcher.doForward (ApplicationDispatcher.java:403)  

OK, it was not possible to use the Straits 2 tag directly, but I got a job.

We use & lt; You can use iframes & gt; to split those sections which are based on S2. Providing an S2 URL inside the iframe functions and the view can be provided in conjunction with the non-S2 based JSP.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -