keep the original mapping, but also add it to your welcome file list

On Sun, 11 Jul 2004 04:45:49 +0800, Koon Yue Lam <[EMAIL PROTECTED]> wrote:

Hi, I place member.jsp in my webapp root folder, which is
<TOMCAT_HOME> --> webapp -->myWebApp/

and part of web.xml :
<servlet-mapping>
                <servlet-name>action</servlet-name>
                <url-pattern>*.do</url-pattern>
</servlet-mapping>

part of struts-config.xml:
<action-mappings >
                <action
                        path="/Index"
                        type="com.kiss.web.news.actions.Index"
                        unknown="false"
                        validate="true">
                        <forward
                                name="member"
                                path="/Member.jsp"
                                redirect="false"
                                contextRelative="false" />
                </action>
        </action-mappings>

I call http://localhost:8080/Index.do and member.jsp is shown
but when I change the
<url-pattern>*.do</url-pattern>
to
<url-pattern>/*</url-pattern>

then I call http://localhost:8080/Index

Index has been called with this error msg:
"Invalid path /Member.jsp was requested"

How can I fix it? I don't want to type some .do or .action sort of
thing in my url, I type want the url like :
http://localhost:8080/Index

with no extension

Any help?

Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.
-- Benjamin Franklin (1755)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to