Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSP-Servlet to run html code in web browser
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


dv
to run html code in web browser
1 Answer(s)      4 years and 6 months ago
Posted in : JSP-Servlet


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

Advertisement
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
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
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
run php code online
run php code online  Is it possible to run PHP Code online
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" %>
browser show my plain HTML source.
browser show my plain HTML source.   Why does the browser show my plain HTML source
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
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 code
HTML code  How do I keep people from stealing my source code and/or images
dynamic web pages in html
dynamic web pages in html  How to create Dynamic web pages in HTML
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
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
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
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
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
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
html code for student information?
html code for student information?  html code for student information
Vertical Frameset in HTML
the path of html code into url of browser. The output is displayed as  ... the path of html code in url of your browser,the output is displayed as follow...;    The Frame in HTML is used to display more than one web
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
Pagination example with html code
Pagination example with html code  Hi, could u please provide pagination code with clear cut explanation. Thanks in advance
browser
browser  how to make a 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
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
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 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 
browser
browser  hello this is saurav srivastav, thank you for sending the cvode for creating the menu item, but I want the code for file open and save frame in the swing because I am working on my project Browser and one more problem
Advertisements
 

 

 

DMCA.com