Re: Reading input stream (xml)

2010-07-29 Thread Arun Kumar Boppudi
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.

Re: Reading input stream (xml)

2010-07-29 Thread Rahul Mohan
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.bopp...@gmail.com To: Struts Users Mailing

Re: Reading input stream (xml)

2010-07-29 Thread Arun Kumar Boppudi
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

struts2 modeldriven how ot modify the model object?

2010-07-29 Thread roievil
here is an extract of my domain model : public class Survey { private String freq; private String information; private ListObservation observations; } public class Observation { private int abundance; private SpeciesGroup speciesGroup; } my class

Re: Reading input stream (xml)

2010-07-29 Thread Rahul Mohan
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

Struts2-Spring-Hibernate with REST

2010-07-29 Thread Frans Thamura
hi all we just finished our snipet to run the Struts2-Spring-Hibernate with REST http://ugforge.net/gf/project/cimande/scmsvn/?action=browsepath=/branches/rest-struts/ we are working to create a REST based login, and interceptor implementation for security hope we can add JQuery shortly, we

Spring 2.5.6 - 3.0

2010-07-29 Thread Frans Thamura
hi all i try using maven of s2, and find this message 7/29/10 10:29:13 PM WIT: Downloaded http://repo1.maven.org/maven2/net/sf/ezmorph/ezmorph/1.0.3/ezmorph-1.0.3.pom 7/29/10 10:29:17 PM WIT: Downloading

Re: Spring 2.5.6 - 3.0

2010-07-29 Thread Lukasz Lenart
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

Transparently handling a missing image

2010-07-29 Thread java . rgm
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

Re: Transparently handling a missing image

2010-07-29 Thread Wes Wannemacher
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

Mix SpringMVC 3.0 with Struts2

2010-07-29 Thread Frans Thamura
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

OGNL Qurey

2010-07-29 Thread Zoran Avtarovski
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

Re: OGNL Qurey

2010-07-29 Thread Dale Newfield
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

Re: OGNL Qurey

2010-07-29 Thread Dale Newfield
On Thu, Jul 29, 2010 at 10:07 PM, Dale Newfield d...@newfield.org wrote: 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

Re: OGNL Qurey

2010-07-29 Thread Zoran Avtarovski
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

Re: OGNL Qurey

2010-07-29 Thread Dale Newfield
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,

Re: Reading input stream (xml)

2010-07-29 Thread Arun Kumar Boppudi
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

Re: Reading input stream (xml)

2010-07-29 Thread Rahul Mohan
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: