•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 455,964 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,630 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 3706 | Replies: 2
![]() |
•
•
Join Date: Mar 2007
Location: Brisbane, Australia
Posts: 215
Reputation:
Rep Power: 2
Solved Threads: 13
•
•
Join Date: Nov 2007
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
getting a value from jsp to js.. hmm sounds interesting. It's one of the most fundamental problem encountered by developers..
First of all your different js file should be included in the jsp..
like
then in the js file you may have a function which may look like
in your jsp keep the accessed variable like
this will to a great extent solve your problem
First of all your different js file should be included in the jsp..
like
<script language="JavaScript" src="../../js/imaster_code.js"></script></td>
then in the js file you may have a function which may look like
function openMethod(target,countSel) {
document.forms[0].selectedNumber.value = countSelected;
/* do something here with the value */
}in your jsp keep the accessed variable like
<html:hidden property="selectedNumber"/>
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- grid in jsp (Java)
- how can i pass a value from java script to JSP scriplet (JSP)
- How to pass the values of javascript in perl (JavaScript / DHTML / AJAX)
- Passing variable value from javascript to jsp page at run time (JSP)
- Pass parameters between Javascript and ASP (JavaScript / DHTML / AJAX)
- Passing paramter from javascript to jsp (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: JS: automatic calculate without click any button
- Next Thread: Frame Usage


Linear Mode