Author Login
Post Reply
user Digest 15 Jul 2008 10:39:50 -0000 Issue 8142
Topics (messages 188897 through 188922):
Re: [S2] newly-created Session context
188897 by: Pierre Thibaudeau
Re: struts2 validation
188898 by: Nicole Luneburg
188902 by: Nicole Luneburg
Re: Referring to Properties object via OGNL?
188899 by: Jeromy Evans
Re: REST plugin URL syntax
188900 by: Jeromy Evans
Re: Extending Struts Controls - problem
188901 by: Narayana S
188913 by: Lukasz Lenart
Re: about iterating values
188903 by: hns
Controlling GET variables
188904 by: Frostt
188914 by: Lukasz Lenart
Struts 2.1 tags + JSTL EL?
188905 by: Oleg Mikheev
188907 by: Chris Pratt
struts2 jsp s:set question
188906 by: Harden ZHU
188915 by: Lukasz Lenart
[S2] downloadaction class
188908 by: Riccardo Mollame
188911 by: ManiKanta G
188918 by: Riccardo Mollame
188919 by: ManiKanta G
188922 by: Riccardo Mollame
Re: Struts 2 Indexed Properties
188909 by: YAQ
Re: messages_(locale).properties
188910 by: Lukasz Lenart
Re: Validator plugin error
188912 by: Lukasz Lenart
Re: web.xml servlet/filter-mappings
188916 by: Mikkel Lindhard
188921 by: Don Brown
an issue with my Action class - help me
188917 by: Narayana S
188920 by: Lukasz Lenart
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_188897.ezm (zipped)Thanks for the heads up! I'm learning every day!
And yes, I concur: this definitely needs to be documented!
2008/7/14 Gabriel Belingueres <belingueres@(protected)>:
> Seems like something is not correctly initialized in OGNL when you get
> the session from the HTTPServletRequest object this way (it should be
> documented somewhere or otherwise fix it.)
>
> But you don't need to get both the HTTPSession and the Map to put
> something in session scope. The SessionMap is an adapter to ease unit
> testing of actions, and every change is is done to the SessionMap it
> is delegated to the HTTPSession object.
>
> 2008/7/14 Pierre Thibaudeau <pierre.thibaudeau@(protected)>:
>> 2008/7/14 Gabriel Belingueres <belingueres@(protected)>:
>>> Please test your interceptor using the following to get the session:
>>> Map session = invocation.getInvocationContext().getSession();
>>
>> Well, Gabriel:
>>
>> a) I'll be d*mned!
>> b) You're a genius! ;) (I would never have thought of looking that way!)
>>
>> Now, it's worth making an extra comment about this strange situation.
>> I patched my interceptor as follows:
>>
>> public String intercept(ActionInvocation invocation) throws Exception {
>> ActionContext context = invocation.getInvocationContext();
>> HttpServletRequest request = (HttpServletRequest)
>> context.get(StrutsStatics.HTTP_REQUEST);
>> HttpSession session = request.getSession(true /* create if not yet
>> in existence */);
>> Map<?,?> sessionMap = invocation.getInvocationContext().getSession();
>> ...
>> }
>>
>> In other words, I didn't merely REPLACE my previous HttpSession by the
>> Map<?,?>, but I added the Map<?,?>. With this new setup, so long as I
>> put one object in the sessionMap, then the other object (yes, there
>> were two of them; I hadn't mention the second one) is set properly
>> with HttpSession.setAttribute(String). And BOTH object are recognized
>> by OGNL, not merely the one that I had Map.put(Object, Object)...
>>
>> So basically, we are facing an initialization issue somewhere. I wish
>> there was a more elegant way of preparing that new session... But at
>> least, now the interceptor behaves as intended.
>>
>> I bet this issue should be made explicit in the Strut2 /
>> ActionInvocation /OGNL guides...
>>
>> Thanks!
>>
>> ---------------------------------------------------------------------
>> 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_188898.ezm (zipped)Ah!
Now I understand ... Looks like I will be changing a few things in this project ...
Thanks for your help!
-----Original Message-----
From: Dave Newton [mailto:newton.dave@(protected)]
Sent: Monday, 14 July 2008 10:22 PM
To: Struts Users Mailing List
Subject: RE: struts2 validation
If you don't have an action property named "fieldname" then not only will validation not work but neither will normal property copying (from form to action).
If, for example, you have a MyForm named "form", and has an appropriate getter/setter, its form element would look like this:
<s:textfield name="form.fieldName"/>
If you're handling validation programmatically (via the Validateable interface and the action's validate() method) you'd then validate against the MyForm instance, for example:
public void validate() {
if (StringUtils.isBlank(this.form.getFieldName())) {
...
}
...
}
It sort of seems like you're implementing a bit of ModelDriven, but manually--not a problem, but seems a bit duplicative.
Dave
--- On Mon, 7/14/08, Nicole Luneburg wrote:
> From: Nicole Luneburg <Nicole.Luneburg@(protected)>
> Subject: RE: struts2 validation
> To: "Struts Users Mailing List" <user@(protected)>
> Date: Monday, July 14, 2008, 3:16 AM
> ps. My post added some "3D" text that isn't
> supposed to be there ...
>
> Thanks Jeromy.
>
> Yes I do have a <s:head> attribute, maybe not
> *exactly* but I have:
> <s:head theme="ajax" />
>
> Apologies for the confusion.
> What I meant in my pevious post was that I had tried a few
> ways to do this validation task.
> In my initial post I had described one of these attempts
> which I think should have worked.
>
> What I am getting regardless of what sort of validation I
> try to implement is this error:
>
>
java.lang.StringIndexOutOfBoundsException: String index out
> of range: -7
>
> You mentioned the getters and setters for the fieldnames
> ... this only works though if the fields are stored in the
> action right?
> coz the fields I have aren't stored in the action, they
> are stored in a Form class.
>
> Ie my action looks something like:
>
> public String execute() {
> MyForm myForm = (MyForm)super.form;
> String myField = myForm.getFieldName();
> }
>
> Markus: Thanks for your reply too, I am trying it right
> now. Just want this to work grrr
>
>
> -----Original Message-----
> From: Jeromy Evans
> [mailto:jeromy.evans@(protected)]
> Sent: Monday, 14 July 2008 4:25 PM
> To: Struts Users Mailing List
> Subject: Re: struts2 validation
>
> Nicole Luneburg wrote:
> >
> >
> >
> > <s:form action=3D"myaction"
> method=3D"post" validate=3D"true">
> >
> The validate attribute here is used to enable client-side
> validation
> only. That will only work if you include the
> <s:head> attribute in the
> page.
>
>
> >
> >
> > My setup is that I have an Action class, which uses a
> Form to set and get f= ield values from the JSP page.
> >
> > In Struts1 I was using the validate(...) method in the
> Form class.
> >
> > It seems none of the Struts2 validation examples on
> the net are working for= me.
> >
> >
>
> You haven't mentioned whether you're using XML
> validation or
> annotation-based validation. If by not working you mean
> "does nothing",
> then your XML file is probably incorrectly named or your
> missing an
> annotation. (You need to enable this separately from
> client-side
> validation)
>
> Whatever the case, the main difference between Struts1 and
> Struts2 here
> is that Struts2 performs validation on the Object, not on
> the form
> parameters.
> That means, to check that "fieldName" is
> non-blank, it will call
> getFieldName() after setFieldName() was called by the
> ParametersInterceptor.
>
> A common problem is to forget the getter, but in that case
> Struts will
> keep returning INPUT (validation failed) instead of
> invoking your action.
>
> Hope that helps,
> Jeromy Evans
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail:
> user-help@(protected)
>
>
> The contents of this email are confidential and may be
> subject to legal or professional privilege and copyright.
> No representation is made that this email is free of
> viruses or other defects. If you have received this
> communication in error, you may not copy or distribute any
> part of it or otherwise disclose its contents to anyone.
> Please advise the sender of your incorrect receipt of this
> correspondence.
>
> ---------------------------------------------------------------------
> 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)
The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.

