out.println("<a href = 'CategoryMaint.jsp?cat=" + Categories[i][0] +
"&catid=" + Categories[i][1] + "'>" + Categories[i][0] + "</a>");

or:

<a href = 'CategoryMaint.jsp?cat=<%= Categories[i][0]%>&catid=<%=
Categories[i][1]%>'><%= Categories[i][0]%></a>


Cheers
Jay


-----Original Message-----
From: Rahul Naithani [mailto:[EMAIL PROTECTED]]
Sent: 02 August 2000 13:28
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