Cannot retrieve definition for form bean null

2003-02-12 Thread Art Vandalay

Hello everyone,

I am trying to write a very simple Struts application that simply displays a JSP using 
bean:message to retrieve values for my field labels and buttons from a ResourceBundle. 
Pretty straight forward, but I am getting the following error:

 

 [exec] javax.servlet.jsp.JspException: Cannot retrieve definition for form
bean null

 

The message seems to imply that Struts is trying to access a bean whose name is "null" 
but I don't know what bean that would be as I have no beans referenced on my JSP. I am 
only trying to invoke the logic contained within the struts-bean.tld.

 

The logic flow is the user signs-into the application and is then forwarded to 
"simplePage.jsp". I used a ForwardAction to navigate from the logon page (after a 
successful login). But I never reach "simplePage.jsp" due to the above mentioned error.

 

Any help would be appreciated.

 

Here is what I have in my struts_config.xml:

 













































 

Here is my JSP:



<%@ page language="java" %>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>























 

 



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


Is html:message Valid?

2003-02-12 Thread Art Vandalay

In the Struts user guide located here:

http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_view.html#i18n

in Section 3.3.1 Building Forms With Struts, the example uses the following notation:

  
 

Is this a typo or does html:message exist? I could not find any mention of it in the 
Struts User guide and when I attempted to use it in my own JSP I got an error stating 
that "message" was invalid (sorry, I lost the exact error message but it was something 
to that affect).

Thanks.



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


RE: Is html:message Valid?

2003-02-12 Thread Art Vandalay

Thank you for that. I realized I was on the "old" version of the Use Guide but could 
not find a link on the Struts site to the 1.1 version. I've been looking for this for 
a while. Thank you.
 Sri Sankaran <[EMAIL PROTECTED]> wrote:And finally, it seems you are looking at 
the Struts 1.0.2 version of the user guide. The current one is at 
http://jakarta.apache.org/struts/userGuide/index.html.

Sri

-Original Message-
From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 12, 2003 2:58 PM
To: Struts Users Mailing List
Subject: RE: Is html:message Valid?


You can see what tags are in a taglib by perusing the .tld I did this for you and it 
looks like there is a 'messages' tag inside struts-html.tld, but it doesn't have 'key' 
attribute.

I think you're looking for although the "html" part is just a namespace or prefix that 
could be referring to any taglib, so technically it could be valid.

-Original Message-
> From: Art Vandalay [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 12:46 PM
> To: Struts Mailing List
> Subject: Is html:message Valid?
> 
> 
> 
> In the Struts user guide located here:
> 
> http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_
> view.html#i18n
> 
> in Section 3.3.1 Building Forms With Struts, the example uses
> the following notation:
> 
> 
> 
> 
> Is this a typo or does html:message exist? I could not find
> any mention of it in the Struts User guide and when I 
> attempted to use it in my own JSP I got an error stating that 
> "message" was invalid (sorry, I lost the exact error message 
> but it was something to that affect).
> 
> Thanks.
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> 

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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


RE: Cannot retrieve definition for form bean null

2003-02-12 Thread Art Vandalay

Yes, I do. The entire JSP was included in my message and appears at the bottom of this 
one as well. As you can see, it is quite simple. All I want is to retrieve a value 
from the resource bundle and set it as the page's title.
 Kandi Potter <[EMAIL PROTECTED]> wrote:I'm not sure if this is your problem, 
but do you have the tld directive in your jsp?



-Original Message-
From: Art Vandalay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 1:43 PM
To: Struts Mailing List
Subject: Cannot retrieve definition for form bean null



Hello everyone,

I am trying to write a very simple Struts application that simply displays a JSP using 
bean:message to retrieve values for my field labels and buttons from a ResourceBundle. 
Pretty straight forward, but I am getting the following error:



[exec] javax.servlet.jsp.JspException: Cannot retrieve definition for form
bean null



The message seems to imply that Struts is trying to access a bean whose name is "null" 
but I don't know what bean that would be as I have no beans referenced on my JSP. I am 
only trying to invoke the logic contained within the struts-bean.tld.



The logic flow is the user signs-into the application and is then forwarded to 
"simplePage.jsp". I used a ForwardAction to navigate from the logon page (after a 
successful login). But I never reach "simplePage.jsp" due to the above mentioned error.



Any help would be appreciated.



Here is what I have in my struts_config.xml:

















































Here is my JSP:
































-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


Re: Cannot retrieve definition for form bean null

2003-02-12 Thread Art Vandalay

I'm sorry to bug everyone again with this, but I cannot figure out what this error 
message is telling me. If anyone has any insight, I'd appreciate it.
After looking through the Struts 1.1 source files, I've determined that this is the 
code that throws the exception. It is located in FormTag.lookup:
// Look up the form bean definition
FormBeanConfig formBeanConfig = 
moduleConfig.findFormBeanConfig(mapping.getName());
if (formBeanConfig == null) {
JspException e =
new JspException(messages.getMessage("formTag.formBean", 
mapping.getName()));
pageContext.setAttribute(Globals.EXCEPTION_KEY, e, 
PageContext.REQUEST_SCOPE);
throw e;
}

 

My original message is below with the struts-config.xml and JSP page itself.

Thanks for any help you can provide.


 Art Vandalay <[EMAIL PROTECTED]> wrote:
Hello everyone,

I am trying to write a very simple Struts application that simply displays a JSP using 
bean:message to retrieve values for my field labels and buttons from a ResourceBundle. 
Pretty straight forward, but I am getting the following error:



[exec] javax.servlet.jsp.JspException: Cannot retrieve definition for form
bean null



The message seems to imply that Struts is trying to access a bean whose name is "null" 
but I don't know what bean that would be as I have no beans referenced on my JSP. I am 
only trying to invoke the logic contained within the struts-bean.tld.



The logic flow is the user signs-into the application and is then forwarded to 
"simplePage.jsp". I used a ForwardAction to navigate from the logon page (after a 
successful login). But I never reach "simplePage.jsp" due to the above mentioned error.



Any help would be appreciated.



Here is what I have in my struts_config.xml:

















































Here is my JSP:
































-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


RE: Cannot retrieve definition for form bean null

2003-02-12 Thread Art Vandalay

I am not referencing my own bean. The only thing my JSP tries to do is grab a value 
from a resource bundle and set the title of the page to that value. This is my entire 
JSP: 

 
  
 
 
  
 
 


 
This is the config file:

 
  
  
 
 
  
  
  
 
 
  
  
  
   
  
  
   
  
  
 

 
 James Childers <[EMAIL PROTECTED]> wrote: Nine times out of ten when I get that 
message it is one of two things:

- I haven't referenced the bean properly in the tag. This is especially true of 
anything which references a collection, because that syntax is just off.

- I haven't put the bean in the proper scope. Less frequent, but it happens.

BTW: Your struts-config and JSP source is coming across as blanks on my mailreader. 

-= J

> -Original Message-
> From: Art Vandalay [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 3:19 PM
> To: Struts Users Mailing List
> Subject: Re: Cannot retrieve definition for form bean null
> 
> 
> 
> I'm sorry to bug everyone again with this, but I cannot 
> figure out what this error message is telling me. If anyone 
> has any insight, I'd appreciate it.
> After looking through the Struts 1.1 source files, I've 
> determined that this is the code that throws the exception. 
> It is located in FormTag.lookup:
> // Look up the form bean definition
> FormBeanConfig formBeanConfig = 
> moduleConfig.findFormBeanConfig(mapping.getName());
> if (formBeanConfig == null) {
> JspException e =
> new 
> JspException(messages.getMessage("formTag.formBean", 
> mapping.getName()));
> pageContext.setAttribute(Globals.EXCEPTION_KEY, 
> e, PageContext.REQUEST_SCOPE);
> throw e;
> }
> 
> 
> 
> My original message is below with the struts-config.xml and 
> JSP page itself.
> 
> Thanks for any help you can provide.
> 
> 
> Art Vandalay wrote:
> Hello everyone,
> 
> I am trying to write a very simple Struts application that 
> simply displays a JSP using bean:message to retrieve values 
> for my field labels and buttons from a ResourceBundle. Pretty 
> straight forward, but I am getting the following error:
> 
> 
> 
> [exec] javax.servlet.jsp.JspException: Cannot retrieve 
> definition for form
> bean null
> 
> 
> 
> The message seems to imply that Struts is trying to access a 
> bean whose name is "null" but I don't know what bean that 
> would be as I have no beans referenced on my JSP. I am only 
> trying to invoke the logic contained within the struts-bean.tld.
> 
> 
> 
> The logic flow is the user signs-into the application and is 
> then forwarded to "simplePage.jsp". I used a ForwardAction to 
> navigate from the logon page (after a successful login). But 
> I never reach "simplePage.jsp" due to the above mentioned error.
> 
> 
> 
> Any help would be appreciated.
> 
> 
> 
> Here is what I have in my struts_config.xml:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Here is my JSP:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> 

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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


RE: Cannot retrieve definition for form bean null

2003-02-12 Thread Art Vandalay

yes, this is correct. I've already checked this.
 
The way I created my application was
1. Took an existing Struts example, put the .war into my app server
2. Tested the sample to see if it worked -- it did.
3. Added my own JSP
4. Modified the resource bundle
5. Modified struts_config
6. Rebuilt the app
7. Tried to run it.
 
But now I've been chasing this error for almost 2 full days with no progress. I'm 
ready to give up on struts.
 James Childers <[EMAIL PROTECTED]> wrote:This sounds like it's an issue with your 
resources file. Make sure it's being referenced properly in web.xml and is in a 
directory under WEB-INF\classes which corresponds to its package. 

-= J

> -----Original Message-
> From: Art Vandalay [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 3:38 PM
> To: Struts Users Mailing List
> Subject: RE: Cannot retrieve definition for form bean null
> 
> 
> 
> I am not referencing my own bean. The only thing my JSP tries 
> to do is grab a value from a resource bundle and set the 
> title of the page to that value. This is my entire JSP: 
> 
> 
> 

> 
> 
> 
> 
> 
> 
> This is the config file:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> > type="org.apache.struts.actions.ForwardAction" 
> parameter="Welcome.jsp"/>
> > type="org.apache.struts.actions.ForwardAction" parameter="Logon.jsp"/>
> > type="com.client.action.LogonAction" name="logonForm" 
> scope="request" validate="true" input="Logon.jsp">
> 
> 
> 
> 
> 
> > type="org.apache.struts.actions.ForwardAction" 
> parameter="simplePage.jsp"/>
> 
> 
> 
> James Childers wrote: Nine times out 
> of ten when I get that message it is one of two things:
> 
> - I haven't referenced the bean properly in the tag. This is 
> especially true of anything which references a collection, 
> because that syntax is just off.
> 
> - I haven't put the bean in the proper scope. Less frequent, 
> but it happens.
> 
> BTW: Your struts-config and JSP source is coming across as 
> blanks on my mailreader. 
> 
> -= J
> 
> > -Original Message-
> > From: Art Vandalay [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 12, 2003 3:19 PM
> > To: Struts Users Mailing List
> > Subject: Re: Cannot retrieve definition for form bean null
> > 
> > 
> > 
> > I'm sorry to bug everyone again with this, but I cannot 
> > figure out what this error message is telling me. If anyone 
> > has any insight, I'd appreciate it.
> > After looking through the Struts 1.1 source files, I've 
> > determined that this is the code that throws the exception. 
> > It is located in FormTag.lookup:
> > // Look up the form bean definition
> > FormBeanConfig formBeanConfig = 
> > moduleConfig.findFormBeanConfig(mapping.getName());
> > if (formBeanConfig == null) {
> > JspException e =
> > new 
> > JspException(messages.getMessage("formTag.formBean", 
> > mapping.getName()));
> > pageContext.setAttribute(Globals.EXCEPTION_KEY, 
> > e, PageContext.REQUEST_SCOPE);
> > throw e;
> > }
> > 
> > 
> > 
> > My original message is below with the struts-config.xml and 
> > JSP page itself.
> > 
> > Thanks for any help you can provide.
> > 
> > 
> > Art Vandalay wrote:
> > Hello everyone,
> > 
> > I am trying to write a very simple Struts application that 
> > simply displays a JSP using bean:message to retrieve values 
> > for my field labels and buttons from a ResourceBundle. Pretty 
> > straight forward, but I am getting the following error:
> > 
> > 
> > 
> > [exec] javax.servlet.jsp.JspException: Cannot retrieve 
> > definition for form
> > bean null
> > 
> > 
> > 
> > The message seems to imply that Struts is trying to access a 
> > bean whose name is "null" but I don't know what bean that 
> > would be as I have no beans referenced on my JSP. I am only 
> > trying to invoke the logic contained within the struts-bean.tld.
> > 
> > 
> > 
> > The logic flow is the user signs-into the application and is 
> > then forwarded to "simplePage.jsp". I used a ForwardAction to 
> > navigate from the logon page (after a successful login). But 
> > I never reach "simplePage.jsp" due to the above mentioned error.
> > 
> > 
> > 
> > Any help would be appreciated.
> > 
> > 
> > 
&g

RE: Cannot retrieve definition for form bean null

2003-02-12 Thread Art Vandalay

Yes, this is the name of the class. I checked this 100s of times, even copying and 
pasting the package and class name from the .java file. I'm sure this is correct.
 
I have Struts logging turned up to #6 but that isn't putting out any messages. There 
is very little in the JSP so I don't think that logging directly from the JSP would 
help. There is no "body" to the JSP.
 Joe Barefoot <[EMAIL PROTECTED]> wrote:Is your form bean class actually named: 
"com.client.form.simpleForm" ?

or is supposed to have a capital 'S': "com.client.form.SimpleForm" ?

Have you tried putting any logging statements into the simplePage.jsp (just sys-outs 
would work)? You should put a few in so that you can see exactly where/when the 
exception is occuring...it may even be thrown before the JSP is actually executed.

peace,
Joe

> -Original Message-
> From: Art Vandalay [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 1:38 PM
> To: Struts Users Mailing List
> Subject: RE: Cannot retrieve definition for form bean null
> 
> 
> 
> I am not referencing my own bean. The only thing my JSP tries 
> to do is grab a value from a resource bundle and set the 
> title of the page to that value. This is my entire JSP: 
> 
> 
> 

> 
> 
> 
> 
> 
> 
> This is the config file:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> > type="org.apache.struts.actions.ForwardAction" 
> parameter="Welcome.jsp"/>
> > type="org.apache.struts.actions.ForwardAction" parameter="Logon.jsp"/>
> > type="com.client.action.LogonAction" name="logonForm" 
> scope="request" validate="true" input="Logon.jsp">
> 
> 
> 
> 
> 
> > type="org.apache.struts.actions.ForwardAction" 
> parameter="simplePage.jsp"/>
> 
> 
> 
> James Childers wrote: Nine times out 
> of ten when I get that message it is one of two things:
> 
> - I haven't referenced the bean properly in the tag. This is 
> especially true of anything which references a collection, 
> because that syntax is just off.
> 
> - I haven't put the bean in the proper scope. Less frequent, 
> but it happens.
> 
> BTW: Your struts-config and JSP source is coming across as 
> blanks on my mailreader. 
> 
> -= J
> 
> > -Original Message-
> > From: Art Vandalay [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 12, 2003 3:19 PM
> > To: Struts Users Mailing List
> > Subject: Re: Cannot retrieve definition for form bean null
> > 
> > 
> > 
> > I'm sorry to bug everyone again with this, but I cannot 
> > figure out what this error message is telling me. If anyone 
> > has any insight, I'd appreciate it.
> > After looking through the Struts 1.1 source files, I've 
> > determined that this is the code that throws the exception. 
> > It is located in FormTag.lookup:
> > // Look up the form bean definition
> > FormBeanConfig formBeanConfig = 
> > moduleConfig.findFormBeanConfig(mapping.getName());
> > if (formBeanConfig == null) {
> > JspException e =
> > new 
> > JspException(messages.getMessage("formTag.formBean", 
> > mapping.getName()));
> > pageContext.setAttribute(Globals.EXCEPTION_KEY, 
> > e, PageContext.REQUEST_SCOPE);
> > throw e;
> > }
> > 
> > 
> > 
> > My original message is below with the struts-config.xml and 
> > JSP page itself.
> > 
> > Thanks for any help you can provide.
> > 
> > 
> > Art Vandalay wrote:
> > Hello everyone,
> > 
> > I am trying to write a very simple Struts application that 
> > simply displays a JSP using bean:message to retrieve values 
> > for my field labels and buttons from a ResourceBundle. Pretty 
> > straight forward, but I am getting the following error:
> > 
> > 
> > 
> > [exec] javax.servlet.jsp.JspException: Cannot retrieve 
> > definition for form
> > bean null
> > 
> > 
> > 
> > The message seems to imply that Struts is trying to access a 
> > bean whose name is "null" but I don't know what bean that 
> > would be as I have no beans referenced on my JSP. I am only 
> > trying to invoke the logic contained within the struts-bean.tld.
> > 
> > 
> > 
> > The logic flow is the user signs-into the application and is 
> > then forwarded to "simplePage.jsp". I used a ForwardAction to 
> > navigate from the logon page (after a successful login). But 
> > I never 

Cannot Find Bean In Scope

2003-02-13 Thread Art Vandalay
I am working a very simple JSP page using Struts. The
page has some field labels and 1  input  field. It is
this input field that is causing me problems. Whenever
I put  into my JSP page and rebuild/run my
application I get the following runtime error:

Cannot find bean org.apache.struts.taglib.html.BEAN in
any scope 

There is no BEAN inside the html taglib, so I have no
idea what this message is trying to tell me.

At the point of error my application is simply trying
to display this page by forwarding to it from an
Action. I expect the input field to be empty when the
page displays. I'm not sure how my Form comes into
play, if at all, in that scenario, but I've tried
coding the following, all of which result in the
error:




By the way, all my  tags work fine.
They pull the appropriate value from a resource file.
It is only the  tag that causes this
problem. Any  tag will fail.

I do have the following at the top of my JSP:

<%@ taglib uri="/WEB-INF/struts-bean.tld"
prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" 
prefix="html" %>
%>

>From what I understood, the name of the form is
optional -- Struts will get it from the config file.

Can anyone shed any light on this?

__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

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




404 (Not Found) When Errors Occur

2003-02-20 Thread Art Vandalay
I am new to struts and am having trouble with handling
invalid input.

I have the following action mappings in struts-config:







The 1st action is used to navigate to the "lookup"
page, which will display all fields as blanks. This
works fine.

If the user clicks the "Lookup" button on the page,
the 2nd action is invoked. If the user does not enter
valid search criteria, then I want to display an error
message and navigate back to the same JSP.

I do not know what to put into the "input" attribute
of the 2nd "action" element. 

My form does have a "validate" method which is getting
called and which is creating and returing
ActionErrors. So I know struts is trying to display
the page associated with the "input" attribute, but I
am obviously entering the wrong value.  What exactly,
should go in that value? Is it the name of the JSP,
the name of the "action", the path to the JSP...?

I've tried all of the following, but they all result
in a 404 - Not Found message:

input="BadgeLookup.jsp"
input="TA/BadgeLookup.jsp"
input="BadgeLookup"
input="/BadgeLookup"

Note that the JSP is located under a directory called
"TA" my .war file.

TIA.

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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




Re: 404 (Not Found) When Errors Occur

2003-02-20 Thread Art Vandalay
Geeta,

Thanks. That worked perfectly. I don't understand why
though. According to the struts-config.dtd the "input"
attribute is a:

"Module-relative path of the action or other resource
to which control should be returned if a validation
error is encountered."

Maybe I'm just too new to struts to understand the
terminology, but doesn't this tell me that the value
of "input" should be an "action", not a JSP?

I'm not trying to find flaws in struts or it's
documentation... I'm just trying to understand the
terminology and how Struts works as I am very new to
it.

TIA.


--- Geeta Ramani <[EMAIL PROTECTED]> wrote:
> Art:
> 
> I am no expert at Sruts, but I think you may want to
> try:
> 
> input="/TA/BadgeLookup.jsp"
> 
> (I am assuming your directory "TA" is at the root of
> your web
> application.)
> 
> Regards,
> Geeta
> 
> Art Vandalay wrote:
> 
> > I am new to struts and am having trouble with
> handling
> > invalid input.
> >
> > I have the following action mappings in
> struts-config:
> >
> >  > scope="request"
> > type="org.apache.struts.actions.ForwardAction"
> > parameter="TA/BadgeLookup.jsp"/>
> >
> >  > name="BadgeLookupForm" scope="request"
> >
>
type="com.avexus.impresa.client.action.BadgeLookupAction"
> > validate="true" input="/BadgeLookup"
> > parameter="submit"/>
> >
> > The 1st action is used to navigate to the "lookup"
> > page, which will display all fields as blanks.
> This
> > works fine.
> >
> > If the user clicks the "Lookup" button on the
> page,
> > the 2nd action is invoked. If the user does not
> enter
> > valid search criteria, then I want to display an
> error
> > message and navigate back to the same JSP.
> >
> > I do not know what to put into the "input"
> attribute
> > of the 2nd "action" element.
> >
> > My form does have a "validate" method which is
> getting
> > called and which is creating and returing
> > ActionErrors. So I know struts is trying to
> display
> > the page associated with the "input" attribute,
> but I
> > am obviously entering the wrong value.  What
> exactly,
> > should go in that value? Is it the name of the
> JSP,
> > the name of the "action", the path to the JSP...?
> >
> > I've tried all of the following, but they all
> result
> > in a 404 - Not Found message:
> >
> > input="BadgeLookup.jsp"
> > input="TA/BadgeLookup.jsp"
> > input="BadgeLookup"
> > input="/BadgeLookup"
> >
> > Note that the JSP is located under a directory
> called
> > "TA" my .war file.
> >
> > TIA.
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Tax Center - forms, calculators, tips, more
> > http://taxes.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]
> 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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




Is This A Bug?

2003-02-20 Thread Art Vandalay
The logic:present tag checks to see if a field in a
form is null.

However, when a form is created after an HTML form is
submitted, Struts will pass an empty String into the
setter method if the corresponding value on the page
is empty.

This seems inconsistent. It seems (to me, anyway) that
Struts should either:

1. check for null or empty string in
PresentTag.condition

- OR -

2. pass null into the setter methods

Here is my scenario:

I have a seach page. The user performs a search. If
the search is successful, then I fill in a Form with
values returned from the search. These values are, of
course, mapped to HTML elements on the page. I also
want to enable some buttons on the page in that case.
If the search was not successful, I want to disable
the buttons.

The way I sought to accomplish this was to use
logic:present to see if a certain field was filled in
on the form. 

My form has a validate method. In the case where the
user has not entered a search criteria (left the field
blank), I want to return an error message but keep the
buttons disabled.

The problem is that Struts is calling my setter
methods with empty Strings, then calls validate().
validate() returns errors and the JSP is
reconstructed.

However, since the field being evaluated in
logic:present is now an empty String (no longer a
null) the buttons enable when they shouldn't.

I guess I could reset the values in my form to null if
the validate fails, but that seems like it should be
unnecessary. Not to mention that it would be a lot of
work to go through all my forms as I'm sure this
problem will come up elsewhere in my application.

Has anyone else had problems because of the
"inconsistency" between logic:present and empty String
fields? If so, how did you solve it?

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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




Re: Universally Accessable Object

2003-02-20 Thread Art Vandalay
I'm not sure what app server you are using, but some
(including WebLogic) allow for "startup" classes.
These are classes that will be instantiated when the
server is started. You could identify your class as a
startup class and then store it in the proper scope.
Then call RequestUtils.lookup(...) to retrieve it
whenever you need it.

--- Larry Hytail <[EMAIL PROTECTED]> wrote:
> 
> I have a table of information contained in a backend
> database.  The table is not very big and never will
> be.  I would like to create an object that holds the
> values from this table.  I would like this object to
> instantiate when the struts webapp is started.  Then
> I would like to be able to access this object from
> any Action object within my struts application. 
> Questions:
> 
> 1) Where is the best place to put the instantiation
> of this object?
> 
> 2) How do I get a handle on the object from the
> Action object?
> 
> Larry Hytail
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, and
more


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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




Re: Universally Accessable Object

2003-02-20 Thread Art Vandalay
No, but I always wanted to pretend to be one :) I'm
currently a marine biologist but I used to work for
the Yankees.

--- David Graham <[EMAIL PROTECTED]> wrote:
> Art,
> You don't happen to be an architect do you?
> 
> David
> 
> 
> 
> >From: Art Vandalay <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> >To: Struts Users Mailing List
> <[EMAIL PROTECTED]>
> >Subject: Re: Universally Accessable Object
> >Date: Thu, 20 Feb 2003 10:40:41 -0800 (PST)
> >
> >I'm not sure what app server you are using, but
> some
> >(including WebLogic) allow for "startup" classes.
> >These are classes that will be instantiated when
> the
> >server is started. You could identify your class as
> a
> >startup class and then store it in the proper
> scope.
> >Then call RequestUtils.lookup(...) to retrieve it
> >whenever you need it.
> >
> >--- Larry Hytail <[EMAIL PROTECTED]> wrote:
> > >
> > > I have a table of information contained in a
> backend
> > > database.  The table is not very big and never
> will
> > > be.  I would like to create an object that holds
> the
> > > values from this table.  I would like this
> object to
> > > instantiate when the struts webapp is started. 
> Then
> > > I would like to be able to access this object
> from
> > > any Action object within my struts application.
> > > Questions:
> > >
> > > 1) Where is the best place to put the
> instantiation
> > > of this object?
> > >
> > > 2) How do I get a handle on the object from the
> > > Action object?
> > >
> > > Larry Hytail
> > >
> > >
> > >
> > > -
> > > Do you Yahoo!?
> > > Yahoo! Tax Center - forms, calculators, tips,
> and
> >more
> >
> >
> >__
> >Do you Yahoo!?
> >Yahoo! Tax Center - forms, calculators, tips, more
> >http://taxes.yahoo.com/
> >
>
>-
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
_
> The new MSN 8: advanced junk mail protection and 2
> months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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




RE: Universally Accessable Object

2003-02-20 Thread Art Vandalay
I did save the whale. If you recall, the sea was angry
that day, my friends. Like an old man trying to send
back soup in a deli

--- "DUBCHAK, JOHN (SBCSI)" <[EMAIL PROTECTED]> wrote:
> Can you explain what happened on the beach that day.
>  Why weren't you able
> to save that whale?
> 
> -----Original Message-
> From: Art Vandalay [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 20, 2003 12:50 PM
> To: Struts Users Mailing List
> Subject: Re: Universally Accessable Object
> 
> 
> No, but I always wanted to pretend to be one :) I'm
> currently a marine biologist but I used to work for
> the Yankees.
> 
> --- David Graham <[EMAIL PROTECTED]> wrote:
> > Art,
> > You don't happen to be an architect do you?
> > 
> > David
> > 
> > 
> > 
> > >From: Art Vandalay <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List"
> > <[EMAIL PROTECTED]>
> > >To: Struts Users Mailing List
> > <[EMAIL PROTECTED]>
> > >Subject: Re: Universally Accessable Object
> > >Date: Thu, 20 Feb 2003 10:40:41 -0800 (PST)
> > >
> > >I'm not sure what app server you are using, but
> > some
> > >(including WebLogic) allow for "startup" classes.
> > >These are classes that will be instantiated when
> > the
> > >server is started. You could identify your class
> as
> > a
> > >startup class and then store it in the proper
> > scope.
> > >Then call RequestUtils.lookup(...) to retrieve it
> > >whenever you need it.
> > >
> > >--- Larry Hytail <[EMAIL PROTECTED]> wrote:
> > > >
> > > > I have a table of information contained in a
> > backend
> > > > database.  The table is not very big and never
> > will
> > > > be.  I would like to create an object that
> holds
> > the
> > > > values from this table.  I would like this
> > object to
> > > > instantiate when the struts webapp is started.
> 
> > Then
> > > > I would like to be able to access this object
> > from
> > > > any Action object within my struts
> application.
> > > > Questions:
> > > >
> > > > 1) Where is the best place to put the
> > instantiation
> > > > of this object?
> > > >
> > > > 2) How do I get a handle on the object from
> the
> > > > Action object?
> > > >
> > > > Larry Hytail
> > > >
> > > >
> > > >
> > > > -
> > > > Do you Yahoo!?
> > > > Yahoo! Tax Center - forms, calculators, tips,
> > and
> > >more
> > >
> > >
> >
> >__
> > >Do you Yahoo!?
> > >Yahoo! Tax Center - forms, calculators, tips,
> more
> > >http://taxes.yahoo.com/
> > >
> >
>
>-
> > >To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > >For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> >
>
_
> > The new MSN 8: advanced junk mail protection and 2
> > months FREE*  
> > http://join.msn.com/?page=features/junkmail
> > 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.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]
> 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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




LookupDispatchAction w/ Buttons & Images

2003-02-24 Thread Art Vandalay
I have a page that has 7 text buttons, an HTML table
with repeating rows of data, and 2 images. The images,
Previous and Next, allow a user to scroll through the
data that is displayed in the HTML table.

I chose to implement this as a LookupDispatchAction
originally because each of the 7 buttons will submit
the form. But the 2 images will also need to submit
the form. I'm not sure how to do this.

How do I tell Struts to set the parameter value
identified in my struts_config for the image that was
clicked as it does for the text buttons? There is no
"property" attribute on  (well, there is
but its deprecated and was used for a different
purpose). Do I need to do this myself in my javascript
that submits the form? 

If anyone has done this before and has any
examples/advice I'd appreciate it.

TIA.

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



struts-user@jakarta.apache.org

2003-02-24 Thread Art Vandalay
According to the User Guide the 'value' attribute on
 is "The value that will be submitted if
this image button is pressed."

What does that mean? Can that 'value' be retrieved in
an Action to determine what button was clicked?
 

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Re: LookupDispatchAction w/ Buttons & Images

2003-02-24 Thread Art Vandalay
Thanks, but that older post from the archives does not
answer my question. I had searched the archive, like I
always do and found no previous answer to my question.

Maybe instead of being a "nice" guy you should
concentrate on being an "effective" guy.