Attachment:
user_188902.ezm (zipped)In case it helps anyone else, I found a simple solution ... Annotations.
I did exactly what is here:
http://struts.apache.org/2.x/docs/validation-annotation.html
Thanks again for everyone's help!
The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.

Attachment:
user_188899.ezm (zipped)Dave Belfer-Shevett wrote:
>
>
> That fixed it. Is there a chance we can update the 'collections' page in the
> struts docs to give information like this?
>
>
Great! Can you please post a comment to the relevant docs page so one
of the developers remembers to update it?
You're also welcome to contribute to the documentation:
http://struts.apache.org/helping.html#documentation

Attachment:
user_188900.ezm (zipped)Mike Watson wrote:
>
> BTW, if I want a controller to work in multiple namespaces do I need
> to declare seperate packages in struts.xml instead of just relying on
> the @Namespace annotation?
>
> Thanks again for all your help.
>
>
Unfortunately when using Codeheind, you do have to create a new package
for each namespace. The easiest way to do that is to extend your action
and add a @Namespace for each subclass. It's wasteful but works.
The Convention Plugin that (eventually) supersedes Codeheind does
include a @Namespaces() annotation.
Glad I could help!

Attachment:
user_188901.ezm (zipped)any one please reply to this... i am kind of stucked....
On Mon, Jul 14, 2008 at 11:49 AM, Narayana S <narayanasgs1@(protected):
> Hi,
>
> I have extended Simple theme (by modifying XHTML theme),
> implemented the column span for every control as given below.
>
> <s:textfield label="Trucker" name="truker" size="70">
> <s:param name="labelcolspan" value="%{2}" />
> <s:param name="inputcolspan" value="%{6}" />
> </s:textfield>
>
> it is working fine.
>
> Now to pass these parameters directly within the textfield tag, i have
> extended
org.apache.struts2.views.jsp.ui.TextFieldTag and created my own tag
> with new attributes labelcolspan,inputcolspan. the taglib file also modified
> accordingly, but when i am creating a textfield with the extended class, it
> is not passing these two new parameter info to Free marker template files.
> after extending as shown below i am using the tag,
>
> <ss:textfield labelcolspan="row21" inputcolspan="row31" name="myname1"
> label="Enter First Name" />
>
>
> what else i am missing here? can any one suggest me....
>
> Thanks in advance
> ~narayana.
>

