Re: Help on

2008-03-31 Thread Antonio Petrelli
Please Chen, the next time you post a question, say that you are using Struts 1.1 *always*. See the answers below. 2008/4/1, Chen Chunwei <[EMAIL PROTECTED]>: > > I think this is the problem: specify a value for "minCount" and "maxCount". And remember to close the connection once you used

Re: Help on

2008-03-31 Thread Chen Chunwei
I'm using struts 1.1 - Original Message - From: "Vinny" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, April 01, 2008 2:52 PM Subject: Re: Help on What version of struts? Data-source got deprecated at some point. I forget the version. On 4/1/08, Chen Chunwei <[E

Re: Help on

2008-03-31 Thread Vinny
What version of struts? Data-source got deprecated at some point. I forget the version. On 4/1/08, Chen Chunwei <[EMAIL PROTECTED]> wrote: > Hi all, > > I've configured a data source at struts-config.xml. This data source use > oracle thin jdbc driver. And I've already included the ojdbc.jar. Al

Help on

2008-03-31 Thread Chen Chunwei
Hi all, I've configured a data source at struts-config.xml. This data source use oracle thin jdbc driver. And I've already included the ojdbc.jar. Also, the oracle database I'm trying to connect is OK. But I just can't make the data source get the connection. It always throws a SQLException: Ti

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

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 u

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 HT

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 corr

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: 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

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: 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 suspe

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

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 reque

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 MockHttpServletRequest()

[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, s

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,

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 tag

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 and the error i get is org.apache.jasper.JasperException: /pages/index.jsp(125,15) According to TLD or attribute directive in tag file, attr

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 ma

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 n

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 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 t

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 becaus

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: -- View this message in context:

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()

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

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 spe

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 spe

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: fieldname would display the erriors related to fieldname only. I think u can do the similar way with action errors and actino messages. Give a t

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: http://www.nabble.com/Ant-based-Struts2-applica

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

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 executeScr

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 parameter, rendered by tag, that needs to be escaped of "+" character, because I can't get my action to w

s:url escaping "+" character

2008-03-31 Thread Blanco Emanuele
Hello there, I've got a parameter, rendered by 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 know if Stru

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 an