--- Vic Cekvenich <[EMAIL PROTECTED]> wrote:
> By searching the mail archive for you for other
> times this question was 
> asked:
>
http://www.mail-archive.com/[EMAIL PROTECTED]/msg48962.html
> 
> Vic, a nice guy.
> 
> 
> Art Vandalay wrote:
> > I have a page that has 7 text buttons, an HTML
> table
> > with repeating rows of data, and 2 images. The
> images,
> > Previous and Next, allow a user to scroll through
> the
> > data that is displayed in the HTML table.
> > 
> > I chose to implement this as a
> LookupDispatchAction
> > originally because each of the 7 buttons will
> submit
> > the form. But the 2 images will also need to
> submit
> > the form. I'm not sure how to do this.
> > 
> > How do I tell Struts to set the parameter value
> > identified in my struts_config for the image that
> was
> > clicked as it does for the text buttons? There is
> no
> > "property" attribute on  (well, there
> is
> > but its deprecated and was used for a different
> > purpose). Do I need to do this myself in my
> javascript
> > that submits the form? 
> > 
> > If anyone has done this before and has any
> > examples/advice I'd appreciate it.
> > 
> > TIA.
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Tax Center - forms, calculators, tips, more
> > http://taxes.yahoo.com/
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Which Archive

2003-02-25 Thread Art Vandalay
Which search engine should I be using to search the
Struts archive for previous answers to my questions?