Attachment:
user_188913.ezm (zipped)Hi,
Maybe this will help
http://annaskawinska.blogspot.com/2008/04/extending-struts2-theme.html
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_188903.ezm (zipped)
HI
Thanks for reply
but session is appropriate for large size map stored in it?
it can works fine?
please reply
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188904.ezm (zipped)
I'm working on writing a forum app with Struts 2 (of which I'm a bit of a
newbie, so I apologize if I've overlooked the solution for this somewhere),
and it occurred to me that I may not be able to give it the convenience that
many PHP-based forums have.
I want my users to be able to freely share links to forums, forum topics,
user profiles, etc., which obviously means using GET variables so that the
URL contains the forum ID, message ID, or user ID for the target page. But
not everything can function with GET variables, because things like posts to
the forum, changing one's signature or password, among other things, should
all be handled using POST.
My confusion stems from completely lacking in the knowledge of how to
control this without breaking the Struts 2 design philosophy and manually
building these links in rather than letting Struts handle it. Again,
apologies if this is a simple matter -- my googling didn't prove to be much
help.
Tom Frost
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188914.ezm (zipped)Hi,
I'm not sure what you want to achieve, but maybe you should take a
look at s:url tag [1], you can define parameters as you want.
[1] http://struts.apache.org/2.1.2/docs/url.html
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_188905.ezm (zipped)Hi
Are there any plans to re-enable JSTL EL in custom tags which
was disabled starting from Struts 2.0.10?
And, where can I find the changes between Struts 2 and 2.1?
Any 2.1 documentation available yet?
Thanks,
Oleg

