RE: Html Form Tag Question

2003-08-01 Thread Jones, Marty B.
Chuck,

Sure enough, that was it.  The action attribute is now being set as it
should.

Thanks for all your help.

-Original Message-
From: Canning, Chuck [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:49 AM
To: 'Struts Users Mailing List'
Subject: RE: Html Form Tag Question


Hey,

I had the same syptoms and the problem was an incorrect  in
my web.xml. We had /*.do instead of *.do. because of that, the
RequestUtils.getActionMappingURL() would not parse the action correctly. YOu
might want to start looking there.

Chuck

-Original Message-
From: Michael Ruppin [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:40 AM
To: Struts Users Mailing List
Subject: Re: Html Form Tag Question


I don't know if it was resolved, but this thread
should be of interest to you:

http://marc.theaimsgroup.com/?l=struts-user&m=105943092932593&w=2

HTH

m

--- "Jones, Marty B." <[EMAIL PROTECTED]>
wrote:
> I have the following tag declaration in a jsp file:
> 
>  focus="username" method="POST"
> type="com.dailyaccess.actions.LoginBean">
> 
> The jsp compiles correct and views correctly.  The
> issue that I am having is
> that the action attribute in the html form that is
> created is an empty
> string!  It is as if the FormTag class is not
> setting the action string.
> 
> Any help would be greatly appreciated.
> 
> 
> Marty B. Jones
> Senior Software Engineer
> DailyAccess.Com
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
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]

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



RE: Html Form Tag Question

2003-08-01 Thread Jones, Marty B.
Thanks Michael.

-Original Message-
From: Michael Ruppin [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:40 AM
To: Struts Users Mailing List
Subject: Re: Html Form Tag Question


I don't know if it was resolved, but this thread
should be of interest to you:

http://marc.theaimsgroup.com/?l=struts-user&m=105943092932593&w=2

HTH

m

--- "Jones, Marty B." <[EMAIL PROTECTED]>
wrote:
> I have the following tag declaration in a jsp file:
> 
>  focus="username" method="POST"
> type="com.dailyaccess.actions.LoginBean">
> 
> The jsp compiles correct and views correctly.  The
> issue that I am having is
> that the action attribute in the html form that is
> created is an empty
> string!  It is as if the FormTag class is not
> setting the action string.
> 
> Any help would be greatly appreciated.
> 
> 
> Marty B. Jones
> Senior Software Engineer
> DailyAccess.Com
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
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]



RE: Html Form Tag Question

2003-08-01 Thread Bailey, Shane C.

Take out the type and name attributes out of the form tag.  They should
already be mapped in the struts-config and you don't need them in the JSP.



-Original Message-
From: Jones, Marty B. [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 01, 2003 11:34 AM
To: [EMAIL PROTECTED]
Subject: Html Form Tag Question

I have the following tag declaration in a jsp file:



The jsp compiles correct and views correctly.  The issue that I am having is
that the action attribute in the html form that is created is an empty
string!  It is as if the FormTag class is not setting the action string.

Any help would be greatly appreciated.


Marty B. Jones
Senior Software Engineer
DailyAccess.Com


-
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]



RE: Html Form Tag Question

2003-08-01 Thread Jones, Marty B.
Thanks for the info.  I will take a look.

-Original Message-
From: Canning, Chuck [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:49 AM
To: 'Struts Users Mailing List'
Subject: RE: Html Form Tag Question


Hey,

I had the same syptoms and the problem was an incorrect  in
my web.xml. We had /*.do instead of *.do. because of that, the
RequestUtils.getActionMappingURL() would not parse the action correctly. YOu
might want to start looking there.

Chuck

-Original Message-
From: Michael Ruppin [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:40 AM
To: Struts Users Mailing List
Subject: Re: Html Form Tag Question


I don't know if it was resolved, but this thread
should be of interest to you:

http://marc.theaimsgroup.com/?l=struts-user&m=105943092932593&w=2

HTH

m

--- "Jones, Marty B." <[EMAIL PROTECTED]>
wrote:
> I have the following tag declaration in a jsp file:
> 
>  focus="username" method="POST"
> type="com.dailyaccess.actions.LoginBean">
> 
> The jsp compiles correct and views correctly.  The
> issue that I am having is
> that the action attribute in the html form that is
> created is an empty
> string!  It is as if the FormTag class is not
> setting the action string.
> 
> Any help would be greatly appreciated.
> 
> 
> Marty B. Jones
> Senior Software Engineer
> DailyAccess.Com
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
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]

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



RE: Html Form Tag Question

2003-08-01 Thread Canning, Chuck
Hey,

I had the same syptoms and the problem was an incorrect  in
my web.xml. We had /*.do instead of *.do. because of that, the
RequestUtils.getActionMappingURL() would not parse the action correctly. YOu
might want to start looking there.

Chuck

-Original Message-
From: Michael Ruppin [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:40 AM
To: Struts Users Mailing List
Subject: Re: Html Form Tag Question


I don't know if it was resolved, but this thread
should be of interest to you:

http://marc.theaimsgroup.com/?l=struts-user&m=105943092932593&w=2

HTH

m

--- "Jones, Marty B." <[EMAIL PROTECTED]>
wrote:
> I have the following tag declaration in a jsp file:
> 
>  focus="username" method="POST"
> type="com.dailyaccess.actions.LoginBean">
> 
> The jsp compiles correct and views correctly.  The
> issue that I am having is
> that the action attribute in the html form that is
> created is an empty
> string!  It is as if the FormTag class is not
> setting the action string.
> 
> Any help would be greatly appreciated.
> 
> 
> Marty B. Jones
> Senior Software Engineer
> DailyAccess.Com
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
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]



Re: Html Form Tag Question

2003-08-01 Thread Michael Ruppin
I don't know if it was resolved, but this thread
should be of interest to you:

http://marc.theaimsgroup.com/?l=struts-user&m=105943092932593&w=2

HTH

m

--- "Jones, Marty B." <[EMAIL PROTECTED]>
wrote:
> I have the following tag declaration in a jsp file:
> 
>  focus="username" method="POST"
> type="com.dailyaccess.actions.LoginBean">
> 
> The jsp compiles correct and views correctly.  The
> issue that I am having is
> that the action attribute in the html form that is
> created is an empty
> string!  It is as if the FormTag class is not
> setting the action string.
> 
> Any help would be greatly appreciated.
> 
> 
> Marty B. Jones
> Senior Software Engineer
> DailyAccess.Com
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Html Form Tag Question

2003-08-01 Thread Jones, Marty B.
I have the following tag declaration in a jsp file:



The jsp compiles correct and views correctly.  The issue that I am having is
that the action attribute in the html form that is created is an empty
string!  It is as if the FormTag class is not setting the action string.

Any help would be greatly appreciated.


Marty B. Jones
Senior Software Engineer
DailyAccess.Com


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



Form tag question

2001-04-30 Thread Ross

Hi all

I'm working my way through struts-example and the documentation and I
am confused about the process a form tag takes to create an ActionForm
bean if one doesn't exist. There seems to be conflicting documentation.

The walking tour of the example says.

>First, the logon.jsp makes use of the custom-tag "form". This tag can
>scan the application's properties for a form bean related to the
>path /logon.jsp (from the link on the welcome page).

Which sounds the same as the html tag libray guide which says:

>The name of the bean and its class can be specified as a property to
>the form tag, but may also be omitted. If omitted, the ActionMappings
>database (loaded from the struts-config.xml file) is consulted. If the
>current page is specified as the input property for an action, the
name
>of the action is used. The type property for the bean is also then
>taken from the configuration, via a Form Bean definition.

But the html tag library reference says this for the name attribute of
the form tag:

>Name of the request scope or session scope bean (as defined by the
>scope attribute) whose properties will be used to populate the input
>field values. If no such bean is found, a new bean will be created and
>added to the appropriate scope, using the Java class name specified by
>the type attribute.
>
>If this attribute is not specified, it will be calculated by using the
>value of the action attribute to look up the corresponding
>ActionMapping element, from which we will select the specified form
>bean name.

So in struts-example/login.jsp, does it find a correct action mapping
because there is a mapping with path="/logon" which is the same as the
form tag action attribute or does it find it because input="/logon.jsp"
which is the jsp url?

If the ActionForm bean is created in a form tag rather than in an
action bean earlier, do the request parameters not get updated to the
bean? I notice that if I go directly to login.jsp and append
?username=ross to the url, then this does not appear in the textbox.

Slightly off topic but do I understand correctly that the reason why
the login link in struts-example/index.jsp goes directly to login.jsp
rather than login.do is because in the case of a login form we don't
want to display anything initially in the boxes. That is the main thing
that's different between login and other forms in the example. Usually
we would go to an action instead of a jsp directly?

Thanks
Ross


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/