I have 2 searching URLs:

http://www.mail-archive.com/[EMAIL PROTECTED]/

This one is from the main Jakarta web page. Searching
this archive is very quick, but the results are almost
usually useless.

http://nagoya.apache.org/eyebrowse/SummarizeList?listId=42

This one is from the main Struts page. Searching this
archive is deathly slow and often fails with a 404.
But if it does return results, they are very
pertinent.

Any suggestions?



__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



More Than Form On A JSP

2003-02-26 Thread Art Vandalay
I am developing an architecture for the rest of my
development staff to use on a new J2EE project
starting next month.

I have the following situation:

A JSP contains a form which allows the user to lookup
a list of information. For example, if you enter an
SSN the JSP will display some demographic information
about the person associated with the SSN (first name,
last name, etc) along with a list in an HTML table of
payment history.

The HTML table displays a subset of data, say 10 rows
at a time. The total number of rows could be much
higher. The table comes with buttons to navigate
through the next and previous rows in the table.

The point is the user can display the "previous" and
"next" items in the table while the demographic
information at the top remains displayed.

The HTML table is built using a custom taglib I've
developed. I also wrote a custom Action, called
NavigateAction, which handles all the logic associated
with clicking "previous" and "next". I've wrapped the
HTML table in a form so that Struts can direct it to
NavigateAction. NavigateAction gets the next 10 rows
of data, puts them into the request object, and
forwards to the same page we came from. Finally, the
taglib builds the table from the data stored in the
request. All that is working fine.

