Author Login
Post Reply
user Digest 30 Jul 2010 08:18:12 -0000 Issue 9136
Topics (messages 207095 through 207108):
Re: Spring 2.5.6 -> 3.0
207095 by: Lukasz Lenart
Transparently handling a missing image
207096 by: java.rgm.spamgourmet.com
207097 by: Wes Wannemacher
Mix SpringMVC 3.0 with Struts2
207098 by: Frans Thamura
OGNL Qurey
207099 by: Zoran Avtarovski
207100 by: Dale Newfield
207101 by: Dale Newfield
207102 by: Zoran Avtarovski
207103 by: Dale Newfield
Re: Reading input stream (xml)
207104 by: Arun Kumar Boppudi
207105 by: Rahul Mohan
207108 by: Arun Kumar Boppudi
Re: Can I access URL parameters within struts.xml using ognl ?
207106 by: colaru
Not able to deploy the Struts Framework application on Jboss server
207107 by: venkat_y03.yahoo.com
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_207095.ezm (zipped)You must exclude Spring 2.5.6 in struts2-spring-plugin dependency.
http://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html#Dependency
Exclusions
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl

Attachment:
user_207096.ezm (zipped)It's possible that this is not a Struts question, but it's succinct:
I'd like to be able to code pages that ask for a resource that may or may not be present in one directory. If the resource is NOT present in the requested location, I'd like to automatically look for it in a different location. FreeMarker with Struts makes this easy with template "acquisition" -- where FM loads a template from any of the parent directories if it's not found in the requested directory (docs here: http://freemarker.sourceforge.net/docs/ref_directive_include.html#ref_directive_include_acquisition).
How can I achieve similar fall-back behavior for things like images (and ultimately .css and .js too)?
Are Interceptors useful here?
What about a custom 404 handler? (can this map to an action that returns an image result?)
Perhaps a regular "normal" J2EE Filter or Servlet mapped to ".png"?
I look forward to hearing any ideas you might have.
-rgm

Attachment:
user_207097.ezm (zipped)There is a set of handlers called the "Unknown Handlers" that are used
in the Conventions plugin. You might check that out...
http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/UnknownHandler.java?view=markup
You can implement this interface and plugin your class. I'm not sure
if this is what you're looking for...
-Wes
On Thu, Jul 29, 2010 at 3:28 PM, <java.rgm@(protected):
> It's possible that this is not a Struts question, but it's succinct:
>
> I'd like to be able to code pages that ask for a resource that may or may not be present in one directory. If the resource is NOT present in the requested location, I'd like to automatically look for it in a different location. FreeMarker with Struts makes this easy with template "acquisition" -- where FM loads a template from any of the parent directories if it's not found in the requested directory (docs here: http://freemarker.sourceforge.net/docs/ref_directive_include.html#ref_directive_include_acquisition).
>
> How can I achieve similar fall-back behavior for things like images (and ultimately .css and .js too)?
>
> Are Interceptors useful here?
> What about a custom 404 handler? (can this map to an action that returns an image result?)
> Perhaps a regular "normal" J2EE Filter or Servlet mapped to ".png"?
>
> I look forward to hearing any ideas you might have.
>
> -rgm
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Wes Wannemacher
Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

Attachment:
user_207098.ezm (zipped)hi all
I try to mix Struts2 2.2.1 with SpringMVC 3.0
i got a Validator error when ass Struts2, but if i remove struts2, the code
work well
i believe there is a problem with the validation
any tips for the exclude ? i see that struts2 using spring 2.5.6, this is my
exclusions
am i put in the wrong depedency? if yes, where i must put it, or ...
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-spring-plugin</artifactId>
<version>2.2.1</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</exclusion>
</exclusions>
</dependency>
--
Frans Thamura
Meruvian.
We grow because we share the same believe.
Mobile: +6287885901958
Blog & Profile: http://frans.thamura.info
We provide services to migrate your apps to Java (web), in amazing fast and
reliable.

Attachment:
user_207099.ezm (zipped)I¹m trying to construct a conditional display mechanism for a web app, but I
need some help with the OGNL side of things.
My app will produce a string like ³object1.attribute == 25 && object2.
attribute > 5² and store it as a parameter in my action called condition.
What I want to know if there is a way for OGNL to evaluate the expression
represented by the string through recursion?
Before anybody mentions it, I know the risk, but the way the string is
constructed will protect against injected code.
Z.

