Screen definition issue

I have a web app and deployed to JBOSS server.

There are some screens definition file under WEB-INF\xml\ as below:

In file requestmappings.xml :

<url-mapping url="/mydir" screen="myhome"/>

In file screendefinitions.xml:

<screen-name>myhome</screen-name>

< parameter key="HtmlTitle" value="myhome" direct="true"/>

< parameter key="HtmlBanner" value="/mydir/banner.jsp" direct="false"/>

......

< /screen>

I can access each part of the screen. For instance, banner.jsp in broswer

http://localhost/mydir/banner.jsp

But I can't access the screen like

http://localhost/mydir/myhome

how to slove this issue?

[728 byte] By [KentZhoua] at [2007-10-3 9:34:18]
# 1
What's in your web.xml file? What's the directory structure of your app? Things in your WEB-INF directory are not directly accesible.Message was edited by: 7stud
7studa at 2007-7-15 4:49:36 > top of Java-index,Java Essentials,New To Java...
# 2

The configuration files as:

WEB-INF/web.xml

<web-app>

<display-name>WebTier</display-name>

<description>NO description</description>

<servlet>

<servlet-name>webTierEntryPoint</servlet-name>

<display-name>centralServlet</display-name>

<description>no description</description>

<servlet-class>com.myweb.MainServlet</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>webTierEntryPoint</servlet-name>

<url-pattern>/control/*</url-pattern>

</servlet-mapping>

<session-config>

<session-timeout>120</session-timeout>

</session-config>

<welcome-file-list>

<welcome-file>index.html</welcome-file>

</welcome-file-list>

.....

</web-app>

WEB-INF/xml/requestmappings.xml

WEB-INF/xml/screendefinitions.xml

KentZhoua at 2007-7-15 4:49:36 > top of Java-index,Java Essentials,New To Java...
# 3

>What''s the directory structure of your app?

In other words, post the directory structure of your app.Without knowing the directory structure, I would guess your .jsp file is not in the WEB-INF directory.

Also post the answer to this question: are files in the WEB-INF directory directly accesible?

7studa at 2007-7-15 4:49:36 > top of Java-index,Java Essentials,New To Java...