Try

<html:link page="RAPSearchDelete.do?id=<%=idvalue%>&check=<%=count%>">
delete   </html:link>

and replace 
<%@ taglib uri="WEB-INF/struts-html.tld" prefix="html" %>

by
<%@ taglib
uri="http://portals.apache.org/bridges/struts/tags-portlet-html";
prefix="html" %>

in your jsp.

Thanks
Susheel

-----Original Message-----
From: Akshay Ahooja [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 30, 2006 11:09 AM
To: Jetspeed Users List
Subject: <a href> --> <html:link href> issues

Hi,

I am using the struts bridge for J2.

I am calling an action by contructing a URL.

As a web app I would call it as so:

<a href="RAPSearchDelete.do?id=<%=idvalue%>&check=<%=count%>">    delete
</a>


However in order for it to work inside J2 I need to replace <a with
<html:link :

<html:link href="RAPSearchDelete.do?id=<%=idvalue%>&check=<%=count%>">
delete   </html:link>


When I use this - the <%=idvalue%> and <%=count%> are not used but
rather
treated as strings. This does not happen in the <a case but only in the
<html:link case.

I tried to seperate it out into java print statements:

                                            <%

                                             String link = " <html:link
href=\"RAPSearchDelete.do?id=" +idvalue+ "&check=" +count+ "\"> ";
                                             String endlink =    "
</html:link>  ";

                                            %>

                                              <%=link%> del <%=endlink%>

The source produced by this comes out correct - but "del" does not
appear as
a link.

How do I get around this?

Any help would be great.

Thanks!

Akshay

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to