PDA

View Full Version : Spring HTML tag generate URL?


moseph
Mar 17th, 2006, 10:20 PM
Hi, I'm new to Spring.

Is there a Spring tag to generate URLs that are mapped in the XXX-servlet.xml config file? Something equivalent to Struts' <html:link action="/actionName"/>???

Can anyone recommend a good online resource for Spring's HTML tags? the documentation seems to be lacking...

Thanks!

katentim
Mar 19th, 2006, 05:22 PM
Can anyone recommend a good online resource for Spring's HTML tags?
http://static.springframework.org/spring/docs/2.0-m3/taglib/

43df
Nov 7th, 2006, 10:11 AM
Hi, I'm new to Spring.
Something equivalent to Struts' <html:link action="/actionName"/>
Thanks!

Hi,
I am also new to Spring, and experienced in Struts and I am searching also for this equivalent. Did you find out something about it, moseph?

Thanks, 43df

43df
Nov 7th, 2006, 10:23 AM
Hi,

the use of c:url seems to be the right way to do it in Spring:
<c:url var="thisURL" value="homer.jsp">
<c:param name="iq" value="${homer.iq}"/>
<c:param name="checkAgainst" value="marge simpson"/>
</c:url>
<a href="<c:out value="${thisURL}"/>">Next</a>

from: http://www.sitepoint.com/article/java-standard-tag-library/3
see also: http://www.onjava.com/pub/a/pub/a/onjava/2002/05/08/jstl.html?page=2

Greetings, 43df

43df
Nov 7th, 2006, 10:26 AM
Or simple: <a href="<c:url value="${cmMessage.okAction}"/>">OK</a>