aspose file tools*
The moose likes Servlets and the fly likes how to create relative path in xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to create relative path in xml" Watch "how to create relative path in xml" New topic
Author

how to create relative path in xml

narendra cheeterala
Greenhorn

Joined: Oct 09, 2012
Posts: 4

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

Joined: Nov 13, 2011
Posts: 64

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

Joined: Oct 09, 2012
Posts: 4

thank you for your information i got it worked out......
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to create relative path in xml