struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saul Qunming Yuan" <>
Subject Re: why my page can't redirect under Struts with Javascript?
Date Mon, 20 Feb 2006 03:12:50 GMT
For the following:


You'll need to prefix "/" with your web context. Or you can use: 
<html:rewrite page='/' /> in place of / above.

hope it helps.

----- Original Message ----- 
From: "red phoenix" <>
To: <>
Sent: Sunday, February 19, 2006 6:48 PM
Subject: why my page can't redirect under Struts with Javascript?

I use Javascript in Struts,like follows:

<script language="JavaScript">
function goURL(tmp){

<html:form method="post" action="">
<html:link page="/">First Page</html:link>
<html:select property="pageID" size="1" onchange="javascript:goURL(
<option value="0">First</option>
<option value="1">Second</option>
<option value="2">Third</option>

when click "First Page",I can redirect my page to page,but when I
change the value of select,and call goURL,I find my page don't redirect to
the page,why? I am puzzled with it! Anybody can tell me how to
redirect my page with Javascript under Struts?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message