bhavs
bhavs

Reputation: 2301

jsp servlet embedded jetty sample code

I am newbie with jsp, servlet and embedded jetty I am wondering if there is a good example or a step by step tutorial I am follow to understand how this works, I have tried for 2 whole days without being able to figure this one out.

Well I have tried to figure out servlets and jsp using tomcat and I have been able to figure it out. But Tomcat is not an option because I need a very light weight interface to get things working.

I need to create a simple form , which will take input from the user and redirect to another page depending on the input.

Any pointers links for a beginner will be very helpful

I will probably create another question because I have obtained some pointers below to start creating the web interface.

Upvotes: 1

Views: 6547

Answers (2)

Peerapat A
Peerapat A

Reputation: 430

What you really want? Development on Jetty or Live on Jetty

For dev. Just install Netbeans and New Maven Project -> Web Application edit pom.xml:

<plugins>
 <plugin>
  <groupId>org.mortbay.jetty</groupId>
  <artifactId>maven-jetty-plugin</artifactId>
  <version>6.1.14</version>
  <configuration>
   <scanIntervalSeconds>5</scanIntervalSeconds>
  </configuration>
 </plugin>
</plugins>

Done! you can write jsp & servet and test on jetty

For Live! You should not run jetty standalone. One popular way is run with Apache http://wiki.eclipse.org/Jetty/Tutorial/Apache

Upvotes: 1

Tomz
Tomz

Reputation: 111

Hi bhavs,

I for newbie with jsp, servlet and embedded jetty I found a good tutorial as link http://www.seas.upenn.edu/~cis330/jetty.html

or eclipse wiki http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty

Regards, Tomz

Upvotes: 2

Related Questions