Internationalization and SEO
Hello, I have a question relating to serving international content that I hope someone can help with. It is kind of leaning towards an SEO question, but it does relate to Struts in terms of how I can use Struts 2 to control page direction because of language selection. In terms of SEO, I am guessing that serving the content for three languages on one page, would be bad for SEO. For example, serving English, French and German versions for a page all on the same URL: www.mydomain.com/myPage.htm This is possible of course creating and using the corresponding language resource bundles. Struts 2 would serve up the correct content based on the browser locale setting. However, looking around Googles knowledgebase, it would be better to have: www.mydomain.com/en/myPage.htm www.mydomain.com/fr/myPage.htm www.mydomain.com/de/myPage.htm How can I configure struts to work in this way, ie redirect a user to a subdirectory tree based on the language locale set in their browser. Thanks for any thoughts. Robin - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Configuring SiteMesh for specific action mappings in Struts 2?
I think your pattern is on the namespace rather than the action? C. -Original Message- From: Zoran Avtarovski To: Struts Users Mailing List ; CS Wong Sent: Tue, Aug 11, 2009 9:49 pm Subject: Re: Configuring SiteMesh for specific action mappings in Struts 2? I¹m certain that¹s not correct. We use the decorators.xml file extensively and we¹re able to have pretty fine control over the sitemesh decorators. I know in our installation the decorator is based on the action url rather than the resulting jsp file. For example you could include a excludes pattern which ignores all widget requests by placing /widgets/* in your excludes section. Z. > > > Tried this route but it seems to me that they only work if the patterns > specified point to physical files only. For example, it'd work if it points > to "index.html" or "/view/hello.jsp". > However, I was assuming that it would work for the output from the filter > dispatcher as well. What I wanted to achieve was to have SiteMesh invoked > for the output from "/hello.action" but to be excluded for > "/widgets/hello.action". > > Big picture-wise, what I wanted was to have one default Struts 2 package, > all configured to serve full pages decorated by SiteMesh. Then I'll create > another package "widgets", where there's no decorator invoked and it only > serves the raw content of the JSPs returned. On my pages, if20AJAX is > available, I'd dynamically change the links to load from the "widgets" > package instead so I can just call the widget and render it dynamically into > the page using JS. I'd be able to reuse both the action classes and the JSP > throughout both packages then. > > BTW, I know that SiteMesh is not a native Struts 2 application so if enough > people think I'm off-topic here please do let me know. I just thought that > since SiteMesh is a supported plugin, it may be applicable here. > > Thanks, > Wong > > > On Tue, Aug 11, 2009 at 8:42 PM, Eduard Neuwirt < > eduard.neuw...@googlemail.com> wrote: > >> > Hi Wong, >> > >> > perhaps would the following entries from decorators.xml help you : >> > >> > >> > >> > /styles/* >> > /scripts/* >> > /images/* >> > /index.html >> > >> > ... >> > >> > >> > Regards >> > Eduard Neuwirt >> > >> > CS Wong schrieb: >> > >> > Hi, >>> >> I'm trying to configure sitemesh to only take effect for a certain subset >>> >> of >>> >> action mappings in my Struts 2 application. >>> >> >>> >> Say for example, I have the following struts.xml snippet: >>> >> >>> >> >>> >> >>> >>/view/form.jsp >>> >> >>> >> >>> >> >>> >> >>> >>/view/form.jsp >>> >> >>> >> >>> >> >>> >> I would like the output of "/showForm.action" to be decorated by SiteMesh >>> >> but for "/widgets/showForm.action" to be returned empty instead. The >>> >> critical part here is that I want the JSP file to be reused by both >>> action >>> >> mappings. >>> >> >>> >> But try as I might, I can't seem to get SiteMesh's tag to >>> >> recognize a mapping. I have to specify the file "/view/form.jsp" to be >>> >> excluded instead and that means I won't be able to reuse the JSP file. >>> >> >>> >> Is there any way I can get around this? >>> >> >>> >> I'm using Struts 2.0.14. >>> >> >>> >> Thanks, >>> >> Wong >>> >> >>> >> >>> >> >> > >> > >> > - >> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> > For additional commands, e-mail: user-h...@struts.apache.org >> > >> >
Re: Configuring SiteMesh for specific action mappings in Struts 2?
I¹m certain that¹s not correct. We use the decorators.xml file extensively and we¹re able to have pretty fine control over the sitemesh decorators. I know in our installation the decorator is based on the action url rather than the resulting jsp file. For example you could include a excludes pattern which ignores all widget requests by placing /widgets/* in your excludes section. Z. > > > Tried this route but it seems to me that they only work if the patterns > specified point to physical files only. For example, it'd work if it points > to "index.html" or "/view/hello.jsp". > However, I was assuming that it would work for the output from the filter > dispatcher as well. What I wanted to achieve was to have SiteMesh invoked > for the output from "/hello.action" but to be excluded for > "/widgets/hello.action". > > Big picture-wise, what I wanted was to have one default Struts 2 package, > all configured to serve full pages decorated by SiteMesh. Then I'll create > another package "widgets", where there's no decorator invoked and it only > serves the raw content of the JSPs returned. On my pages, if AJAX is > available, I'd dynamically change the links to load from the "widgets" > package instead so I can just call the widget and render it dynamically into > the page using JS. I'd be able to reuse both the action classes and the JSP > throughout both packages then. > > BTW, I know that SiteMesh is not a native Struts 2 application so if enough > people think I'm off-topic here please do let me know. I just thought that > since SiteMesh is a supported plugin, it may be applicable here. > > Thanks, > Wong > > > On Tue, Aug 11, 2009 at 8:42 PM, Eduard Neuwirt < > eduard.neuw...@googlemail.com> wrote: > >> > Hi Wong, >> > >> > perhaps would the following entries from decorators.xml help you : >> > >> > >> > >> > /styles/* >> > /scripts/* >> > /images/* >> > /index.html >> > >> > ... >> > >> > >> > Regards >> > Eduard Neuwirt >> > >> > CS Wong schrieb: >> > >> > Hi, >>> >> I'm trying to configure sitemesh to only take effect for a certain subset >>> >> of >>> >> action mappings in my Struts 2 application. >>> >> >>> >> Say for example, I have the following struts.xml snippet: >>> >> >>> >> >>> >> >>> >>/view/form.jsp >>> >> >>> >> >>> >> >>> >> >>> >>/view/form.jsp >>> >> >>> >> >>> >> >>> >> I would like the output of "/showForm.action" to be decorated by SiteMesh >>> >> but for "/widgets/showForm.action" to be returned empty instead. The >>> >> critical part here is that I want the JSP file to be reused by both >>> action >>> >> mappings. >>> >> >>> >> But try as I might, I can't seem to get SiteMesh's tag to >>> >> recognize a mapping. I have to specify the file "/view/form.jsp" to be >>> >> excluded instead and that means I won't be able to reuse the JSP file. >>> >> >>> >> Is there any way I can get around this? >>> >> >>> >> I'm using Struts 2.0.14. >>> >> >>> >> Thanks, >>> >> Wong >>> >> >>> >> >>> >> >> > >> > >> > - >> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> > For additional commands, e-mail: user-h...@struts.apache.org >> > >> >
Re: [struts 2] s:url containing href="#sample"
Wes Wannemacher wrote: What about - #exampleheader Seems like the logical way to do it... Or the "anchor" attribute maybe. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [struts 2] s:url containing href="#sample"
What about - #exampleheader Seems like the logical way to do it... -Wes 2009/8/11 Halil Ağın : > Hello List; > > I want to generate below link by using s:url. but i dont know how to do it > > www.sample.com.fake/AppCon/package1/abc.action#exampleheader > > for part "/package1/abc" i use var="xyz" /> > > but for the "#exampleheader" part i could see any solution. how can i do > this? > > > regards, > > -Halil AĞIN > -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Configuring SiteMesh for specific action mappings in Struts 2?
Are you able to put a parameter in your action URL -- something like .myAction.action@&printable=true because in that case you can configure different (or no) decoration based on the parameter chris -Original Message- From: CS Wong To: Struts Users Mailing List Sent: Tue, Aug 11, 2009 1:03 pm Subject: Re: Configuring SiteMesh for specific action mappings in Struts 2? If I understand you correctly, you're saying that I should have double copies of each JSP, say "/decorated/view.jsp" and "/undecorated/view.jsp". And I should configure the exclusion pattern like "/undecorated/*". If possible, I'd really like to avoid that. Java classes themselves already have plenty of boilerplate code without adding JSPs to the mix :) On Tue, Aug 11, 2009 at 10:55 PM, wrote: > > SiteMesh is just a decorator and not Struts 2 centric so you won't find > what you want in its native configuration.? As far as it is concerned the > view could have been generated by a CGI script of anything. I think the path > of least effort it to have two essentially blank JSps that include the > actual material you want to re-use? > Chris > > > > > > > > > -Original Message- > From: CS Wong > To: user@struts.apache.org > Sent: Tue, Aug 11, 2009 6:10 am > Subject: Configuring SiteMesh for specific action mappings in Struts 2? > > > > > > > > > > > Hi, > I'm trying to configure sitemesh to only take effect for a certain subset > of > action mappings in my Struts 2 application. > > Say for example, I have the following struts.xml snippet: > > > >/view/form.jsp > > > > >/view/form.jsp > > > > I would like the output of "/showForm.action" to be decorated by SiteMesh > but for "/widgets/showForm.action" to be returned empty instead. The > critical part here is that I want the JSP file to be reused by both action > mappings. > > But try as I might, I can't seem to get SiteMesh's tag to > recognize a mapping. I have to specify the file "/view/form.jsp" to be > excluded instead and that means I won't be able to reuse the JSP file. > > Is there any way I can get around this? > > I'm using Struts 2.0.14. > > Thanks, > Wong > > > > > >
[struts 2] s:url containing href="#sample"
Hello List; I want to generate below link by using s:url. but i dont know how to do it www.sample.com.fake/AppCon/package1/abc.action#exampleheader for part "/package1/abc" i use but for the "#exampleheader" part i could see any solution. how can i do this? regards, -Halil AĞIN
Re: [S2] Model Driven validation using xml?
I think this is what you are after: http://struts.apache.org/2.x/docs/visitor-validator.html ...This allows you to use the ModelDriven development pattern ... -Original Message- From: James Carr To: Struts Users Mailing List Sent: Tue, Aug 11, 2009 1:43 pm Subject: [S2] Model Driven validation using xml? Hi All, I seem to be unable to find an example of using xml based validation with model driven. My object model is nested, most of my text fields look like: Any help or links would be much apperciated. Thanks, James - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Configuring SiteMesh for specific action mappings in Struts 2?
You did understand me correctly and I see your dilema -- problem is the tags like are not aware of what action the view came from :( -Original Message- From: CS Wong To: Struts Users Mailing List Sent: Tue, Aug 11, 2009 1:03 pm Subject: Re: Configuring SiteMesh for specific action mappings in Struts 2? If I understand you correctly, you're saying that I should have double copies of each JSP, say "/decorated/view.jsp" and "/undecorated/view.jsp". And I should configure the exclusion pattern like "/undecorated/*". If possible, I'd really like to avoid that. Java classes themselves already have plenty of boilerplate code without adding JSPs to the mix :) On Tue, Aug 11, 2009 at 10:55 PM, wrote: > > SiteMesh is just a decorator and not Struts 2 centric so you won't find > what you want in its native configuration.? As far as it is concerned the > view could have been generated by a CGI script of anything. I think the path > of least effort it to have two essentially blank JSps that include the > actual material you want to re-use? > Chris > > > > > > > > > -Original Message- > From: CS Wong > To: user@struts.apache.org > Sent: Tue, Aug 11, 2009 6:10 am > Subject: Configuring SiteMesh for specific action mappings in Struts 2? > > > > > > > > > > > Hi, > I'm trying to configure sitemesh to only take effect for a certain subset > of > action mappings in my Struts 2 application. > > Say for example, I have the following struts.xml snippet: > > > >/view/form.jsp > > > > >/view/form.jsp > > > > I would like the output of "/showForm.action" to be decorated by SiteMesh > but for "/widgets/showForm.action" to be returned empty instead. The > critical part here is that I want the JSP file to be reused by both action > mappings. > > But try as I might, I can't seem to get SiteMesh's tag to > recognize a mapping. I have to specify the file "/view/form.jsp" to be > excluded instead and that means I won't be able to reuse the JSP file. > > Is there any way I can get around this? > > I'm using Struts 2.0.14. > > Thanks, > Wong > > > > > >
Re: Using Map as option list source with tag
On Tue, 11 Aug 2009 09:59:06 -0400, Johannes Geppert wrote: I'am not sure, but I think you can access the attributes of your bean with value.myattribute Best Regards Johannes Geppert Hello Johannes, You are indeed correct! Thanks for the help. Steve -- Stephen Turner Senior Programmer/Analyst - SAIS MIT IS&T - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
[S2] Model Driven validation using xml?
Hi All, I seem to be unable to find an example of using xml based validation with model driven. My object model is nested, most of my text fields look like: Any help or links would be much apperciated. Thanks, James - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Configuring SiteMesh for specific action mappings in Struts 2?
If I understand you correctly, you're saying that I should have double copies of each JSP, say "/decorated/view.jsp" and "/undecorated/view.jsp". And I should configure the exclusion pattern like "/undecorated/*". If possible, I'd really like to avoid that. Java classes themselves already have plenty of boilerplate code without adding JSPs to the mix :) On Tue, Aug 11, 2009 at 10:55 PM, wrote: > > SiteMesh is just a decorator and not Struts 2 centric so you won't find > what you want in its native configuration.? As far as it is concerned the > view could have been generated by a CGI script of anything. I think the path > of least effort it to have two essentially blank JSps that include the > actual material you want to re-use? > Chris > > > > > > > > > -Original Message- > From: CS Wong > To: user@struts.apache.org > Sent: Tue, Aug 11, 2009 6:10 am > Subject: Configuring SiteMesh for specific action mappings in Struts 2? > > > > > > > > > > > Hi, > I'm trying to configure sitemesh to only take effect for a certain subset > of > action mappings in my Struts 2 application. > > Say for example, I have the following struts.xml snippet: > > > >/view/form.jsp > > > > >/view/form.jsp > > > > I would like the output of "/showForm.action" to be decorated by SiteMesh > but for "/widgets/showForm.action" to be returned empty instead. The > critical part here is that I want the JSP file to be reused by both action > mappings. > > But try as I might, I can't seem to get SiteMesh's tag to > recognize a mapping. I have to specify the file "/view/form.jsp" to be > excluded instead and that means I won't be able to reuse the JSP file. > > Is there any way I can get around this? > > I'm using Struts 2.0.14. > > Thanks, > Wong > > > > > >
Re: Configuring SiteMesh for specific action mappings in Struts 2?
Tried this route but it seems to me that they only work if the patterns specified point to physical files only. For example, it'd work if it points to "index.html" or "/view/hello.jsp". However, I was assuming that it would work for the output from the filter dispatcher as well. What I wanted to achieve was to have SiteMesh invoked for the output from "/hello.action" but to be excluded for "/widgets/hello.action". Big picture-wise, what I wanted was to have one default Struts 2 package, all configured to serve full pages decorated by SiteMesh. Then I'll create another package "widgets", where there's no decorator invoked and it only serves the raw content of the JSPs returned. On my pages, if AJAX is available, I'd dynamically change the links to load from the "widgets" package instead so I can just call the widget and render it dynamically into the page using JS. I'd be able to reuse both the action classes and the JSP throughout both packages then. BTW, I know that SiteMesh is not a native Struts 2 application so if enough people think I'm off-topic here please do let me know. I just thought that since SiteMesh is a supported plugin, it may be applicable here. Thanks, Wong On Tue, Aug 11, 2009 at 8:42 PM, Eduard Neuwirt < eduard.neuw...@googlemail.com> wrote: > Hi Wong, > > perhaps would the following entries from decorators.xml help you : > > > > /styles/* > /scripts/* > /images/* > /index.html > > ... > > > Regards > Eduard Neuwirt > > CS Wong schrieb: > > Hi, >> I'm trying to configure sitemesh to only take effect for a certain subset >> of >> action mappings in my Struts 2 application. >> >> Say for example, I have the following struts.xml snippet: >> >> >> >>/view/form.jsp >> >> >> >> >>/view/form.jsp >> >> >> >> I would like the output of "/showForm.action" to be decorated by SiteMesh >> but for "/widgets/showForm.action" to be returned empty instead. The >> critical part here is that I want the JSP file to be reused by both action >> mappings. >> >> But try as I might, I can't seem to get SiteMesh's tag to >> recognize a mapping. I have to specify the file "/view/form.jsp" to be >> excluded instead and that means I won't be able to reuse the JSP file. >> >> Is there any way I can get around this? >> >> I'm using Struts 2.0.14. >> >> Thanks, >> Wong >> >> >> > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: Configuring SiteMesh for specific action mappings in Struts 2?
SiteMesh is just a decorator and not Struts 2 centric so you won't find what you want in its native configuration.? As far as it is concerned the view could have been generated by a CGI script of anything. I think the path of least effort it to have two essentially blank JSps that include the actual material you want to re-use? Chris -Original Message- From: CS Wong To: user@struts.apache.org Sent: Tue, Aug 11, 2009 6:10 am Subject: Configuring SiteMesh for specific action mappings in Struts 2? Hi, I'm trying to configure sitemesh to only take effect for a certain subset of action mappings in my Struts 2 application. Say for example, I have the following struts.xml snippet: /view/form.jsp /view/form.jsp I would like the output of "/showForm.action" to be decorated by SiteMesh but for "/widgets/showForm.action" to be returned empty instead. The critical part here is that I want the JSP file to be reused by both action mappings. But try as I might, I can't seem to get SiteMesh's tag to recognize a mapping. I have to specify the file "/view/form.jsp" to be excluded instead and that means I won't be able to reuse the JSP file. Is there any way I can get around this? I'm using Struts 2.0.14. Thanks, Wong
RE: Using Map as option list source with tag
struts select example list: Iterable source to populate from. If the list is a Map (key, value), the Map key will become the option 'value' parameter the Map value will become the option body. listKey: Property of list objects to get field value from value: Preset the value of input element. toString displays yadda.yadda.payper...@dfg65 which is the generated byte code for the entire map sub in classname for PetDao yourMap name for pets and you should see the value come back Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Tue, 11 Aug 2009 06:59:06 -0700 > From: jo...@web.de > To: user@struts.apache.org > Subject: Re: Using Map as option list source with tag > > > I'am not sure, but I think you can access the attributes > of your bean with value.myattribute > > > > Best Regards > > Johannes Geppert > > > Stephen Turner wrote: > > > > Hello all, > > > > I'm playing with the Struts 2 tag, trying to use a Map as the > > backing collection for the options list. This is Struts 2.0.11. > > > > From the docs: "Iterable source to populate from. If the list is a Map > > (key, value), the Map key will become the option > > 'value' parameter and the Map value will become the option body." > > > > So I have a Map, with values of type PayPeriod, which is a simple Java > > bean. What I get in the rendered values is the String representation of > > the class ( "yadda.yadda.payper...@dfg65" ). Is it possible to code > > something in the tag to get a PayPeriod bean attribute showing as the > > rendered value? I know I can cheat by defining a toString() method in the > > bean, but I wondered if there's a cleaner way of doing this. > > > > Thanks, > > Steve > > > > -- > > Stephen Turner > > Senior Programmer/Analyst - SAIS > > MIT IS&T > > > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > > > - > --- > web: http://www.jgeppert.com > twitter: http://twitter.com/jogep > > -- > View this message in context: > http://www.nabble.com/Using-Map-as-option-list-source-with-%3Cs%3Aselect%3E-tag-tp24917991p24918231.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _ Windows Live™: Keep your life in sync. http://windowslive.com/explore?ocid=PID23384::T:WLMTAGL:ON:WL:en-US:NF_BR_sync:082009
Re: Using Map as option list source with tag
I'am not sure, but I think you can access the attributes of your bean with value.myattribute Best Regards Johannes Geppert Stephen Turner wrote: > > Hello all, > > I'm playing with the Struts 2 tag, trying to use a Map as the > backing collection for the options list. This is Struts 2.0.11. > > From the docs: "Iterable source to populate from. If the list is a Map > (key, value), the Map key will become the option > 'value' parameter and the Map value will become the option body." > > So I have a Map, with values of type PayPeriod, which is a simple Java > bean. What I get in the rendered values is the String representation of > the class ( "yadda.yadda.payper...@dfg65" ). Is it possible to code > something in the tag to get a PayPeriod bean attribute showing as the > rendered value? I know I can cheat by defining a toString() method in the > bean, but I wondered if there's a cleaner way of doing this. > > Thanks, > Steve > > -- > Stephen Turner > Senior Programmer/Analyst - SAIS > MIT IS&T > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > - --- web: http://www.jgeppert.com twitter: http://twitter.com/jogep -- View this message in context: http://www.nabble.com/Using-Map-as-option-list-source-with-%3Cs%3Aselect%3E-tag-tp24917991p24918231.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Using Map as option list source with tag
Hello all, I'm playing with the Struts 2 tag, trying to use a Map as the backing collection for the options list. This is Struts 2.0.11. From the docs: "Iterable source to populate from. If the list is a Map (key, value), the Map key will become the option 'value' parameter and the Map value will become the option body." So I have a Map, with values of type PayPeriod, which is a simple Java bean. What I get in the rendered values is the String representation of the class ( "yadda.yadda.payper...@dfg65" ). Is it possible to code something in the tag to get a PayPeriod bean attribute showing as the rendered value? I know I can cheat by defining a toString() method in the bean, but I wondered if there's a cleaner way of doing this. Thanks, Steve -- Stephen Turner Senior Programmer/Analyst - SAIS MIT IS&T - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Configuring SiteMesh for specific action mappings in Struts 2?
Hi Wong, perhaps would the following entries from decorators.xml help you : /styles/* /scripts/* /images/* /index.html ... Regards Eduard Neuwirt CS Wong schrieb: Hi, I'm trying to configure sitemesh to only take effect for a certain subset of action mappings in my Struts 2 application. Say for example, I have the following struts.xml snippet: /view/form.jsp /view/form.jsp I would like the output of "/showForm.action" to be decorated by SiteMesh but for "/widgets/showForm.action" to be returned empty instead. The critical part here is that I want the JSP file to be reused by both action mappings. But try as I might, I can't seem to get SiteMesh's tag to recognize a mapping. I have to specify the file "/view/form.jsp" to be excluded instead and that means I won't be able to reuse the JSP file. Is there any way I can get around this? I'm using Struts 2.0.14. Thanks, Wong - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Configuring SiteMesh for specific action mappings in Struts 2?
Hi, I'm trying to configure sitemesh to only take effect for a certain subset of action mappings in my Struts 2 application. Say for example, I have the following struts.xml snippet: /view/form.jsp /view/form.jsp I would like the output of "/showForm.action" to be decorated by SiteMesh but for "/widgets/showForm.action" to be returned empty instead. The critical part here is that I want the JSP file to be reused by both action mappings. But try as I might, I can't seem to get SiteMesh's tag to recognize a mapping. I have to specify the file "/view/form.jsp" to be excluded instead and that means I won't be able to reuse the JSP file. Is there any way I can get around this? I'm using Struts 2.0.14. Thanks, Wong