Hi,
I'm a beginner in JSP...I've installed Sun Java System Application Server 9.1 ...
I wanna run jsp code just to display "Hello World" but can't find out where to copy the helloworld.jsp code (I mean in which folder of Sun directory) to access it using
http://localhost:4848/helloworld.jsp........Please help me out......

Dani AI

Generated

Brief answer for and : the admin console is not the HTTP server. The app server's admin UI runs on the admin port (4848) while the web container uses a separate HTTP listener (usually 8080). To show a JSP you must create a proper web application (WAR) and deploy it — do not drop a JSP into the application-server install folders.

Example workflow (exploded app, then package and deploy):

Create a small app directory:

myapp/
  hello.jsp
  WEB-INF/
    web.xml

A tiny hello.jsp can just be plain HTML with the text you want. A minimal web.xml is optional for simple pages but helps on older servers.

Package and deploy from the server install:

cd myapp
jar -cvf myapp.war *
$AS_HOME/bin/asadmin deploy myapp.war

After deploy, open the app via the web listener (default):

http://localhost:8080/myapp/hello.jsp

If the page doesn’t appear: confirm the domain is started ($AS_HOME/bin/asadmin start-domain), watch the server log (tail -f $AS_HOME/domains/domain1/logs/server.log), and use the Admin Console (Applications → Deploy) to upload the WAR. Common mistakes: trying to use the admin port to serve pages, not packaging the app as a WAR, deploying to the wrong domain, or a different HTTP port configured. was right that the docs help — the steps above are what the tutorials show in practical form.

Recommended Answers

All 2 Replies

look better. The server documentation and tutorials are a good place to start.

Hi, I am also looking for thge same. My name is Gafoor, working at Kuwait, My e-mail ID <EMAIL snipped>

Hope you will keep in touch with me, so we can share our knowledge.
Regards
Gafoor


Hi,
I'm a beginner in JSP...I've installed Sun Java System Application Server 9.1 ...
I wanna run jsp code just to display "Hello World" but can't find out where to copy the helloworld.jsp code (I mean in which folder of Sun directory) to access it using
http://localhost:4848/helloworld.jsp........Please help me out......

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.