Question about testing custom tags
| Newsgroups | gmane.comp.jakarta.cactus.user |
|---|---|
| Message-ID | <OFC35BACFF.EE60F089-ON85257132.00568197-85257132.0056B6F5@vanguard.com> |
Folks,
I am using Cactus to test custom tags. This is how my setup of Cactus is:
cactus.properties
cactus.contextURL = http://localhost:9081/contextRoot
There are no other entries in this file. I am using the default
ServletRedirector and ServletTestRunner. I am now trying to test custom
tags that extend JspTestCase. Accordingly, I added the entries for the
JspRedirector to the web.xml file. The entries are as follows:
web.xml
<servlet>
<servlet-name>JspRedirector</servlet-name>
<servlet-class>/jspRedirector.jsp</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>JspRedirector</servlet-name>
<url-pattern>/JspRedirector</url-pattern>
</servlet-mapping>
The jspRedirector.jsp is located in the WEB-INF directory of the web
application.
On trying to run the test by invoking the following url, I get the error
message below:
Error 500: Missing service name parameter [Cactus_Service] in HTTP
request. Received query string is [null].
The url used is:
URL=http://localhost:9081/contextRoot/jspRedirector.jsp
Any pointers on what I am doing incorrectly.
Thanks,
Samarth
CONFIDENTIALITY STATEMENT. The information contained in this e-mail message, including attachments, is the confidential information of, and/or is the property of, Vanguard. The information is intended for use solely by the individual or entity named in the message. If you are not an intended recipient or you received this in error, then any review, printing, copying, or distribution of any such information is prohibited, and please notify the sender immediately by reply e-mail and then delete this e-mail from your system.