Re: Initializing Actions from Spring

2008-03-31 Thread georgievh
Every thing works perfectly if I do not use annotations but use configuration xml files. My annotation part is as follows: @Result( name=success, value=mainpage.page, type=TilesResult.class) I use the following configuration in an xml file and

s:url escaping + character

2008-03-31 Thread Blanco Emanuele
Hello there, I've got a s:url parameter, rendered by s:param tag, that needs to be escaped of + character, because I can't get my action to work properly (I receive a space character instead of that + character). I guess I need to escape that character using HTML escape codes, but I don't

Re: s:url escaping + character

2008-03-31 Thread Jeromy Evans
Did the recent release of struts 2.0.11.1 fix this? http://struts.apache.org/2.0.11.1/docs/release-notes-20111.html See the JIRA details. Blanco Emanuele wrote: Hello there, I've got a s:url parameter, rendered by s:param tag, that needs to be escaped of + character, because I can't get my

struts-dojo-plugin-2.1.0 and googlemaps-tags

2008-03-31 Thread aj2r
I'm trying to use googlemaps-tags http://www.lamatek.com/GoogleMaps/ with struts-dojo, but when I load in a div the action that returns googlemaps jsp, googlemaps-javascript is missing and obviously it doesn't work. If I call the action directly from navigator all is ok. I've try to use

Re: Client Side Validation with Struts

2008-03-31 Thread Lukasz Lenart
Hello. I am using Struts 1.3.8. The issue is not one of making the Javascript work (it is working correctly), but rather preventing a Struts action from being called. Is this possible given that the action of a form is a Struts action? I'm not sure if I understand you, but all you have to

Ant based Struts2 application

2008-03-31 Thread HHB
Hi. Struts2 prefers Maven as the building tool, do know any on line sample Struts2 application that uses Ant instead of Maven? I can write one by hand but I'm looking for Ant script that is production aware. Thanks. -- View this message in context:

Re: Validation

2008-03-31 Thread ravi_eze
hey! you can use theme=simple. This would generate the tags as a simple text box etc with out any trs and tds around. positioning the errors: s:fielderror s:paramfieldname/s:param /s:fielderror would display the erriors related to fieldname only. I think u can do the similar way with

Re: s2: Including Freemarker templates from JSP

2008-03-31 Thread hernan gonzalez
Thanks. It is indeed almost sufficient. The docs had led to me think the params were the only way to pass parameters to the template, but in fact it works as it should without any parameters, seeking the values in the value stack. That's fine. The only inconvenience is the rigid scheme for

Re: s2: Including Freemarker templates from JSP

2008-03-31 Thread hernan gonzalez
Thanks. It is indeed almost sufficient. The docs had led to me think the params were the only way to pass parameters to the template, but in fact it works as it should without any parameters, seeking the values in the value stack. That's fine. The only inconvenience is the rigid scheme for

Validator: validatorResult memory issue

2008-03-31 Thread Martin Choma
Hi everybody, We wonder if it is possible to safely null validatorResult in ValidatorForm after succesfull validation. It could bring our application big memory effort as all our form are session scope. And validatorResult for some pages have 40K!!. As we found this structure is already nulled in

testing file uploads

2008-03-31 Thread Adam Hardy
I need to test an action that is getting uploaded files and piping them straight into Strings. I don't want to save actual files on server, so I'll get the multipart request wrapper directly. MultiPartRequestWrapper multiWrapper = (MultiPartRequestWrapper) ServletActionContext.getRequest()

ajax layout - how to place 2 submit buttons one after the other?

2008-03-31 Thread xianwinwin
Hi guys, I've been strugling with this one for a while: How is it possible to place 2 (or more) buttons one after the other? Currently, my buttons looks like this: [update] [test] and I wish to have:[update] [test] my jsp code: s:submit action=email_updateEmail value=%{'update'}

Re: testing file uploads

2008-03-31 Thread Dave Newton
--- Adam Hardy [EMAIL PROTECTED] wrote: I need to test an action that is getting uploaded files and piping them straight into Strings. I don't want to save actual files on server, so I'll get the multipart request wrapper directly. What, specifically, are you trying to test? I ask because

Re: ajax layout - how to place 2 submit buttons one after the other?

2008-03-31 Thread Dave Newton
--- xianwinwin [EMAIL PROTECTED] wrote: I've been strugling with this one for a while: How is it possible to place 2 (or more) buttons one after the other? Currently, my buttons looks like this: [update] [test] and I wish to have:[update] [test] There are at least three

RE: ajax layout - how to place 2 submit buttons one after the other?

