RE: CheckBox and Boolean[] Array - Incorrect Values Submitted When CheckBox is unchecked

2002-10-04 Thread Charlesworth, Chico
ts gory... uh I mean glory... has in its infinite wisdom defined that a checkbox (& radio button I think) that has not been ticked will not submit any value to the server. Afaik same is true for SELECT btw (multiple selections where nothing selected) -----Original Message- From: Char

RE: CheckBox and Boolean[] Array - Incorrect Values Submitted Whe n CheckBox is unchecked

2002-10-04 Thread Charlesworth, Chico
ll by default. Mark -Original Message- From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 8:18 AM To: 'Struts Users Mailing List' Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted Whe n CheckBox is unchecked If that is the ca

RE: CheckBox and Boolean[] Array - Incorrect Values Submitted Whe n CheckBox is unchecked

2002-10-04 Thread Charlesworth, Chico
f. What I do is type the checkboxes as String rather than boolean in the ActionForm and track "true" and "false" through the iterator. Mark -----Original Message- From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 7:11 AM To: '

CheckBox and Boolean[] Array - Incorrect Values Submitted When CheckBox is unchecked

2002-10-04 Thread Charlesworth, Chico
Hi, I'm trying to iterate through a Boolean Array using logic:iterate and then display these as check boxes. This works fine, but when submitting the form and resending the Boolean Array back to the Action class, only the values that are true are returned. In the struts documentation it says: W

RE: Getting Weird Message From Application ResourcesProperties Fi le

2002-05-22 Thread Charlesworth, Chico
Cheers, works like a dream ... Chico. -Original Message- From: Homer, Christopher [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 16:40 To: 'Struts Users Mailing List' Subject: RE: Getting Weird Message From Application ResourcesProperties Fi le I had this a while ago and think I fixed it

Getting Weird Message From Application Resources Properties File

2002-05-22 Thread Charlesworth, Chico
For some reason when using the struts bean:message tag to get a message it then displays it on the screen has: null Test Message null It adds null to the start and end of my message ... Anyone else come across this problem? Cheers, Chico. -Original Message- From: Ted Husted [mailt

RE: JRUN 4 PROBLEMS WITH STRUTS 1.0

2002-05-20 Thread Charlesworth, Chico
t.jar somewhere. I get it at work when a rogue version of the jar gets in there. Update it (or even try removing it temporarily, as JRun should have it's own), and you should be golden. Arron. Charlesworth, Chico wrote: > > >I've downloaded the new version of JRUN

RE: JRUN 4 PROBLEMS WITH STRUTS 1.0

2002-05-17 Thread Charlesworth, Chico
or stray "}" in your jsp. JM > -Original Message- > From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 17, 2002 11:22 AM > To: 'Struts Users Mailing List' > Subject: JRUN 4 PROBLEMS WITH STRUTS 1.0 > > > > >

JRUN 4 PROBLEMS WITH STRUTS 1.0

2002-05-17 Thread Charlesworth, Chico
I've downloaded the new version of JRUN version 4 and I get the following error(s) when rendering a simple JSP with some struts tags in it: 72. } while(_tag1.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN); <-> *** Error: No method named "doAfterBody" wa

RE: Populating complex java objects in forms - PROBLEM SOLVED, BUT IS THIS A BUG IN STRUTS?

2002-03-08 Thread Charlesworth, Chico
ng complex java objects in forms Do you have the appropriate setXXX() method on the customer for name? Jon "Charlesworth, Chico" wrote: > Hi, > > If I've got a complex java object (i.e Customer) in the Form class, I can > then read off this object in the jsp page, but

RE: Populating complex java objects in forms

2002-03-07 Thread Charlesworth, Chico
. -Ursprüngliche Nachricht- Von: Charlesworth, Chico [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 7. März 2002 18:08 An: 'Struts Users Mailing List' Betreff: RE: Populating complex java objects in forms ive got my getter and setter methods in my formbean ... any other ideas? chico ---

RE: Populating complex java objects in forms

2002-03-07 Thread Charlesworth, Chico
hat but do you have a getCustomer() and setCustomer() method in your formbean? Gr Ronald > -Original Message- > From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 07, 2002 5:56 PM > To: 'Struts Users Mailing List' > Subject: Popul

Populating complex java objects in forms

2002-03-07 Thread Charlesworth, Chico
Hi, If I've got a complex java object (i.e Customer) in the Form class, I can then read off this object in the jsp page, but when submitting to the Action class the Customer object is null. The jsp would look like: Customer Name: Update Customer So this would displa

RE: Passing a collection (ArrayList or string array) to the Action cl ass from the jsp page ...

2002-02-11 Thread Charlesworth, Chico
and not reference it to the iteration element. Maybe the struts documentation should be updated to clarify this situation. Regards - Chico. -Original Message----- From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]] Sent: 11 February 2002 11:31 To: Struts-User Subject: Passing a collection (A

Passing a collection (ArrayList or string array) to the Action class from the jsp page ...

2002-02-11 Thread Charlesworth, Chico
Hi, I'm trying to find the best way in struts of passing a collection of new values to an action class, but there doesn't seem to be an easy way of doing this ... Here's a given scenario: got a form with an arraylist. in the jsp do a within a tag, and within the iterate tag do a when

RE: Java Trivia

2002-02-01 Thread Charlesworth, Chico
Java does have pointers, it is just hidden from the developer! And if you are passing objects around it depends if they are mutable or not. For instance if you pass a primitive value in a method and then change its value, it's only changed inside that method call cause primitives are immutable.

HTML Base Tag using SSL

2001-08-08 Thread Charlesworth, Chico
We have a problem using the html:base tag when displaying a Struts JSP Page under SSL. SSL is configured on our web server (BEA WebLogic) to listen on the default port (443). When the JSP page is displayed in the browser the source HTML code shows the base tag with port 80 instead of port 443 (or

target on html form differs depending on if user input is sucessful or not ..

2001-07-13 Thread Charlesworth, Chico
I've got a login page within a frame, and if the login is successfull i want to forward on to the main page, but on a different target, i.e "_top". I do this by using the target attribute in the html:form tag. This is fine, but when the login fails, i.e. the username and/or password are invalid,

Trying to set the output from jsp page into GZIP format ...

2001-07-12 Thread Charlesworth, Chico
Has anyone tried this? In the servlet you can simply do the following: PrintWriter out; boolean supportCompression = false; if (request instanceof HttpServletRequest) { Enumeration e = ((HttpServletRequest)request).getHeaders("Accept-Encoding"); while (e.hasMoreElements())

onkeyup support on html:form ...

2001-06-27 Thread Charlesworth, Chico
what i want to do is: ... does anyone know if this supported yet or is it on the todo list? chico -- The content of this e-mail is confidential, may contain privileged material and is intended solely for the recipient(s) named above. If you receive this in error, please notify Software AG

RE: Logic:equals..

2001-06-15 Thread Charlesworth, Chico
i think u have to use jsp in the value tag, like so: <% String s = (String) pageContext.findAttribute("theName"); %> <%out.println("It works");%> -Original Message- From: Shane Warne [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 4:25 PM To: [EMAIL PROTECTED] Sub

RE: Accessing session attributes

2001-06-14 Thread Charlesworth, Chico
u probably just need to specify 'filter' in the name attribute ... like it should try and find "filter" in the session, page, request, and application scopes ... in which order i can never remember ;) chico. -Original Message- From: James Howe [mailto:[EMAIL PROTECTED]] Sent: Thursda

displaying html errors in order

2001-06-08 Thread Charlesworth, Chico
i can display errors fine, but they are displayed not in the same order as i created them ... I see this is because the ActionErrors class uses a HashMap and therefore doesn't return them in a given order (i think it sorts them according to the hashcode value). I can use the property tag in ht

RE: Logic-Iterate not finding scope of Bean

2001-06-08 Thread Charlesworth, Chico
you can also have two separate action classes that use the same form, where you use the first action class when you first go into that page, then use the second when you are submitting or whatever in the form -Original Message- From: Luna, Kat [mailto:[EMAIL PROTECTED]] Sent: Thursday, Ju

RE: Nested logic:iterate tags

2001-06-06 Thread Charlesworth, Chico
yes it is possible, like so: -Original Message- From: Marc S. Penner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 3:33 PM To: [EMAIL PROTECTED] Subject: Nested logic:iterate tags Is it possible to nest logic:iterate tags? I would prefer not to try to spend too

RE: a struts tag within another struts tag ...

2001-06-06 Thread Charlesworth, Chico
l Mok -Original Message- From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 6 June 2001 16:09 To: '[EMAIL PROTECTED]' Subject: a struts tag within another struts tag ... does anyone know a way of doing something like so, so that it works: "

a struts tag within another struts tag ...

2001-06-06 Thread Charlesworth, Chico
does anyone know a way of doing something like so, so that it works: "/> i always get a error saying that listElement has no value in that scope ... i get around this problem using jsp, like so: <% String myListElement = (String) pageContext.findAttribute("listElement");%>

setting offset of logic:iterate to a bean value ...

2001-05-31 Thread Charlesworth, Chico
a JSP bean (in any scope) of type java.lang.Integer that defines the desired value. If not present, zero is assumed (meaning that the collection will be iterated from the beginning. [RT Expr] David --- "Charlesworth, Chico" <[EMAIL PROTECTED]> wrote: > > To iterate th

RE: getting a specific ArrayList element

2001-05-30 Thread Charlesworth, Chico
d from the beginning. [RT Expr] David --- "Charlesworth, Chico" <[EMAIL PROTECTED]> wrote: > > To iterate through a java.util.ArrayList i use > struts tag > and that works fine ... > > but which tag do i need to use and what attribute > settings do i need to

getting a specific ArrayList element

2001-05-30 Thread Charlesworth, Chico
To iterate through a java.util.ArrayList i use struts tag and that works fine ... but which tag do i need to use and what attribute settings do i need to access a specific ArrayList element? for example if i wanted to access the second element of my ArrayList using jsp, i would just do: <%MyOb