Attachment:
user_207100.ezm (zipped)On 7/29/10 9:50 PM, Zoran Avtarovski wrote:
> What I want to know if there is a way for OGNL to evaluate the expression
> represented by the string through recursion?
I see no reason you can't get a reference to the ValueStack object from
within OGNL and call the findValue() method to make that happen.
> Before anybody mentions it, I know the risk, but the way the string is
> constructed will protect against injected code.
Just beware of Little Bobby Tables.
http://xkcd.com/327/
-Dale

Attachment:
user_207101.ezm (zipped)On Thu, Jul 29, 2010 at 10:07 PM, Dale Newfield <dale@(protected):
> On 7/29/10 9:50 PM, Zoran Avtarovski wrote:
>>
>> What I want to know if there is a way for OGNL to evaluate the expression
>> represented by the string through recursion?
>
> I see no reason you can't get a reference to the ValueStack object from
> within OGNL and call the findValue() method to make that happen.
That wasn't very clear. What I should have said is that you could
easily make an eval() method on your action that just grabs the
ValueStack and calls findValue().
-Dale

Attachment:
user_207102.ezm (zipped)Hi Dale,
This sounds too easy, so I just want to clarify. From my action if I call
findValue(myExpressionString) and it will use OGNL to evaluate the
expression.
That¹s fantastic and exactly what I was looking for.
I¹ll try it this weekend.
Z.
>
> On Thu, Jul 29, 2010 at 10:07 PM, Dale Newfield <dale@(protected):
>> > On 7/29/10 9:50 PM, Zoran Avtarovski wrote:
>>> >>
>>> >> What I want to know if there is a way for OGNL to evaluate the expression
>>> >> represented by the string through recursion?
>> >
>> > I see no reason you can't get a reference to the ValueStack object from
>> > within OGNL and call the findValue() method to make that happen.
>
> That wasn't very clear. What I should have said is that you could
> easily make an eval() method on your action that just grabs the
> ValueStack and calls findValue().
>
> -Dale
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

Attachment:
user_207103.ezm (zipped)On 7/29/10 11:23 PM, Zoran Avtarovski wrote:
> This sounds too easy, so I just want to clarify. From my action if I call
> findValue(myExpressionString) and it will use OGNL to evaluate the
> expression.
Yes. To be more specific,
ActionContext.getContext().getValueStack().findValue(yourExpressionString)
Depending on what you're looking for, findString() might be helpful, too.
http://struts.apache.org/2.1.8.1/struts2-core/apidocs/com/opensymphony/xwork2/util/ValueStack.html
> That¹s fantastic and exactly what I was looking for.
>
> I¹ll try it this weekend.
Good luck!
-Dale

