You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dave Newton <ne...@yahoo.com> on 2007/11/27 22:56:05 UTC
[OT] Re: Problem opening a file in Mozilla using window.open()
You might want to try asking on a forum focused on
browser issues.
d.
--- Varun Ratra <vr...@symcor.com> wrote:
>
> Hello,
>
> I hope someone can help me on this.
> I am using Struts version 2.0.9 in my project.
> Using struts tags in JSP I am trying to open a doc
> from a file system. The
> tag is as follows:
>
> <s:a href="%{onlineManualUrl}">
> ${pageContext.request.contextPath}/<s:text
> name= /<s:text name="images.online.manual"/>"
>
onclick='window.open("file://c:/RightFax.doc")'/></s:a>
>
> where,
> RightFax.doc is a file outside the web application
> contained in my local
> c:drive(just for testing puposes).
>
> When I run the JSP with the above-mentioned struts
> tag in Interner Explorer,
> the application successfully opens the word document
> from my local c: drive.
> But,
> When I do the same in Mozilla Firefox, the
> application seems to just bypass
> the onclick() event in the JSP and does NOT open the
> word document from my
> local c: drive.
>
> I would really appreciate if someone can help me
> resolve this problem I am
> having to open a document using Firefox.
>
> --
> View this message in context:
>
http://www.nabble.com/Problem-opening-a-file-in-Mozilla-using-window.open%28%29-tf4884494.html#a13980090
> Sent from the Struts - User mailing list archive at
> Nabble.com.
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: dynamic form action
Posted by Paul Benedict <pb...@apache.org>.
Kate,
You can embed forms but they must not be dynamic. I do this myself with
good success.
Paul
Kate Fox wrote:
> I have a lot of pages that have the same form fields included on them.
> I would like this to be very simple and for it to be simple to add more
> pages like this.
>
> I was thinking that I could have the form be embedded in the super class
> that all the pages implement, but I get an exception when I try to put
> in a dynamic value for the form action:
>
> "According to TLD or attribute directive in tag file, attribute action
> does not accept any expressions"
>
> Is there a better way to do what I want to accomplish?
>
> Thanks,
>
> Kate
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
dynamic form action
Posted by Kate Fox <ka...@fraudwall.net>.
I have a lot of pages that have the same form fields included on them.
I would like this to be very simple and for it to be simple to add more
pages like this.
I was thinking that I could have the form be embedded in the super class
that all the pages implement, but I get an exception when I try to put
in a dynamic value for the form action:
"According to TLD or attribute directive in tag file, attribute action
does not accept any expressions"
Is there a better way to do what I want to accomplish?
Thanks,
Kate
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org