What does your struts-config.xml look like? It looks like the tiles
forward is somehow going to stxx. Are you sure that forward is using
the correct tiles extension?
Don
Rajesh Sundar wrote:
>
> Hi,
> Thank you very much for the reply. I did the way you mentioned
> and i don't get this error.
>
> If i try to insert a struts tiles insert tag inside the jsp, i'm
> getting the following error.
>
> com.oroad.stxx.transform.TransformerException:
> javax.servlet.ServletException: JSP compilation of /left.jsp failed:
> webl
> ogic.utils.ParsingException: Could not complete parsing, unmatched
> tags: insert
> at com.oroad.stxx.transform.DOMWriteTransformer.transform
> (Lcom/oroad/stxx/action/ActionTransform;Ljavax/servlet/
> http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V
> (DOMWriteTransformer.java:201)
> at
> com.oroad.stxx.transform.TransformerHandler.processActionTransform
> (Lcom/oroad/stxx/action/ActionTransform;Lja
> vax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRe
> sponse;)V(TransformerHandler.java:203)
> at
> com.oroad.stxx.plugin.RequestProcessorHelper.processStxxDefinition
> (Ljava/lang/String;ZLjavax/servlet/http/Htt
> pServletRequest;Ljavax/servlet/http/HttpServletResponse;)Z
> (RequestProcessorHelper.java:260)
> at
> com.oroad.stxx.plugin.StxxTilesRequestProcessor.processForwardConfig
> (Ljavax/servlet/http/HttpServletRequest;L
> javax/servlet/http/HttpServletResponse;Lorg/apache/struts/config/Forw
> ardConfig;)V(StxxTilesRequestProcessor.java:133)
> at org.apache.struts.action.RequestProcessor.process
> (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/
> HttpServletResponse;)V(RequestProcessor.java:279)
> at org.apache.struts.action.ActionServlet.process
> (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/Htt
> pServletResponse;)V(ActionServlet.java:1482)
> at org.apache.struts.action.ActionServlet.doGet
> (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpS
> ervletResponse;)V(ActionServlet.java:507)
> at javax.servlet.http.HttpServlet.service
> (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServl
> et
> Response;)V(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service
> (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V
> (HttpSe
> rvlet.java:853)
> at
> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
> ()Ljava/lang/Object;(ServletStubImpl.jav
> a:1072)
> at weblogic.servlet.internal.ServletStubImpl.invokeServlet
> (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletR
> esponse;Lweblogic/servlet/internal/FilterChainImpl;)V
> (ServletStubImpl.java:465)
> at weblogic.servlet.internal.ServletStubImpl.invokeServlet
> (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletR
> esponse;)V(ServletStubImpl.java:348)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
> n.run()Ljava/lang/Object;(WebAppServletC
> ontext.java:6981)
> at weblogic.security.acl.internal.AuthenticatedSubject.doAs
> (Lweblogic/security/subject/AbstractSubject;Ljava/sec
> urity/PrivilegedAction;)Ljava/lang/Object;
> (AuthenticatedSubject.java:321)
> at weblogic.security.service.SecurityManager.runAs
> (Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogi
> c/security/acl/internal/AuthenticatedSubject;Ljava/security/Privilege
> dAction;)Ljava/lang/Object;(SecurityManager.java:12
> 1)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet
> (Lweblogic/servlet/internal/ServletRequestImpl;Lw
> eblogic/servlet/internal/ServletResponseImpl;)V
> (WebAppServletContext.java:3892)
> at weblogic.servlet.internal.ServletRequestImpl.execute
> (Lweblogic/kernel/ExecuteThread;)V(ServletRequestImpl.jav
> a:2766)
> at weblogic.kernel.ExecuteThread.execute
> (Lweblogic/kernel/ExecuteRequest;)V(ExecuteThread.java:224)
> at weblogic.kernel.ExecuteThread.run()V
> (ExecuteThread.java:183)
> at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V
> (Unknown Source)
>
> Please can you correct me if i'm doing wrong way of implementing
> tiles with Stxx.
>
> Regards,
> Rajesh.
>
> --- In struts-xsl@yahoogroups.com
> <mailto:struts-xsl%40yahoogroups.com>, Don Brown <mrdon@...> wrote:
> >
> > You need to use the StxxTilesRequestProcessor. IIRC, you need to
> put the Tiles
> > plugin before the Stxx one, so Stxx knows to load the correct
> version of its
> > RequestProcessor.
> >
> > Don
> >
> > Rajesh Sundar wrote:
> > >
> > >
> > > Don,
> > > I'm getting the jsp output using the Stxx.
> > >
> > > If i try to include the TilesPlugin of Struts1.1 in my struts-
> > > config.xml, Im getting the following error.
> > >
> > > - Initializing,
> config='org.apache.struts.action.ActionResources',
> > > returnNull=true
> > > - Loading the stxx request processor without Tiles support
> > > - TilesPlugin : Specified RequestProcessor not compatible with
> > > TilesRequestProcessor
> > > <Jun 23, 2006 3:08:14 PM BST> <Error> <HTTP> <BEA-101018> <
> > > [ServletContext(id=6952394,name=StxxDemo,context-path=/StxxDemo)]
> > > Servlet failed with ServletException
> > > javax.servlet.ServletException: TilesPlugin : Specified
> > > RequestProcessor not compatible with TilesRequestProcessor
> > > at
> > > org.apache.struts.tiles.TilesPlugin.initRequestProcessorClass
> > > (TilesPlugin.java:360)
> > > at org.apache.struts.tiles.TilesPlugin.init
> > > (TilesPlugin.java:164)
> > > at org.apache.struts.action.ActionServlet.initModulePlugIns
> > > (ActionServlet.java:1158)
> > > at org.apache.struts.action.ActionServlet.init
> > > (ActionServlet.java:473)
> > > at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> > > at
> > > weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run
> > > (ServletStubImpl.java:1028)
> > > at weblogic.security.acl.internal.AuthenticatedSubject.doAs
> > > (AuthenticatedSubject.java:321)
> > > at weblogic.security.service.SecurityManager.runAs
> > > (SecurityManager.java:121)
> > > at weblogic.servlet.internal.ServletStubImpl.createServlet
> > > (ServletStubImpl.java:904)
> > > at weblogic.servlet.internal.ServletStubImpl.createInstances
> > > (ServletStubImpl.java:883)
> > > at weblogic.servlet.internal.ServletStubImpl.prepareServlet
> > > (ServletStubImpl.java:822)
> > > at weblogic.servlet.internal.ServletStubImpl.getServlet
> > > (ServletStubImpl.java:535)
> > > at weblogic.servlet.internal.ServletStubImpl.invokeServlet
> > > (ServletStubImpl.java:373)
> > > at weblogic.servlet.internal.ServletStubImpl.invokeServlet
> > > (ServletStubImpl.java:315)
> > > at
> > >
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
> n
> > > .run(WebAppServletContext.java:6718)
> > > at weblogic.security.acl.internal.AuthenticatedSubject.doAs
> > > (AuthenticatedSubject.java:321)
> > > at weblogic.security.service.SecurityManager.runAs
> > > (SecurityManager.java:121)
> > > at
> > > weblogic.servlet.internal.WebAppServletContext.invokeServlet
> > > (WebAppServletContext.java:3764)
> > > at weblogic.servlet.internal.ServletRequestImpl.execute
> > > (ServletRequestImpl.java:2644)
> > > at weblogic.kernel.ExecuteThread.execute
> > > (ExecuteThread.java:219)
> > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
> > >
> > > I read in the Stxx "changes" link that as of Stxx1.3.1a support
> to
> > > tiles frame work was added.
> > >
> > > My project insist on using Struts tiles framework. Please can you
> > > tell me how to use Struts tiles along with Stxx?
> > >
> > > Have a nice day!
> > >
> > > Regards,
> > > Rajesh
> > >
> > > --- In struts-xsl@yahoogroups.com
> <mailto:struts-xsl%40yahoogroups.com> <mailto:struts-xsl%
> 40yahoogroups.com>,
> > > Don Brown <mrdon@> wrote:
> > > >
> > > > Tiles is tied to JSP, so I'm not sure how or even why you'd
> use it
> > > with Stxx.
> > > > I've found Sitemesh to fulfill a similar goal, but with much
> less
> > > work and
> > > > better features.
> > > >
> > > > Don
> > > >
> > > > Rajesh Sundar wrote:
> > > > >
> > > > >
> > > > > Hi,
> > > > > I was able to run Stxx successfully.
> > > > >
> > > > > Now i'm trying to do Stxx with Struts tiles.Is there any
> example
> > > for
> > > > > Stxx with Struts?
> > > > >
> > > > > Regards,
> > > > > Rajesh
> > > > >
> > > > >
> > > >
> > >
> > >
> >
>
>
Hi,
Thank you very much for the reply. I did the way you mentioned
and i don't get this error.
If i try to insert a struts tiles insert tag inside the jsp, i'm
getting the following error.
com.oroad.stxx.transform.TransformerException:
javax.servlet.ServletException: JSP compilation of /left.jsp failed:
webl
ogic.utils.ParsingException: Could not complete parsing, unmatched
tags: insert
at com.oroad.stxx.transform.DOMWriteTransformer.transform
(Lcom/oroad/stxx/action/ActionTransform;Ljavax/servlet/
http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V
(DOMWriteTransformer.java:201)
at
com.oroad.stxx.transform.TransformerHandler.processActionTransform
(Lcom/oroad/stxx/action/ActionTransform;Lja
vax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRe
sponse;)V(TransformerHandler.java:203)
at
com.oroad.stxx.plugin.RequestProcessorHelper.processStxxDefinition
(Ljava/lang/String;ZLjavax/servlet/http/Htt
pServletRequest;Ljavax/servlet/http/HttpServletResponse;)Z
(RequestProcessorHelper.java:260)
at
com.oroad.stxx.plugin.StxxTilesRequestProcessor.processForwardConfig
(Ljavax/servlet/http/HttpServletRequest;L
javax/servlet/http/HttpServletResponse;Lorg/apache/struts/config/Forw
ardConfig;)V(StxxTilesRequestProcessor.java:133)
at org.apache.struts.action.RequestProcessor.process
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/
HttpServletResponse;)V(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/Htt
pServletResponse;)V(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpS
ervletResponse;)V(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServl
et
Response;)V(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service
(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V
(HttpSe
rvlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
()Ljava/lang/Object;(ServletStubImpl.jav
a:1072)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletR
esponse;Lweblogic/servlet/internal/FilterChainImpl;)V
(ServletStubImpl.java:465)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletR
esponse;)V(ServletStubImpl.java:348)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run()Ljava/lang/Object;(WebAppServletC
ontext.java:6981)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs
(Lweblogic/security/subject/AbstractSubject;Ljava/sec
urity/PrivilegedAction;)Ljava/lang/Object;
(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs
(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogi
c/security/acl/internal/AuthenticatedSubject;Ljava/security/Privilege
dAction;)Ljava/lang/Object;(SecurityManager.java:12
1)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet
(Lweblogic/servlet/internal/ServletRequestImpl;Lw
eblogic/servlet/internal/ServletResponseImpl;)V
(WebAppServletContext.java:3892)
at weblogic.servlet.internal.ServletRequestImpl.execute
(Lweblogic/kernel/ExecuteThread;)V(ServletRequestImpl.jav
a:2766)
at weblogic.kernel.ExecuteThread.execute
(Lweblogic/kernel/ExecuteRequest;)V(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run()V
(ExecuteThread.java:183)
at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V
(Unknown Source)
Please can you correct me if i'm doing wrong way of implementing
tiles with Stxx.
Regards,
Rajesh.
--- In struts-xsl@yahoogroups.com, Don Brown <mrdon@...> wrote:
>
> You need to use the StxxTilesRequestProcessor. IIRC, you need to
put the Tiles
> plugin before the Stxx one, so Stxx knows to load the correct
version of its
> RequestProcessor.
>
> Don
>
> Rajesh Sundar wrote:
> >
> >
> > Don,
> > I'm getting the jsp output using the Stxx.
> >
> > If i try to include the TilesPlugin of Struts1.1 in my struts-
> > config.xml, Im getting the following error.
> >
> > - Initializing,
config='org.apache.struts.action.ActionResources',
> > returnNull=true
> > - Loading the stxx request processor without Tiles support
> > - TilesPlugin : Specified RequestProcessor not compatible with
> > TilesRequestProcessor
> > <Jun 23, 2006 3:08:14 PM BST> <Error> <HTTP> <BEA-101018> <
> > [ServletContext(id=6952394,name=StxxDemo,context-path=/StxxDemo)]
> > Servlet failed with ServletException
> > javax.servlet.ServletException: TilesPlugin : Specified
> > RequestProcessor not compatible with TilesRequestProcessor
> > at
> > org.apache.struts.tiles.TilesPlugin.initRequestProcessorClass
> > (TilesPlugin.java:360)
> > at org.apache.struts.tiles.TilesPlugin.init
> > (TilesPlugin.java:164)
> > at org.apache.struts.action.ActionServlet.initModulePlugIns
> > (ActionServlet.java:1158)
> > at org.apache.struts.action.ActionServlet.init
> > (ActionServlet.java:473)
> > at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> > at
> > weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run
> > (ServletStubImpl.java:1028)
> > at weblogic.security.acl.internal.AuthenticatedSubject.doAs
> > (AuthenticatedSubject.java:321)
> > at weblogic.security.service.SecurityManager.runAs
> > (SecurityManager.java:121)
> > at weblogic.servlet.internal.ServletStubImpl.createServlet
> > (ServletStubImpl.java:904)
> > at weblogic.servlet.internal.ServletStubImpl.createInstances
> > (ServletStubImpl.java:883)
> > at weblogic.servlet.internal.ServletStubImpl.prepareServlet
> > (ServletStubImpl.java:822)
> > at weblogic.servlet.internal.ServletStubImpl.getServlet
> > (ServletStubImpl.java:535)
> > at weblogic.servlet.internal.ServletStubImpl.invokeServlet
> > (ServletStubImpl.java:373)
> > at weblogic.servlet.internal.ServletStubImpl.invokeServlet
> > (ServletStubImpl.java:315)
> > at
> >
weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n
> > .run(WebAppServletContext.java:6718)
> > at weblogic.security.acl.internal.AuthenticatedSubject.doAs
> > (AuthenticatedSubject.java:321)
> > at weblogic.security.service.SecurityManager.runAs
> > (SecurityManager.java:121)
> > at
> > weblogic.servlet.internal.WebAppServletContext.invokeServlet
> > (WebAppServletContext.java:3764)
> > at weblogic.servlet.internal.ServletRequestImpl.execute
> > (ServletRequestImpl.java:2644)
> > at weblogic.kernel.ExecuteThread.execute
> > (ExecuteThread.java:219)
> > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
> >
> > I read in the Stxx "changes" link that as of Stxx1.3.1a support
to
> > tiles frame work was added.
> >
> > My project insist on using Struts tiles framework. Please can you
> > tell me how to use Struts tiles along with Stxx?
> >
> > Have a nice day!
> >
> > Regards,
> > Rajesh
> >
> > --- In struts-xsl@yahoogroups.com <mailto:struts-xsl%
40yahoogroups.com>,
> > Don Brown <mrdon@> wrote:
> > >
> > > Tiles is tied to JSP, so I'm not sure how or even why you'd
use it
> > with Stxx.
> > > I've found Sitemesh to fulfill a similar goal, but with much
less
> > work and
> > > better features.
> > >
> > > Don
> > >
> > > Rajesh Sundar wrote:
> > > >
> > > >
> > > > Hi,
> > > > I was able to run Stxx successfully.
> > > >
> > > > Now i'm trying to do Stxx with Struts tiles.Is there any
example
> > for
> > > > Stxx with Struts?
> > > >
> > > > Regards,
> > > > Rajesh
> > > >
> > > >
> > >
> >
> >
>
You need to use the StxxTilesRequestProcessor. IIRC, you need to put the Tiles
plugin before the Stxx one, so Stxx knows to load the correct version of its
RequestProcessor.
Don
Rajesh Sundar wrote:
>
>
> Don,
> I'm getting the jsp output using the Stxx.
>
> If i try to include the TilesPlugin of Struts1.1 in my struts-
> config.xml, Im getting the following error.
>
> - Initializing, config='org.apache.struts.action.ActionResources',
> returnNull=true
> - Loading the stxx request processor without Tiles support
> - TilesPlugin : Specified RequestProcessor not compatible with
> TilesRequestProcessor
> <Jun 23, 2006 3:08:14 PM BST> <Error> <HTTP> <BEA-101018> <
> [ServletContext(id=6952394,name=StxxDemo,context-path=/StxxDemo)]
> Servlet failed with ServletException
> javax.servlet.ServletException: TilesPlugin : Specified
> RequestProcessor not compatible with TilesRequestProcessor
> at
> org.apache.struts.tiles.TilesPlugin.initRequestProcessorClass
> (TilesPlugin.java:360)
> at org.apache.struts.tiles.TilesPlugin.init
> (TilesPlugin.java:164)
> at org.apache.struts.action.ActionServlet.initModulePlugIns
> (ActionServlet.java:1158)
> at org.apache.struts.action.ActionServlet.init
> (ActionServlet.java:473)
> at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> at
> weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run
> (ServletStubImpl.java:1028)
> at weblogic.security.acl.internal.AuthenticatedSubject.doAs
> (AuthenticatedSubject.java:321)
> at weblogic.security.service.SecurityManager.runAs
> (SecurityManager.java:121)
> at weblogic.servlet.internal.ServletStubImpl.createServlet
> (ServletStubImpl.java:904)
> at weblogic.servlet.internal.ServletStubImpl.createInstances
> (ServletStubImpl.java:883)
> at weblogic.servlet.internal.ServletStubImpl.prepareServlet
> (ServletStubImpl.java:822)
> at weblogic.servlet.internal.ServletStubImpl.getServlet
> (ServletStubImpl.java:535)
> at weblogic.servlet.internal.ServletStubImpl.invokeServlet
> (ServletStubImpl.java:373)
> at weblogic.servlet.internal.ServletStubImpl.invokeServlet
> (ServletStubImpl.java:315)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction
> .run(WebAppServletContext.java:6718)
> at weblogic.security.acl.internal.AuthenticatedSubject.doAs
> (AuthenticatedSubject.java:321)
> at weblogic.security.service.SecurityManager.runAs
> (SecurityManager.java:121)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet
> (WebAppServletContext.java:3764)
> at weblogic.servlet.internal.ServletRequestImpl.execute
> (ServletRequestImpl.java:2644)
> at weblogic.kernel.ExecuteThread.execute
> (ExecuteThread.java:219)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
>
> I read in the Stxx "changes" link that as of Stxx1.3.1a support to
> tiles frame work was added.
>
> My project insist on using Struts tiles framework. Please can you
> tell me how to use Struts tiles along with Stxx?
>
> Have a nice day!
>
> Regards,
> Rajesh
>
> --- In struts-xsl@yahoogroups.com <mailto:struts-xsl%40yahoogroups.com>,
> Don Brown <mrdon@...> wrote:
> >
> > Tiles is tied to JSP, so I'm not sure how or even why you'd use it
> with Stxx.
> > I've found Sitemesh to fulfill a similar goal, but with much less
> work and
> > better features.
> >
> > Don
> >
> > Rajesh Sundar wrote:
> > >
> > >
> > > Hi,
> > > I was able to run Stxx successfully.
> > >
> > > Now i'm trying to do Stxx with Struts tiles.Is there any example
> for
> > > Stxx with Struts?
> > >
> > > Regards,
> > > Rajesh
> > >
> > >
> >
>
>
Hi,
Very good examples are provided along with the Stxx zip file. I
recommend you to deploy stxx-1.3.1-plugin-example.war in your server
and run through it.
Regards,
Rajesh
--- In struts-xsl@yahoogroups.com, "Ankit Verma" <ankitverma_mca@...>
wrote:
>
> hi all,
> can anyone give me a brief example which shows how i can create a
> simple application using stxx.
> thanks in advance
> Ankit
>
Don,
I'm getting the jsp output using the Stxx.
If i try to include the TilesPlugin of Struts1.1 in my struts-
config.xml, Im getting the following error.
- Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
- Loading the stxx request processor without Tiles support
- TilesPlugin : Specified RequestProcessor not compatible with
TilesRequestProcessor
<Jun 23, 2006 3:08:14 PM BST> <Error> <HTTP> <BEA-101018> <
[ServletContext(id=6952394,name=StxxDemo,context-path=/StxxDemo)]
Servlet failed with ServletException
javax.servlet.ServletException: TilesPlugin : Specified
RequestProcessor not compatible with TilesRequestProcessor
at
org.apache.struts.tiles.TilesPlugin.initRequestProcessorClass
(TilesPlugin.java:360)
at org.apache.struts.tiles.TilesPlugin.init
(TilesPlugin.java:164)
at org.apache.struts.action.ActionServlet.initModulePlugIns
(ActionServlet.java:1158)
at org.apache.struts.action.ActionServlet.init
(ActionServlet.java:473)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run
(ServletStubImpl.java:1028)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs
(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs
(SecurityManager.java:121)
at weblogic.servlet.internal.ServletStubImpl.createServlet
(ServletStubImpl.java:904)
at weblogic.servlet.internal.ServletStubImpl.createInstances
(ServletStubImpl.java:883)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet
(ServletStubImpl.java:822)
at weblogic.servlet.internal.ServletStubImpl.getServlet
(ServletStubImpl.java:535)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:373)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:315)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction
.run(WebAppServletContext.java:6718)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs
(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs
(SecurityManager.java:121)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet
(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute
(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute
(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
I read in the Stxx "changes" link that as of Stxx1.3.1a support to
tiles frame work was added.
My project insist on using Struts tiles framework. Please can you
tell me how to use Struts tiles along with Stxx?
Have a nice day!
Regards,
Rajesh
--- In struts-xsl@yahoogroups.com, Don Brown <mrdon@...> wrote:
>
> Tiles is tied to JSP, so I'm not sure how or even why you'd use it
with Stxx.
> I've found Sitemesh to fulfill a similar goal, but with much less
work and
> better features.
>
> Don
>
> Rajesh Sundar wrote:
> >
> >
> > Hi,
> > I was able to run Stxx successfully.
> >
> > Now i'm trying to do Stxx with Struts tiles.Is there any example
for
> > Stxx with Struts?
> >
> > Regards,
> > Rajesh
> >
> >
>
Tiles is tied to JSP, so I'm not sure how or even why you'd use it with Stxx.
I've found Sitemesh to fulfill a similar goal, but with much less work and
better features.
Don
Rajesh Sundar wrote:
>
>
> Hi,
> I was able to run Stxx successfully.
>
> Now i'm trying to do Stxx with Struts tiles.Is there any example for
> Stxx with Struts?
>
> Regards,
> Rajesh
>
>
Stxx doesn't deal with validations itself; that is part of Struts. That said,
you will find that Struts Validation framework isn't very easy to use with stxx,
mainly because on validation failure, they will direct the request back to the
input jsp or in our case, xslt, but without the objects put in the request from
the Action, that page won't work right.
The solution is to have two Actions, edit and save, with the validation enabled
on save. When validation fails on save, forward back to the edit Action, not
the edit XSLT.
Don
nitinkshir wrote:
>
>
> can anyone plz tell me how to use custum validation in struts as i have
> to apply in my current application for some buisness rules.
>
>
What happens is the XML that STXX creates is saved as a DOM in the request
attributes. Then, you can access that DOM using JSTL's XML tags and transform
it there. There should be an example in the stxx release.
Don
Rajesh Sundar wrote:
>
>
> Hi,
> This is my understanding.Please correct me if im wrong.
>
> <pipeline match="jsp/*.dox">
> <display-name>JSP/JSTL</display-name>
> <description>Creates DOM and forwards to JSP</description>
> <transform type="dom">
> <param name="path" value="/{1}.jsp" />
> </transform>
> </pipeline>
>
> Does this means that if the JSP has XSL tags,The Transformed detects
> the tag and populate the jsp with the xml values from the document?
>
> My jsp is
>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform
> <http://www.w3.org/1999/XSL/Transform>">
> <xsl:template match="/">
> <html>
> <head>
> <title>FPS Main Page</title>
> </head>
> <body>
> <h3>Menu List</h3>
>
> <xsl:for-each select="menu">
>
> <h4> <xsl:value-of select="menu/menuname"/> </h4>
>
> </xsl:for-each>
>
> </body>
> </html>
> </xsl:template>
> </xsl:stylesheet>
>
> and the document contains xml:
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <menu>
> <menuname>Reports</menuname>
> <menuname>USMS</menuname>
> <menuname>Status</menuname>
> <menuname>Settlement</menuname>
> <menuname>Maintenance</menuname>
> </menu>
>
> My page dispalys only the "Menu List and no xml is transformed.Please
> can you answer on this?
>
> Have a nice day!
>
> Regards,
> Rajesh
>
>
The example does work with Struts 1.1 and Tomcat. What exceptions are you
seeing?
Don
Viswamohan wrote:
>
>
> I have deployed the stxx-1.3.1-plugin-example.war and tried to run
> the application using IE browser , I am getting lot of exceptions ,
> could anybody post the full working example of stxx.
>
> I have replicated the similar application as the addressBookExample
> example , but i am ending up with the below message on the browser
>
> The XML page cannot be displayed
> Cannot view XML input using XSL style sheet. Please correct the error
> and then click the Refresh button, or try again later.
>
> ----------------------------------------------------------
> ----------
>
> The stylesheet does not contain a document element. The stylesheet
> may be empty, or it may not be a well-formed XML documen...
>
>
The best way to troubleshoot this is request the page with "?debug=true" on the
url, getting the XML. Then, apply the XSLT against the XML either in your IDE
or on the command line. Some IDE's will let you walk through the
transformation, making it easy to see what went wrong.
Don
Viswamohan wrote:
>
>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform
> <http://www.w3.org/1999/XSL/Transform>">
>
> <xsl:import href="common/addressBook.xsl" />
> <xsl:output method="html" />
>
> <xsl:template match="/">
> <xsl:apply-templates select="stxx" />
> </xsl:template>
>
> <xsl:template match="stxx">
> <html>
> <body>
> <table width="100%" border="1" align="center">
> <xsl:for-each select="menu">
> <TR>
> <TD><xsl:value-of
> select="menuname"/></TD>
> </TR>
> </xsl:for-each>
> </table>
> </body>
> </html>
> </xsl:template>
>
> </xsl:stylesheet>
>
> expected out put is
>
> Reports
> Usms
> xxxx
> yyyy
> zzzz
> I can see onle one value is transformed and printed onthe browser IE
> can anybody help me in transforming all the values using for-each and
> displaying on the browser.
>
>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="common/addressBook.xsl" />
<xsl:output method="html" />
<xsl:template match="/">
<xsl:apply-templates select="stxx" />
</xsl:template>
<xsl:template match="stxx">
<html>
<body>
<table width="100%" border="1" align="center">
<xsl:for-each select="menu">
<TR>
<TD><xsl:value-of
select="menuname"/></TD>
</TR>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
expected out put is
Reports
Usms
xxxx
yyyy
zzzz
I can see onle one value is transformed and printed onthe browser IE
can anybody help me in transforming all the values using for-each and
displaying on the browser.
i am here by attaching the code replicating the example of stxx
struts-config.xml
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<!-- ======== Form Bean Definitions ======-->
<!-- ========== Action Mapping Definitions ========== -->
<action-mappings>
<action path="/addressBookExample"
type="com.voca.fps.action.AddressBookExampleAction">
<forward name="Success" path="browser/note.dox"/>
</action>
</action-mappings>
<!-- Message Resources Definitions -->
<message-resources
parameter="com.test.properties.ApplicationResources"
factory="com.oroad.stxx.util.PropertyMessageResourcesFactory"
null="false"/>
<!-- Define the StxxPlugin files -->
<plug-in className="com.oroad.stxx.plugin.StxxPlugin" >
<set-property property="pipeline-config"
value="/WEB-INF/stxx-pipelines.xml" />
</plug-in>
</struts-config>
addressBookExample.xsl
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="common/addressBook.xsl" />
<xsl:output method="html" />
<xsl:template match="/">
<xsl:apply-templates select="stxx" />
</xsl:template>
<xsl:template match="stxx">
<html>
<body>
<table width="75%" border="1" align="center">
<tr>
<td colspan="2" bgcolor="lightblue"
align="center">
<br/>
<h4>Index</h4>
</td>
</tr>
<xsl:apply-templates select="addressBook" />
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
/common/addressBook.xsl
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="addressBook">
<xsl:for-each select="menu">
<TR>
<TD><xsl:value-of select="menuname"/></TD>
</TR>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
XML file
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<menu>
<menuname>Reports</menuname>
<menuname>USMS</menuname>
<menuname>Status</menuname>
<menuname>Settlement</menuname>
<menuname>Maintenance</menuname>
</menu>
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error
and then click the Refresh button, or try again later.
----------------------------------------------------------------------
----------
The stylesheet does not contain a document element. The stylesheet
may be empty, or it may not be a well-formed XML documen...
i am not at getting any exceptions
Please have look at the above code , and let me know is anything
wrong with the xsl file.
Thanks,
Viswamohan
I have deployed the stxx-1.3.1-plugin-example.war and tried to run
the application using IE browser , I am getting lot of exceptions ,
could anybody post the full working example of stxx.
I have replicated the similar application as the addressBookExample
example , but i am ending up with the below message on the browser
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error
and then click the Refresh button, or try again later.
----------------------------------------------------------------------
----------
The stylesheet does not contain a document element. The stylesheet
may be empty, or it may not be a well-formed XML documen...
Hi,
This is my understanding.Please correct me if im wrong.
<pipeline match="jsp/*.dox">
<display-name>JSP/JSTL</display-name>
<description>Creates DOM and forwards to JSP</description>
<transform type="dom">
<param name="path" value="/{1}.jsp" />
</transform>
</pipeline>
Does this means that if the JSP has XSL tags,The Transformed detects
the tag and populate the jsp with the xml values from the document?
My jsp is
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<title>FPS Main Page</title>
</head>
<body>
<h3>Menu List</h3>
<xsl:for-each select="menu">
<h4> <xsl:value-of select="menu/menuname"/> </h4>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
and the document contains xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<menu>
<menuname>Reports</menuname>
<menuname>USMS</menuname>
<menuname>Status</menuname>
<menuname>Settlement</menuname>
<menuname>Maintenance</menuname>
</menu>
My page dispalys only the "Menu List and no xml is transformed.Please
can you answer on this?
Have a nice day!
Regards,
Rajesh
Hi,
I found the reason for this exception.I have to uncomment the dom
transform in the stxx.properties.
Its interesting as i keep learning stxx.
Regards,
Rajesh
--- In struts-xsl@yahoogroups.com <mailto:struts-xsl@yahoogroups.com> ,
"Rajesh Sundar" <rajeshsun69@...> wrote:
>
> Hi,
> Please can any one tell me the reason for this exception?
>
> com.oroad.stxx.transform.TransformerException: The type of
> transformation cannot be found: dom
>
> at com.oroad.stxx.transform.TransformerHandler.processActionTransform
> (TransformerHandler.java:208)
> at
> com.oroad.stxx.plugin.RequestProcessorHelper.processStxxDefinition
> (RequestProcessorHelper.java:260)
> at
> com.oroad.stxx.plugin.StxxRequestProcessor.processForwardConfig
> (StxxRequestProcessor.java:133)
>
>
> Regards,
> Rajesh
>
[Non-text portions of this message have been removed]
Hi,
Please can any one tell me the reason for this exception?
com.oroad.stxx.transform.TransformerException: The type of
transformation cannot be found: dom
at com.oroad.stxx.transform.TransformerHandler.processActionTransform
(TransformerHandler.java:208)
at
com.oroad.stxx.plugin.RequestProcessorHelper.processStxxDefinition
(RequestProcessorHelper.java:260)
at
com.oroad.stxx.plugin.StxxRequestProcessor.processForwardConfig
(StxxRequestProcessor.java:133)
Regards,
Rajesh
Stxx ships with an example for Struts 1.1, the one with the suffix "-plugin".
BTW, I accidently deleted your two previous emails when I was clearing out
spam, so please resend. Thanks :)
Don
> Hi,
> Please can anyone provide me with an example of Stxx with Struts
> 1.1?
>
> Thanks in Advance!
>
> Rajesh
>
>
>
>
>
>
>
>
>
I don't know if anyone doing that in stxx, but I do in Cocoon, which is the
granddaddy of XML pipeline frameworks:
http://demo.exist-db.org/examples.xml
You could port their XQuery generator over to stxx as a custom Transformer.
Don
juettnla wrote:
> Hi !
>
> I am developing a web application using a native XML database. I use
> XQuery to query the database. I thougt about different ways for a re-
> usable design.
>
> I think a good way is to put dynamic parts of the query in an stxx
> action class ( build a XML document using FOR LET WHERE ... XQuery
> syntax ) and build the whole xhtml document using XSLT with this
> dynamic part.
>
> Another way is to build the whole resulting page with XQuery like
>
> <HTML>....etc
> <BODY>
> {FOR $foo ...
> LET $a ... etc. //dynamic part with XQuery
> }
> ... etc
>
> Has anyone made such an application and could give me some hints ?
>
> Thank you for your help.
>
>
>
>
>
>
>
>
>
>
>
> Visit the group site at: http://groups.yahoo.com/group/struts-xsl
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
Hi !
I am developing a web application using a native XML database. I use
XQuery to query the database. I thougt about different ways for a re-
usable design.
I think a good way is to put dynamic parts of the query in an stxx
action class ( build a XML document using FOR LET WHERE ... XQuery
syntax ) and build the whole xhtml document using XSLT with this
dynamic part.
Another way is to build the whole resulting page with XQuery like
<HTML>....etc
<BODY>
{FOR $foo ...
LET $a ... etc. //dynamic part with XQuery
}
... etc
Has anyone made such an application and could give me some hints ?
Thank you for your help.
This is a known issue with many web containers, particularly older ones:
http://sunsolve.sun.com/search/document.do?assetkey=1-9-83094
HTH,
Don
joe_bashir wrote:
> I want to set index.do as welcome-file. I have defined it in web.xml as
>
> <welcome-file-list>
> <welcome-file>index.do</welcome-file>
> </welcome-file-list>
>
> but it is not working. Can someone please guide me how to do this, OR
> what else I have to do?
>
> Joseph Bashir
> Ufnasoft
> http://ufnasoft.com <http://ufnasoft.com>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
> Visit the group site at: http://groups.yahoo.com/group/struts-xsl
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
I want to set index.do as welcome-file. I have defined it in web.xml as
<welcome-file-list>
<welcome-file>index.do</welcome-file>
</welcome-file-list>
but it is not working. Can someone please guide me how to do this, OR
what else I have to do?
Joseph Bashir
Ufnasoft
http://ufnasoft.com <http://ufnasoft.com>
[Non-text portions of this message have been removed]
You can chain transformations, it that'll help. What exactly are you trying to
do?
Don
pierreluc_dupont wrote:
> Hi, i'm new with stxx and i need to find out if it is possible to
> process the same forward twice like this :
>
> 1st XSL Proc. 2nd XSL Proc.
> XML Doc -----------> First result(XHTML) -----------> Final result(HTML)
>
>
>
>
>
>
>
>
>
> Visit the group site at: http://groups.yahoo.com/group/struts-xsl
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
Hi, i'm new with stxx and i need to find out if it is possible to
process the same forward twice like this :
1st XSL Proc. 2nd XSL Proc.
XML Doc -----------> First result(XHTML) -----------> Final result(HTML)