How to start

Hi,

I have started to learn JSP.

I am little bit with html and jsp elements(directivies,scriptlets like that).So I wrote a jsp program to generate a simple web page.

I am using J2EE.But I donot know how to deploy my program in server and run the page.

I am struggling with this.

So will you please explain me how to do that.

That will very helpful to me.

Thank you so much.

[422 byte] By [myque-ans@soona] at [2007-10-2 20:10:51]
# 1

What are you using to develop your application? Text editor? Netbeans?

Web environments are not something that you describe in a few lines. I suggest you do what you should have done: research. Buy/rent a book, look for some tutorials on the net. Then when you have a specific problem, post it here.

gimbal2a at 2007-7-13 22:51:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Hi,

For deploying any web application u need either webserver(Tomcat ) or an application server like weblogic or websphere.

Iam familiar with weblogic so I go ahead with that steps.

1. copy the .jsp, .html etc.. files some directory say temp.

2. create a folder WEB-INF in that directory and copy the web.xmlfile(deploymant descriptor) in that folder.

The web.xml will look like

<web-app>

<welcome-file-list>

<welcome-file>HelloWorld.jsp</welcome-file>

</welcome-file-list>

</web-app>

then create a jar file that should contain the .jsp,>html and the web.xml files.

3. Start the weblogic server and then deploy the jar file on the server.

then open a browser and type http://localhost:<port no onwhich server is running>/<Name of the jar file deployed on the server/>< .jsp or HTML file.

This will work.

Regards,

Giri.

sy.giria at 2007-7-13 22:51:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...