Attachment:
user_188907.ezm (zipped)I proposed a method of enabling JSTL EL safely a while ago, but I
haven't heard anything (or had any time to actually do anything about
it myself).
As far as the documentation, there is only one set of documentation in
the Wiki and it always covers the latest version, so all the
documentation available right now is for 2.1.
(*Chris*)
On Tue, Jul 15, 2008 at 12:15 AM, Oleg Mikheev <mihel@(protected):
> Hi
>
> Are there any plans to re-enable JSTL EL in custom tags which
> was disabled starting from Struts 2.0.10?
> And, where can I find the changes between Struts 2 and 2.1?
> Any 2.1 documentation available yet?
>
> Thanks,
> Oleg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_188906.ezm (zipped)Hi,
I have a "Company" object as follow and setAttribute("company",
company) in action. When do follow in jsp
<s:set name="company" value="%{#application.company}"/>
<%=company.formartName("aa")%>
And company.formartName("aa") in jsp throw exception. Do I did something wrong?
Thanks
Here is Company.java
==========================
public class Company {
private Long id;
private String name;
private String description;
public Company() {
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public String formartName(String formart){
....
.....
return formatName
}
}

Attachment:
user_188915.ezm (zipped)Hi,
s:set tag [1] put variable in given OGNL scope, try to use
scope=request or you can try to use <s:property
value="%{#company.formartName('aa')}" />
[1] http://struts.apache.org/2.1.2/docs/set.html
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_188908.ezm (zipped)Can anyone tell me if DownloadAction (or something simlar) is still supported in S2?
Any help appreciated.
Thanks.
Ric
Posta, news, sport, oroscopo: tutto in una sola pagina.
Crea l'home page che piace a te!
www.yahoo.it/latuapagina

Attachment:
user_188911.ezm (zipped)Yes, it is even pretty simple in S2.
You can use result of type 'stream' for that action configuration.
Use a InputStream to read the content you want to provide as the
download, and specify the same name in the result config, as below
<action name="Report" class="com.domain.ReportAction">
<result type="stream">
<param name="contentType">text/csv</param>
<param name="inputName">inputStream</param>
<param
name="contentDisposition">filename="Report.csv"</param>
<param name="bufferSize">1024</param>
</result>
</action>
Here 'inputStream' value of the 'inputName' param is the name of the
instance variable of type InputStream in the action file.
Hope this will clarify your doubt, and feel free to reply if you are
having any more doubt. I can provide some code if you need. But my
sincere suggestion is first try it by yourself.
ManiKanta
Riccardo Mollame wrote:
> Can anyone tell me if DownloadAction (or something simlar) is still supported in S2?
> Any help appreciated.
> Thanks.
> Ric
>
>
> Posta, news, sport, oroscopo: tutto in una sola pagina.
> Crea l'home page che piace a te!
> www.yahoo.it/latuapagina
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to
Sify Limited and is intended for use only by the individual or entity to
which it is addressed, and may contain information that is privileged,
confidential or exempt from disclosure under applicable law. If this is a
forwarded message, the content of this E-MAIL may not have been sent with
the authority of the Company. If you are not the intended recipient, an
agent of the intended recipient or a person responsible for delivering the
information to the named recipient, you are notified that any use,
distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail & notify us
immediately at admin@(protected)

Attachment:
user_188918.ezm (zipped)Thanks pal,
it's been very kind of you: but is the name of the file hardcoded in the conf file?!?
I'll try something ASAP and, eventually, abuse one more time of your kindness (let's hope not!! ;-))...
My best.
Riccardo
----- Messaggio originale -----
Da: ManiKanta G <manikanta.gade@(protected)>
A: Struts Users Mailing List <user@(protected)>
Inviato: Martedì 15 luglio 2008, 9:51:38
Oggetto: Re: [S2] downloadaction class
Yes, it is even pretty simple in S2.
You can use result of type 'stream' for that action configuration.
Use a InputStream to read the content you want to provide as the
download, and specify the same name in the result config, as below
<action name="Report" class="com.domain.ReportAction">
<result type="stream">
<param name="contentType">text/csv</param>
<param name="inputName">inputStream</param>
<param
name="contentDisposition">filename="Report.csv"</param>
<param name="bufferSize">1024</param>
</result>
</action>
Here 'inputStream' value of the 'inputName' param is the name of the
instance variable of type InputStream in the action file.
Hope this will clarify your doubt, and feel free to reply if you are
having any more doubt. I can provide some code if you need. But my
sincere suggestion is first try it by yourself.
ManiKanta
Riccardo Mollame wrote:
> Can anyone tell me if DownloadAction (or something simlar) is still supported in S2?
> Any help appreciated.
> Thanks.
> Ric
>
>
> Posta, news, sport, oroscopo: tutto in una sola pagina.
> Crea l'home page che piace a te!
> www.yahoo.it/latuapagina
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to
Sify Limited and is intended for use only by the individual or entity to
which it is addressed, and may contain information that is privileged,
confidential or exempt from disclosure under applicable law. If this is a
forwarded message, the content of this E-MAIL may not have been sent with
the authority of the Company. If you are not the intended recipient, an
agent of the intended recipient or a person responsible for delivering the
information to the named recipient, you are notified that any use,
distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail & notify us
immediately at admin@(protected)
Posta, news, sport, oroscopo: tutto in una sola pagina.
Crea l'home page che piace a te!
www.yahoo.it/latuapagina

