Re: Struts 2, file tag, accept attribute not working?

2007-12-13 Thread Amit Rana
t working? you can hook the submit event to JS function and then test the content type before submitting function doSubmit() { if("%{uploadContentType}%"=="'text/xml'") { document.form.action="WhateverAction"; document.form.submit(); } } -

Re: Struts 2, file tag, accept attribute not working?

2007-12-12 Thread Amit Rana
Hi Anton, Were you able to finally get it to work? I am using 2.0.9 and accept just doens't seem to be doing anything. Regards, Amit. >Re: Struts 2, file tag, accept attribute not working? > >Anton Pussep >Sat, 03 Nov 2007 10:09:23 -0800 > >Modifying FileUploadInterceptor or settings its param

Re: [struts] action and method separator using something other than action!method

2007-11-16 Thread Amit Rana
>From: Omkar patil >Amit, > >I am not sure if there is any easy way to achieve this. Is there any >specific reason you would like achieve this? One way could be provide >your own action mapper class by extending DefaultActionMapper and >overriding getUriFromActionMapping method to provide your own

action and method separator using something other than action!method

2007-11-15 Thread Amit Rana
Hi, I have a url for login This generates a url like http://localhost:8080/myapp/login!input.action Is there a way to tell s:url to use _ or / as separator and not ! Thanks, Amit. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Problem with Tiles decoration and struts2

2007-11-07 Thread Amit Rana
-- Raghuveer Rawat wrote -- >Amit, >looks like problem is with your struts.xml. You have set Tiles Result but >your result is jsp page. I think you need to change it to tile definition. Hi, Thanks for the response. Thats not my problem. I do not need TilesDecorationFilter for tha

Re: Problem with Tiles decoration and struts2

2007-11-07 Thread Amit Rana
>I suppose that it is a Tiles issue. >I must admit that the code inside the TilesDecorationFilter does not >convince me... Amit, can you repost this question to the Tiles Users Mailing >list? I think that it is a Tiles bug. >http://tiles.apache.org/mail.html >Thanks >Antonio Hi, Thanks, I have po

Problem with Tiles decoration and struts2

2007-11-06 Thread Amit Rana
Hi, I am trying to get TilesDecorationFilter (http://tiles.apache.org/tutorial/advanced/utils.html) to work with struts2.0.9 without any success. Can anyone please help me figure out where am I going wrong? I am not sure if this is a tiles list question or struts? Tiles is decorating jsps but n