|
-
July 17th, 2008, 02:29 AM
#1
servlet mapping problem
hi
my web.xml :
Code:
<servlet>
<servlet-name>test</servlet-name>
<jsp-file>/abc/a.jsp</jsp-file>
<init-param>
<param-name>Id</param-name>
<param-value>a.3</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>test</servlet-name>
<url-pattern>/test</url-pattern>
</servlet-mapping>
<session-config>
but the problem is......
it opens the a.jsp page when i say..... /test
but does not open the a.jsp with the parameter Id=a.3
and also it does not load the CSS file when i give /nav. It display the content without the CSS.
how to achieve this?
-
July 17th, 2008, 05:59 AM
#2
Re: servlet mapping problem
Have you tried:
Code:
...
<url-pattern>/test/*</url-pattern>
...
Optimism is an occupational hazard of programming: testing is the treatment...
K. Beck
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
-
July 17th, 2008, 07:18 AM
#3
Re: servlet mapping problem
 Originally Posted by dlorde
Have you tried:
Code:
...
<url-pattern>/test/*</url-pattern>
...
Optimism is an occupational hazard of programming: testing is the treatment...
K. Beck
it is still not opening page with the given parameter.
and also CSS is not being loaded.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|