New to JSP-How to run a .jsp file
I Have just begin to learn JSP. I downloaded the JSP developer kit from java.sun.com. However I dont know how to proceed. I have seen references to'the container'. what is it and how do I start it? and the same for the server which I have in the form a batch file. How do I configure the environment? Are there any prerequisites to using this kit wrt software? Please do help me, since I am absolutely clueless
Regards,
Sweta
Hi Sweta,
Please use any editor like eclipse or netbeans or you create one jsp page(assumes you know jsp).
and then create two folders web-inf inside which create classes and lib folder and web.xml is created, and meta-inf inside which context.xml is created. And use tomcat container to deploy.
Apache tomcat is container which would receive the client request from browser that will route to servlet/jsp.
whereas Apache webserver is different it provides the request to container if it exists then we can replace localhost:8080 by user defined.
JSP is nothing but Dynamic web page creator which embed java program in html.
JSPinit initializes and while running converts to servlet and will be processed according to the java code embed and display as per the html tags.
But you should use struts framework why it is constructed upon MVC architecture and purely object oriented.
So struts is nothing but the execution calls are drived by configuration xml files.
If anything you need to know in details, pls msg me to [email protected]
Thanking you
Charles v c
Similar Messages
-
hello to all of u
i m bit comfortable with SERVLET and please tell me that how to run a JSP page.i m using TOMCAT.
someplace it is written that " write the program ,save under the root of tomcat i.e in my system it is tomcat 4.1 and to store in tomcat4.1\helloworld.jsp ,,, and then after start the server write in the url --:
http://localhost:8080/hello.jsp.
but it is giving error while running.please tell me the procedure.
thank you
byeWhy oh WHY do you want to fiddle with the server.xml file?
You don't need to.
Under tomcat is a directory called "Webapps"
This is where you put your web applications.
You will see there is an existing one there called ROOT - which funnily enough is the root one used for Tomcat.
If you put your hello.jsp in the ROOT directory, http://localhost:8080/hello.jsp will work.
However it is not recommended to use the ROOT directory. Make your own one.
Create a new directory in the "Webapps" directory eg "test"
Put your jsps in here.
under test create a directory called "WEB-INF"
Copy the web.xml file from [TOMCAT_HOME]/webapps/ROOT/web-inf into the new web-inf directory.
Now go to http://localhost:8080/test/hello.jsp
Cheers,
evnafets -
How to run servlet,jsp in eclipse software
can any one tell me how to run servlet ,jsp in eclipse
and how to start tomcat server in eclipse
reply me
regards
saravanaCan anybody help me as I wanted to know how to run servlet,jsp in eclipse software...
If somebody can forward me the screenshots than it would be of great help....
Thanks -
How to run a jar file in JBuilder
Hi there
I need to know how to run a jar file using JBuilder. Thanks :)
Countesswell i have a german version of jbuilder and there it is under
experten Archiv-builder
look at something that has a similar name -
How to run a JAR file in Unix system?
hi there
ca anyone tell me how to run a JAR file in unix system or X window, thank youYou want to create an executable JAR file? You do it in the following way.
Create a manifest file such as manif.txt and the contents should contain
Main-Class: foo
assuming foo is the name of your main class. Then create the jar as follows
jar cvfm foo.jar manif.txt foo.class
I hope that helps you!
you can find more info here http://java.sun.com/docs/books/tutorial/jar/ -
How to run an exe file in a java program
Hi,
Can somebody tell me how to run an exe file in a java program.
Thank you!Yes, java.lang.Runtime.exec().
Read this carefully before you do:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
Don't write a line of code before you're reviewed and understood the article completely. - MOD -
How to run a batch file as windows Nt service
Hi friends
I want to know how to run a batch file as windows NT service.
I got some information in the following link
http://support.microsoft.com/kb/q243486/
I tried it but i want to know what we need to include in Autoexnt.bat
And one thing i need Instexnt.exe file. I cannot find tht file.
Please search tht file and send me tht file or else send the link in which this file is present
Please give me reply fast.its very urgent.
Thanks in advance.Hi,
My aim is to run a MS-DOS Batch file, that I created to run a Java Prgram.
I need to call the Batch File from the Oracle Procedure, Also I may need to change the content of the Batch File (Argument to the Java JAR File ).
I can keep the JAR FIle either in the Oracle Server or in the Application Server.
The Java program is to convert XML Format FIle to PDF and MS Word format.
Oracle Version : 10g 2.0.1.0.
Thanks in advance
Rizly -
Hi,
How to run a batch file from Oracle. Is it possible directly from PLSQl, or should I write the java code.
Oracle Version: 10g 2.0.1.0.
Thanks in advance
RizlyHi,
My aim is to run a MS-DOS Batch file, that I created to run a Java Prgram.
I need to call the Batch File from the Oracle Procedure, Also I may need to change the content of the Batch File (Argument to the Java JAR File ).
I can keep the JAR FIle either in the Oracle Server or in the Application Server.
The Java program is to convert XML Format FIle to PDF and MS Word format.
Oracle Version : 10g 2.0.1.0.
Thanks in advance
Rizly -
Hi Experts,
I am trying to implement automatic cache purging every day at specified time and i created txt file with SApurge All cache() and created bat file with nqcmd -q Analyticsweb -u username -p password -s (txt file location).
Now i want to run this bat file daily at specified time with out executing manually may i know how to run the batch file at specified time .
Thanks,There is task type as command in workflow manager if you want you can go for that during the load
nqcmd -d "AnalyticsWeb" -u Administrator -p Administrator -s "D:\PowerCenter8.1.1\server\infa_shared\SrcFiles\1_BIPurgeCache.txt"
Check these urls
http://docs.oracle.com/cd/E12103_01/books/AnySched/AnySched_Scripts3.html
http://deliverbi.blogspot.com/2011/12/purge-all-cache-from-dashboard.html -
Major corruption today. Removed Firefox. Downloaded new 7.0. Clicked run. Messaged 'File Corrupt' Aborted
Looks like the installer you downloaded is corrupted. You need to download the installer again. I don't know where you downloaded the installer from but get it from [http://www.mozilla.org/en-US/firefox/ Firefox website]
-
hi
can anybody tell me how to run a jar file in java,is there any need to unzip a jar file before running it?
Thanks in advance.Set the classptha, if you want to run it by double clicking.
I assume that you know, how to set the classpath.I though that if it is an executable jar, the classpath environment variable will be completely ignored. Are you saying something to the contrary? -
How to run a batch file clicking a button?
Hi All,
Can you tell me anyone how to run a batch file clicking a button? And also the progress bar showing the progress.
ArifAs said: write the insert statement like above (of course replace the databaselink, column and table names with your own) in a stored procedure and call this procedure in the WHEN-BUTTON-PRESSED Trigger.
As for the progress bar: how many records are you processing and how is the network connection between your database server? As above method is rather fast it might take just a few seconds and you could spare you the progress bar (this might be a little tricky to implement).
cheers -
How to run BC4J JSP programs generated by JDeveloper 9i?
I used JDeveloper 9i to:
Create a new Project Workspace
Create New Business Components
Click on Run, Run Project
The Java application works perfectly alright.
Click on New, BC4J JSP, Business Components JSP Application
Then a full set of JSP source code is generated based on the Business Components Java Application.
Right-click on main.html, Run main.html
I can see that deployment of the JSP programs is OK but the Internet Explorer does not start the main.html.
I enter address: http://localhost:8988/ in Internet Explorer and can see that OC4J is running.
I would like to enter the path of the deployed JSP program.
How can I know what is the path of the URL?I have change the settings in tools->preferences to point to the right location, i.e.
C:\Program Files\Internet Explorer\IEXPLORE.EXE
Internet Explorer does not start after it shows:
C:\oracle\ora9ids\jdk\bin\javaw.exe -ojvm -classpath C:\oracle\ora9ids\j2ee\home\oc4j.jar -Dhttp.proxyHost=hqproxy.vtc.edu.hk -Dhttp.proxyPort=8080 com.evermind.server.OC4JServer -config C:\oracle\ora9ids\jdev\system\oc4j-config\server.xml
[Starting OC4J using the following ports: HTTP=8990, RMI=23893, JMS=9229.]
[waiting for the server to complete its initialization...]
Oracle9iAS (9.0.2.0.0) Containers for J2EE initialized
ApplicationServer: appName = bc4j
ApplicationServer: appName = current-workspace-app
ApplicationServer: appName = bc4j
ApplicationServer: appName = current-workspace-app
ApplicationServer: appName = bc4j
ApplicationServer: appName = current-workspace-app
ApplicationServer: appName = bc4j
ApplicationServer: appName = current-workspace-app
ApplicationServer: appName = bc4j
ApplicationServer: appName = current-workspace-app -
i am writing a simple jsp file
i dont know how to run in the tomcat server
for servlets first i created the dot class files by using the command prompt and then in the tomcat server we go the webapps folder and i copy the class files and due to xml file i run the program
I have added the jsp-api.jar and el-api.jar files in the environment variables so what i do to run the jsp
can anyone can tell me how to do that
here is the program
<%@page contentType="text/html" import="java.util.*" %>
<!--
Date.jsp
-->
<html>
<body>
<p> </p>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing
="0" width="460" bgcolor="#EEFFCA">
<tr>
<td width="100%"><font size="6" color
="#008000"> Date Example</font></td>
</tr>
<tr>
<td width="100%"><b> Current Date
and time is: <font color="#FF0000">
<%= new java.util.Date() %>
</font></b></td>
</tr>
</table>
</center>
</div>
</body>
</html>i am getting an http 500 error for running the jsp file
here is the code
<%@ page import="java.util.Date" %>
<% Date now = new Date(); %>
<html>
<body>
<p>Hello, world! It is now <%= now.toString() %>.</p>
</body>
</html> -
How to run servlet,jsp in eclipseand to start tomcat in eclipse
hi
i want to know how to run servlet and jsp in eclipse 3.0
and to start tomcat server in same.
please reply me the steps involved indetail.
regards
saravanakumarFind Lomboz J2EE plugin and a tutorial of how to use it :)
Maybe you are looking for
-
Dear Friends, I have configured payroll-india and run the standard payslip, where the net pay is not correct. i.e Total earnings - Rs.42000 Total Deductions - Rs.10399.33 Net Pay - Rs.33,600.67 There is a excess of Rs.2000. I have c
-
I have an old macbook which is running on OS X 10.6.8. I want to make the switch from moblie me to icloud. I went to download the new OS X Lion so I can connect to the icloud and it is telling me I need a Core 2 duo. I only have a Core duo on this
-
Hello I have a problem with installing agent on a cent os sytem. Everything works fine and looks good untill the step "validating..." then the wizard stopps suddently with no errors and all I can do is click "Done" but the System doesnt appear in the
-
I own a copy of CS5.5 that I have on my PC. I have switched to a new iMac and during activation it says that my serial number is not for the product I'm trying to activate. I have tried live chat a couple times but it says that chat is not available.
-
Apple's mail *****
When signing into my Gmail account at Google's main website, it works completely fine. But today I was experiencing some trouble with mail on my MacBook Pro. So naturally I went to settings to try to solve the problem by signing out and back in. But