You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vijay Kumar <ka...@optis.cc> on 2005/02/17 07:46:54 UTC
You must specify exactly one of "forward", "href", or "page"
Hai
I am new to struts I am using <html:link> to call a java script and
<html:img src ./>for displaying the images
But it's giving an error javax.servlet.jsp.JspException: Cannot create
rewrite URL: java.net.MalformedURL
Exception: You must specify exactly one of "forward", "href", or "page"
Can any one have the solution for this
Bye
vijay
Re: You must specify exactly one of "forward", "href", or "page"
Posted by "senthilc@terasoftlabs.com" <se...@terasoftlabs.com>.
Check your relative path of image file give image fiel alone
Webappa name wil be appended automatically by struts
regards
Senthil
Vijay Kumar wrote:
>Hai
> I am new to struts I am using <html:link> to call a java script and
><html:img src ./>for displaying the images
>But it's giving an error javax.servlet.jsp.JspException: Cannot create
>rewrite URL: java.net.MalformedURL
>Exception: You must specify exactly one of "forward", "href", or "page"
>Can any one have the solution for this
>Bye
>vijay
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: You must specify exactly one of "forward", "href", or "page"
Posted by Jeff Beal <jb...@webmedx.com>.
The <html:link/> tag is designed to simplify the sometimes tedious work
of creating URL's. Among other things, it will do URL-rewriting when
necessary to append the SESSIONID to the URL if cookies are not being
used. It also has convenience methods through the forward and page
attributes to link to a Struts element (like a global forward) by name
instead of by path. If all that you want a link to do is execute a
JavaScript, none of this is necessary or useful. Why use the tag?
-- Jeff
Vijay Kumar wrote:
> Hai
> Thx for ur answer can u tell me why we have to use old plain html
> Bye
> vijay
> -----Original Message-----
> From: news [mailto:news@sea.gmane.org] On Behalf Of Jeff Beal
> Sent: Thursday, February 17, 2005 8:04 PM
> To: user@struts.apache.org
> Subject: Re: You must specify exactly one of "forward", "href", or
> "page"
>
> Don't use <html:link/> to execute a JavaScript. Just use plain old
> HTML.
>
> -- Jeff
>
> Vijay Kumar wrote:
>
>>Hai
>> I am new to struts I am using <html:link> to call a java script and
>><html:img src ./>for displaying the images
>>But it's giving an error javax.servlet.jsp.JspException: Cannot create
>>rewrite URL: java.net.MalformedURL
>>Exception: You must specify exactly one of "forward", "href", or
>
> "page"
>
>>Can any one have the solution for this
>>Bye
>>vijay
>>
>
>
>
> ---------------------------------------------------------------------
> 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: You must specify exactly one of "forward", "href", or "page"
Posted by Vijay Kumar <ka...@optis.cc>.
Hai
Thx for ur answer can u tell me why we have to use old plain html
Bye
vijay
-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Jeff Beal
Sent: Thursday, February 17, 2005 8:04 PM
To: user@struts.apache.org
Subject: Re: You must specify exactly one of "forward", "href", or
"page"
Don't use <html:link/> to execute a JavaScript. Just use plain old
HTML.
-- Jeff
Vijay Kumar wrote:
> Hai
> I am new to struts I am using <html:link> to call a java script and
> <html:img src ./>for displaying the images
> But it's giving an error javax.servlet.jsp.JspException: Cannot create
> rewrite URL: java.net.MalformedURL
> Exception: You must specify exactly one of "forward", "href", or
"page"
> Can any one have the solution for this
> Bye
> vijay
>
---------------------------------------------------------------------
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: You must specify exactly one of "forward", "href", or "page"
Posted by Jeff Beal <jb...@webmedx.com>.
Don't use <html:link/> to execute a JavaScript. Just use plain old HTML.
-- Jeff
Vijay Kumar wrote:
> Hai
> I am new to struts I am using <html:link> to call a java script and
> <html:img src ./>for displaying the images
> But it's giving an error javax.servlet.jsp.JspException: Cannot create
> rewrite URL: java.net.MalformedURL
> Exception: You must specify exactly one of "forward", "href", or "page"
> Can any one have the solution for this
> Bye
> vijay
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org