2008-03-31 Thread Lalchandra Rampersad
Check to see if your column is wide enough to hold 2 buttons side by side -Original Message- From: xianwinwin [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2008 10:41 AM To: user@struts.apache.org Subject: ajax layout - how to place 2 submit buttons one after the other? Hi guys,

Re: ajax layout - how to place 2 submit buttons one after the other?

2008-03-31 Thread Roger Varley
There are at least three choices: (1) Do something via CSS (inline or something) (2) Modify the existing Ajax theme (3) Create a new theme I know I'm probably going to be shot down in flames for this, but why do the Struts 2 tags attempt to control any sort of layout? Why is there not a

Mapped Properties Woes

2008-03-31 Thread Tom Holmes Jr.
based on my previous message I want to have multiple-selects named off of a hashmap. I have found and read all the documentation of Mapped Properties I could find under Google. I know my form bean is 100% correct based on the documentation, so that is a not a worry there. I have a: HashMap

Re: Compile error in JSP after upgrading from servlet specification 2.3 to 2.4

2008-03-31 Thread Ashish Kulkarni
Hi That is all i did, upgraded web.xml to servlet specification 2.4 and tried start the project, i get following jsp compile error The code at line 125 is c:if test=${loginForm.map.singlesignon == '1'} and the error i get is org.apache.jasper.JasperException: /pages/index.jsp(125,15) According

Re: ajax layout - how to place 2 submit buttons one after the other?

2008-03-31 Thread Dave Newton
--- Roger Varley [EMAIL PROTECTED] wrote: There are at least three choices: (1) Do something via CSS (inline or something) (2) Modify the existing Ajax theme (3) Create a new theme I know I'm probably going to be shot down in flames for this, but why do the Struts 2 tags attempt to

Re: testing file uploads

2008-03-31 Thread Adam Hardy
Dave Newton on 31/03/08 18:42, wrote: --- Adam Hardy [EMAIL PROTECTED] wrote: I need to test an action that is getting uploaded files and piping them straight into Strings. I don't want to save actual files on server, so I'll get the multipart request wrapper directly. What, specifically,

[S2] Logging Issues

2008-03-31 Thread Kelly.Graus
Hello, I am writing an application using Struts (2.0.11), Spring (2.5.1), and Hibernate (3.2.6), running on Tomcat (6.0.13). We have a legacy webapp running on Tomcat that outputs some important information to the default Tomcat logs. We aren't really in a position to change that application,

Re: testing file uploads

2008-03-31 Thread Adam Hardy
Didn't see that. I might use it. But I don't actually know quite what the MultipartRequestHandler does, so I'm not sure how to mock it :) I figured the ServletUnit framework would teach me. Martin Gainty on 31/03/08 20:55, wrote: Have you looked at using Mock classes of

Re: testing file uploads

2008-03-31 Thread Dave Newton
--- Adam Hardy [EMAIL PROTECTED] wrote: Dave Newton on 31/03/08 18:42, wrote: What, specifically, are you trying to test? The action has to get strings out of the request, work out which file they are from and call the appropriate managers, with the corresponding string as a request.

Re: Ant based Struts2 application

2008-03-31 Thread Frans Thamura
we here, use ant.. please try it www.sf.net/projects/cimande we use S2, Spring and Hibernte as the core framework. F On Mon, Mar 31, 2008 at 9:37 PM, HHB [EMAIL PROTECTED] wrote: Hi. Struts2 prefers Maven as the building tool, do know any on line sample Struts2 application that uses Ant

Re: Initializing Actions from Spring

2008-03-31 Thread Laurie Harper
Your action mapping has class=mainpage, but your Spring configuration has id=mainpageAction. These should be the same. I'm not quite sure how you're getting the error you are, though, based on that configuration. And I don't see how introducing an @Result annotation would effect it. I suspect

Re: Mapped Properties Woes

2008-03-31 Thread Laurie Harper
Tom Holmes Jr. wrote: based on my previous message I want to have multiple-selects named off of a hashmap. I have found and read all the documentation of Mapped Properties I could find under Google. I know my form bean is 100% correct based on the documentation, so that is a not a worry there.

Re: Mapped Properties Woes

2008-03-31 Thread Tom Holmes Jr.
Laurie Harper wrote: Tom Holmes Jr. wrote: based on my previous message I want to have multiple-selects named off of a hashmap. I have found and read all the documentation of Mapped Properties I could find under Google. I know my form bean is 100% correct based on the documentation, so that

S2 with JSON RPC

2008-03-31 Thread Frans Thamura
hi there anyone have an example that work based on JSON RPC i am looking a response mechanism that run well here for POJO to JSON, i did it, using json plugins. F

Re: testing file uploads

2008-03-31 Thread Adam Hardy
Dave Newton on 31/03/08 22:00, wrote: --- Adam Hardy [EMAIL PROTECTED] wrote: Dave Newton on 31/03/08 18:42, wrote: What, specifically, are you trying to test? The action has to get strings out of the request, work out which file they are from and call the appropriate managers, with the

Re: testing file uploads

2008-03-31 Thread Dave Newton
--- Adam Hardy [EMAIL PROTECTED] wrote: I see the multipart http request as a weak point in the servlet spec. Or the http spec. But I want to test it for my own piece of mind, and when I have the test finished, I guess I can work out if it's really necessary. You want to test multipart HTTP

Re: testing file uploads

2008-03-31 Thread Adam Hardy
Just remembered struts2 isn't a servlet. I just wanted a quick and easy way of giving my action a real multipart request wrapper to run against. So tomorrow I guess I'll have to check out the MockMultipartRequestWrapper. Thanks Adam Martin Gainty on 31/03/08 20:55, wrote: Have you looked at

using javascript with struts2 tags.

2008-03-31 Thread Varun Deep
Hi. I am using Struts2. In this I am facing the problem in using the JavaScript with the Struts2 tags. If some has the solution for that please help me. Looking forward for help Varun