Attachment:
user_188919.ezm (zipped)My pleasure.
You can use any variable from the returning action class as with case of
remaining results, as below
<result type="stream">
<param name="contentType">text/csv</param>
<param name="inputName">inputStream</param>
<param
name="contentDisposition">filename="${fileName}"</param>
<param name="bufferSize">1024</param>
<param name="parse">true</param>
</result>
Define a instance variable holding the file name (should have getters
and setters) and use that variable in the config xml as above. Actually
you can use this type of referencing the action variables in config file.
Regards,
ManiKanta
Riccardo Mollame wrote:
> Thanks pal,
> it's been very kind of you: but is the name of the file hardcoded in the conf file?!?
> I'll try something ASAP and, eventually, abuse one more time of your kindness (let's hope not!! ;-))...
> My best.
> Riccardo
>
> ----- Messaggio originale -----
> Da: ManiKanta G <manikanta.gade@(protected)>
> A: Struts Users Mailing List <user@(protected)>
> Inviato: Martedì 15 luglio 2008, 9:51:38
> Oggetto: Re: [S2] downloadaction class
>
> Yes, it is even pretty simple in S2.
>
> You can use result of type 'stream' for that action configuration.
>
> Use a InputStream to read the content you want to provide as the
> download, and specify the same name in the result config, as below
>
> <action name="Report" class="com.domain.ReportAction">
> <result type="stream">
> <param name="contentType">text/csv</param>
> <param name="inputName">inputStream</param>
> <param
> name="contentDisposition">filename="Report.csv"</param>
> <param name="bufferSize">1024</param>
> </result>
> </action>
>
> Here 'inputStream' value of the 'inputName' param is the name of the
> instance variable of type InputStream in the action file.
>
> Hope this will clarify your doubt, and feel free to reply if you are
> having any more doubt. I can provide some code if you need. But my
> sincere suggestion is first try it by yourself.
>
> ManiKanta
>
>
>
> Riccardo Mollame wrote:
>
>> Can anyone tell me if DownloadAction (or something simlar) is still supported in S2?
>> Any help appreciated.
>> Thanks.
>> Ric
>>
>>
>> Posta, news, sport, oroscopo: tutto in una sola pagina.
>> Crea l'home page che piace a te!
>> www.yahoo.it/latuapagina
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
>
>
>
> ********** DISCLAIMER **********
> Information contained and transmitted by this E-MAIL is proprietary to
> Sify Limited and is intended for use only by the individual or entity to
> which it is addressed, and may contain information that is privileged,
> confidential or exempt from disclosure under applicable law. If this is a
> forwarded message, the content of this E-MAIL may not have been sent with
> the authority of the Company. If you are not the intended recipient, an
> agent of the intended recipient or a person responsible for delivering the
> information to the named recipient, you are notified that any use,
> distribution, transmission, printing, copying or dissemination of this
> information in any way or in any manner is strictly prohibited. If you have
> received this communication in error, please delete this mail & notify us
> immediately at admin@(protected)
>
>
>
> Posta, news, sport, oroscopo: tutto in una sola pagina.
> Crea l'home page che piace a te!
> www.yahoo.it/latuapagina
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_188922.ezm (zipped)Great!
It looks obvious but, as you've probably noticed, I'm a kind of Struts newbie... :-(
Thanks once again.
Riccardo
----- Messaggio originale -----
Da: ManiKanta G <manikanta.gade@(protected)>
A: Struts Users Mailing List <user@(protected)>
Inviato: Martedì 15 luglio 2008, 12:05:48
Oggetto: Re: [S2] downloadaction class
My pleasure.
You can use any variable from the returning action class as with case of
remaining results, as below
<result type="stream">
<param name="contentType">text/csv</param>
<param name="inputName">inputStream</param>
<param
name="contentDisposition">filename="${fileName}"</param>
<param name="bufferSize">1024</param>
<param name="parse">true</param>
</result>
Define a instance variable holding the file name (should have getters
and setters) and use that variable in the config xml as above. Actually
you can use this type of referencing the action variables in config file.
Regards,
ManiKanta
Riccardo Mollame wrote:
> Thanks pal,
> it's been very kind of you: but is the name of the file hardcoded in the conf file?!?
> I'll try something ASAP and, eventually, abuse one more time of your kindness (let's hope not!! ;-))...
> My best.
> Riccardo
>
> ----- Messaggio originale -----
> Da: ManiKanta G <manikanta.gade@(protected)>
> A: Struts Users Mailing List <user@(protected)>
> Inviato: Martedì 15 luglio 2008, 9:51:38
> Oggetto: Re: [S2] downloadaction class
>
> Yes, it is even pretty simple in S2.
>
> You can use result of type 'stream' for that action configuration.
>
> Use a InputStream to read the content you want to provide as the
> download, and specify the same name in the result config, as below
>
> <action name="Report" class="com.domain.ReportAction">
> <result type="stream">
> <param name="contentType">text/csv</param>
> <param name="inputName">inputStream</param>
> <param
> name="contentDisposition">filename="Report.csv"</param>
> <param name="bufferSize">1024</param>
> </result>
> </action>
>
> Here 'inputStream' value of the 'inputName' param is the name of the
> instance variable of type InputStream in the action file.
>
> Hope this will clarify your doubt, and feel free to reply if you are
> having any more doubt. I can provide some code if you need. But my
> sincere suggestion is first try it by yourself.
>
> ManiKanta
>
>
>
> Riccardo Mollame wrote:
>
>> Can anyone tell me if DownloadAction (or something simlar) is still supported in S2?
>> Any help appreciated.
>> Thanks.
>> Ric
>>
>>
>> Posta, news, sport, oroscopo: tutto in una sola pagina.
>> Crea l'home page che piace a te!
>> www.yahoo.it/latuapagina
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
>
>
>
> ********** DISCLAIMER **********
> Information contained and transmitted by this E-MAIL is proprietary to
> Sify Limited and is intended for use only by the individual or entity to
> which it is addressed, and may contain information that is privileged,
> confidential or exempt from disclosure under applicable law. If this is a
> forwarded message, the content of this E-MAIL may not have been sent with
> the authority of the Company. If you are not the intended recipient, an
> agent of the intended recipient or a person responsible for delivering the
> information to the named recipient, you are notified that any use,
> distribution, transmission, printing, copying or dissemination of this
> information in any way or in any manner is strictly prohibited. If you have
> received this communication in error, please delete this mail & notify us
> immediately at admin@(protected)
>
>
>
> Posta, news, sport, oroscopo: tutto in una sola pagina.
> Crea l'home page che piace a te!
> www.yahoo.it/latuapagina
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
Posta, news, sport, oroscopo: tutto in una sola pagina.
Crea l'home page che piace a te!
www.yahoo.it/latuapagina