Attachment:
user_207104.ezm (zipped)There is no form and I am sending XML content to the action controller using
Fiddler.
And data sent is not in the format of query string. (not in the format:
paramname=*xml_content*). So, struts may not be mapping it to a property in
the form bean. In this case, how can I get the posted XML contents?
-- AB
On Thu, Jul 29, 2010 at 5:59 PM, Rahul Mohan <rahul.mohan@(protected):
> Data goes in request body when you are posting a form. Post requests are
> obviously handled by Struts. So it should work. ( Only you know that it is
> XML, for Struts its just another String. ) Please see your log for any
> exceptions in setting the action form. Also try inspecting your request
> using firebug to see if it is being posted.
>
>
>
> From:
> Arun Kumar Boppudi <arunkumar.boppudi@(protected)>
> To:
> Struts Users Mailing List <user@(protected)>
> Date:
> 29-07-2010 14:58
> Subject:
> Re: Reading input stream (xml)
>
>
>
> I think we should use the query string format to use the string in action
> form class format. But I am not sending it in the query string format. And
> I
> am not using multipart encoding. Just sending the XML content in POST
> body.
>
> -- AB
>
>
> On Thu, Jul 29, 2010 at 2:38 PM, Rahul Mohan <rahul.mohan@(protected):
>
> > Arun,
> >
> > Are you doing a POST with multi-part encoding? If so, a solution
> similar
> > to file upload would work for you. If not, then the String in
> action-form
> > approach that I posted earlier should work.
> >
> > - Rahul Mohan
> >
> >
> >
> > From:
> > Arun Kumar Boppudi <arunkumar.boppudi@(protected)>
> > To:
> > Struts Users Mailing List <user@(protected)>
> > Date:
> > 29-07-2010 13:34
> > Subject:
> > Re: Reading input stream (xml)
> >
> >
> >
> > Rahul,
> >
> > I am not sending XML content as part of the query string, only XML
> content
> > will be sent in the request body. As struts framework uses the
> > getParameter
> > to populate data into the form beans before calling the execute method,
> we
> > cannot use the request.getInputStream.
> >
> >
> >
>
> http://archives.java.sun.com/cgi-bin/wa?A2=ind0106&L=jsp-interest&F=&S=&P=49196
>
> >
> >
> > -- AB
> >
> >
> > On Thu, Jul 29, 2010 at 11:01 AM, Rahul Mohan <rahul.mohan@(protected)>
> wrote:
> >
> > > Arun,
> > >
> > > You can keep a string property on action form and map it to the xml
> > field
> > > so that the xml content is available here on page submit. In the
> action
> > > class, then you will be able to get the string and parse it using any
> > > available xml parser. I don't think Struts provides any shortcut for
> > this
> > > requirement.
> > >
> > > - Rahul Mohan
> > >
> > >
> > >
> > > From:
> > > Arun Kumar Boppudi <arunkumar.boppudi@(protected)>
> > > To:
> > > Struts Users Mailing List <user@(protected)>
> > > Date:
> > > 29-07-2010 10:32
> > > Subject:
> > > Re: Reading input stream (xml)
> > >
> > >
> > >
> > > Actually, I am not uploading a file. I am creating XML from the data
> > > entered
> > > into the form and sending it to the action controller in the POST
> > request
> > > body. In the action controller, I would like to parse the XML. How to
> do
> > > it
> > > in Struts 1.3?
> > >
> > > -- Arun Kumar Boppudi
> > >
> > >
> > > On Thu, Jul 29, 2010 at 10:24 AM, Rahul Mohan <rahul.mohan@(protected)>
> > wrote:
> > >
> > > > Doesn't this link (
> > http://struts.apache.org/2.0.14/docs/file-upload.html
> > > )
> > > > help you?
> > > >
> > > >
> > > >
> > > > From:
> > > > Arun Kumar Boppudi <arunkumar.boppudi@(protected)>
> > > > To:
> > > > Struts Users Mailing List <user@(protected)>
> > > > Date:
> > > > 28-07-2010 22:09
> > > > Subject:
> > > > Reading input stream (xml)
> > > >
> > > >
> > > >
> > > > If we send XML content in the POST/PUT request to Struts action
> > > > controller,
> > > > how to read this content in the Action class?
> > > >
> > > > -- AB
> > > >
> > > >
> > > > =====-----=====-----=====
> > > > Notice: The information contained in this e-mail
> > > > message and/or attachments to it may contain
> > > > confidential or privileged information. If you are
> > > > not the intended recipient, any dissemination, use,
> > > > review, distribution, printing or copying of the
> > > > information contained in this e-mail message
> > > > and/or attachments to it are strictly prohibited. If
> > > > you have received this communication in error,
> > > > please notify us by reply e-mail or telephone and
> > > > immediately and permanently delete the message
> > > > and any attachments. Thank you
> > > >
> > > >
> > > >
> > >
> > >
> > > =====-----=====-----=====
> > > Notice: The information contained in this e-mail
> > > message and/or attachments to it may contain
> > > confidential or privileged information. If you are
> > > not the intended recipient, any dissemination, use,
> > > review, distribution, printing or copying of the
> > > information contained in this e-mail message
> > > and/or attachments to it are strictly prohibited. If
> > > you have received this communication in error,
> > > please notify us by reply e-mail or telephone and
> > > immediately and permanently delete the message
> > > and any attachments. Thank you
> > >
> > >
> > >
> >
> >
> > =====-----=====-----=====
> > Notice: The information contained in this e-mail
> > message and/or attachments to it may contain
> > confidential or privileged information. If you are
> > not the intended recipient, any dissemination, use,
> > review, distribution, printing or copying of the
> > information contained in this e-mail message
> > and/or attachments to it are strictly prohibited. If
> > you have received this communication in error,
> > please notify us by reply e-mail or telephone and
> > immediately and permanently delete the message
> > and any attachments. Thank you
> >
> >
> >
>
>
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>

