Re: document.testbean.submit is not a function

2001-05-10 Thread Bart Moberts


Hello John

>From: [EMAIL PROTECTED] (John Miaso)
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: document.testbean.submit is not a function
>Date: Wed, 09 May 2001 08:27:24 -0600
>
>I've modified the html-select.jsp example to include the script:
>
>
>function cbChanged() { document.testbean.cbSearch.value = "Search"
>document.testbean.submit()
>}
>
>
>I'm setting a hidden property so that I can fill a select elements options 
>in
>the Action peroform method based on the selection made in another select
>element. When I do this I get the JSP error: document.testbean.submit is 
>not a
>function.

Isn't that a JavaScript error?

I got this error when I tried to submit a form using a link. I removed all 
the regular submitbuttons and then it worked.

>I get the same result if I try to send reset rather than submit. Is 
>Javascript
>unaware of the submit button property? Is there a better way to approach 
>this?
>
>John Miaso
>

Grtz Bart
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: how to forward page on logic:notPresent?

2001-05-09 Thread Bart Moberts




>From: "Alex Colic" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "Struts" <[EMAIL PROTECTED]>
>Subject: how to forward page on logic:notPresent?
>Date: Tue, 8 May 2001 16:47:12 -0400
>
>Hi,
>
>suppose you have an object in the session. If the user access a page that
>uses this object you want data to be displayed but if this object is not in
>the session you want the page submitted so that the user will end up on the
>next page. A sort of a wizard app.. page 1 to 2 to 3 where you bypass page 
>2
>if the object is not there. I can use the  to check to 
>see
>if the object is not in the session but how would you forward the user?
>
>Thanks for any help.
>
>Alex
>

Hello Alex

Maybe you can do this with logic:forward tag?

Grtz

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: An HTTP POST goes in the Action.perform(..) method, what about the HTTP GET?

2001-04-19 Thread Bart Moberts




>From: "Mario Laureti" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: An HTTP POST goes in the Action.perform(..) method, what about the 
>HTTP GET?
>Date: Thu, 19 Apr 2001 10:08:57 -0400
>
>Hello,
>
>   I have 2 questions:
>
>   1) How can I catch when a HTTP GET is performed on an action?

hello

in your Action.perform(...) you could say:

request.getMethod()

grtz

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: How to display odd/even rows using iterator

2001-04-19 Thread Bart Moberts


hello

i do it this way:

<%! String[] colors = new String[2]; int i = 0; %>
<% colors[0]="#EE"; colors[1]="#CECECE"; i = 0;%>


<% i = 1 - i; %>

 >
...




grtz


>From: "Zeltser, Mark" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: How to display odd/even rows using iterator
>Date: Wed, 18 Apr 2001 12:00:54 -0400
>
>Hello,
>
>I have the following code to build the table:
>
>==
>  property="displayRates">
>   
> 
>   filter="true"/>
> 
> 
>   
> 
> 
>   filter="true"/>
> 
>   
> 
>
>==
>
>I would like to set different colors for odd/even rows. How do I do this?
>
>Thanks, Mark.
>
>
>--
>This message is intended only for the personal and confidential use of the 
>designated recipient(s) named above.  If you are not the intended recipient 
>of this message you are hereby notified that any review, dissemination, 
>distribution or copying of this message is strictly prohibited.  This 
>communication is for information purposes only and should not be regarded 
>as an offer to sell or as a solicitation of an offer to buy any financial 
>product, an official confirmation of any transaction, or as an official 
>statement of Lehman Brothers Inc.  Email transmission cannot be guaranteed 
>to be secure or error-free.  Therefore, we do not represent that this 
>information is complete or accurate and it should not be relied upon as 
>such.  All information is subject to change without notice.
>
>

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.