callig jsp file from javascript function

callig jsp file from javascript function

View Answers

April 15, 2009 at 2:10 PM

Yes it is possible to call either jsp pge or html page from one html form.
even u dont need to open script tag for this.
jus try this code at <form> tag.

<form onClick="javascript:location.href='b.jsp'">
</form>


javascript onclick method will do that.that "b.jsp" is the name of the target file.
thanks.......









Related Tutorials/Questions & Answers:
callig jsp file from javascript function - JSP-Servlet
callig jsp file from javascript function  I want to call a jsp file from javascript function. What I want to do is Whenever a user clicks on a form in html, the function should call specified jsp file.The form has no dynamic
Read Text file from Javascript - JSP-Servlet
Read Text file from Javascript  plz send the code How to Retrieve the data from .txt file thru Javascript? And how to find the perticular words in that file
Advertisements
Displaying the values in text fields of a form from a javascript function in jsp
Displaying the values in text fields of a form from a javascript function... to call a javascript function by passing 3 values from applet. And i have... and javascript function must be available in the same web page. Any help
how to call javascript function from flex
how to call javascript function from flex  how to call javascript function from flex
Help with javascript function - JSP-Servlet
Help with javascript function  I've got a button in a for loop.Each... is that the function BookSeat() to change the value of the button being clicked to "You... properties of those clicked buttons to be transferred to the next jsp page
how to invoket javascript function in JSP - JSP-Interview Questions
how to invoket javascript function in JSP  Dear Sir, my question is how to invoke javascript function written in .js file into our JSP. using which tag in JSP this is possible
Error in calling javascript function from java
Error in calling javascript function from java  I am callin javascriot function from applet and getting error netscape.javascript.JSException: Unexpected error: This method should not be used unless loaded from plugin.jar
JSP Value to JavaScript
to pass the value from JSP to JavaScript. The JavaScript create a function... have create a function addition() which takes the value from the jsp page. When... JSP Value to JavaScript   
passing value from javascript to jsp - JSP-Servlet
passing value from javascript to jsp  Hi... Is there any way to get the value from the javascript and print it on the current jsp page or print an array onto the current jsp page using javascript  Hi Friend, We
Calling Flex Function From JavaScript
From JavaScript Sometimes, you may need to call flex function from JavaScript... function callable from javascript. ExternalInterface.addCallback... by JavaScript to call the flex function, and the second parameter is the actual
Invoke JavaScript function from servlet
Invoke JavaScript function from servlet You have learnt several servlet... function from the servlet. Embedding JavaScript in Servlets can be useful when... the particular record to delete. This delete button calls the javascript function
Calling Anonymous JavaScript Function From Flex
: #FFFFCC; } Calling Anonymous JavaScript Function From Flex In flex application, you can call javascript function defined in html file where your flex file is embed. But you can also call an anomymous javascript function
calling a javascript function by passing multiple values from applet in web application
calling a javascript function by passing multiple values from applet in web application  Hi all, I have a requirement like this, I have to call a javascript function from JApplet by passing 3 values. I am new to Applets
how to call the array variable in scriptlet from javascript function
how to call the array variable in scriptlet from javascript function  This is the scriptlet code:- <% String[] abc={"saab","volvo","bmw","Benz... and display them in the dropdown list by using the below function function myFunction
Call servlet from javascript - JSP-Servlet
Call servlet from javascript  Hi in my application i have jsp... , in my jsp i have provided an upload button thet upload single column excel file... form in jsp file is Upload plot nos (.xls format
UIWebView call javascript function
from UIWebView. Please let's know how to call JavaScript function from objective c code? Thanks   Hi, You should develop javascript in your html file say: <Script Language="JavaScript"> function sayHello(){ alert("hello
reading dropdown values from properties file in jsp
reading dropdown values from properties file in jsp  reading dropdown values from properties file in jsp
In JSP page, inside a javascript function, can I place a java code using scriptlet tag?
In JSP page, inside a javascript function, can I place a java code using...() in jsp page. In a separate java file, in a method checkListValue(), I am doing... not empty. Inside the javascript function closeWind(), I make a call
how to pass form values from javascript of html page to jsp page
how to pass form values from javascript of html page to jsp page   This is my sample html page which contains inline javascript which calculates... to submit all the form values with lattitude and longitude returned from
How to write .properties file from jsp
to implement/write .properties file from jsp. Regards, Venkatesh Gurram.ADS...How to write .properties file from jsp  Hi i new to java i stuck here... it in my jsp but Iam unble to modify/write the .properties file and Iam not getting
write to file from servlet - JSP-Servlet
write to file from servlet  Hi, I have a jsp file where I input... right data on the web site. I am also trying to write this data to file... JSP Page //<
jsp function - JSP-Servlet
jsp function  how to make function in jsp... i want example of jsp method or function in which on button click function get data fron database... or print the data from database using JSP. http://www.roseindia.net/jsp/submit
How to read and display data from a .properties file from a jsp page
How to read and display data from a .properties file from a jsp page  I have a .properties file. I have to create a jsp page such that it reads the data from this .properties file and display it in table format. Ex:by using
Unable to call .jrxml file from jsp
Unable to call .jrxml file from jsp  Hi, I am doing web application in jsp. To create report I have used ireport and interated with neatbeans using plugin. After creating report in netbean when i call that jrxml file
how to display data from jsp file into database
how to display data from jsp file into database  this is a jsp file . look at the line with code-> Statement st=con.createStatement(); in the below example. the error is "cannot convert from java.sql.Statement
accessing data from a json file writing javascript or using jQuery
accessing data from a json file writing javascript or using jQuery  I am trying to create a page from json objects using javascript. I have... page is built from this json file, but I can't figure out how to code
javascript abort function
javascript abort function   I am running a loop and wants to abort it after a specific time. How is it possible using JavaScript Abort function..?   Using JavaScript we can abort function or loop. See the the code below
javascript onclick function
javascript onclick function  javascript onclick function   <html> <head> <script language="javascript"> function...; For more information, visit the following link: http://www.roseindia.net/javascript
how to generate the pdf file with scroolbar from jsp age - JSP-Servlet
how to generate the pdf file with scroolbar from jsp age  How to generate the pdf file with scroolbar from jsp.i am not able to see the all the columns in pdf file now .it is very urgent for me plz help
retrieving of value from excel file - JSP-Servlet
this message to all the employees when i upload a file then it fetch a data from that excel sheet i.e this matter will take a para meter values from the excel...retrieving of value from excel file  Dear sir, Thanks for sending
retrieving of value from excel file - JSP-Servlet
this message to all the employees when i upload a file then it fetch a data from that excel sheet i.e this matter will take a para meter values from the excel...retrieving of value from excel file  Dear sir, Thanks for sending
retrieving of value from excel file - JSP-Servlet
retrieving of value from excel file  Dear sir, Thanks for sending a code now i am getting a particular column value i.e EmailId column for snding a massmails,now i have to get a particular column values i.e Name(A),EL(B
Getting Parameter from a css styled jsp file to a java servlet file...
Getting Parameter from a css styled jsp file to a java servlet file... ..." media="screen" /><![endif]--> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src
not able to get values from jsp file - JSP-Servlet
not able to get values from jsp file  hi thanks for u feedback, her am sending the file jsp and servlet but in the servlet file am not able to get... remove encrtype from form tag its work fine please go through the file
How to get the text from textarea in HTML and store it in database using javascript and jsp
How to get the text from textarea in HTML and store it in database using javascript and jsp  How to get the text from textarea in HTML and store it in database using javascript and jsp <script> function str() { <
javascript function - Development process
javascript function  I'm trying to use a remote menu with 4 different menu options. i put the menu names in an array, then tried to call up the on click function with an id number. I've tried everything and nothing works
How to get sub category based on category from database using jsp and javascript.
How to get sub category based on category from database using jsp and javascript.  How to get sub category based on category from database using jsp and javascript
Pass value from JSP to JavaScript
Pass value from JSP to JavaScript       We can also pass the value from a JSP page to the java... a function hello() which takes value from the jsp page on click of some button
How to change the value of a variable which is set in jsp (by jstl method) by calling the function from js?
How to change the value of a variable which is set in jsp (by jstl method) by calling the function from js?  How to change the value of a variable which is set in jsp (by jstl method) by calling the function from js? I set
Implementing CSS and JavaScript in JSP File
Implementing CSS and JavaScript in JSP File... and JavaScript in jsp. Here we have created three main files..., the following code imports style.css file from css folderADS_TO_REPLACE_1 <
JSP Variable in Javascript
JSP Variable in Javascript          JSP Variable in Javascript helps you to pass jsp variable to javascript. The JavaScript include a function
how to create text file from jsp and provide downlode option
how to create text file from jsp and provide downlode option  HI..."); %> <script type="text/javascript"> function fun... in java/j2ee tech. my question is who do i make a jsp output in the form of text
how read data from doc file in same formate in jsp
how read data from doc file in same formate in jsp  how we can read and display data on jsp page, from doc file with the same formatting
if else in javascript function
if else in javascript function  How can i write the else statement in JavaScript to check if the web browser is IE or not? Is there any other way to validate this way ..? Thanks
function call in javascript - Java Beginners
function call in javascript  hi all, i've written a javascript , but i m unable to call a function getExpression.i dont know why getExpression function is not being called. heres my code : function
Read data from excel file and update database using jsp
Read data from excel file and update database using jsp  read data from excel file and update database using jsp Hi, I am using a MySQL database... upload excel file and update database using JSP ? Thanks in Advance
How to backup a selected file from the dropDown Menu in JSP?
How to backup a selected file from the dropDown Menu in JSP?  I am trying to create a dropdown menu list for some type of files contained ina... file into the backup directory. I need the jsp code that can generate
Javascript & jsp
*"%> <html> <head> <script type="text/javascript"> function...Javascript & jsp  Dear Sir, I have a table which has records... box like name,class,sex after selecting a roll number from the dropdown.It
Servlets,Jsp,Javascript - JSP-Servlet
Servlets,Jsp,Javascript  Hi in my application i am creating a file from servlet whenever user clickes the button create file , but as the contents... javascript function excelExport() { document.body.style.cursor="wait
jsp,javascript - JSP-Servlet
jsp,javascript   Hi, I want to retrieve record and move it. Can... function update(s) { alert(s); if (s==0) { alert("pr... the following code.It will retrieve previous and next record from the database

Ads