You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ramadoss Chinnakuzhandai <rc...@register.com> on 2003/10/21 19:53:44 UTC

Access control in Struts

Hi,
        I'm new to struts,I need to load some jsp pages based on different level of access control who are accessing the site. for eg for userA I need to show some pages while userB can only view/access few pages.

Thanks in advance,

-Ram


-----Original Message-----
From: Barry Volpe [mailto:struts@childrencare.com]
Sent: Tuesday, October 21, 2003 1:48 PM
To: Struts Users Mailing List
Subject: Re: DynaForms and java.util.ArrayList" 


Tim,

Thanks. The error is gone.  Should have
realized I couldn't initialize array with initial="".

Barry


----- Original Message ----- 
From: "Chen, Gin" <Gi...@NielsenMedia.com>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
Sent: Tuesday, October 21, 2003 10:42 AM
Subject: RE: DynaForms and java.util.ArrayList" 


> Remove initial=""
> Then in your jsp do:
> <c:forEach var="blah" items="${myFormBean.map.city}">
> <c:out value="${blah}"/>
> </c:forEach>
> -Tim
> 
> -----Original Message-----
> From: Barry Volpe [mailto:struts@childrencare.com] 
> Sent: Tuesday, October 21, 2003 1:14 PM
> To: Struts Users Mailing List
> Subject: DynaForms and java.util.ArrayList" 
> 
> 
> 
> When I define this in my struts-config:
> 
> <form-property 
>      name="city"
>      type="java.util.ArrayList" 
>      initial=""/> 
> 
> I get this error:
> 
> [ServletException in:/tiles/locationselection.jsp] 
> Exception creating bean of class
> org.apache.struts.validator.DynaValidatorForm: {1}' 
>  
>  Can I access "city" using JSTL in my jsp.
> 
> What should I put in my JSP.
> 
> What am I missing?
> 
> Thanks,
> Barry
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Access control in Struts

Posted by James Mitchell <jm...@apache.org>.
 Lesson 1. - Don't hijack an existing thread, create your own.

 Lesson 2. - See lesson 1.



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




> -----Original Message-----
> From: Ramadoss Chinnakuzhandai [mailto:rchinnakuzhandai@register.com] 
> Sent: Tuesday, October 21, 2003 1:54 PM
> To: Struts Users Mailing List
> Subject: Access control in Struts
> 
> 
> Hi,
>         I'm new to struts,I need to load some jsp pages based 
> on different level of access control who are accessing the 
> site. for eg for userA I need to show some pages while userB 
> can only view/access few pages.
> 
> Thanks in advance,
> 
> -Ram
> 
> 
> -----Original Message-----
> From: Barry Volpe [mailto:struts@childrencare.com]
> Sent: Tuesday, October 21, 2003 1:48 PM
> To: Struts Users Mailing List
> Subject: Re: DynaForms and java.util.ArrayList" 
> 
> 
> Tim,
> 
> Thanks. The error is gone.  Should have
> realized I couldn't initialize array with initial="".
> 
> Barry
> 
> 
> ----- Original Message ----- 
> From: "Chen, Gin" <Gi...@NielsenMedia.com>
> To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
> Sent: Tuesday, October 21, 2003 10:42 AM
> Subject: RE: DynaForms and java.util.ArrayList" 
> 
> 
> > Remove initial=""
> > Then in your jsp do:
> > <c:forEach var="blah" items="${myFormBean.map.city}">
> > <c:out value="${blah}"/>
> > </c:forEach>
> > -Tim
> > 
> > -----Original Message-----
> > From: Barry Volpe [mailto:struts@childrencare.com] 
> > Sent: Tuesday, October 21, 2003 1:14 PM
> > To: Struts Users Mailing List
> > Subject: DynaForms and java.util.ArrayList" 
> > 
> > 
> > 
> > When I define this in my struts-config:
> > 
> > <form-property 
> >      name="city"
> >      type="java.util.ArrayList" 
> >      initial=""/> 
> > 
> > I get this error:
> > 
> > [ServletException in:/tiles/locationselection.jsp] 
> > Exception creating bean of class
> > org.apache.struts.validator.DynaValidatorForm: {1}' 
> >  
> >  Can I access "city" using JSTL in my jsp.
> > 
> > What should I put in my JSP.
> > 
> > What am I missing?
> > 
> > Thanks,
> > Barry
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > 
> > 
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org