Looking at this :
<checker:allowIf adapters="RolesAdapter" accept="GUEST_ROLE">
<html:javascript formName="registrationForm"/>
<html:form method="post" action="/PreRegisterUser.do"
onsubmit="return validateRegistrationForm(this);">
</checker:allowIf>
<html:form method="post" ..................> is missing closing tag
</html-form>.
Just give another try with closing </html-form>.
Reddy Pingili
> -----Original Message-----
> From: Pavlikus [SMTP:[EMAIL PROTECTED]
> Sent: Tuesday, June 22, 2004 2:22 PM
> To: Struts Users Mailing List
> Subject: Re[2]: Different form tags on same jsp
>
> Hello Geeta,
>
> Tuesday, June 22, 2004, 8:47:08 PM, you wrote:
>
> GR> Hi Pavlikus :
>
> GR> I think you may just have a typo:
>
> GR> <auth:if accept="GUEST_ROLE"/> <-- don't end tag here..
>
> I'm sorry, this is just misprint when I typing letter. I decide to
> simplify example and make an error.
>
> Original tags:
>
> <checker:allowIf adapters="RolesAdapter" accept="GUEST_ROLE">
> <html:javascript formName="registrationForm"/>
> <html:form method="post" action="/PreRegisterUser.do" onsubmit="return
> validateRegistrationForm(this);">
> </checker:allowIf>
>
> <checker:allowIf adapters="RolesAdapter" accept="USER_ROLE,
> MODERATOR_ROLE">
> <html:javascript formName="editProfileForm"/>
> <html:form method="post" action="/EditProfile.do" onsubmit="return
> validateEditProfileForm(this);">
> </checker:allowIf>
>
> May be something wrong with my taglib? How can I determine it?
>
>
> GR> Regards,
> GR> Geeta
>
>
> >> -----Original Message-----
> >> From: Pavlikus [mailto:[EMAIL PROTECTED]
> >> Sent: Tuesday, June 22, 2004 1:53 PM
> >> To: Struts Users Mailing List
> >> Subject: Different form tags on same jsp
> >>
> >>
> >> Hi all.
> >> I want to reuse the jsp page with form where user can Register or Edit
> >> Profile.
> >>
> >> I do like:
> >>
> >> <auth:if accept="GUEST_ROLE"/>
> >> <html:javascript formName="registrationForm"/>
> >> <html:form method="post" action="/PreRegisterUser.do"
> >> onsubmit="return validateRegistrationForm(this);">
> >> </auth:if>
> >>
> >> <auth:if accept="USER_ROLE, MODERATOR_ROLE">
> >> <html:javascript formName="editProfileForm"/>
> >> <html:form method="post" action="/EditProfile.do"
> >> onsubmit="return validateEditProfileForm(this);">
> >> </auth:if>
> >>
> >> I expect what it render form tag for registrationForm if user have
> >> GUEST_ROLE role, and tag for editProfileForm is user have prepotent
> >> roles.
> >>
> >> But when jsp compiles - it show following error:
> >> -- The end tag "</auth:if" is unbalanced'
> >>
> >> What happen? Is it possible to render different form tags with this
> >> method at all?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]