Internationalization and SEO

2009-08-11 Thread Robin Mannering
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 a

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread musomesa
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 cert

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread Zoran Avtarovski
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 patte

Re: [struts 2] s:url containing href="#sample"

2009-08-11 Thread Dave Newton
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:

Re: [struts 2] s:url containing href="#sample"

2009-08-11 Thread Wes Wannemacher
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="x

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread musomesa
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,

[struts 2] s:url containing href="#sample"

2009-08-11 Thread 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 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?

2009-08-11 Thread musomesa
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

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread musomesa
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

Re: Using Map as option list source with tag

2009-08-11 Thread Stephen Turner
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/Ana

[S2] Model Driven validation using xml?

2009-08-11 Thread James Carr
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 unsu

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread CS Wong
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 plen

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread CS Wong
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 ac

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread musomesa
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

RE: Using Map as option list source with tag

2009-08-11 Thread Martin Gainty
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.

Re: Using Map as option list source with tag

2009-08-11 Thread Johannes Geppert
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.

Using Map as option list source with tag

2009-08-11 Thread Stephen Turner
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 v

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread Eduard Neuwirt
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

Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread CS Wong
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 decorat