Re: Having trouble with html:form tag - Using 1.1 - THAT WORKED

2003-10-24 Thread Jim Kennedy
I did try that and it did not work.  path=/pm/myaction is illegal I thought
for a struts action.  Everything must be stripped away and that includes
extensions (ie *.do, *.go) and prefix path info (ie /context/./).  I
thought I read that somewhere.

In any case, thank you very much.  Both of you.  Your comments definitely
help me think through the issues.

Jim Kennedy
IT Consultant
Mobile Phone: 813-503-1484
-


- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 24, 2003 4:46 PM
Subject: Re: Having trouble with html:form tag - Using 1.1 - THAT WORKED


> I think your way should work too.You should be able to define any kind of
> mapping as per rules!!Your mapping should match the call.
>
> But when U define mapping as /pm/* then you also have to call servlet
> like.
>  > type="aaa.ers.struts.forms.myForm">
>  scope="request" type="aaa.ers.struts.actions.myAction" validate="false">
>
> and this should work too.I am not sure if you tried that??
> but since the other one is working :) good
>
>
>
>
>
> "Jim Kennedy" <[EMAIL PROTECTED]>
> 10/24/2003 03:39 PM
> Please respond to "Struts Users Mailing List"
>
>
>     To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>
> cc:
> Subject:Re: Having trouble with html:form tag - Using
1.1 - THAT WORKED
>
>
> But why.  I don't understand.  I should be able to define:
>
> /pm/*
> /hello/*
> /anything/* to the Struts action servlet.  It's doing weird things here.
> It's not able to figure out that I am using /pm/...  I guess because it's
> getting confused by all the other subcontexts.  It should be using the
> sample context/subcontext as the form itself.
>
> Do you think this is a bug?  Or should I avoid /this/*  and /that/* ?  How
> would I do security on some but not all then?
>
> Jim Kennedy
> IT Consultant
> Mobile Phone: 813-503-1484
> -
>
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, October 24, 2003 4:21 PM
> Subject: Re: Having trouble with html:form tag - Using 1.1 - NO luck
>
>
> > try changing your mapping in web.xml to  *.do  and the for your form
> >  > type="aaa.ers.struts.forms.myForm">
> > and in ur config file
> >
> >  scope="request" type="aaa.ers.struts.actions.myAction" validate="false">
> >
> > change ur mapping
> >
> >
> >
> >
> >
> > "Jim Kennedy" <[EMAIL PROTECTED]>
> > 10/24/2003 03:12 PM
> > Please respond to "Struts Users Mailing List"
> >
> >
> > To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> > cc:
> > Subject:Re: Having trouble with html:form tag - Using
> 1.1 - NO luck
> >
> >
> > Validate method is not being fired.  I placed debug log messages in
> > validate
> > method.  I do see the form class loaded by the class loader though.  I'm
> > using JBOSS with Tomcat 4.1.24
> >
> > Could it have something to do with the fact that I have multiple uri's
> > mapped to the action servlet.  But I am not using modules.
> >
> > Jim Kennedy
> > IT Consultant
> > Mobile Phone: 813-503-1484
> > -
> >
> >
> > - Original Message -
> > From: <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, October 24, 2003 3:48 PM
> > Subject: RE: Having trouble with html:form tag - Using 1.1
> >
> >
> > > Is it possible since you are using validation; validate="true" that
> your
> > > validation is failing and that is why ur action doesn't run???debug
> for
> > > validate method in actionform bean?
> > >
> > >
> > >
> > >
> > > "Chen, Gin" <[EMAIL PROTECTED]>
> > > 10/24/2003 02:32 PM
> > > Please respond to "Struts Users Mailing List"
> > >
> > >
> > > To: "'Struts Users Mailing List'"
> > <[EMAIL PROTECTED]>
> > > cc:
> > > Subject:RE: Having

Re: Having trouble with html:form tag - Using 1.1 - THAT WORKED

2003-10-24 Thread VKeswani
I think your way should work too.You should be able to define any kind of 
mapping as per rules!!Your mapping should match the call.

But when U define mapping as /pm/* then you also have to call servlet 
like.
 type="aaa.ers.struts.forms.myForm">


and this should work too.I am not sure if you tried that??
but since the other one is working :) good





"Jim Kennedy" <[EMAIL PROTECTED]>
10/24/2003 03:39 PM
Please respond to "Struts Users Mailing List"

 
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
    cc: 
        Subject:        Re: Having trouble with html:form tag - Using 1.1 - THAT WORKED


But why.  I don't understand.  I should be able to define:

/pm/*
/hello/*
/anything/* to the Struts action servlet.  It's doing weird things here.
It's not able to figure out that I am using /pm/...  I guess because it's
getting confused by all the other subcontexts.  It should be using the
sample context/subcontext as the form itself.

Do you think this is a bug?  Or should I avoid /this/*  and /that/* ?  How
would I do security on some but not all then?

Jim Kennedy
IT Consultant
Mobile Phone: 813-503-1484
-


- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 24, 2003 4:21 PM
Subject: Re: Having trouble with html:form tag - Using 1.1 - NO luck


> try changing your mapping in web.xml to  *.do  and the for your form
>  type="aaa.ers.struts.forms.myForm">
> and in ur config file
>
> 
>
> change ur mapping
>
>
>
>
>
> "Jim Kennedy" <[EMAIL PROTECTED]>
> 10/24/2003 03:12 PM
> Please respond to "Struts Users Mailing List"
>
>
> To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>
> cc:
> Subject:Re: Having trouble with html:form tag - Using
1.1 - NO luck
>
>
> Validate method is not being fired.  I placed debug log messages in
> validate
> method.  I do see the form class loaded by the class loader though.  I'm
> using JBOSS with Tomcat 4.1.24
>
> Could it have something to do with the fact that I have multiple uri's
> mapped to the action servlet.  But I am not using modules.
>
> Jim Kennedy
> IT Consultant
> Mobile Phone: 813-503-1484
> -
>
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, October 24, 2003 3:48 PM
> Subject: RE: Having trouble with html:form tag - Using 1.1
>
>
> > Is it possible since you are using validation; validate="true" that 
your
> > validation is failing and that is why ur action doesn't run???debug 
for
> > validate method in actionform bean?
> >
> >
> >
> >
> > "Chen, Gin" <[EMAIL PROTECTED]>
> > 10/24/2003 02:32 PM
> > Please respond to "Struts Users Mailing List"
> >
> >
> > To: "'Struts Users Mailing List'"
> <[EMAIL PROTECTED]>
> > cc:
> > Subject:RE: Having trouble with html:form tag - Using
> 1.1
> >
> >
> > Don't know if this will do anything but change
> > 
> > To
> > 
> >
> > From the struts-html guide:
> > "If you are using path mapping to select the controller servlet, this
> > value
> > should be exactly equal to the path attribute of the corresponding
> > 
> > element."
> >
> > Note the "exactly equal to"
> > -Tim
> >
> > -Original Message-
> > From: Jim Kennedy [mailto:[EMAIL PROTECTED]
> > Sent: Friday, October 24, 2003 3:05 PM
> > To: Struts Users Mailing List
> > Subject: Re: Having trouble with html:form tag - Using 1.1
> >
> >
> > I took out those attributes from the html:form tag , but the results
> were
> > exactly the same.  This is weird.  My setup looks correct.
> >
> > > > Here's my struts XML:
> > > >
> > > >  > > > name="pmRegisterForm"
> > > > type="com.je.struts.action.PMRegisterForm">
> > > > 
> > > > .
> > > >
> > > >  > > > type="com.je.struts.action.PMRegisterAction"
> > > > scope="request"
> > > > name="pmRegisterForm"
> > > >
> > >
> input="/tmpl_main.jsp?page=/main/pm/regfor

Re: Having trouble with html:form tag - Using 1.1 - THAT WORKED

2003-10-24 Thread Jim Kennedy
But why.  I don't understand.  I should be able to define:

/pm/*
/hello/*
/anything/* to the Struts action servlet.  It's doing weird things here.
It's not able to figure out that I am using /pm/...  I guess because it's
getting confused by all the other subcontexts.  It should be using the
sample context/subcontext as the form itself.

Do you think this is a bug?  Or should I avoid /this/*  and /that/* ?  How
would I do security on some but not all then?

Jim Kennedy
IT Consultant
Mobile Phone: 813-503-1484
-


- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 24, 2003 4:21 PM
Subject: Re: Having trouble with html:form tag - Using 1.1 - NO luck


> try changing your mapping in web.xml to  *.do  and the for your form
>  type="aaa.ers.struts.forms.myForm">
> and in ur config file
>
> 
>
> change ur mapping
>
>
>
>
>
> "Jim Kennedy" <[EMAIL PROTECTED]>
> 10/24/2003 03:12 PM
> Please respond to "Struts Users Mailing List"
>
>
> To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>
> cc:
> Subject:Re: Having trouble with html:form tag - Using
1.1 - NO luck
>
>
> Validate method is not being fired.  I placed debug log messages in
> validate
> method.  I do see the form class loaded by the class loader though.  I'm
> using JBOSS with Tomcat 4.1.24
>
> Could it have something to do with the fact that I have multiple uri's
> mapped to the action servlet.  But I am not using modules.
>
> Jim Kennedy
> IT Consultant
> Mobile Phone: 813-503-1484
> -
>
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, October 24, 2003 3:48 PM
> Subject: RE: Having trouble with html:form tag - Using 1.1
>
>
> > Is it possible since you are using validation; validate="true" that your
> > validation is failing and that is why ur action doesn't run???debug for
> > validate method in actionform bean?
> >
> >
> >
> >
> > "Chen, Gin" <[EMAIL PROTECTED]>
> > 10/24/2003 02:32 PM
> > Please respond to "Struts Users Mailing List"
> >
> >
> > To: "'Struts Users Mailing List'"
> <[EMAIL PROTECTED]>
> > cc:
> > Subject:RE: Having trouble with html:form tag - Using
> 1.1
> >
> >
> > Don't know if this will do anything but change
> > 
> > To
> > 
> >
> > From the struts-html guide:
> > "If you are using path mapping to select the controller servlet, this
> > value
> > should be exactly equal to the path attribute of the corresponding
> > 
> > element."
> >
> > Note the "exactly equal to"
> > -Tim
> >
> > -Original Message-
> > From: Jim Kennedy [mailto:[EMAIL PROTECTED]
> > Sent: Friday, October 24, 2003 3:05 PM
> > To: Struts Users Mailing List
> > Subject: Re: Having trouble with html:form tag - Using 1.1
> >
> >
> > I took out those attributes from the html:form tag , but the results
> were
> > exactly the same.  This is weird.  My setup looks correct.
> >
> > > > Here's my struts XML:
> > > >
> > > >  > > > name="pmRegisterForm"
> > > > type="com.je.struts.action.PMRegisterForm">
> > > > 
> > > > .
> > > >
> > > >  > > > type="com.je.struts.action.PMRegisterAction"
> > > > scope="request"
> > > > name="pmRegisterForm"
> > > >
> > >
> input="/tmpl_main.jsp?page=/main/pm/regform.jsp&page_title=Property
> > > > Management Services"
> > > > validate="true">
> > > >  > > > path="/tmpl_main.jsp?page=/main/pm/fees.jsp&page_title=Property
> > > > Management Services"/>
> > > > 
> > > >
> >
> >
> > I think is has something to do with my servlet mappings.  It also seems
> > odd
> > to me that the generated action in the generated page is /webapp. Where
> > /webapp is my context.  This I believe to be a problem also.
> >
> > Not sure.  Any suggestions.
> >
> >
> > Jim Kennedy
> > IT Consultant
> > Mobile Phone: 813-503-1484
> > -
> >
> >
> > - Original Message -
> > From: "Chen, Gin" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Friday, October 24, 2003 1:58 PM
> > Subject: RE: Having trouble with html:form tag - Using 1.1
> >
> >
> > > 1.1 doesn't have the type and name anymore.
> > > Try to take that out and then show us how you have struts-config for
> > that
> > > action setup.
> > > -Tim
> > >
> > > -Original Message-
> > > From: Jim Kennedy [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, October 24, 2003 1:51 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: Having trouble with html:form tag - Using 1.1
> > >
> > >
> > > 1.1
> > >
> > > Jim Kennedy
> > > IT Consultant
> > > Mobile Phone: 813-503-1484
> > > -
> > >
> > >
> > > - Original Message -
> > > From: "Chen, Gin" <[EMAIL PROTECTED]>
> > > To: "'S