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
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JSP
How can we put jsp or javascript code in java code on jsp
Ravinder Partap Tanwar
Greenhorn
Posts: 2
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How can we pass the input of
jsp
page on the
java
code in the same jsp?
for e.g. I want to put value of Gender field from the jsp into the java Variable gender.
document.form[0].gender.value
<%
String
gender = document.form[0].gender.value;
%>
Thanks and Regards
Ravinder Partap
- Ravinder Partap
David Newton
Author
Posts: 12617
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You don't: the Java has executed before it gets to the client.
Anand Ramadurg
Greenhorn
Posts: 1
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Ravinder,
Javascript will be executed at client side ( Browser) while scriplet ( i.e java code written in jsp ) will be executed at the server side. I don't know, what you are trying to achieve here.. May be
you should
explain your problem in detail...
Please go through this link...
http://java.sun.com/products/jsp/html/jspbasics.fm.html
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Please read
The Secret Life of JSPs
.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
What I don't understand is how they changed the earth's orbit to fit the metric calendar. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Regarding Enums
Posting a jquery array to JSP
needed help on jsp + javascript
Storing Enum Types
html:select tag with javascript function
More...