Attachment:
user_188909.ezm (zipped)We're using Struts2, but I was using Struts1/JSTL tags.
I've tried using Struts2 tags and it renders the same HTML anyway.
I've been debugging through the code and it seems to be having a problem
picking up the entry x-work conversion properties. It throws a null pointer
in the log file, then carries on.
When I've got more time, I'll spend it on trying to debug the problem.
Either I've done something stupid, or the project I'm working on has some
configuration that is screwing things up a bit. It's not a project that I've
worked on from the start.
Jishnu Viswanath wrote:
>
> Re you using struts 2 itself?
>
> If yes it would look something like this
> <s:iterator value="listName" status="stat">
> <input name="someName[<s:property value='stat.index'/>]">
> </s:iterator>
>
> The code you send looks like struts 1
> Regards,
>
> Jishnu Viswanath
>
> Software Engineer
>
> *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll
>
> Tavant Technologies Inc.,
>
> www.tavant.com
>
> PEOPLE :: PASSION :: EXCELLENCE
>
>
> -----Original Message-----
> From: YAQ [mailto:yvette_quinby@(protected)]
> Sent: Monday, July 14, 2008 4:05 PM
> To: user@(protected)
> Subject: Struts 2 Indexed Properties
>
>
> Hi,
>
> I'm having problem with Struts2 and indexed properties.
>
> The list in my action is not being updated.
>
> My JSP is something like:
>
> <logic:iterate id="coverTypes" name="questionnaireVO.coverTypesList"
> indexId="index">
> <input type="hidden"
> id="questionnaireInputVO.coverTypesList[<c:out
> value="${index}" />].key"
> name="questionnaireInputVO.coverTypesList[<c:out
> value="${index}"
> />].key"
> value="<c:out value="${coverTypes.key.id}" />"
> />
> <input type="hidden"
> id="questionnaireInputVO.coverTypesList[<c:out
> value="${index}"
> />].agreementType.key"
> name="questionnaireInputVO.coverTypesList[<c:out
> value="${index}"
> />].agreementType.key"
> value="<c:out
> value="${coverTypes.agreementType.key.id}" />" />
> </logic:iterate>
>
>
> I've discovered I need an entry in the x-work conversion properties:
>
> Element_questionnaireInputVO.coverTypesList=com.mypath.CoverTypeVO
> CreateIfNull_questionnaireInputVO.coverTypesList=true
>
>
> But I am getting the following error:
>
>
> [2008-07-14 12:13:07,860] [.Transports : 2] DEBUG
> [com.opensymphony.xwork2.util.InstantiatingNullHandler ] :
> Entering
> nullPropertyValue [target=com.mypath.QuestionnaireInputVO@(protected),
> property=coverTypesList]
> [2008-07-14 12:13:07,860] [.Transports : 2] ERROR
> [com.opensymphony.xwork2.util.InstantiatingNullHandler ] : Could
> not
> create and/or set value back on to object
>
org.springframework.beans.factory.BeanCreationException: Error creating
> bean
> with name '[Lcom.mypath.CoverTypeVO;': Could not resolve matching
> constructor
> at
>
org.springframework.beans.factory.support.ConstructorResolver.autowireCo> nstructor(ConstructorResolver.java:178)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:799)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.autowire(AbstractAutowireCapableBeanFactory.java:255)
> at
>
com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjec
> tFactory.java:145)
> at
> com.opensymphony.xwork2.util.InstantiatingNullHandler.createObject(Insta
> ntiatingNullHandler.java:123)
> at
> com.opensymphony.xwork2.util.InstantiatingNullHandler.nullPropertyValue(
> InstantiatingNullHandler.java:104)
> at ognl.ASTProperty.getValueBody(ASTProperty.java:94)
> at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
> at ognl.SimpleNode.getValue(SimpleNode.java:210)
> at ognl.ASTChain.setValueBody(ASTChain.java:168)
> at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
> at ognl.SimpleNode.setValue(SimpleNode.java:246)
> at ognl.Ognl.setValue(Ognl.java:476)
> at
> com.opensymphony.xwork2.util.OgnlUtil.setValue(OgnlUtil.java:186)
> at
> com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java
> :158)
> at
> com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java
> :146)
> at
>
com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(
> ParametersInterceptor.java:193)
> at
>
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(Pa
> rametersInterceptor.java:159)
> at
>
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me
> thodFilterInterceptor.java:86)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
> tack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
> cation.java:221)
> at
> com.ing.itrf.starlite.common.interceptor.StarliteSecurityInterceptor.int
> ercept(StarliteSecurityInterceptor.java:54)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
> tack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
> cation.java:221)
> at
>
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(Servle
> tConfigInterceptor.java:170)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
> tack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
> cation.java:221)
> at
> com.ing.itrf.starlite.common.interceptor.StarliteDebugInterceptor.interc
> ept(StarliteDebugInterceptor.java:54)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
> tack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
> cation.java:221)
> at
>
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercep> t(ExceptionMappingInterceptor.java:176)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
> tack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
> cation.java:221)
> at
>
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java
> :50)
> at
>
org.apache.struts2.dispatcher.Dispatcher.serviceAction (
Dispatcher.java:5
> 04)
> at
>
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher
> .java:419)
> at
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst
> anceWrapper.java:132)
> at
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh
> ain.java:71)
> at
> com.ing.itrf.solution.filter.PerformanceMonitorFilter.doFilter(Performan
> ceMonitorFilter.java:135)
> at
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst
> anceWrapper.java:132)
> at
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh
> ain.java:71)
> at
> com.ing.itrf.security.filter.SecurityFilter$1.run(SecurityFilter.java:21
> 4)
> at
>
java.security.AccessController.doPrivileged (
AccessController.java:260)
> at
javax.security.auth.Subject.doAs (
Subject.java:555)
> at
> com.ibm.websphere.security.auth.WSSubject.doAs(WSSubject.java:165)
> at
> com.ing.itrf.security.filter.SecurityFilter.doFilter(SecurityFilter.java
> :212)
> at
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst
> anceWrapper.java:132)
> at
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh
> ain.java:71)
> at
> com.ing.itrf.solution.filter.WaitPageFilter.doFilter(WaitPageFilter.java
> :190)
> at
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst
> anceWrapper.java:132)
> at
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh
> ain.java:71)
> at
> com.ing.itrf.solution.filter.EncodingFilter.doFilter(EncodingFilter.java
> :115)
> at
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst
> anceWrapper.java:132)
> at
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh
> ain.java:71)
> at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
> tch(WebAppRequestDispatcher.java:1027)
> at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
> questDispatcher.java:544)
> at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
> uestDispatcher.java:210)
> at
> com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:1
> 39)
> at
> com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInv
> oker.java:332)
> at
> com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocati
> on(CachedInvocation.java:71)
> at
> com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invo
> ke(CacheableInvocationContext.java:120)
> at
> com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(Servle
> tRequestProcessor.java:250)
> at
> com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSELis
> tener.java:334)
> at
> com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection
> .java:56)
> at
> com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
> 652)
> at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:448)
> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:937)
> [2008-07-14 12:13:07,860] [.Transports : 2] DEBUG
> [com.opensymphony.xwork2.util.OgnlValueStack ] : Error
> setting value
> ognl.OgnlException: source is null for getProperty(null, "0")
> at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1638)
> at ognl.ASTProperty.getValueBody(ASTProperty.java:92)
> at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
> at ognl.SimpleNode.getValue(SimpleNode.java:210)
> at ognl.ASTChain.setValueBody(ASTChain.java:168)
> at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
> at ognl.SimpleNode.setValue(SimpleNode.java:246)
> at ognl.Ognl.setValue(Ognl.java:476)
> at
> com.opensymphony.xwork2.util.OgnlUtil.setValue(OgnlUtil.java:186)
> at
> com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java
> :158)
> at
> com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java
> :146)
> at
>
com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(
> ParametersInterceptor.java:193)
> at
>
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(Pa
> rametersInterceptor.java:159)
> at
>
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me
> thodFilterInterceptor.java:86)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
> tack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
> cation.java:221)
> at
> com.ing.itrf.starlite.common.interceptor.StarliteSecurityInterceptor.int
> ercept(StarliteSecurityInterceptor.java:54)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
> tack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
> cation.java:221)
> at
>
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(Servle
> tConfigInterceptor.java:170)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
> tack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
> cation.java:221)
> at
> com.ing.itrf.starlite.common.interceptor.StarliteDebugInterceptor.interc
> ept(StarliteDebugInterceptor.java:54)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
> tack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
> cation.java:221)
> at
>
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercep> t(ExceptionMappingInterceptor.java:176)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
> ionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
> tack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
> cation.java:221)
> at
>
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java
> :50)
> at
>
org.apache.struts2.dispatcher.Dispatcher.serviceAction (
Dispatcher.java:5
> 04)
> at
>
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher
> .java:419)
> at
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst
> anceWrapper.java:132)
> at
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh
> ain.java:71)
> at
> com.ing.itrf.solution.filter.PerformanceMonitorFilter.doFilter(Performan
> ceMonitorFilter.java:135)
> at
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst
> anceWrapper.java:132)
> at
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh
> ain.java:71)
> at
> com.ing.itrf.security.filter.SecurityFilter$1.run(SecurityFilter.java:21
> 4)
> at
>
java.security.AccessController.doPrivileged (
AccessController.java:260)
> at
javax.security.auth.Subject.doAs (
Subject.java:555)
> at
> com.ibm.websphere.security.auth.WSSubject.doAs(WSSubject.java:165)
> at
> com.ing.itrf.security.filter.SecurityFilter.doFilter(SecurityFilter.java
> :212)
> at
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst
> anceWrapper.java:132)
> at
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh
> ain.java:71)
> at
> com.ing.itrf.solution.filter.WaitPageFilter.doFilter(WaitPageFilter.java
> :190)
> at
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst
> anceWrapper.java:132)
> at
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh
> ain.java:71)
> at
> com.ing.itrf.solution.filter.EncodingFilter.doFilter(EncodingFilter.java
> :115)
> at
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst
> anceWrapper.java:132)
> at
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh
> ain.java:71)
> at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
> tch(WebAppRequestDispatcher.java:1027)
> at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
> questDispatcher.java:544)
> at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
> uestDispatcher.java:210)
> at
> com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:1
> 39)
> at
> com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInv
> oker.java:332)
> at
> com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocati
> on(CachedInvocation.java:71)
> at
> com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invo
> ke(CacheableInvocationContext.java:120)
> at
> com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(Servle
> tRequestProcessor.java:250)
> at
> com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSELis
> tener.java:334)
> at
> com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection
> .java:56)
> at
> com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
> 652)
> at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:448)
> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:937)
>
>
> Can anyone help?
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Struts-2-Indexed-Properties-tp18441212p18441212.ht
> ml
> 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)
>
> Any comments or statements made in this email are not necessarily those of
> Tavant Technologies.
> The information transmitted is intended only for the person or entity to
> which it is addressed and may
> contain confidential and/or privileged material. If you have received this
> in error, please contact the
> sender and delete the material from any computer. All e-mails sent from or
> to Tavant Technologies
> may be subject to our monitoring procedures.
>
>
> ---------------------------------------------------------------------
> 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_188910.ezm (zipped)Hi,
To specify custom file names for your messages, add them to
struts.properties [1], just the main name, without lang suffix
struts.custom.i18n.resources=messages, somemessages
You should always have default messages.properties bundle, move
messages_en.properties to messages.properties for example.
[1] http://struts.apache.org/2.1.2/docs/strutsproperties.html
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_188912.ezm (zipped)Hi,
Try to comment such entry for Validator plugin and check again, do you
have any logs from your container? Maybe the problem is elsewhere?
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_188916.ezm (zipped)Hello list
I have an web-application which use both Struts 2 and Axis 2.
Before struts 2.1 i didn't have a problem using the following
configuration in web-xml
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
The problem with Struts2.1.x is that the /service/xxx calls are taken
over by the struts filter even though it doesnt have a mapping for it.
is there a way i can configure struts to not handle the request if the
mapping doesnt exist?
Or might there be another solution? :)
Thanks in advance.
Mikkel

