Rahul,
   Try this:
<%
        String url = "CategoryMaint.jsp + "?categoryName=" +
Categories[i][0] +
                "&categoryId=" + Categories[i][1]
%>
        <A href="<%= url %>"> <%= Categories[i][0] %> </A>

This assumes that the above lines are inside a loop so that i is incremented
appropriately.

Inside your CategoryMaint.jsp file, you can get the values of the
categoryName and categoryId query parameters by using getParameter(...) or
getParameterValues(...).

If you just care about the categoryId and not the name, you can omit
categoryName from the url.

-Richard

-----Original Message-----
From: Rahul Naithani [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 02, 2000 5:28 AM
To: [EMAIL PROTECTED]
Subject: href question (Urgent)


Hi friends,
The problem in life is that if I have an href like this:

<A href=  "CategoryMaint.jsp" %> <%= Categories[i][0] %> </A>

Then in CategoryMaint.jsp, how can I get to know the id of Category clicked
on? Assuming the Category Name is stored in Categories[i][0] and category id
is stored in Categories[i][1].

I Don't want to :
1) Use Client side scripting.
2) Use QueryString because it displays the users the value of category id.

Please help.
Regards,
Rahul.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to