Hi to all,
Where i have to config and what, to prevent direct access to my jsp files ?

For example,
I have project name test.
If i whant to show product data the link is,
http://localhost/test?do=showProductData.
This link run the index.jsp that is in text, and in index.jsp there is
include to actions/showProducData.jsp.
To prevent direct access to jsp files that are locate in actions i added
this part to server.xml in the host part,
<Context path="/test/actions" docBase="/err" debug="0"
crossContext="false"/>
So when i try to do direct access to any jsp in actions is run the index
file under err.

The problem is when i run the link like this
http://127.0.0.1/test?do=showProductData, is not work.
If i want to cover this problem i have to add Host section to server.xml for
127.0.0.1 and put in it
this part <Context path="/test/actions" docBase="/err" debug="0"
crossContext="false"/>.

Is there any better solution for this problem ?

Thank you all.
-- 
View this message in context: 
http://www.nabble.com/server.xml-configuration..-tf3353902.html#a9327284
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to