Attachment:
user_207105.ezm (zipped)Think I understand your problem now. AFAIK Struts doesn't have any
available mechanism to handle these. I can suggest the following
solutions:
1. Create your request body in the way Struts is expecting - name-value
pairs.
2. Extend struts by creating a custom request processor. ( See:
http://onjava.com/pub/a/onjava/2004/11/10/ExtendingStruts.html ). You will
have to identify the first possible hook and call getInputStream to
extract the info and pass it as a request parameter or invoke a custom
action since request.getInputStream cannot be called after the request is
parsed.
3. Put a custom servlet-filter in front of the struts controller to get
the request data and re-pass it as a request parameter to struts.
I prefer the first approach which is the easiest and does no harm.
- Rahul
From:
Arun Kumar Boppudi <arunkumar.boppudi@(protected)>
To:
Struts Users Mailing List <user@(protected)>
Date:
30-07-2010 09:49
Subject:
Re: Reading input stream (xml)
There is no form and I am sending XML content to the action controller
using
Fiddler.
And data sent is not in the format of query string. (not in the format:
paramname=*xml_content*). So, struts may not be mapping it to a property
in
the form bean. In this case, how can I get the posted XML contents?
-- AB
On Thu, Jul 29, 2010 at 5:59 PM, Rahul Mohan <rahul.mohan@(protected):
> Data goes in request body when you are posting a form. Post requests are
> obviously handled by Struts. So it should work. ( Only you know that it
is
> XML, for Struts its just another String. ) Please see your log for any
> exceptions in setting the action form. Also try inspecting your request
> using firebug to see if it is being posted.
>
>
>
> From:
> Arun Kumar Boppudi <arunkumar.boppudi@(protected)>
> To:
> Struts Users Mailing List <user@(protected)>
> Date:
> 29-07-2010 14:58
> Subject:
> Re: Reading input stream (xml)
>
>
>
> I think we should use the query string format to use the string in
action
> form class format. But I am not sending it in the query string format.
And
> I
> am not using multipart encoding. Just sending the XML content in POST
> body.
>
> -- AB
>
>
> On Thu, Jul 29, 2010 at 2:38 PM, Rahul Mohan <rahul.mohan@(protected)>
wrote:
>
> > Arun,
> >
> > Are you doing a POST with multi-part encoding? If so, a solution
> similar
> > to file upload would work for you. If not, then the String in
> action-form
> > approach that I posted earlier should work.
> >
> > - Rahul Mohan
> >
> >
> >
> > From:
> > Arun Kumar Boppudi <arunkumar.boppudi@(protected)>
> > To:
> > Struts Users Mailing List <user@(protected)>
> > Date:
> > 29-07-2010 13:34
> > Subject:
> > Re: Reading input stream (xml)
> >
> >
> >
> > Rahul,
> >
> > I am not sending XML content as part of the query string, only XML
> content
> > will be sent in the request body. As struts framework uses the
> > getParameter
> > to populate data into the form beans before calling the execute
method,
> we
> > cannot use the request.getInputStream.
> >
> >
> >
>
>
http://archives.java.sun.com/cgi-bin/wa?A2=ind0106&L=jsp-interest&F=&S=&P=49196
>
> >
> >
> > -- AB
> >
> >
> > On Thu, Jul 29, 2010 at 11:01 AM, Rahul Mohan <rahul.mohan@(protected)>
> wrote:
> >
> > > Arun,
> > >
> > > You can keep a string property on action form and map it to the xml
> > field
> > > so that the xml content is available here on page submit. In the
> action
> > > class, then you will be able to get the string and parse it using
any
> > > available xml parser. I don't think Struts provides any shortcut for
> > this
> > > requirement.
> > >
> > > - Rahul Mohan
> > >
> > >
> > >
> > > From:
> > > Arun Kumar Boppudi <arunkumar.boppudi@(protected)>
> > > To:
> > > Struts Users Mailing List <user@(protected)>
> > > Date:
> > > 29-07-2010 10:32
> > > Subject:
> > > Re: Reading input stream (xml)
> > >
> > >
> > >
> > > Actually, I am not uploading a file. I am creating XML from the data
> > > entered
> > > into the form and sending it to the action controller in the POST
> > request
> > > body. In the action controller, I would like to parse the XML. How
to
> do
> > > it
> > > in Struts 1.3?
> > >
> > > -- Arun Kumar Boppudi
> > >
> > >
> > > On Thu, Jul 29, 2010 at 10:24 AM, Rahul Mohan <rahul.mohan@(protected)>
> > wrote:
> > >
> > > > Doesn't this link (
> > http://struts.apache.org/2.0.14/docs/file-upload.html
> > > )
> > > > help you?
> > > >
> > > >
> > > >
> > > > From:
> > > > Arun Kumar Boppudi <arunkumar.boppudi@(protected)>
> > > > To:
> > > > Struts Users Mailing List <user@(protected)>
> > > > Date:
> > > > 28-07-2010 22:09
> > > > Subject:
> > > > Reading input stream (xml)
> > > >
> > > >
> > > >
> > > > If we send XML content in the POST/PUT request to Struts action
> > > > controller,
> > > > how to read this content in the Action class?
> > > >
> > > > -- AB
> > > >
> > > >
> > > > =====-----=====-----=====
> > > > Notice: The information contained in this e-mail
> > > > message and/or attachments to it may contain
> > > > confidential or privileged information. If you are
> > > > not the intended recipient, any dissemination, use,
> > > > review, distribution, printing or copying of the
> > > > information contained in this e-mail message
> > > > and/or attachments to it are strictly prohibited. If
> > > > you have received this communication in error,
> > > > please notify us by reply e-mail or telephone and
> > > > immediately and permanently delete the message
> > > > and any attachments. Thank you
> > > >
> > > >
> > > >
> > >
> > >
> > > =====-----=====-----=====
> > > Notice: The information contained in this e-mail
> > > message and/or attachments to it may contain
> > > confidential or privileged information. If you are
> > > not the intended recipient, any dissemination, use,
> > > review, distribution, printing or copying of the
> > > information contained in this e-mail message
> > > and/or attachments to it are strictly prohibited. If
> > > you have received this communication in error,
> > > please notify us by reply e-mail or telephone and
> > > immediately and permanently delete the message
> > > and any attachments. Thank you
> > >
> > >
> > >
> >
> >
> > =====-----=====-----=====
> > Notice: The information contained in this e-mail
> > message and/or attachments to it may contain
> > confidential or privileged information. If you are
> > not the intended recipient, any dissemination, use,
> > review, distribution, printing or copying of the
> > information contained in this e-mail message
> > and/or attachments to it are strictly prohibited. If
> > you have received this communication in error,
> > please notify us by reply e-mail or telephone and
> > immediately and permanently delete the message
> > and any attachments. Thank you
> >
> >
> >
>
>
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you

