to run html code in web browser

to run html code in web browser

how to run jsp file which calls html file on web browser??
View Answers

June 17, 2010 at 1:34 PM

Hi Friend,

Try the following code:

1)form.jsp:

<html>
<form method="post" >
Enter Name:<input type="text" name="name">
<input type="submit">
</form>
</html>
<%
String name=request.getParameter("name");
if(name!=null){
if(name.equals("RoseIndia")){
response.sendRedirect("../register.html");

}
}
%>

2)welcome.html:

<html>
<a href="http://localhost:8080/examples/modified/add.jsp">Add Profile</a><br><br>
<a href="http://localhost:8080/examples/modified/edit.jsp">Edit Profile</a><br><br>
<a href="http://localhost:8080/examples/modified/delete.jsp">Delete Profile</a>
</html>

Hope that it will be helpful for you.
Thanks









Related Tutorials/Questions & Answers:
to run html code in web browser - JSP-Servlet
to run html code in web browser  how to run jsp file which calls html file on web browser??  Hi Friend, Try the following code: 1)form.jsp: Enter Name: 2)welcome.html: Add Profile Edit
Applet run with appletviewer but not in browser, any code problem.
Applet run with appletviewer but not in browser, any code problem.  ... fine but not run from the browser as http://localhost:8080/ProgressoApplication... the 52 cards will be show in browser as by "appletviewer" and run as "java applet" I
Advertisements
HTML on a single browser
HTML on a single browser  My page looks good on one browser, but not on another
HTML code
HTML code  How do I keep people from stealing my source code and/or images
how to run a applet from browser
how to run a applet from browser  hi, iam sending the code of an applet. it is working in cmd prompt,but not working from browser. <APPLET CODE... error. plz suggest me the related code to execute from browser. import
browser show my plain HTML source.
browser show my plain HTML source.   Why does the browser show my plain HTML source
need code for file browser
need code for file browser  hi, i need to write a code to browse the file in my computer using Jsp or java.. what is the code for file browser?   JSP Code for browsing: 1)page.jsp: <%@ page language="java" %>
run php code online
run php code online  Is it possible to run PHP Code online
Run a simple EJB code
Run a simple EJB code  I found the code this. However, as I have no idea with EJB, I can't understand how to run it. Can anybody help me by giving steps (by giving snapshots or writing full procedure)how to run it (any platform
Run a simple EJB code
Run a simple EJB code  I found the code this. However, as I have no idea with EJB, I can't understand how to run it. Can anybody help me by giving steps (by giving snapshots or writing full procedure)how to run it (any platform
Java Web Browser Problem
Java Web Browser Problem  Hello When run my web browser this is not displaying complete page any of the website like other browser.So Plz help me...."); setTitle("NextVision Browser"); setSize(600,400); Container
html code for student information?
html code for student information?  html code for student information
code to disable back button of browser
code to disable back button of browser  code to disable back button of browser
code to disable back button of browser
code to disable back button of browser  code to disable back button of browser
HTML - Strikethrough code.
HTML - Strikethrough code. Description : The strike is a html tag. When you... Markup Language</strike> Code : <!DOCTYPE html PUBLIC ".../TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http
Pagination example with html code
Pagination example with html code  Hi, could u please provide pagination code with clear cut explanation. Thanks in advance
HTML link code.
HTML link code. Description : It is also called hyper link. HTML provides...;/a> Code : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0.../TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
HTML - Image link code.
HTML - Image link code. Description : HTML image link is a combination... is  used as a text of anchor tag. Code : <!DOCTYPE html PUBLIC...;h1>Example of HTML Link code.</h1> <p>Please visit
Html Code - Development process
Html Code  Hi,Can u give me code for Html . headers are Date, Name and Dept . Inside Date column i want to split 2 columns. like In and Out. I have tried colspan tag , but i couldnt get d output. Thank u in advance 
dynamic web pages in html
dynamic web pages in html  How to create Dynamic web pages in HTML
HTML login page code
the complete HTML JavaScript code for User Login Page. Thanks in Advance!   ...: " + form.pwd1.value); return true; }   html registration form code...HTML login page code  Hi all, I am writing my first HTML JavaScrip
Run this code..plzz - Java Beginners
Run this code..plzz  Hi Friend... ERROR: Exception in thread "main...;Hi friend, I am sending code according to your requirement but you are defined in this example what you want to do please explain and send me full code
how to space images in html code
how to space images in html code  how to space images in html code
web form(html) with jdbc
web form(html) with jdbc  need a example coding to develop a web form of data with jdbc   Hi Friend, Try the following code: 1)form.html: <html> <form method="post" action="http://localhost:8080/examples/jsp
HTML Color Code for White
HTML Color Code for White In this page you will find the hexadecimal color code for White color. The hexadecimal color code for white is #FFFFFF or #ffffff. For most website white color is used as the background of the web page
HTML code example
to create rich web pages and web applications. HTML Code Examples Paragraph...HTML code examples In this section we are giving many html code examples which will be very useful for developers. The examples of HTML code given here
ModuleNotFoundError: No module named 'eilat-web-browser'
ModuleNotFoundError: No module named 'eilat-web-browser'  Hi, My... named 'eilat-web-browser' How to remove the ModuleNotFoundError: No module named 'eilat-web-browser' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'eilat-web-browser'
ModuleNotFoundError: No module named 'eilat-web-browser'  Hi, My... named 'eilat-web-browser' How to remove the ModuleNotFoundError: No module named 'eilat-web-browser' error? Thanks   Hi, In your
html code problem - Java Beginners
html code problem  Hi, Thank u for fast reply. In HTML form, more than one file 'action' is possible or not. regards, sakthi  Hi friend, In HTML in one form having One file action is possible. Thanks
what is the code for login page in html
what is the code for login page in html  Hi, I am total beginner in HTML coding. I want to make a login page in HTML to understand the form coding. I think login page is goot topic to start and learn. what is the code for login
what is the code for login page in html
what is the code for login page in html  Hi, I am total beginner in HTML coding. I want to make a login page in HTML to understand the form coding. I think login page is goot topic to start and learn. what is the code for login
what is the code for login page in html
what is the code for login page in html  Hi, I am total beginner in HTML coding. I want to make a login page in HTML to understand the form coding. I think login page is goot topic to start and learn. what is the code for login
Java Code to Block a website accessed by any browser in windows
Java Code to Block a website accessed by any browser in windows  I want create an application in Java through Netbean IDE to block any website to be accessed by any browser. I also want to display only its html contents. please
Vertical Frameset in HTML
is saved as Qualification.html. Paste the path of html code into url of browser... the code with extension html. Paste the path of html code into url of your browser...;    The Frame in HTML is used to display more than one web
changes in netbeans/ browser so that each application run opens in a new window of browser
changes in netbeans/ browser so that each application run opens in a new window... time i run an application it opens up in a new window rather than a new tab.. Do i have to make changes in netbeans or browser? and what changes need
generate java code and html code - Java Beginners
generate java code and html code  create a web application for museum....a)the first page wil be a login page for administrators.. passwords for all acounts should be stored in the database and checked on login... on success ogin
Html code for search - Development process
Html code for search   Hi, when i click search button .It has to display table with data. I have completed design only. Plz give code... if you want to use HTML code with JSP and Servlet to search from database
html dropdownlist code - JSP-Servlet
html dropdownlist code  hi how to get textfield in html when i select the option others in the dropdown list, pls provide the code?   Hi Friend, Try the following code: function show(){ var op
Show pdf's in web browser by using jsp?
Show pdf's in web browser by using jsp?  Hi, I want to display pdf file in browser by clicking the link, available in JSP page. When am trying to do this by using Anchor tag with absolute path, it is showing the error as: Http
How to hide HTML code from user? - Security
How to hide HTML code from user?  Hi All, I am trying to provide security to my web application. To achieve this I want to restrict user from viewing HTML source code. Can any one guide me for this topic? Thanks
Html Code for frames - Development process
Html Code for frames   Hi, Can u plz send code for Frame navigation using html only.When i click link in first frame , data has... the following code it requires at least 3 files : Index.html where we will put
javascript code for search in html file
javascript code for search in html file  Hi, I am looking for javascript code through which we can search data with specific name find in any rows in the table. Example: Id Name P001 A P002 B P003 C P004 P002 P005
how to present the excel to the web browser in jsp
how to present the excel to the web browser in jsp  How to present the content of the newly created excel file in the following jsp to the web browser: <%@ page import="java.io.InputStream" %> <%@ page import
Html/JavaScript code - JSP-Servlet
Html/JavaScript code  I have 2 JSPs JSP1 and JSP2. 1.in JSP1 i..., ------------------------------------------ If, you have any problem then , please send me detail with code. Thanks.  ok this is code snippet of JSP1 that is used to display teh table. --JSP1
Java code to run unix command - Java Beginners
Java code to run unix command  Hi, I need a java code to connect to a remote unix server and run a unix command. Please help. Regards, Pratyush
HTML Color Code for purple
HTML Color Code for purple In this page you will find the hexadecimal color code for Purple color. The hexadecimal color code for dark purple is #800080. HTML Purple color is of two types: Dark Purple Light Purple Here
how to display the excel file in the web browser.
how to display the excel file in the web browser.  > %@ page import="java.io.InputStream" > %> <%@ page > import="org.apache.poi.xssf.usermodel.XSSFSheet"%> > <%@ page > import
java code to insert select at run time....????
java code to insert select at run time....????  java database code to retrieve data at runtime and please give codes for insert delete too.... using jsp and withot jsp   1)application.jsp: <%@ page import="java.sql.
View source code of a html page using java ..
View source code of a html page using java ..  I could find the html source code of a web page using the following program, http://download.oracle.com/javase/1.4.2/docs/api/java/net/URLConnection.html i could get the html code
can i know the error in this code... am unable to run this code
can i know the error in this code... am unable to run this code  ... code like < >. The for is improper and not completed. Moreover, you have open and close braces properly. Anyways, we have modified your code. Here

Ads