You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ben Anderson <st...@hotmail.com> on 2003/06/18 15:52:05 UTC
w/out ??
I have a form with 2 buttons. I know I can handle this ok using the
dispatch property. But, what I'd rather do (so I don't have to put ugly
query strings in my links) is use javascript. What I'm wondering is, if
there's a way to get action -> link resolution that the <html:link/> tag
gives me without the <a href=....
<code file="linker.jsp">
<html>
<head>
<script type="text/javascript">
function clicked(){
var link = <html:link value="action/to/do"/>;
// this won't work since the value in link is actually
<a href="action_to_do.jsp">
window.open( link );
Thanks,
Ben Anderson
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: w/out ??
Posted by Gemes Tibor <ti...@i-trade.hu>.
Ben Anderson írta:
> I have a form with 2 buttons. I know I can handle this ok using the
> dispatch property. But, what I'd rather do (so I don't have to put
> ugly query strings in my links) is use javascript. What I'm wondering
> is, if there's a way to get action -> link resolution that the
> <html:link/> tag gives me without the <a href=....
html:rewrite?
Tib
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: w/out ??
Posted by Sandeep Takhar <sa...@yahoo.com>.
Why not give the buttons a name and submit to a
process action. This action checks the name and
forwards to the appropriate place..
sandeep
--- Ben Anderson <st...@hotmail.com>
wrote:
> I have a form with 2 buttons. I know I can handle
> this ok using the
> dispatch property. But, what I'd rather do (so I
> don't have to put ugly
> query strings in my links) is use javascript. What
> I'm wondering is, if
> there's a way to get action -> link resolution that
> the <html:link/> tag
> gives me without the <a href=....
>
> <code file="linker.jsp">
> <html>
> <head>
> <script type="text/javascript">
> function clicked(){
> var link = <html:link
> value="action/to/do"/>;
> // this won't work since the
> value in link is actually
> <a href="action_to_do.jsp">
> window.open( link );
>
> Thanks,
> Ben Anderson
>
>
_________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months
> FREE*
> http://join.msn.com/?page=features/junkmail
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
>
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: w/out ??
Posted by Mark Lowe <ma...@talk21.com>.
could this do it...?
<script ....
function clicked(path) {
window.open(path,"My Popup","");
}
</script>
<a href="javascript:clicked('<html:rewrite page="/yourAction.do" />')">
On Wednesday, Jun 18, 2003, at 14:52 Europe/London, Ben Anderson wrote:
> I have a form with 2 buttons. I know I can handle this ok using the
> dispatch property. But, what I'd rather do (so I don't have to put
> ugly query strings in my links) is use javascript. What I'm wondering
> is, if there's a way to get action -> link resolution that the
> <html:link/> tag gives me without the <a href=....
>
> <code file="linker.jsp">
> <html>
> <head>
> <script type="text/javascript">
> function clicked(){
> var link = <html:link value="action/to/do"/>;
> // this won't work since the value in link is
> actually <a href="action_to_do.jsp">
> window.open( link );
>
> Thanks,
> Ben Anderson
>
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org