answersLogoWhite

0


Best Answer

You can set the value in the hidden form fields using javascript and access the form fields in JSP

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you transfer values from javascript to JSP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can insert javascript coding in servlet?

No. Javascript code can be present inside a JSP but not inside a servlet. A Servlet is a pure java class.


Is jsp a language.justify?

JSP stands for Java Server Page, which is a program that controls how things appear on a webpage. JSP is not considered a language but it is written for programs using the programming language of JavaScript.


Difference between JSP and JAVA Script?

Hi, 1. JSP is a server side scripting while Javascript is as client side scripting language. 2. JSP also connects with database to fetch up the records from the database while javascript can be used for validate the code on client side.


How do you convert HTML to JSP?

You cannot. A JSP Page contains a lot more contents than just HTML. It contains JavaScript, Java Scriptlets etc. So a HTML cannot be directly converted to a JSP unless someone sits and adds the other contents to the JSP that makes it a JSP


What is the difference between script and scriptlet?

"script" is an HTML tag used to include JavaScript on a web page. Example: <HTML> <body> <script type="text/javascript"> document.write("hi there"); // javascript interpreted by the browser </script> </body> </HTML> "Scriptlet" is a JSP construct used to include Java in a JSP page. Example: <HTML> <body> <% // this is a scriptlet response.getWriter().write("hi there"); // Java executed on the server %> </body> </HTML> Here the result (an HTML document with the text "hi there") is the same in both cases, but the mechanisms are different - Javascript runs in the browser (any browser), while the JSP scriptlet is executed on the server and needs a server with JSP support. See related links.


How validate and retrieve data from database in jsp?

We can do validation by using JavaScript. Here we are using function Validate(). Iam creating one JSP name index.jsp & give a link to another JSP name basic.jsp. In that Jsp iam using Type 1 Jdbc Driver & giving a database connection


What is the difference between requestgetattribute and requestgetParameter in JSP?

request.getAttribute() is used on the Server side Java code to get values submitted from the form onto the Servlet or other java classes request.getParameter() is used on the JSP page to get values sent by the servlet and display it in the jsp page


What is the difference between JS and JSP?

JS stands for JavaScript whereas JSP stands for Java Server Pages. JS is a scripting language that can be used in HTML and other Web related UI pages whereas JSP is a full fledged technology which is used to build complex and powerful UI web pages. JSP has support for JS too.


How the data is viewed in a JSP in the form of table?

You can display data in Tabular format in a JSP page using the HTML <Table> Tag. You can even assign dynamic values to the table using JSP Scriptlets. <% %>


How does the javascript function performs the validation check?

JavaScript can do the validation checks easily. All you have to do is provide the values you want to validate.


What is the difference between JSP hosting and other kinds of hosting?

The main difference between JSP hosting and other kinds of hosting is simply the use of Javascript. While some things may differ between the different types, there are also a lot of similarities.


Describe jsp processing?

JSPs are converted to servlets before the container runs them. This is actually cool because you don't need hardcore java programming skills to create a JSP page whereas you'll need them to write a servlet. Moreover, all you'll need to write a JSP is some expertise in creating HTML files and in using JavaScript. You can create front-end JSP pages without having much expertise in Java at all. Although JSP reduces the required skill level, JSP becomes a servlet, with the nice performance and portability benefits.