Attachment:
user_188921.ezm (zipped)Could you post more information? Struts should only be responding to
URI's that contain configured extensions via the
struts.action.extension setting, which defaults to "action".
Don
On Tue, Jul 15, 2008 at 7:01 PM, Mikkel Lindhard <mlindhard@(protected):
> Hello list
>
> I have an web-application which use both Struts 2 and Axis 2.
>
> Before struts 2.1 i didn't have a problem using the following configuration
> in web-xml
>
> <servlet-mapping>
> <servlet-name>AxisServlet</servlet-name>
> <url-pattern>/services/*</url-pattern>
> </servlet-mapping>
>
> <filter-mapping>
> <filter-name>struts2</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
>
> The problem with Struts2.1.x is that the /service/xxx calls are taken over
> by the struts filter even though it doesnt have a mapping for it.
>
> is there a way i can configure struts to not handle the request if the
> mapping doesnt exist?
>
> Or might there be another solution? :)
>
> Thanks in advance.
>
> Mikkel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_188917.ezm (zipped)Hi,
I am new to struts 2. my page is having a list which is dynamically
generated by action, so while calling the jsp page itself from a menu, I am
calling URL "/mymodule1/EditEmployee.action", which is mapped to
EditEmplyeeAction.java. first time when i am generating the page I am
generating list values dynamically and returning *ActionSupport.INPUT*, if
Save button is clicked on my page i am again going to the EditEmployeeAction
and this time i am doing my process and returning *ActionSupport.SUCCESS*.
but here the problem is, i have validation annotations implemented for
all the fields, which are executed and reporting error messages when i am
loading the page for the first time itself. but it should not happen to my
page, first time it should be executed with out validations, and when save
button is clicked only it should check for validations...
to achieve this do i need to go for CRUD kind of approach? or any other
simple way is there?

Attachment:
user_188920.ezm (zipped)Hi,
I'm supposing that you have actions mapped by methods in action class
(execute(), update(), etc.) If so, to disable validation for
particularly methods, annotated them with @SkipValidation
Regards
--
Lukasz
http://www.lenart.org.pl/