Author Login
Post Reply
user Digest 4 Jul 2008 14:53:54 -0000 Issue 8124
Topics (messages 188470 through 188499):
Re: Problem from defining JavaBean as an attribute inside ActionForm
188470 by: Laurie Harper
188479 by: Lukasz Lenart
188481 by: Laurie Harper
188489 by: Lukasz Lenart
Re: Struts2 iterator tag
188471 by: Laurie Harper
188472 by: Laurie Harper
188475 by: BGE Ger
Re: Upgrading to struts 2.0.11.2 breaks all xml validators
188473 by: Musachy Barroso
188476 by: Struts Two
188477 by: Musachy Barroso
188478 by: Musachy Barroso
188480 by: Struts Two
Re: Character Encoding and s:textarea
188474 by: Laurie Harper
Where to put customized template
188482 by: lei.java.gmail.com
188483 by: Timothy Wonil Lee
188485 by: Jeromy Evans
Re: Anyone want to show me up...
188484 by: Gabriel Belingueres
188488 by: Al Sutton
188492 by: Gabriel Belingueres
Re: Struts 2 in action
188486 by: aum strut
Struts 2 doubleOnchange
188487 by: Saqib Shehzad
Actions, properties and validation in separate packages?
188490 by: Dallas
Good reasons to migrate from Struts 1 to Struts 2 ?
188491 by: Fernandes Celinio SGCF
188493 by: Gabriel Belingueres
Showing valid characters from a validator mask
188494 by: Dimitris Mouchritsas
[S2] Checking current month using struts 2 tags
188495 by: Milan Milanovic
Re: Struts2 application doesn't work with Firefox 3
188496 by: Pierrot52
188497 by: georz1
188498 by: Pierrot52
188499 by: georz1
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_188470.ezm (zipped)Oh, and another thought: are you initializing ActionForm's empAddress
field somewhere? It may cause problems if it is null when Struts tries
to set its properties. Struts 2 can automatically create instances of
beans in that situation, but Struts 1 doesn't.
L.
Laurie Harper wrote:
> What you have below all looks fine; it should work as you expected. What
> does your form bean definition look like? Is the form bean correctly
> referenced by the action mapping the form is submitted to? Post the
> relevant bits of configuration and the full stack trace; maybe that will
> allow someone to see the problem.
>
> L.
>
> Chandramouli P wrote:
>> Hi,
>>
>> I have the below scenario:
>>
>> I have a java bean as below:
>>
>> public class Address
>> {
>> private String city;
>> private String state;
>>
>> and public getters/setters for the above attributes;
>> }
>>
>> and I have the ActionForm as below:
>>
>> import Address;
>> public class EmpForm extends ActionForm
>> {
>> private String name;
>> private String empID;
>> private Address empAddress;
>>
>> and public getters/setters for the aboev attribute;
>> }
>>
>> We are using Struts 1.2.9 and writing the JSP page as below:
>>
>> <html:form action="/sampleAction.do">
>> <html:text property="name"/>
>> <html:text property="empID"/>
>> <html:text property="empAddress.city"/>
>> <html:text property="empAddress.state"/>
>> </html:form>
>>
>> I am getting the below error while submitting the form:
>>
>> E SRVE0026E: [Servlet Error]-[BeanUtils.populate]:
>>
java.lang.IllegalArgumentException: No bean specified at
>> org.apache.commons.beanutils.PropertyUtils..getPropertyDescriptor(PropertyUtils.java(Compiled
>> Code))
>> I have read somewhere that Struts version I am using does support the
>> nested attributes for the <html:text> and other tags. Are there any
>> errors in the above code? Please help.
>>
>> Thanks & Regards,
>> Chandra.
>> _________________________________________________________________
>> Post free property ads on Yello Classifieds now! www.yello.in
>> http://ss1.richmedia.in/recurl.asp?pid=221

Attachment:
user_188479.ezm (zipped)> For the record, Struts 1 definitely supports dot-notation access to
> sub-fields. That's not the problem here.
Upsss... ;-)
Could you clarify my doubts, from which version?
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_188481.ezm (zipped)Lukasz Lenart wrote:
>> For the record, Struts 1 definitely supports dot-notation access to
>> sub-fields. That's not the problem here.
>
> Upsss... ;-)
> Could you clarify my doubts, from which version?
From day one, as far as I know.
L.

