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();
}
}
-
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
>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
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
-- 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
>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
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
7 matches
Mail list logo