RE: reset() on ActionForm ???

2002-03-16 Thread Michael
what's all the numbers for? reset() is needed cause the form object is construted once per session and reused. you need a default object state before the is posted by the actionservlet into the ActionForm. it's a (re)intializer. -Original Message- From: Struts Newsgroup [mailto:@[EMAI

reset() on ActionForm ???

2002-03-16 Thread @Basebeans.com
Subject: reset() on ActionForm 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165

setting 'selected' in html:select

2002-03-16 Thread @Basebeans.com
Subject: setting 'selected' in html:select From: "blinky" <[EMAIL PROTECTED]> === This may seem a really basic question but can anyone show me how to preset a value as selected in a struts tag??? In the old 'cruddy' raw jsp world I'd loop through the collection until finding the preset value an

struts-user@jakarta.apache.org

2002-03-16 Thread Michael
i started using the and . i'm getting confused with the attributes of the tag. can the collection be an object within another bean? IE "bean1.bean2.collectionName" and how does the current form object come into play? i have my collection sitting in the form object, but the documentation is c

Domain Validation

2002-03-16 Thread chad brak
Can anybody tell me the best way to do domain validation in 1.0? Form validation is great, but I need a central place for more standard validation stuff. Chad __ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ -

Does Struts 1.0.2 work with Sun JDK1.4?

2002-03-16 Thread Phase Web and Multimedia
Does Struts 1.0.2 work with Sun JDK1.4? I just want to make sure before I make the leap. Brandon Goodin Phase Web and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Svar: How make a forward when redirect=true

2002-03-16 Thread Mikael Eriksson
Damn, you are on to us :-) Another place to look is the server log, does it anything that might look strange? The problem is strange because the thing should work... and has worked for me. It probably need some experimenting :-) If the forward is changed to some other page... just an ordina

Re: Newbie :Error- Cannot find ActionMappings or ActionFormBeans

2002-03-16 Thread keithBacon
Was the error thrown in struts code or your code? The code probably needs proper exception handling. Misleading error messages are bad news. --- Anant Sagar <[EMAIL PROTECTED]> wrote: > Dear All , > The problem was coming due to the expiry of my JSQLConnect driver. Its quite > weird in the sense

Re: Svar: How make a forward when redirect=true

2002-03-16 Thread keithBacon
Have you solved this yet? Did your 404 message display the URL it couldn't find? That's vital evidence. K. PS. We need more kiwis on this list - swedish plot to take over. --- snurre1000 <[EMAIL PROTECTED]> wrote: > Thank you, but the page changePasswordConfirmed.jsp does only contain > static

Re: I18N Problem with Chinese Character

2002-03-16 Thread @Basebeans.com
Subject: Re: I18N Problem with Chinese Character From: "Liu Yan" <[EMAIL PROTECTED]> === hi, The problem is completely solved now, I think :-) The Chinese problem involves: 1) Static Chinese character in a JSP page 2) Chinese characters sent by HTTP Request and Response 3) Chinese characters s

Re: Newbie :Error- Cannot find ActionMappings or ActionFormBeans

2002-03-16 Thread Anant Sagar
Dear All , The problem was coming due to the expiry of my JSQLConnect driver. Its quite weird in the sense that the error msg was irrelevant . Any way thanks Anant Sagar - Original Message - From: "keithBacon" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sa

Re: Action: how can i Forward with parameter at perform method.

2002-03-16 Thread Mikael Eriksson
The simplest way (IMHO) to get something from an action class to the following JSP is to set it as a request attribute I.e, in action: request.setAttribute("ID", "11"); In jsp Use ID as a bean with struts tags. Get it with a jsp:useBean if you want it in scriptlets. That of course a

Re: Action.setInput

2002-03-16 Thread keithBacon
Hi.set validate="false" so struts doesn't call validate - call it yourself from yout Action & forward to the desired place. Better still use struts in a std way & use input normally. Do you have a real requirement to go to diff. places depending on the type of error? cheers - keith --- Bjørnar_

Re: Newbie :Error- Cannot find ActionMappings or ActionFormBeans

2002-03-16 Thread keithBacon
This can be a bit tricky - did you search the Archive? --- Anant Sagar <[EMAIL PROTECTED]> wrote: > Hello All , > > I m new to struts . I had prepared my login page .It was working fine > .Suddenly this exception is coming > > javax.servlet.ServletException: Cannot find ActionMappings or Actio

Re: Architecture Questions - Session Management and Validation

2002-03-16 Thread keithBacon
you've missed nothing - just asking a lot! IMO (I'm not a struts developer - just an occasional user) struts can ony take on responsibility for basic common functionality of webapps - beyond that requirements for different users diverge. It's a mistake for it to take on too much. Also it's new & e

Re: bean define problems

2002-03-16 Thread keithBacon
1 - you'd normally use wrote: > > > Ok, after spending over a day on what seems to be a trivial task, I finally > have to ask! > bean define is not "defining" variables in the page scope the way i thought > it should > > i have this in my jsp : > >name="reportForm" scope="r

Re: Where and when do struts call the method named toString()?

2002-03-16 Thread keithBacon
Thanks Dave. The default hashCode() implementation returns the objects memory address. As soon as your object or one of it's parents has overridden it you've lost it, but if you override hashCode (done when using hashmaps) it should still return a unique value so it's fine for determining if 2 obj