Attachment:
user_207108.ezm (zipped)Unfortunately, I have to use XML here. So, I cannot use the first
suggestion.
If I use request.getInputStream, subsequent request.getParameter calls will
fail. Will it cause any problems in struts?
I would like to give a try to the third one. But not all the action
controllers gets XML in the request. So, I may have to list down the
controllers which gets the XML content in the request.
-- AB
On Fri, Jul 30, 2010 at 10:41 AM, Rahul Mohan <rahul.mohan@(protected):
> Think I understand your problem now. AFAIK Struts doesn't have any
> available mechanism to handle these. I can suggest the following
> solutions:
> 1. Create your request body in the way Struts is expecting - name-value
> pairs.
>
> 2. Extend struts by creating a custom request processor. ( See:
> http://onjava.com/pub/a/onjava/2004/11/10/ExtendingStruts.html ). You will
> have to identify the first possible hook and call getInputStream to
> extract the info and pass it as a request parameter or invoke a custom
> action since request.getInputStream cannot be called after the request is
> parsed.
>
> 3. Put a custom servlet-filter in front of the struts controller to get
> the request data and re-pass it as a request parameter to struts.
>
> I prefer the first approach which is the easiest and does no harm.
>
> - Rahul
>
>
>
> From:
> Arun Kumar Boppudi <arunkumar.boppudi@(protected)>
> To:
> Struts Users Mailing List <user@(protected)>
> Date:
> 30-07-2010 09:49
> Subject:
> Re: Reading input stream (xml)
>
>
>
> There is no form and I am sending XML content to the action controller
> using
> Fiddler.
>
> And data sent is not in the format of query string. (not in the format:
> paramname=*xml_content*). So, struts may not be mapping it to a property
> in
> the form bean. In this case, how can I get the posted XML contents?
>
>
> -- AB
>
>
> On Thu, Jul 29, 2010 at 5:59 PM, Rahul Mohan <rahul.mohan@(protected):
>
> > Data goes in request body when you are posting a form. Post requests are
> > obviously handled by Struts. So it should work. ( Only you know that it
> is
> > XML, for Struts its just another String. ) Please see your log for any
> > exceptions in setting the action form. Also try inspecting your request
> > using firebug to see if it is being posted.
> >
> >
> >
> > From:
> > Arun Kumar Boppudi <arunkumar.boppudi@(protected)>
> > To:
> > Struts Users Mailing List <user@(protected)>
> > Date:
> > 29-07-2010 14:58
> > Subject:
> > Re: Reading input stream (xml)
> >
> >
> >
> > I think we should use the query string format to use the string in
> action
> > form class format. But I am not sending it in the query string format.
> And
> > I
> > am not using multipart encoding. Just sending the XML content in POST
> > body.
> >
> > -- AB
> >
> >
> > On Thu, Jul 29, 2010 at 2:38 PM, Rahul Mohan <rahul.mohan@(protected)>
> wrote:
> >
> > > Arun,
> > >
> > > Are you doing a POST with multi-part encoding? If so, a solution
> > similar
> > > to file upload would work for you. If not, then the String in
> > action-form
> > > approach that I posted earlier should work.
> > >
> > > - Rahul Mohan
> > >
> > >
> > >
> > > From:
> > > Arun Kumar Boppudi <arunkumar.boppudi@(protected)>
> > > To:
> > > Struts Users Mailing List <user@(protected)>
> > > Date:
> > > 29-07-2010 13:34
> > > Subject:
> > > Re: Reading input stream (xml)
> > >
> > >
> > >
> > > Rahul,
> > >
> > > I am not sending XML content as part of the query string, only XML
> > content
> > > will be sent in the request body. As struts framework uses the
> > > getParameter
> > > to populate data into the form beans before calling the execute
> method,
> > we
> > > cannot use the request.getInputStream.
> > >
> > >
> > >
> >
> >
>
> http://archives.java.sun.com/cgi-bin/wa?A2=ind0106&L=jsp-interest&F=&S=&P=49196
>
> >
> > >
> > >
> > > -- AB
> > >
> > >
> > > On Thu, Jul 29, 2010 at 11:01 AM, Rahul Mohan <rahul.mohan@(protected)>
> > wrote:
> > >
> > > > Arun,
> > > >
> > > > You can keep a string property on action form and map it to the xml
> > > field
> > > > so that the xml content is available here on page submit. In the
> > action
> > > > class, then you will be able to get the string and parse it using
> any
> > > > available xml parser. I don't think Struts provides any shortcut for
> > > this
> > > > requirement.
> > > >
> > > > - Rahul Mohan
> > > >
> > > >
> > > >
> > > > From:
> > > > Arun Kumar Boppudi <arunkumar.boppudi@(protected)>
> > > > To:
> > > > Struts Users Mailing List <user@(protected)>
> > > > Date:
> > > > 29-07-2010 10:32
> > > > Subject:
> > > > Re: Reading input stream (xml)
> > > >
> > > >
> > > >
> > > > Actually, I am not uploading a file. I am creating XML from the data
> > > > entered
> > > > into the form and sending it to the action controller in the POST
> > > request
> > > > body. In the action controller, I would like to parse the XML. How
> to
> > do
> > > > it
> > > > in Struts 1.3?
> > > >
> > > > -- Arun Kumar Boppudi
> > > >
> > > >
> > > > On Thu, Jul 29, 2010 at 10:24 AM, Rahul Mohan <rahul.mohan@(protected)>
> > > wrote:
> > > >
> > > > > Doesn't this link (
> > > http://struts.apache.org/2.0.14/docs/file-upload.html
> > > > )
> > > > > help you?
> > > > >
> > > > >
> > > > >
> > > > > From:
> > > > > Arun Kumar Boppudi <arunkumar.boppudi@(protected)>
> > > > > To:
> > > > > Struts Users Mailing List <user@(protected)>
> > > > > Date:
> > > > > 28-07-2010 22:09
> > > > > Subject:
> > > > > Reading input stream (xml)
> > > > >
> > > > >
> > > > >
> > > > > If we send XML content in the POST/PUT request to Struts action
> > > > > controller,
> > > > > how to read this content in the Action class?
> > > > >
> > > > > -- AB
> > > > >
> > > > >
> > > > > =====-----=====-----=====
> > > > > Notice: The information contained in this e-mail
> > > > > message and/or attachments to it may contain
> > > > > confidential or privileged information. If you are
> > > > > not the intended recipient, any dissemination, use,
> > > > > review, distribution, printing or copying of the
> > > > > information contained in this e-mail message
> > > > > and/or attachments to it are strictly prohibited. If
> > > > > you have received this communication in error,
> > > > > please notify us by reply e-mail or telephone and
> > > > > immediately and permanently delete the message
> > > > > and any attachments. Thank you
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > =====-----=====-----=====
> > > > Notice: The information contained in this e-mail
> > > > message and/or attachments to it may contain
> > > > confidential or privileged information. If you are
> > > > not the intended recipient, any dissemination, use,
> > > > review, distribution, printing or copying of the
> > > > information contained in this e-mail message
> > > > and/or attachments to it are strictly prohibited. If
> > > > you have received this communication in error,
> > > > please notify us by reply e-mail or telephone and
> > > > immediately and permanently delete the message
> > > > and any attachments. Thank you
> > > >
> > > >
> > > >
> > >
> > >
> > > =====-----=====-----=====
> > > Notice: The information contained in this e-mail
> > > message and/or attachments to it may contain
> > > confidential or privileged information. If you are
> > > not the intended recipient, any dissemination, use,
> > > review, distribution, printing or copying of the
> > > information contained in this e-mail message
> > > and/or attachments to it are strictly prohibited. If
> > > you have received this communication in error,
> > > please notify us by reply e-mail or telephone and
> > > immediately and permanently delete the message
> > > and any attachments. Thank you
> > >
> > >
> > >
> >
> >
> > =====-----=====-----=====
> > Notice: The information contained in this e-mail
> > message and/or attachments to it may contain
> > confidential or privileged information. If you are
> > not the intended recipient, any dissemination, use,
> > review, distribution, printing or copying of the
> > information contained in this e-mail message
> > and/or attachments to it are strictly prohibited. If
> > you have received this communication in error,
> > please notify us by reply e-mail or telephone and
> > immediately and permanently delete the message
> > and any attachments. Thank you
> >
> >
> >
>
>
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>

Attachment:
user_207106.ezm (zipped)Good question. Did you get a response, somehow?
Is possible to use attributes from request, session or application in
dynamic URL's?
I'm interested in this.
mikeh96 wrote:
>
> I would like to do something like this:
>
> (e.g. http://foo/view.action?page=help.vm)
>
> <action name="view"
> class="
com.opensymphony.xwork2.ActionSupport">
> <interceptor-ref name="defaultStack" />
> <result
> type="velocity">/templates/screens/#request['page']</result>
> </action>
>
> I know I can do it if I write my own action with setters/getters for the
> parameter .. but I was wondering
> if I can use some ognl syntax or other (e.g.
> $request.getParameter("page"))
>
> thanks
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_207107.ezm (zipped)
Hi,
While deploying the Struts Framework application on Jboss server, I am
getting the error messages.
Here with I am attaching errors.txt file for error messages.
Could any body guide/suggest to resolve my issue.
Thanks,
http://old.nabble.com/file/p29303630/errors.txt errors.txt
--
Sent from the Struts - User mailing list archive at Nabble.com.