All this allows my developers to reuse this HTML table
logic on any JSP that has a similar appearance (static
data at the top and scrollable data at the bottom).

There is a problem however. After the page is
redisplayed, the top part of the page contains no
data. All of it has been lost because the form
associated with it is out of scope (it was scoped to
the request).

I don't want to scope the forms to the session as they
will accumulate as the user navigates through the
application, plus the data in them will be stale if
the user returns to a JSP they were at a while ago.

Does anyone have any ideas how to solve this? 

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



ActionForm Does Not Contain Dynamically Set Data

2003-03-04 Thread Art Vandalay
I have a web page (the "parent") that opens a child
window using javascript. The parent window sets a
field on the child window. The child window needs to
use that data, as it is opening, to perform a DB query
and display information on itself.

The problem is that, even though the parent
successfully sets the data on the child, I have no
access to it in my ActionForm or in the request
object.

Is there a way to make that happen?



__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: ActionForm Does Not Contain Dynamically Set Data

2003-03-04 Thread Art Vandalay
I don't believe this is off topic. This question
regards how to get Struts to populate a form field
that was set using Javascript.

--- James Mitchell <[EMAIL PROTECTED]> wrote:
> Please label JavaScript topics as [OT].
> 
> 
> 
> --
> James Mitchell
> Web Developer/Struts Evangelist
> http://jakarta.apache.org/struts/
> 
> "People demand freedom of speech to make up for the
> freedom of thought
> which they avoid."
> - Soren Aabye Kierkegaard (1813-1855)
> 
> 
> 
> 
> > -Original Message-
> > From: Art Vandalay
> [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, March 04, 2003 11:59 AM
> > To: Struts Mailing List
> > Subject: ActionForm Does Not Contain Dynamically
> Set Data
> > 
> > 
> > I have a web page (the "parent") that opens a
> child
> > window using javascript. The parent window sets a
> > field on the child window. The child window needs
> to
> > use that data, as it is opening, to perform a DB
> query
> > and display information on itself.
> > 
> > The problem is that, even though the parent
> > successfully sets the data on the child, I have no
> > access to it in my ActionForm or in the request
> > object.
> > 
> > Is there a way to make that happen?
> > 
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Tax Center - forms, calculators, tips, more
> > http://taxes.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]
> 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: ActionForm Does Not Contain Dynamically Set Data

2003-03-04 Thread Art Vandalay
Yes, a query parameter is an option. The reason I
don't want to use query parameters is we have a
standard to avoid using them if at all possible as
they expose data to the user. This particular piece of
data in question doesn't present a security risk by
being exposed, but exposing it does go against our
standards so I'd like to find another way to pass it.

--- "Miller, Jason" <[EMAIL PROTECTED]> wrote:
> Are you saying that you open the window, then set a
> field value in that
> child window to something from the parent, and you
> want to use that value to
> do something on the server?  why not pass the value
> as a querystring
> parameter?
> 
> > -Original Message-
> > From: Art Vandalay
> [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 04, 2003 11:59 AM
> > To: Struts Mailing List
> > Subject: ActionForm Does Not Contain Dynamically
> Set Data
> > 
> > 
> > I have a web page (the "parent") that opens a
> child
> > window using javascript. The parent window sets a
> > field on the child window. The child window needs
> to
> > use that data, as it is opening, to perform a DB
> query
> > and display information on itself.
> > 
> > The problem is that, even though the parent
> > successfully sets the data on the child, I have no
> > access to it in my ActionForm or in the request
> > object.
> > 
> > Is there a way to make that happen?
> > 
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Tax Center - forms, calculators, tips, more
> > http://taxes.yahoo.com/
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data

2003-03-04 Thread Art Vandalay
I think you've misunderstood...

The child is not an action, it is a page. A page that
is opened using Javascript. In this case, the parent
window is never submitted.

>From what I can tell about Struts (I'm pretty new to
it) is that the only way to get data onto a form is
via the submission of a . That's a problem as I
want to pass info between these 2 windows without
using query parameters if at all possible (see my post
from about 2 seconds ago as to why).

--- ROSSEL Olivier <[EMAIL PROTECTED]> wrote:
> > > I have a web page (the "parent") that opens a
> child
> > > window using javascript. The parent window sets
> a
> > > field on the child window. The child window
> needs to
> > > use that data, as it is opening, to perform a DB
> query
> > > and display information on itself.
> > > 
> > > The problem is that, even though the parent
> > > successfully sets the data on the child, I have
> no
> > > access to it in my ActionForm or in the request
> > > object.
> > > 
> > > Is there a way to make that happen?
> 
> Your parent JSP has a form with one field. 
> When you submit this form, the child *action* gets
> it, makes
> the connection, formats results and returns the
> forward that will display
> them.
> 
> The details (the parent form is hidden and
> completely managed via
> Javascript,
> the child JSP appears in a new window) is pure
> Javascript tricks.
> 
> This e-mail is intended only for the above
> addressee. It may contain
> privileged information. If you are not the addressee
> you must not copy,
> distribute, disclose or use any of the information
> in it. If you have
> received it in error please delete it and
> immediately notify the sender.
> Security Notice: all e-mail, sent to or from this
> address, may be
> accessed by someone other than the recipient, for
> system management and
> security reasons. This access is controlled under
> Regulation of
> Investigatory Powers Act 2000, Lawful Business
> Practises.
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data

2003-03-04 Thread Art Vandalay
Ray,

I am doing that part. The problem is that I want that
value to be available to the child's Action class **
as the child window is opening **. I am expecting it
to be on the form, but the value in the form is null
even though the value is successfully set on the
child.

How can I get Struts to set the value of this field on
the form?

There has to be a way because I've noticed in Struts
that if you have a field defined on your JSP with no
corresponding get/set methods on the Form, an
exception is thrown when the window is opening. So
Struts has to be doing some sort of validation between
the JSP's form and the form class at window open time,
but it doesn't seem to be setting the data. 

--- Ray Madigan <[EMAIL PROTECTED]> wrote:
> yes!
> 
> if you are usine javascript you can do something
> like the following.
> 
> in the parent create a hidden field
> 
> 
> 
> when the user submits the form have the onclick
> javacsript function
> run that sets the document.forms[0].foo.value = xxx;
> 
> where xxx is the path to the value in the child
> window.
> 
> 
> -Original Message-
> From: ROSSEL Olivier
> [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 04, 2003 9:11 AM
> To: 'Struts Users Mailing List'
> Subject: RE: [OT] JavaScript: ActionForm Does Not
> Contain Dynamically
> Set Data
> 
> 
> > > I have a web page (the "parent") that opens a
> child
> > > window using javascript. The parent window sets
> a
> > > field on the child window. The child window
> needs to
> > > use that data, as it is opening, to perform a DB
> query
> > > and display information on itself.
> > > 
> > > The problem is that, even though the parent
> > > successfully sets the data on the child, I have
> no
> > > access to it in my ActionForm or in the request
> > > object.
> > > 
> > > Is there a way to make that happen?
> 
> Your parent JSP has a form with one field. 
> When you submit this form, the child *action* gets
> it, makes
> the connection, formats results and returns the
> forward that will display
> them.
> 
> The details (the parent form is hidden and
> completely managed via
> Javascript,
> the child JSP appears in a new window) is pure
> Javascript tricks.
> 
> This e-mail is intended only for the above
> addressee. It may contain
> privileged information. If you are not the addressee
> you must not copy,
> distribute, disclose or use any of the information
> in it. If you have
> received it in error please delete it and
> immediately notify the sender.
> Security Notice: all e-mail, sent to or from this
> address, may be
> accessed by someone other than the recipient, for
> system management and
> security reasons. This access is controlled under
> Regulation of
> Investigatory Powers Act 2000, Lawful Business
> Practises.
> 
>
-
> 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]
> 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data

2003-03-04 Thread Art Vandalay
Mr. Police Man,

If you read the question you'll see that my script
*IS* setting field correctly ( I made that very clear
in my original post). My question is how do I get
those values set in an ActionForm when when the page
is being displayed (not at submit time).

--- James Mitchell <[EMAIL PROTECTED]> wrote:
> Actually, this has nothing to do with Struts.
> 
> If your script is not setting fields (on parent,
> top, child, whatever)
> correctly, then you cannot assume that it is a
> problem with Struts.
> 
> Struts picks up when the request comes in, anything
> before that is
> outside the scope.  
> 
> On the other hand however, there are a lot of people
> on this list with
> JavaScript knowledge, but there are many more who
> would prefer that we
> use [OT] to designate that this discussion is not
> related.
> 
> If you find that you are constantly dealing with
> JavaScript, perhaps
> (assuming you are on windoze) you can download and
> use the
> ScriptDebugger for IE.  It lets you step through
> JavaScript with or
> without frames.
> 
> Good Luck!
> 
> --
> James Mitchell
> Web Developer/Struts Evangelist
> http://jakarta.apache.org/struts/
> 
> "People demand freedom of speech to make up for the
> freedom of thought
> which they avoid."
> - Soren Aabye Kierkegaard (1813-1855)
> 
> 
> 
> 
> > -Original Message-
> > From: Art Vandalay
> [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, March 04, 2003 12:06 PM
> > To: Struts Users Mailing List
> > Subject: RE: ActionForm Does Not Contain
> Dynamically Set Data
> > 
> > 
> > I don't believe this is off topic. This question
> > regards how to get Struts to populate a form field
> > that was set using Javascript.
> > 
> > --- James Mitchell <[EMAIL PROTECTED]> wrote:
> > > Please label JavaScript topics as [OT].
> > > 
> > > 
> > > 
> > > --
> > > James Mitchell
> > > Web Developer/Struts Evangelist
> > > http://jakarta.apache.org/struts/
> > > 
> > > "People demand freedom of speech to make up for
> the
> > > freedom of thought
> > > which they avoid."
> > > - Soren Aabye Kierkegaard (1813-1855)
> > > 
> > > 
> > > 
> > > 
> > > > -Original Message-
> > > > From: Art Vandalay
> > > [mailto:[EMAIL PROTECTED] 
> > > > Sent: Tuesday, March 04, 2003 11:59 AM
> > > > To: Struts Mailing List
> > > > Subject: ActionForm Does Not Contain
> Dynamically
> > > Set Data
> > > > 
> > > > 
> > > > I have a web page (the "parent") that opens a
> > > child
> > > > window using javascript. The parent window
> sets a
> > > > field on the child window. The child window
> needs
> > > to
> > > > use that data, as it is opening, to perform a
> DB
> > > query
> > > > and display information on itself.
> > > > 
> > > > The problem is that, even though the parent
> > > > successfully sets the data on the child, I
> have no
> > > > access to it in my ActionForm or in the
> request
> > > > object.
> > > > 
> > > > Is there a way to make that happen?
> > > > 
> > > > 
> > > > 
> > > >
> __
> > > > Do you Yahoo!?
> > > > Yahoo! Tax Center - forms, calculators, tips,
> more
> > > > http://taxes.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]
> > > 
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Tax Center - forms, calculators, tips, more
> > http://taxes.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]
> 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data

2003-03-04 Thread Art Vandalay
Oliver,

Thanks. As mentioned, I am new to Struts but have used
other Java MVC frameworks that allow me to do what I
am trying to do with Struts (e.g. Barracuda). If
Struts does not permit it, then I'll find another way
to do it (query parameter being the best approach I
guess)

--- ROSSEL Olivier <[EMAIL PROTECTED]> wrote:
> > I think you've misunderstood...
> > 
> > The child is not an action, it is a page. A page
> that
> > is opened using Javascript. In this case, the
> parent
> > window is never submitted.
> > 
> > From what I can tell about Struts (I'm pretty new
> to
> > it) is that the only way to get data onto a form
> is
> > via the submission of a . That's a problem
> as I
> > want to pass info between these 2 windows without
> > using query parameters if at all possible (see my
> post
> > from about 2 seconds ago as to why).
> 
> The point is to pass this info to server side at one
> 
> moment or the other.
> Struts is designed with *actions* to retrieve/format
> data,
> and JSP just to display them.
> 
> It seems that you want your child window to make
> things an action is supposed to do.
> 
> This e-mail is intended only for the above
> addressee. It may contain
> privileged information. If you are not the addressee
> you must not copy,
> distribute, disclose or use any of the information
> in it. If you have
> received it in error please delete it and
> immediately notify the sender.
> Security Notice: all e-mail, sent to or from this
> address, may be
> accessed by someone other than the recipient, for
> system management and
> security reasons. This access is controlled under
> Regulation of
> Investigatory Powers Act 2000, Lawful Business
> Practises.
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data

2003-03-04 Thread Art Vandalay
Sorry for the late reply... I got called into a
meeting.

Yes, it does.


--- Ray Madigan <[EMAIL PROTECTED]> wrote:
> Does the child window create the correct  action="xxx"
> 
> -Original Message-
> From: Art Vandalay [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 04, 2003 9:23 AM
> To: Struts Users Mailing List
> Subject: RE: [OT] JavaScript: ActionForm Does Not
> Contain Dynamically
> Set Data
> 
> 
> Ray,
> 
> I am doing that part. The problem is that I want
> that
> value to be available to the child's Action class **
> as the child window is opening **. I am expecting it
> to be on the form, but the value in the form is null
> even though the value is successfully set on the
> child.
> 
> How can I get Struts to set the value of this field
> on
> the form?
> 
> There has to be a way because I've noticed in Struts
> that if you have a field defined on your JSP with no
> corresponding get/set methods on the Form, an
> exception is thrown when the window is opening. So
> Struts has to be doing some sort of validation
> between
> the JSP's form and the form class at window open
> time,
> but it doesn't seem to be setting the data. 
> 
> --- Ray Madigan <[EMAIL PROTECTED]> wrote:
> > yes!
> > 
> > if you are usine javascript you can do something
> > like the following.
> > 
> > in the parent create a hidden field
> > 
> > 
> > 
> > when the user submits the form have the onclick
> > javacsript function
> > run that sets the document.forms[0].foo.value =
> xxx;
> > 
> > where xxx is the path to the value in the child
> > window.
> > 
> > 
> > -Original Message-
> > From: ROSSEL Olivier
> > [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 04, 2003 9:11 AM
> > To: 'Struts Users Mailing List'
> > Subject: RE: [OT] JavaScript: ActionForm Does Not
> > Contain Dynamically
> > Set Data
> > 
> > 
> > > > I have a web page (the "parent") that opens a
> > child
> > > > window using javascript. The parent window
> sets
> > a
> > > > field on the child window. The child window
> > needs to
> > > > use that data, as it is opening, to perform a
> DB
> > query
> > > > and display information on itself.
> > > > 
> > > > The problem is that, even though the parent
> > > > successfully sets the data on the child, I
> have
> > no
> > > > access to it in my ActionForm or in the
> request
> > > > object.
> > > > 
> > > > Is there a way to make that happen?
> > 
> > Your parent JSP has a form with one field. 
> > When you submit this form, the child *action* gets
> > it, makes
> > the connection, formats results and returns the
> > forward that will display
> > them.
> > 
> > The details (the parent form is hidden and
> > completely managed via
> > Javascript,
> > the child JSP appears in a new window) is pure
> > Javascript tricks.
> > 
> > This e-mail is intended only for the above
> > addressee. It may contain
> > privileged information. If you are not the
> addressee
> > you must not copy,
> > distribute, disclose or use any of the information
> > in it. If you have
> > received it in error please delete it and
> > immediately notify the sender.
> > Security Notice: all e-mail, sent to or from this
> > address, may be
> > accessed by someone other than the recipient, for
> > system management and
> > security reasons. This access is controlled under
> > Regulation of
> > Investigatory Powers Act 2000, Lawful Business
> > Practises.
> > 
> >
>
-
> > 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]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.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]
> 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data

2003-03-04 Thread Art Vandalay
>From what I've been told in messages sent to me
directly (bypassing the list), this is typical "James"
behavior.

--- "Chappell, Simon P" <[EMAIL PROTECTED]>
wrote:
> James, are you being mean again? ;-)
> 
> >-Original Message-
> >From: James Mitchell [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, March 04, 2003 1:05 PM
> >To: 'Struts Users Mailing List'
> >Subject: RE: [OT] JavaScript: ActionForm Does Not
> Contain Dynamically
> >Set Data
> >
> >
> >LOLwhatever dude.  It takes a real loser to got
> from 
> >'discussion' to
> >'personal attack'.
> >
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data

2003-03-04 Thread Art Vandalay
I couldn't care less if I piss him off. He is
certainly not the only person on this list who can
provide help. He's just a fish in a very large pond
(i.e. insignificant in the long run).

So far he has shown me that is just an a**hole. He
didn't read my original posting thoroughly, thought it
was off-topic, and then flamed me. As noted by at
least one other person, the post was not off topic.

I've gotten my answer from one of the other many
knowledgable people on this list. 

And I've gotten plenty of support from people on this
list who are less than happy with the "big brother"
attitude of people on this list.

--- Mark Galbreath <[EMAIL PROTECTED]> wrote:
> And either is better than being a "big lisper."
> 
> ;-) 
> 
> BTW:  Art, I don't know what the problem is, but
> James is one of the most
> helpful and knowledgeable people on this list.  You
> would be wise not to
> piss him off.
> 
> Mark
> 
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 04, 2003 2:57 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [OT] JavaScript: ActionForm Does Not
> Contain Dynamically Set
> Data
> 
> 
> Oh ya.  I'm trying to be "big brother".  Although
> that's better than being
> called "big sister"  ;)
> 
> 
> --
> James Mitchell
> Web Developer/Struts Evangelist
> http://jakarta.apache.org/struts/
> 
> "People demand freedom of speech to make up for the
> freedom of thought which
> they avoid."
> - Soren Aabye Kierkegaard (1813-1855)
> 
> 
> 
> 
> > -Original Message-
> > From: Chappell, Simon P
> [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 04, 2003 2:53 PM
> > To: Struts Users Mailing List
> > Subject: RE: [OT] JavaScript: ActionForm Does Not
> Contain 
> > Dynamically Set Data
> > 
> > 
> > James, are you being mean again? ;-)
> > 
> > >-Original Message-
> > >From: James Mitchell
> [mailto:[EMAIL PROTECTED]
> > >Sent: Tuesday, March 04, 2003 1:05 PM
> > >To: 'Struts Users Mailing List'
> > >Subject: RE: [OT] JavaScript: ActionForm Does Not
> Contain Dynamically 
> > >Set Data
> > >
> > >
> > >LOLwhatever dude.  It takes a real loser to
> got from
> > >'discussion' to
> > >'personal attack'.
> > >
> > 
> > 
> > 
> >
>
-
> > 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]
> 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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