• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to create relative path in xml

 
narendra cheeterala
Greenhorn
Posts: 4
Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am doing a small web project and i want it to be in MVC pattern, so i created 4 packages, now i want to use .class file. how can i do that??
 
RatiKanta pal
Ranch Hand
Posts: 84
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Web.xml
---------

<servlet>
<description>
</description>
<display-name>NSEPAccountController</display-name>
<servlet-name>NSEP</servlet-name>
<servlet-class>com.nsep.ams.controller.NSEPAccountController</servlet-class>
</servlet>//-------------->class file path
<servlet-mapping>
<servlet-name>NSEP</servlet-name>
<url-pattern>/NSEPAccountController</url-pattern>
</servlet-mapping>

jsp/html file
--------------
<form action="<%=request.getContextPath()%>/NSEPAccountController"//--->form action part will contain code like this which will be mapped into <url-patters>

thank you.
 
narendra cheeterala
Greenhorn
Posts: 4
Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you for your information i got it worked out......
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic