Jump to content

JSP ? How?

- - - - -

  • Please log in to reply
6 replies to this topic

#1
Hamed

Hamed

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 276 posts
Hello,
How can I run JSP on my computer?
Seven 64 bit??

#2
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Java
What IDE are you using?

#3
Hamed

Hamed

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 276 posts
phpDeisgner

#4
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Java
hmkay, that's kinda weird for Java stuff :P

Okay, that obviously won't have a built tool to run java application servers.
So here's the manual way:

I took Tomcat, there are others like Glassfish, but Tomcat is what I know best.

Latest version download page: http://tomcat.apache...-70.cgi<br /> I suggest you take Binary Distributions -> core -> zip / tar.

You can also choose to install it as a service on windows so it can run when windows boots... But I don't like slowing down windows boot times ^^.
The zip contains a txt file: RUNNING.txt.
It contains all the info to set things up. Like downloading and installing Java in case you didn't.. The obvious stuff really.

The most important thing is:
To start the server, run /bin/startup.bat
By default it runs on port 8080 (Can be changed in /conf/server.xml)

Everything in the "webapps" folder will be deployed to the Tomcat server. Webapps is the root. So to run the example you go to http://localhost:808...ples/index.html

Shutting server down again is running /bin/shutdown.bat


(I didn't test this while writing, some errors could occur)

#5
Hamed

Hamed

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 276 posts
I have xampp on my computer,
It have Tomcat I think (I don't know how it works)
Also I think NetBean is good for JSP!

#6
CatchMeTux

CatchMeTux

    Learning Programmer

  • Members
  • PipPipPip
  • 45 posts
I suggest you use the latest version of NetBeans IDE. It has already a web server called GlassFish. And it won't be so hard to run your project.

If you are new to JavaEE, visit this site.
Java EE & Java Web Learning Trail - NetBeans Tutorials, Guides and Articles

#7
lethalwire

lethalwire

    while(false){ ... }

  • Members
  • PipPipPipPipPipPipPip
  • 748 posts
  • Programming Language:Java, PHP
  • Learning:Java, PHP
When I was using xampp, I had to start the tomcat server using the catalina_start.bat.
This file was located at
B:\xampp\tomcat\webapps\ROOT
Be sure to replace B:\ with your drive. Also, your full directory may be a little different than mine.
After this you can go to http://localhost:8080/ to view the default index.html provided. Off to the left, there is a navigation bar where you can view provided .jsp files.
If they are not working, the tomcat server probably isn't working.

To fix, try to restart it by running the catalina_stop.bat and rerunning cataline_start.bat

The index.html file you view when you go to http://localhost:8080 is located on your hard drive at: B:\xampp\tomcat\webapps\ROOT
The examples are located at : B:\xampp\tomcat\webapps\examples




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users