RE: Restricting Direct Access to Jsp

2007-06-20 Thread munawar soomro

Fellows,

I am unable to start apache tomcat server running simple application. The 
reason is that it cannot find mappings as given below, any input is 
appreciated.


thanks

Munwar Soomro

Log messages:
WARNING: Unable to load config class 
org.apache.struts2.interceptor.debugging.DebuggingInterceptor at interceptor 
- 
jar:file:/C:/struts2/struts-2.0.8/lib/struts2-core-2.0.8.jar!/struts-default.xml:76:115 
probably due to a missing jar, which might be fine if you never plan to use 
the debugging interceptor


Jun 20, 2007 3:14:37 PM 
com.opensymphony.xwork2.config.providers.InterceptorBuilder 
constructInterceptorReference


SEVERE: Actual exception

Caught Exception while registering Interceptor class 
org.apache.struts2.interceptor.debugging.DebuggingInterceptor - interceptor 
- 
jar:file:/C:/struts2/struts-2.0.8/lib/struts2-core-2.0.8.jar!/struts-default.xml:76:115


at 
org.apache.struts2.impl.StrutsObjectFactory.buildInterceptor(StrutsObjectFactory.java:78)


Caused by: com.opensymphony.xwork2.inject.DependencyException: 
com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No 
mapping found for dependency 
[type=org.apache.struts2.views.freemarker.FreemarkerManager, name='default'] 
in public void 
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.setFreemarkerManager(org.apache.struts2.views.freemarker.FreemarkerManager).


at 
com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(ContainerImpl.java:157)









From:  Archer <[EMAIL PROTECTED]>
Reply-To:  "Struts Users Mailing List" 
To:  "Struts Users Mailing List" 
Subject:  Restricting Direct Access to Jsp
Date:  Wed, 20 Jun 2007 12:51:53 -0500

Hi,

I am using struts 1.3.8 for my application. Can anybody please help me how
to restrict access to jsp pages directly in struts. I am not having any of
jsp in web-inf, so I need to restrict direct access to JSP. Any suggestion
will be a great help to me.

--
Regards
Archer


_
Don’t miss your chance to WIN $10,000 and other great prizes from Microsoft 
Office Live http://clk.atdmt.com/MRT/go/aub0540003042mrt/direct/01/



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



Re: Restricting Direct Access to Jsp

2007-06-20 Thread Archer

Thank you for the input Manos.I am new to struts and security
implementation. So I am trying different things.

My present implemetation has restricted access to JSP pages depending on
role. I thought of restricting  complete access to JSP pages itself as the
jsp pages get the input from action classes(A error is displayed if the JSP
page should get the variable ). Is this the right approach?.

Other thing i want to try is bookmark a page and if a user clicks on it, it
should go to the login page and after logging in it should display the page
if he has access to that page(depending on role). I am not able to come up
with a solution. Can you suggest me anything on this.

Thanks once again for the solution

Regards
Viplav


On 6/20/07, Manos Batsis <[EMAIL PROTECTED]> wrote:


Archer wrote:
> Hi,
>
> I am using struts 1.3.8 for my application. Can anybody please help me
how
> to restrict access to jsp pages directly in struts. I am not having any
of
> jsp in web-inf, so I need to restrict direct access to JSP. Any
suggestion
> will be a great help to me.
>

Too many ways to do this, for example a servletfilter or web.xml

   
   
   no_access
   *.jsp
   
   
   


hth,

Manos

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





--
Regards
Archer


Re: Restricting Direct Access to Jsp

2007-06-20 Thread Manos Batsis

Archer wrote:

Hi,

I am using struts 1.3.8 for my application. Can anybody please help me how
to restrict access to jsp pages directly in struts. I am not having any of
jsp in web-inf, so I need to restrict direct access to JSP. Any suggestion
will be a great help to me.



Too many ways to do this, for example a servletfilter or web.xml

  
  
  no_access
  *.jsp
  
  
  


hth,

Manos

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