Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSP
Search Coderanch
Advance search
Google search
Register / Login
Forums
Register
Login
Java
»
JSP
How to get data from HTML header
Aaron Parker
,
Greenhorn
Apr 05, 2005 15:48:00
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
I've been told that this part of my
jsp
is correct for passing a value to a
servlet
:
<form action="ChangeAccess?id=${subscriber.key}" method="GET"> <input type="submit" value="Change"> </form>
What I don't know is how to get that data out of the request. I've tried this, but it returns a null:
String id = req.getParameter("id");
How do I get the value of id?
Thanks.
Scott Duncan
,
Ranch Hand
Apr 05, 2005 15:57:00
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
That is correct. Is it possible that ${subscriber.key} is null.
Post by:
autobot
Hang a left on main. Then read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
This thread has been viewed 946 times.
Similar Threads
how to get the index and value from option dropdown listbox in jsp page
taglib should get Object from a bean
About form submission
mutipart/form-data
Internationalization (specifically with Chinese characters)
More...
All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:01:14
.