user478636
user478636

Reputation: 3424

request.getAttribute in servlet

I have the hyperlink products?categoryId=1

in the servlet doGet() method

I cant seem to get the value of the categoryId in the browser. Do i have to use a form submission? I want to use a hyperlink cant i do it like in asp.net

Response.redirect(products?categoryId=1);

Upvotes: 0

Views: 2451

Answers (1)

jumperchen
jumperchen

Reputation: 1473

You should use request.getParameter(String) instead.

Upvotes: 2

Related Questions