Dispatch does not work ( Struts2 + tile)

2009-12-23 Thread Emi Lu
Hello all, I am using struts2.1.8.1 & tiles2.0.7. The following doc says that dispatch will work, but when I setup: http://www.vaannila.com/struts-2/struts-2-example/dispatchAction-in-struts-2-example-1.html My page goes to the correct URL, but the action class "ProcessTest" is not called at a

Re: best practices in struts 2.1 - Tiles and Convention - clean URLs with minimum number of actions

2009-12-23 Thread Paweł Wielgus
Hi Chuck, i'm also addicted to convention and i do it like that: /register!input (i don't remember well if it is ! or some other character but that is possible for sure) If one call such an address his browser will land on input result with no validation being fired. Also if You want to depent on r

Re: Struts 1.2.x and File I/O

2009-12-23 Thread vineith kaul
Related to this file upload thing , I am using the struts2 file upload.I know struts2 file-upload deletes the uploaded temp file.From a security stand point, do we still need to validate the input file (for bad input) or the fact that it got deleted should take of everything? Thanks! Kaul On Wed,

Re: Struts 1.2.x and File I/O

2009-12-23 Thread Dan Vargas
Ok, that's what I had figured, thanks. 2009/12/23 Paweł Wielgus > Hi Dan, > struts see only files on server, > so if You want to do something with a local file You have to upload it > to the server. > Also it's not struts related, all HTTP based solutions behave that way. > > Best greetings, > P

Re: Struts 1.2.x and File I/O

2009-12-23 Thread Paweł Wielgus
Hi Dan, struts see only files on server, so if You want to do something with a local file You have to upload it to the server. Also it's not struts related, all HTTP based solutions behave that way. Best greetings, Pawel Wielgus 2009/12/23, davargas123 : > > Is it necessary to upload a file to th

Struts 1.2.x and File I/O

2009-12-23 Thread davargas123
Is it necessary to upload a file to the server to process it in Struts, or does it have access to the local file system? I was getting errors in my code when it was attempting to use the file from my local machine, but if I upload it to the server first and use the file from the server, it works o

Re: [S2] can't use ENUM type

2009-12-23 Thread mailtolouis2020-struts
Hi, Thanks,my getComboBox accepting ComboBoxType, and I use @package.path.comboboxt...@sex is working fine now. Regards LV From: Steven Yang To: Struts Users Mailing List Sent: Wed, December 23, 2009 1:26:48 AM Subject: Re: [S2] can't use ENUM type what do

Re: UI Component - ${parameters.paramName} not working

2009-12-23 Thread Wes Wannemacher
On Wed, Dec 23, 2009 at 4:56 AM, Vitor E. Silva Souza wrote: > Hello all, > > I'm creating a UI Component with Struts 2.1.8.1. The FreeMarker variable > parameters seems to be made available as String and not as Hash as I expected > (and according to [1]). > > [1] = http://www.vitarara.org/cms/str

Re: if tag with #parameters

2009-12-23 Thread Wes Wannemacher
I have used a similar construct quite a bit, but normally, I refer to parameters like this - view not view In cases like this, I just want to affect the way a view is rendered. So, leaving the getter/setter off of the action is the way to go. -Wes On Tue, Dec 22, 2009 at 6:05 AM, foo bar w

Re: UI Component - ${parameters.paramName} not working

2009-12-23 Thread Gabriel Belingueres
I have no useful thing to say about your particular problem with this s:component tag, but if you are rendering JSP pages, then you may well find it more compelling to create a custom tag file, hence avoiding the Freemarker scripts. 2009/12/23 Vitor E. Silva Souza : > Hello all, > > I'm creating a

UI Component - ${parameters.paramName} not working

2009-12-23 Thread Vitor E. Silva Souza
Hello all, I'm creating a UI Component with Struts 2.1.8.1. The FreeMarker variable parameters seems to be made available as String and not as Hash as I expected (and according to [1]). [1] = http://www.vitarara.org/cms/struts_2_cookbook/creating_a_ui_component In the web page, I have somethin