Attachment:
user_188489.ezm (zipped)> From day one, as far as I know.
What? 4 years of blindness? What a mess, I have to go back to basis,
bheee..... :P
Kind regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_188471.ezm (zipped)I'm not sure what you mean by a 'submit in each row' but if you want to
push data back into the list then yes, you need the index in the input's
name as you have.
L.
BGE Ger wrote:
> ....thank you for the answer!
> But I've read, if I want to change the complete list with the submit
> action. I must use the list index.
> If I make a submit in each row I can use "destination" syntax.
> Isn't it right?
>
>
> Jim Kiley wrote:
>> For starters, you can simplify things a lot by changing your syntax from:
>>
>> name="descList[%{stat.index}].destination"
>>
>> to just:
>>
>> name="destination"
>>
>> The iterator tag pushes descList[index] onto the OGNL stack in every
>> iteration, so you can refer to its attributes directly.
>>
>> jk
>>
>> On Thu, Jul 3, 2008 at 8:55 AM, BGE Ger <bg@(protected):
>>
>>> Hello,
>>> I'm struts(2) newbie and I need some help for the iterator tag.
>>> How can I access to an updated list in the action class?
>>> My JSP looks like:
>>>
>>> <s:form theme="simple">
>>> <s:iterator value="descList" status="stat">
>>> <tr>
>>> <td ><s:textarea name="descList[%{stat.index}].destination"
>>> value="%{destination}" /></td>
>>> <td ><s:textarea name="descList[%{stat.index}].category"
>>> value="%{category}" /></td>
>>> <td ><s:textarea name="descrList[%{stat.index}].source"
>>> value="%{source}" /></td>
>>> <td><s:textarea name="descList[%{stat.index}].text"
>>> value="%{text}"/></td>
>>> </tr>
>>> </s:iterator>
>>> <s:submit action="updateDescriptions" />
>>> </s:form>
>>>
>>> ---------------------------------------------------------------------
>>> Action class:
>>>
>>>
>>> public class DescriptionTestAction extends ActionSupport {
>>>
>>> private List<Text> descList;
>>>
>>> public DescriptionTestAction () {
>>> }
>>>
>>>
>>> public void setDescList(List descList) {
>>> this.descList = descList;
>>> }
>>>
>>> public List getDescList () {
>>> return this.descList;
>>> }
>>>
>>> --------------------------------------------------
>>> The descList is a spring Bean and everything works well except the update
>>> process.
>>> If I make an update for the destination field e.g. and then submit this
>>> form
>>> the descList contains the old values! I've tried everything and spend
>>> lot
>>> of time for searching for a solution, please help!
>>> Thank you in advance!
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Struts2-iterator-tag-tp18258667p18258667.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>
>> --
>> Jim Kiley
>> Technical Consultant | Summa
>> [p] 412.258.3346 [m] 412.445.1729
>> http://www.summa-tech.com
>>
>>
>

Attachment:
user_188472.ezm (zipped)BGE Ger wrote:
> Hello,
> I'm struts(2) newbie and I need some help for the iterator tag.
> How can I access to an updated list in the action class?
> My JSP looks like:
>
> <s:form theme="simple">
> <s:iterator value="descList" status="stat">
> <tr>
> <td ><s:textarea name="descList[%{stat.index}].destination"
> value="%{destination}" /></td>
> <td ><s:textarea name="descList[%{stat.index}].category"
> value="%{category}" /></td>
> <td ><s:textarea name="descrList[%{stat.index}].source"
> value="%{source}" /></td>
> <td><s:textarea name="descList[%{stat.index}].text"
> value="%{text}"/></td>
> </tr>
> </s:iterator>
> <s:submit action="updateDescriptions" />
> </s:form>
>
> ---------------------------------------------------------------------
> Action class:
>
>
> public class DescriptionTestAction extends ActionSupport {
>
> private List<Text> descList;
>
> public DescriptionTestAction () {
> }
>
>
> public void setDescList(List descList) {
> this.descList = descList;
> }
>
> public List getDescList () {
> return this.descList;
> }
>
> --------------------------------------------------
> The descList is a spring Bean and everything works well except the update
> process.
> If I make an update for the destination field e.g. and then submit this form
> the descList contains the old values! I've tried everything and spend lot
> of time for searching for a solution, please help!
> Thank you in advance!
>
What do you mean that descList is a spring bean? Is it being injected
into the action by Spring? If so, perhaps that is happening after the
parameters are set (so overwriting the submitted values). Try tracing
calls to setDescList() to see if it is being called from multiple places
and, if so, in what order.
L.

Attachment:
user_188475.ezm (zipped)
Hi Laurie, thank you for help!
you are right that's what I want: to push back the updated fields into the
list.
And then I want access the updated fields in the update action class .
I think maybe there is somesthing wrong in my tag syntax? I found out that I
must use "{}" instead of "[]" which is only for maps, but it also doesn't
work.
I try this example but it doesn't work:
http://www.vitarara.org/cms/struts_2_cookbook/updating_a_list_of_domain_entities
Is there any other example anywhere, which I've not found?
I'm really desperate! What I want is not unusual, I've thought.
This must work til tomorrow (for my company) :-((
Thank you very much for helping!
Laurie Harper wrote:
>
> I'm not sure what you mean by a 'submit in each row' but if you want to
> push data back into the list then yes, you need the index in the input's
> name as you have.
>
> L.
>
> BGE Ger wrote:
>> ....thank you for the answer!
>> But I've read, if I want to change the complete list with the submit
>> action. I must use the list index.
>> If I make a submit in each row I can use "destination" syntax.
>> Isn't it right?
>>
>>
>> Jim Kiley wrote:
>>> For starters, you can simplify things a lot by changing your syntax
>>> from:
>>>
>>> name="descList[%{stat.index}].destination"
>>>
>>> to just:
>>>
>>> name="destination"
>>>
>>> The iterator tag pushes descList[index] onto the OGNL stack in every
>>> iteration, so you can refer to its attributes directly.
>>>
>>> jk
>>>
>>> On Thu, Jul 3, 2008 at 8:55 AM, BGE Ger <bg@(protected):
>>>
>>>> Hello,
>>>> I'm struts(2) newbie and I need some help for the iterator tag.
>>>> How can I access to an updated list in the action class?
>>>> My JSP looks like:
>>>>
>>>> <s:form theme="simple">
>>>> <s:iterator value="descList" status="stat">
>>>> <tr>
>>>> <td ><s:textarea name="descList[%{stat.index}].destination"
>>>> value="%{destination}" /></td>
>>>> <td ><s:textarea name="descList[%{stat.index}].category"
>>>> value="%{category}" /></td>
>>>> <td ><s:textarea name="descrList[%{stat.index}].source"
>>>> value="%{source}" /></td>
>>>> <td><s:textarea name="descList[%{stat.index}].text"
>>>> value="%{text}"/></td>
>>>> </tr>
>>>> </s:iterator>
>>>> <s:submit action="updateDescriptions" />
>>>> </s:form>
>>>>
>>>> ---------------------------------------------------------------------
>>>> Action class:
>>>>
>>>>
>>>> public class DescriptionTestAction extends ActionSupport {
>>>>
>>>> private List<Text> descList;
>>>>
>>>> public DescriptionTestAction () {
>>>> }
>>>>
>>>>
>>>> public void setDescList(List descList) {
>>>> this.descList = descList;
>>>> }
>>>>
>>>> public List getDescList () {
>>>> return this.descList;
>>>> }
>>>>
>>>> --------------------------------------------------
>>>> The descList is a spring Bean and everything works well except the
>>>> update
>>>> process.
>>>> If I make an update for the destination field e.g. and then submit this
>>>> form
>>>> the descList contains the old values! I've tried everything and spend
>>>> lot
>>>> of time for searching for a solution, please help!
>>>> Thank you in advance!
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Struts2-iterator-tag-tp18258667p18258667.html
>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> For additional commands, e-mail: user-help@(protected)
>>>>
>>>>
>>>
>>> --
>>> Jim Kiley
>>> Technical Consultant | Summa
>>> [p] 412.258.3346 [m] 412.445.1729
>>> http://www.summa-tech.com
>>>
>>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188473.ezm (zipped)
Attachment:
user_188476.ezm (zipped)I have opened a JIRA ticket for this issue.
----- Original Message ----
From: Musachy Barroso <musachy@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Thursday, July 3, 2008 3:23:25 PM
Subject: Re: Upgrading to struts 2.0.11.2 breaks all xml validators
Can you post the full stacktrace, or attach it to a Jira ticket?
musachy
On Thu, Jul 3, 2008 at 2:50 PM, Struts Two <strutstwo@(protected):
> Hello All:
> I have upgraded my struts 2.0.11.1 to struts 2.0.11.2. None of my xml validators run and they all break. I have downgraded to 2.0.11.1 and they all work again. I think there must be a bug with xwork-2.0.5.jar. The first few lines of stack trace are as follows:
> at java.lang.J9VMInternals.initialize(J9VMInternals.java:216)
> at
com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs(ValidatorFileParser..java:192)
> at
com.opensymphony.xwork2.validator.ValidatorFileParser.parseActionValidatorConfigs (
ValidatorFileParser.java:72)
> at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.loadFile (
AnnotationActionValidatorManager.java:361)
> at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildAliasValidatorConfigs (
AnnotationActionValidatorManager.java:244)
> at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs (
AnnotationActionValidatorManager.java:343)
> at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators (
AnnotationActionValidatorManager.java:69)
> I have repeated the upgrade several times to make sure, it is indeed the upgrade that causes the issue.
>
>
>
> __________________________________________________________________
> Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at
> http://ca.toolbar.yahoo.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)
__________________________________________________________________
Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php

Attachment:
user_188477.ezm (zipped)Looks like another case of the classloader returning weird URIs:
"Caused by:
java.lang.IllegalArgumentException: URI scheme is not "file"
at java.io.File.<init>(File.java:364)"
musachy
On Thu, Jul 3, 2008 at 3:44 PM, Struts Two <strutstwo@(protected):
> I have opened a JIRA ticket for this issue.
>
> ----- Original Message ----
> From: Musachy Barroso <musachy@(protected)>
> To: Struts Users Mailing List <user@(protected)>
> Sent: Thursday, July 3, 2008 3:23:25 PM
> Subject: Re: Upgrading to struts 2.0.11.2 breaks all xml validators
>
> Can you post the full stacktrace, or attach it to a Jira ticket?
>
> musachy
>
> On Thu, Jul 3, 2008 at 2:50 PM, Struts Two <strutstwo@(protected):
>> Hello All:
>> I have upgraded my struts 2.0.11.1 to struts 2.0.11.2. None of my xml validators run and they all break. I have downgraded to 2.0.11.1 and they all work again. I think there must be a bug with xwork-2.0.5.jar. The first few lines of stack trace are as follows:
>> at java.lang.J9VMInternals.initialize(J9VMInternals.java:216)
>> at
com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs(ValidatorFileParser..java:192)
>> at
com.opensymphony.xwork2.validator.ValidatorFileParser.parseActionValidatorConfigs (
ValidatorFileParser.java:72)
>> at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.loadFile (
AnnotationActionValidatorManager.java:361)
>> at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildAliasValidatorConfigs (
AnnotationActionValidatorManager.java:244)
>> at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs (
AnnotationActionValidatorManager.java:343)
>> at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators (
AnnotationActionValidatorManager.java:69)
>> I have repeated the upgrade several times to make sure, it is indeed the upgrade that causes the issue.
>>
>>
>>
>> __________________________________________________________________
>> Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at
>> http://ca.toolbar.yahoo.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
> __________________________________________________________________
> Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_188478.ezm (zipped)It looks a lot like: https://issues.apache.org/struts/browse/WW-2633
musachy
On Thu, Jul 3, 2008 at 3:52 PM, Musachy Barroso <musachy@(protected):
> Looks like another case of the classloader returning weird URIs:
>
> "Caused by:
java.lang.IllegalArgumentException: URI scheme is not "file"
> at java.io.File.<init>(File.java:364)"
>
> musachy
>
> On Thu, Jul 3, 2008 at 3:44 PM, Struts Two <strutstwo@(protected):
>> I have opened a JIRA ticket for this issue.
>>
>> ----- Original Message ----
>> From: Musachy Barroso <musachy@(protected)>
>> To: Struts Users Mailing List <user@(protected)>
>> Sent: Thursday, July 3, 2008 3:23:25 PM
>> Subject: Re: Upgrading to struts 2.0.11.2 breaks all xml validators
>>
>> Can you post the full stacktrace, or attach it to a Jira ticket?
>>
>> musachy
>>
>> On Thu, Jul 3, 2008 at 2:50 PM, Struts Two <strutstwo@(protected):
>>> Hello All:
>>> I have upgraded my struts 2.0.11.1 to struts 2.0.11.2. None of my xml validators run and they all break. I have downgraded to 2.0.11.1 and they all work again. I think there must be a bug with xwork-2.0.5.jar. The first few lines of stack trace are as follows:
>>> at java.lang.J9VMInternals.initialize(J9VMInternals.java:216)
>>> at
com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs(ValidatorFileParser..java:192)
>>> at
com.opensymphony.xwork2.validator.ValidatorFileParser.parseActionValidatorConfigs (
ValidatorFileParser.java:72)
>>> at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.loadFile (
AnnotationActionValidatorManager.java:361)
>>> at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildAliasValidatorConfigs (
AnnotationActionValidatorManager.java:244)
>>> at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs (
AnnotationActionValidatorManager.java:343)
>>> at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators (
AnnotationActionValidatorManager.java:69)
>>> I have repeated the upgrade several times to make sure, it is indeed the upgrade that causes the issue.
>>>
>>>
>>>
>>> __________________________________________________________________
>>> Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at
>>> http://ca.toolbar.yahoo.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>> __________________________________________________________________
>> Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_188480.ezm (zipped)It looks like it. I opened sometime ago JIRA WW-2382 with similar classloader issues but that was for struts 2.1.2 and the fix is going to be included in 2.1.3.
----- Original Message ----
From: Musachy Barroso <musachy@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Thursday, July 3, 2008 3:52:31 PM
Subject: Re: Upgrading to struts 2.0.11..2 breaks all xml validators
Looks like another case of the classloader returning weird URIs:
"Caused by:
java.lang.IllegalArgumentException: URI scheme is not "file"
at java.io.File.<init>(File.java:364)"
musachy
__________________________________________________________________
Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/

Attachment:
user_188474.ezm (zipped)Richard Sayre wrote:
> I have a form containing text areas. When I copy a bunch of character
> data such as: 2öÂnJ1ÈÏúÄp8éÎdìåmðh4uæEÍÉieÔWán2ÅìbØÉÅÀ1JÎZÏôsC5LòÚAPúÜaÃÙPC5üÆCJWCOzùÙtÒQqùét
>
> into the text are, it displays normally. When I save the data, the
> database stores the characters properly, when the data returns to the
> s:textarea I displays with ?? replacing some characters.
>
> I can't figure out where this is happening. When I write the data out
> to the page as text it all displays properly. When I initially paste
> it into the textarea it displays correctly, so my browser supports the
> character set (ISO-8859-1 or Latin-1). It's only when it comes from
> the database to the textarea that the characters do not display. And
> I verified that the database can handle the characters and that they
> are stored correctly.
>
> This causes a problem when the user saves the second time, the ? get
> saved in the db as ?.
>
> Any ideas as to what is happening or how to fix it?
>
> Thank you,
>
> Rich
- Are the characters retrieved from the database correctly? (i.e. if you
check the data you're sending to the textarea, is it right?)
- What character encoding are you using to serve the page?
- Do you have a @page directive in the JSP specifying the correct
character encoding?
- Do you have a meta-equiv element in your HTML <head> area to tell the
browser what encoding the page is in?
- I assume you are using Struts :-) What version?
L.

Attachment:
user_188482.ezm (zipped)Hi all,
I modified fielderror.ftl and want to apply it to my app. Could anyone tell
me where I should put it in my app? In WEB-INF/classes/folder or somewhere
else?
Thanks.

Attachment:
user_188483.ezm (zipped)I believe the default value is WEB-INF/template, but I may be wrong.
The good news is that you can specify it to fit your need.
http://struts.apache.org/2.0.11.2/docs/selecting-template-directory.html
Timothy Wonil Lee
Java Developer
http://timundergod.blogspot.com/
-----Original Message-----
From: lei.java@(protected)]
Sent: Friday, 4 July 2008 8:06 AM
To: Struts Users Mailing List
Subject: Where to put customized template
Hi all,
I modified fielderror.ftl and want to apply it to my app. Could anyone tell
me where I should put it in my app? In WEB-INF/classes/folder or somewhere
else?
Thanks.
!DSPAM:486d4d83151833671820667!

Attachment:
user_188485.ezm (zipped)Timothy Wonil Lee wrote:
> I believe the default value is WEB-INF/template, but I may be wrong.
>
Almost, the default is in the *classpath* at /template
So that should read WEB-INF/classes/template
Also, don't forget the theme.properties file.

Attachment:
user_188484.ezm (zipped)simple ways like:
<input type="hidden" name="uri" value="<%= request.getRequestURI() %>"/>
though I sometimes feel guilty for not using the equivalent S2 tag :P
2008/7/3 Musachy Barroso <musachy@(protected)>:
> #request is just a map with the request attributes. If you want the
> real request object:
>
> #context['com.opensymphony.xwork2.dispatcher.HttpServletRequest']
>
> there are probably other 300 ways of getting the same thing.
>
> musachy
>
> On Thu, Jul 3, 2008 at 11:47 AM, Al Sutton <al.sutton@(protected):
>> I can't for the life of me get the value for getRequestURI from the
>> HTTPServletRequest object into a hidden field.
>>
>> <s:hidden name="uri" value="#request.requestURI"/> doesn't seem to work,
>> anyone want to point out where I've dumbed out?
>>
>> Al.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_188488.ezm (zipped)The problem with straight <input..> is that you don't get the theme
based formatting :(
Gabriel Belingueres wrote:
> simple ways like:
>
> <input type="hidden" name="uri" value="<%= request.getRequestURI() %>"/>
>
> though I sometimes feel guilty for not using the equivalent S2 tag :P
>
> 2008/7/3 Musachy Barroso <musachy@(protected)>:
>
>> #request is just a map with the request attributes. If you want the
>> real request object:
>>
>> #context['com.opensymphony.xwork2.dispatcher.HttpServletRequest']
>>
>> there are probably other 300 ways of getting the same thing.
>>
>> musachy
>>
>> On Thu, Jul 3, 2008 at 11:47 AM, Al Sutton <al.sutton@(protected):
>>
>>> I can't for the life of me get the value for getRequestURI from the
>>> HTTPServletRequest object into a hidden field.
>>>
>>> <s:hidden name="uri" value="#request.requestURI"/> doesn't seem to work,
>>> anyone want to point out where I've dumbed out?
>>>
>>> Al.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_188492.ezm (zipped)That's right. But in this case it is a hidden field.
2008/7/4 Al Sutton <al.sutton@(protected)>:
> The problem with straight <input..> is that you don't get the theme based
> formatting :(
>
> Gabriel Belingueres wrote:
>>
>> simple ways like:
>>
>> <input type="hidden" name="uri" value="<%= request.getRequestURI() %>"/>
>>
>> though I sometimes feel guilty for not using the equivalent S2 tag :P
>>
>> 2008/7/3 Musachy Barroso <musachy@(protected)>:
>>
>>>
>>> #request is just a map with the request attributes. If you want the
>>> real request object:
>>>
>>> #context['com.opensymphony.xwork2.dispatcher.HttpServletRequest']
>>>
>>> there are probably other 300 ways of getting the same thing.
>>>
>>> musachy
>>>
>>> On Thu, Jul 3, 2008 at 11:47 AM, Al Sutton <al.sutton@(protected)>
>>> wrote:
>>>
>>>>
>>>> I can't for the life of me get the value for getRequestURI from the
>>>> HTTPServletRequest object into a hidden field.
>>>>
>>>> <s:hidden name="uri" value="#request.requestURI"/> doesn't seem to work,
>>>> anyone want to point out where I've dumbed out?
>>>>
>>>> Al.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> For additional commands, e-mail: user-help@(protected)
>>>>
>>>>
>>>>
>>>
>>> --
>>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_188486.ezm (zipped)Hi Bharat,
Its a Gud deal go ahead.
i almost went through all the books in the market with title Struts2
but it is best....
go for it boss..
--aum
On Thu, Jul 3, 2008 at 11:34 PM, bhaarat Sharma <bhaarat.s@(protected):
> buy it, i shall then.
>
> Thanks guys!
>
> I've also scammed over Ian Roughly's book which was also a good read.
>
> On Thu, Jul 3, 2008 at 1:51 PM, Greg Lindholm <glindholm@(protected):
>
> >
> > Yes, I highly recommend it, it's the top book on my desk right now.
> > I've referenced it almost everyday since I read it.
> >
> >
> > omnipresent wrote:
> > >
> > > Hi guys,
> > >
> > > Has anyone taken a look at 'Struts 2 in action' from manning
> > publications?
> > >
> > > I am thinking about buything this book and wanted someone's suggestion.
> > >
> > > If you've browsed through the book, can you please provide some
> feedback.
> > >
> > > Thanks
> > >
> > >
> >
> > --
> > View this message in context:
> > http://www.nabble.com/Struts-2-in-action-tp18263762p18264964.html
> > Sent from the Struts - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>

Attachment:
user_188487.ezm (zipped)
Hi,
I am using struts 2.0.11. I want to call a javascript method from the
doubleselect tag's doubleOnchange attribute but its not working. The html
code generated does not show any code against the second select onchang
attribute. Can anyone help ???. Or provide me an example where
doubleOnchange is working
Here is the code
<s:doubleselect label="Applications"
doubleOnchange="javascript:changeEvent();return false;"
name="selectedApplication"
doubleName="selectedEvent"
list="applications" doubleList="events"
listKey="appId"
doubleListKey="eventNumber"
listValue="name" doubleListValue="title"
value="defaultApplication" doubleValue="defaultEvent">
</s:doubleselect>
Regards

Attachment:
user_188490.ezm (zipped)
Hi all!
I´m wondering if there´s any way of configuring struts2 to allow
me to keep actions, properties and validation in separate packages?
At the moment I have one packages, se.intranet.apps which includes
all my actions, properties and validations.
I´d rather keep them in separate packages, like
se.intranet.apps.actions
se.intranet.apps.properties
se.intranet.apps.validation
Any idea on how to do this?
I´ve tried reading up on localazation, but looking at
http://struts.apache.org/2.0.6/docs/localization.html the documentation
it doesn´t look possible...
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188491.ezm (zipped)Hi,
we have several web apps that have been developed with S1.
I am currently learning S2 and i am studying the reasons why we should
migrate to S2.
Can you tell me the advantages of migrating to S2 ?
I am not sure we should migrate, but i have not checked all new features
of S2 yet.
Thanks for your advices.
=========================================================
Ce message et toutes les pieces jointes (ci-apres le "message")
sont confidentiels et susceptibles de contenir des informations
couvertes par le secret professionnel. Ce message est etabli
a l'intention exclusive de ses destinataires. Toute utilisation
ou diffusion non autorisee interdite.
Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE
et ses filiales declinent toute responsabilite au titre de ce message
s'il a ete altere, deforme falsifie.
=========================================================
This message and any attachments (the "message") are confidential,
intended solely for the addressees, and may contain legally privilegedxi
information. Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any
of its subsidiaries or affiliates shall be liable for the message
if altered, changed or falsified.
=========================================================

Attachment:
user_188493.ezm (zipped)Check this out:
http://struts.apache.org/2.0.11.2/docs/comparing-struts-1-and-2.html
2008/7/4 Fernandes Celinio SGCF <Celinio.Fernandes@(protected)>:
> Hi,
> we have several web apps that have been developed with S1.
> I am currently learning S2 and i am studying the reasons why we should
> migrate to S2.
>
> Can you tell me the advantages of migrating to S2 ?
> I am not sure we should migrate, but i have not checked all new features
> of S2 yet.
>
> Thanks for your advices.
>
> =========================================================
>
> Ce message et toutes les pieces jointes (ci-apres le "message")
> sont confidentiels et susceptibles de contenir des informations
> couvertes par le secret professionnel. Ce message est etabli
> a l'intention exclusive de ses destinataires. Toute utilisation
> ou diffusion non autorisee interdite.
> Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE
> et ses filiales declinent toute responsabilite au titre de ce message
> s'il a ete altere, deforme falsifie.
>
> =========================================================
>
> This message and any attachments (the "message") are confidential,
> intended solely for the addressees, and may contain legally privilegedxi
> information. Any unauthorised use or dissemination is prohibited.
> E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any
> of its subsidiaries or affiliates shall be liable for the message
> if altered, changed or falsified.
>
> =========================================================
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_188494.ezm (zipped)Hi all,
I've got a form bean for a user which has a field username (duuhhh:)
We use a mask of ^[a-zA-Z_0-9-]*$. Is there a way I can show the
valid characters to the user? Currently the error message in
ApplicationResources properties is:
errors.invalid={0} is invalid.
and the xdoclet tags are :
/**
* @struts.validator type="required,mask,maxlength"
*
* @struts.validator-var name="maxlength" value="20"
* @struts.validator-var name="mask" value="^[a-zA-Z_0-9-]*$"
*
* @struts.validator-args arg0resource="validator.reg.username"
* @struts.validator-args arg1value="${var:maxlength}"
* @struts.validator-args arg2value="${var:mask}"
*
* @param username The username to set.
*/
public void setUsername(String username) {
this.username = username;
}
What I am fearing is if I write
errors.invalid={0} is invalid. Valid characters are {2}
all invalid validation messages will be like that.
Thanks.

Attachment:
user_188495.ezm (zipped)
Hi,
I have a list of Fruit's of type class Fruit { String name; Date date; },
and I show those fruits using iterator in my .jsp, like this: <s:iterator
value="fruits"> ... </s:iterator>. Well I need to show some options (e.g.,
delete fruit) to user if fruit's date is in the current month, how can I
check this in my .jsp (inside iterator tag) ?
--
Thx in advance, Milan Milanovic
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188496.ezm (zipped)
Hi Jim,
Unfortunately I thougth I had found the problem. Here is one of the JSP
files that causes problems.
As I said it works fine with Firefox 2.
http://www.nabble.com/file/p18280043/editNgasSingleBill.jsp
editNgasSingleBill.jsp
Thanks
Pierre
Jim Kiley wrote:
>
> Do your logs show that the action is getting triggered? Can you provide
> the
> code for the JSP that is not getting rendered?
>
> jk
>
> On Wed, Jul 2, 2008 at 10:10 AM, Pierrot52 <pierre.lasante@(protected)>
> wrote:
>
>>
>> I have an action that normally brings a signon form but for some reasons
>> Firefox hangs. The URL to load the form is
>> http://my_host:8080/cobbCalculator2/signonForm.action
>>
>> As I said it works fine with Firefox 2 but not with Firefox 3.
>>
>> The Struts2 application is running on a Glassfish server.
>> I'm using Toplink and MySQL as ORM.
>>
>> Regards.
>>
>>
>>
>> Jim Kiley wrote:
>> >
>> > We would need a lot more details than this. What should it be doing;
>> what
>> > parts don't work? What code of yours appears to be causing problems?
>> >
>> > On Wed, Jul 2, 2008 at 9:50 AM, Pierrot52 <pierre.lasante@(protected)>
>> > wrote:
>> >
>> >>
>> >> Hello,
>> >> I have developed a Struts2 application that works well under Firefox
>> 2,
>> >> IE
>> >> 6, IE 7, Safari, and Opera.
>> >> Unfortunately it doesn't work under Firefox 3.
>> >> Has anybody made this observation and found a solution to this
>> problem?
>> >> Regards.
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Struts2-application-doesn%27t-work-with-Firefox-3-tp18237909p18237909.html
>> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> >> For additional commands, e-mail: user-help@(protected)
>> >>
>> >>
>> >
>> >
>> > --
>> > Jim Kiley
>> > Technical Consultant | Summa
>> > [p] 412.258.3346 [m] 412.445.1729
>> > http://www.summa-tech.com
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Struts2-application-doesn%27t-work-with-Firefox-3-tp18237909p18238338.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
> --
> Jim Kiley
> Technical Consultant | Summa
> [p] 412.258.3346 [m] 412.445.1729
> http://www.summa-tech.com
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188497.ezm (zipped)
When you say hangs does it look like it renders and then disappears and
hangs. I'm having a similar issue and have narrowed it down to page theme
being <s:head theme=ajax>. If I make my pages xhtml they render fine.
Using Firebug I can see that sometimes the dojo libraries are not loading
properly. Unfortunately I don't have a complete fix yet other than changing
the theme.
I have an action that normally brings a signon form but for some reasons
>> Firefox hangs. The URL to load the form is
>> http://my_host:8080/cobbCalculator2/signonForm.action
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188498.ezm (zipped)
Yes,
It seems to render and then disappears and hangs. I have to hit the back
button to see the page.
georz1 wrote:
>
> When you say hangs does it look like it renders and then disappears and
> hangs. I'm having a similar issue and have narrowed it down to page theme
> being <s:head theme=ajax>. If I make my pages xhtml they render fine.
> Using Firebug I can see that sometimes the dojo libraries are not loading
> properly. Unfortunately I don't have a complete fix yet other than
> changing the theme.
>
>
> I have an action that normally brings a signon form but for some reasons
>>> Firefox hangs. The URL to load the form is
>>> http://my_host:8080/cobbCalculator2/signonForm.action
>>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188499.ezm (zipped)
Check the pages referenced in your jsp as common/IncludeTop.jsp. See if it
has a <s:head theme="ajax"> and change it to <s:head theme="xhtml"> and see
if that fixes it. The downside however to doing this is if you have any
ajax specific tags in the jsp (tabbedpanel, datetimepicker) they may not
work properly and you'll have to find a work around. Right now that is
where I'm stuck. I have tabbedpanel that doesn't work.
Pierrot52 wrote:
>
> Yes,
> It seems to render and then disappears and hangs. I have to hit the back
> button to see the page.
>
>
> georz1 wrote:
>>
>> When you say hangs does it look like it renders and then disappears and
>> hangs. I'm having a similar issue and have narrowed it down to page
>> theme being <s:head theme=ajax>. If I make my pages xhtml they render
>> fine. Using Firebug I can see that sometimes the dojo libraries are not
>> loading properly. Unfortunately I don't have a complete fix yet other
>> than changing the theme.
>>
>>
>> I have an action that normally brings a signon form but for some reasons
>>>> Firefox hangs. The URL to load the form is
>>>> http://my_host:8080/cobbCalculator2/signonForm.action
>>>
>>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.