[s2] Multiple file upload using arrays

2009-07-30 Thread Nate Drake
I have a question about multiple file uploads using arrays[1]. Say I have 4 text fields with a file input field related to each one on a JSP like this: input type=text name=attrVal/ s:file label=File (1) name=attrImg / input type=text name=attrVal/ s:file label=File (2) name=attrImg /

[S2] NPE trying to get HttpServletRequest in 2.0.8

2007-06-13 Thread Nate Drake
Hi, I'm attempting to update to 2.0.8, and I've run into a strange issue. In our custom interceptors, we attempt to get the HttpServletRequest like so: HttpServletRequest request = ServletActionContext.getRequest(); This is returning null in 2.0.8 (although it works fine 2.0.7. When we change

Re: [S2] Problem with ! notation

2007-05-22 Thread Nate Drake
Roger Varley roger.varley at googlemail.com writes: Is dynamic method invocation turned on? As an aside, why is dynamic method invocation turned off by default. From experience this suggests that either the functionality is experimental, or is not the sort of thing you should be using

Re: [S2] s:select tag pre-selected options

2007-05-11 Thread Nate Drake
http://struts.apache.org/2.x/docs/select.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [s2] Extending struts.xml

2007-04-25 Thread Nate Drake
What are the errors you are seeing? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts2 select tag multiple select

2007-04-17 Thread Nate Drake
What version of Struts2 are you using? There is a bug in versions before 2.0.7, where the select tag won't pre-select your values unless it is comparing Strings. See this Jira issue for details: https://issues.apache.org/struts/browse/WW-1711

Re: How to session attributes Struts 2.0.6

2007-03-16 Thread Nate Drake
Can't help you out with that problem, as I haven't played with the Portlet stuff. Sorry. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: TAbbedPanel and CSS

2007-03-16 Thread Nate Drake
Awesome! I didn't realize that. Thanks. Musachy Barroso musachy at gmail.com writes: You can use the templateCssPath property to point to your css. musachy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: TAbbedPanel and CSS

2007-03-16 Thread Nate Drake
Felipe Rodrigues feliperod777 at yahoo.com.br writes: Hi, Does anyone knows how to change the default .css for TabbedPanel without change that inside the jar? I need change the colors of Labe and the image of the tab. regards, Felipe I was able to do this, but it is kinda ugly. We

Re: How to session attributes Struts 2.0.6

2007-03-15 Thread Nate Drake
Have your action implement SessionAware, and give it a setter of the form: public void setSession(Map session); You can then add things to this map, and they will be added into the session. Then you can access them in your JSP like this: s:property value=#session\['NAME'\]/ See these pages

Re: [S2] at Result annotation not working

2007-02-08 Thread Nate Drake
The @Result annotation should be at the class level, not the method level. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts 2 Action Mapping - Redirect

2007-02-07 Thread Nate Drake
The NPE in ServletRedirectResult is a bug. It has been fixed in 2.0.5 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts 2 Action Mapping - Redirect

2007-02-05 Thread Nate Drake
Try using the redirect-action result type. http://struts.apache.org/2.x/docs/redirect-action-result.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [s2] codebehind/zero configuration and redirect

2007-02-02 Thread Nate Drake
Ron Chan rchan at i-tao.com writes: i've put together a simple app to test the combination of codebehind/zero configuration and it seems to work quite well is there a way to use the redirect result without having to revert to putting in something in struts.xml? thanks Ron Try an

Re: [s2] Issue with custom ResourceBundle using Struts 2.0.2/XWork2 RC1

2007-01-09 Thread Nate Drake
Found out the problem. I had struts.devMode=true in my configuration. This causes resource bundles to be reloaded with each request. Turning devMode off makes thing work correctly. - To unsubscribe, e-mail: [EMAIL

Re: [s2] Issue with custom ResourceBundle using Struts 2.0.2/XWork2 RC1

2007-01-08 Thread Nate Drake
I've created two test WARs based on the struts2-blank WAR that demonstrate the issue. struts-blank-201.war uses Struts 2.0.1, and struts-blank-203.war uses code from subversion as of ~9AM EST this morning. The changes to each include the following: o A custom ResourceBundle (TestBundle) o

[s2] Issue with custom ResourceBundle using Struts 2.0.2/XWork2 RC1

2007-01-05 Thread Nate Drake
I originally posted this question on the new XWork user forums [1], but it doesn't seem to be frequented very much. I apologize in advance if this is bad form. We've created a custom ResourceBundle subclass that gets messages from a database for our Struts2 application. When using Struts 2.0.1

Re: [S2] how to specify ActionMapper -- Restful2ActionMapper

2007-01-05 Thread Nate Drake
Eric Rank ericrank at lo-fi.net writes: 2. In the struts-default.xml file that ships with Struts2, there's a line, which names the class to restful2: bean type=org.apache.struts2.dispatcher.mapper.ActionMapper name=restful2

[s2] Zero configuration and interceptors

2006-12-20 Thread Nate Drake
Hi, I was playing around with the zero configuration stuff in Struts 2.0.2, but I didn't see any way to specify what interceptors (or stacks) that an action should use. Are there plans to add support for this in the future? Thanks! Nate

[s2] Message resources from database

2006-11-17 Thread Nate Drake
Hi, We're in the process of migrating a Struts1 app to Struts2. In Struts1 we created a subclass of PropertyMessageResources to get our messages from the database instead of properties files. I can't seem to find how we'd go about doing this in Struts2. Do I just subclass