You can't. JSP runs on the server, Javascript (which is NOT Java) runs on the client. You might want to look into something like AJAX which will allow your javascript to make a complete connection to the server, receive data, and then update your page, which will make it look like you are doing what you are asking, but it takes longer than a true programmatic connection.
P.S. Don't come back and ask for more info concerning AJAX. That is another thing does not belong on this forum.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
Request all developer to send codes....
Thanks in advance
What a maroon.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
- Is there any problem between you and use of code tags that are required by this forum?
- If you took time to read previous replies you found find that
- Post is old and revoked by somebody who just seek quick solution to his school assignment or plunge the hole in what ever he told his employer about his experiences and knowledge
- Use of Ajax was mentioned, but considered as of topic or different point of implementation in this scenario, therefore not discussed
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
If you took your time to read answer by masijade you wouldn't have to post this question.
Thread closed.
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902