grab our rss feed  Follow us on twitter

s2sgateway

Practical Learning of Programming languages such us j2ee,java,jsp

To Download Our Web-Application Free E-book Enter your Mail Address Below

Enter your E-mail Address to Subscribe Tutorials and Free Projects:

  Powered by FeedBurner

Entries for the ‘Servlet’ Category

How to authenticate in a webapplication using jsp and servlet

ShareAuthentication in webapplication using jsp and servlet is easy to do.
The Page that contains the forms are placed in jsp page and the action event is redirected to a servlet where authentication happens if authentication is success it redirect to authenticated page or else redirect to login page with message incorrect username/password.
Create a basic table [...]

Comments

How to extract war file in java

ShareToday we are going to learn how to extract war file in java.
War files are important in deploying the web applications.It is a web-archive file bundled with all classes,jsp files,jar files etc.
We already saw a tutorial about how to create a war file.
After extracting war file we can paste the folder to the webapps folder [...]

Comments

captcha project in jsp/servlet

ShareAlready i wrote a post about creating random image using servlet that is loacted here http://s2sgateway.com/?p=378,With the continuation here i give you complete code for
creating captcha to validate a form to differentiate/protect from robots and spams
.In this project i had placed one form page for submitting information with two servlets one for creating captcha and [...]

Comments

Creating captcha(random letter image) in jsp

ShareToday we are going to learn how to create a random letter image known as captcha using servlet.
Just a simple coding can do it copy the code below and save it and compile it you can directly view the servlet in tomcat using url “http://localhost:8080/captcha/servlet/CaptchaServlet” for this make adjustment in web.xml file by adding servlet [...]

Comments

How to run servlet in tomcat 5.5

ShareTO RUN SERVLET IN TOMCAT 5.5
FIRST CREATE THE FOLDER STRUCTURE LIKE BELOW

C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\

UNDER WEBAPPS FOLDER

\
PROJECT FOLDER NAME
\
index.jsp
index.html
web_inf
\
classes
web.xml
[...]

Comments

HTTP Status 404 – Servlet as is not available

ShareToday we are going to learn about solving the error “HTTP Status 404 – Servlet as is not available”
The first thing here to check is web.xml file where you have to specify the servlet-name and servlet-mapping attributes like below ex:servletname:colorservlet

<servlet>
<servlet-name>colorservlet</servlet-name>
<servlet-class>colorservlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>colorservlet</servlet-name>
<url-pattern>/colorservlet</url-pattern>
</servlet-mapping>

Finally check the form attribute action as action=”colorservlet”
now you can run your program.Happy coding

Comments