You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Oleg V Alexeev <go...@penza.net> on 2000/12/04 22:10:02 UTC

question about new behavior of link tag...

Hello friends,

 Now of three parameters - href, page or forward must be defined in
 link tag. I suggest some addition to this behavior - treate link
 without any of listed above parameters as link to the current page.
 How are you about it?

-- 
Best regards,
 Oleg                          mailto:gonza@penza.net



Re[2]: question about new behavior of link tag...

Posted by Oleg V Alexeev <go...@penza.net>.
Hello Jim,

I think it needs to be additional parameter to link tag. Specify
target of the link in page.
But I speak about 'true' link, such as:

 <a href="somepage.jsp">

When it's needed to make link from page to itself there is exists one
good way now - to retrieve URI by .getRequestURI() and use this string
by the way:

 <form:link href="<%= URI %>">

But this can resolved with more elegance - link tag must write current
page as href if href parameter not specified.

Tuesday, December 12, 2000, 2:57:38 AM, you wrote:

JR> Oleg V Alexeev wrote:
>>  Now of three parameters - href, page or forward must be defined in
>>  link tag. I suggest some addition to this behavior - treate link
>>  without any of listed above parameters as link to the current page.
>>  How are you about it?

JR> It needs to have a name, as in

JR>         <a href="index.html#section1">

JR> links to

JR>         <a name="section1">



-- 
Best regards,
 Oleg                            mailto:gonza@penza.net



Re: question about new behavior of link tag...

Posted by Jim Richards <gr...@cyber4.org>.

Oleg V Alexeev wrote:
>  Now of three parameters - href, page or forward must be defined in
>  link tag. I suggest some addition to this behavior - treate link
>  without any of listed above parameters as link to the current page.
>  How are you about it?

It needs to have a name, as in

	<a href="index.html#section1">

links to

	<a name="section1">