Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Orestis Pantazos
Orestis Pantazos

Posted on

     

🦸 My popular post on Stackoverflow

The only way to modify web.xml to support for multiple servlet in JSPs, there is a way as shown in the following post on Stackoverflow network:

<?xml version="1.0" encoding="UTF-8"?><web-appversion="3.0"xmlns="http://java.sun.com/xml/ns/javaee"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://java.sun.com/xml/ns/javaee                                 http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"><servlet><servlet-name>LoginForm</servlet-name><servlet-class>com.project.system.LoginForm</servlet-class></servlet><servlet><servlet-name>RegisterForm</servlet-name><servlet-class>com.project.system.RegisterForm</servlet-class></servlet><servlet><servlet-name>UserController</servlet-name><servlet-class>com.project.controller.UserController</servlet-class></servlet><servlet-mapping><servlet-name>LoginForm</servlet-name><url-pattern>/LoginForm</url-pattern></servlet-mapping><servlet-mapping><servlet-name>RegisterForm</servlet-name><url-pattern>/RegisterForm</url-pattern></servlet-mapping><servlet-mapping><servlet-name>UserController</servlet-name><url-pattern>/UserController</url-pattern></servlet-mapping><session-config><session-timeout>            30</session-timeout></session-config></web-app>
Enter fullscreen modeExit fullscreen mode

https://stackoverflow.com/questions/43559372/how-to-modify-web-xml-for-multiple-servlet

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

DevOps Engineer @ Open DevOps
  • Location
    Athens, GR
  • Education
    MSc in Software Development @ University of Glasgow
  • Work
    DevOps Engineer
  • Joined

More fromOrestis Pantazos

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp