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 objects are the same or not.
 

--- dderry [EMAIL PROTECTED] wrote:
 Just so happens that I was curious about this myself the other day. I found
 this in the javadocs for Object.toString():
 
 this method returns a string equal to the value of:
 getClass().getName() + '@' + Integer.toHexString(hashCode())
 
 So it appears that you don't really get an object pointer after all (as I
 also thought, must be that C++ background coming through ;-}  ). Just call
 hashCode() when you want to get that 'object pointer'.
 
 Dave D
 
 
 - Original Message -
 From: keithBacon [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, March 14, 2002 1:15 PM
 Subject: RE: Where and when do struts call the method named toString()?
 
 
  Does anyone know how to get the object pointer from inside toString so I
 can
  make my toString print:-
  theclass@x data: 
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


=
~~
Search the archive:-
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
~~
Keith Bacon - Looking for struts work - South-East UK.
phone UK 07960 011275

__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




Re: bean define problems

2002-03-16 Thread keithBacon

1 - you'd normally use bean:write to display data.
2 - Your bean define is doing request.setAttribute(foorBar, );
because you have scope=request.
3 - your bean define is creating a form bean  putting it in the request, which
is what struts does for you.

If you search archive on my name I recently posted some code that lets you see
what is in your request/session etc. It's handy for learning struts (
debugging). Good to see you experimenting  working hard! There's an initial
hump to be got over when learning struts.
Your problem isn't really trvial - just typical in computing - it's easy when
you know how - but hard till then.

--- Miriam Aguirre [EMAIL PROTECTED] 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 :
 
  bean:define id=fooBar type= com.ssa.core.servlets.ReportActionForm 
  name=reportForm scope=request/
 
 then somewhere further along :
 
  td%=fooBar.getColumnDisplayName(columnName)%/td
 
  I get this error :
  [14/Mar/2002 11:27:24:5] error: Exception: SERVLET-compile_failed: Failed
 in compiling template: /NASApp/webapp/reportTemplate.jsp, javac error:
 c:\iplanet\ias6\ias\APPS\modules\webapp\WEB-INF\compiled_jsp\jsp\APPS\webapp
 \reportTemplate.java:480: Undefined variable or class name: fooBar
   out.print(fooBar.getColumnDisplayName(columnName));
 
  
  ReportActionForm is the type of ActionForm i use for the jsp :
 
 form-bean name=reportForm
 type=com.ssa.core.servlets.ReportActionForm/
 
  action path=/report
 type=com.ssa.core.servlets.ReportAction
   name=reportForm
   scope=request
   input=/reportTemplate.jsp
   forward name=success path=/reportTemplate.jsp redirect=false/
 /action
 
  
  I also tried adding 'toScope=page' and that seems to make struts barf
 [basically the java file is never completely generated from the jsp]:
 
 2002-03-14 11:49:29 - ERROR-the file '\reportTemplate.jsp' generated the
 following general exception: java.lang.NullPointerException
 [14/Mar/2002 11:49:30:5] error: Exception: SERVLET-compile_failed: Failed in
 compiling template: /NASApp/webapp/reportTemplate.jsp, javac error:
 c:\iplanet\ias6\ias\APPS\modules\webapp\WEB-INF\compiled_jsp\jsp\APPS\webapp
 \reportTemplate.java:270: Invalid expression statement.
 org.apache.stru
   ^
 c:\iplanet\ias6\ias\APPS\modules\webapp\WEB-INF\compiled_jsp\jsp\APPS\webapp
 \reportTemplate.java:270: ';' expected.
 org.apache.stru
^
 c:\iplanet\ias6\ias\APPS\modules\webapp\WEB-INF\compiled_jsp\jsp\APPS\webapp
 \reportTemplate.java:270: '}' expected.
 org.apache.stru
^
 3 errors
 
 
  by the way, i'm using iplanet  struts 1.0.2 . What the hell is my
 problem??
 
  Thanks.
  -Miriam
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


=
~~
Search the archive:-
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
~~
Keith Bacon - Looking for struts work - South-East UK.
phone UK 07960 011275

__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




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  evolving - maybe next year...

--- Struts Newsgroup [EMAIL PROTECTED] wrote:
 Subject: Architecture Questions - Session Management and Validation
 From: Arthur Frankel [EMAIL PROTECTED]
  ===
 I am new to Struts and have the following questions that I have been unable
 to answer from FAQs and documentation:
 
 1) Session Management - I want to limit the information stored in your
 session between pages.  I am planning on using request.setAttribute for
 information I just need to display in the JSP and session.setAttribute for
 items I need across multiple pages.  Is there any mechanism in Struts (i.e.,
 XML based) that can remove items from the session based on properties of a
 page.  For example, in moving across a 5 page creation wizard I would like
 to remove the items from the session after the save.  There doesn't seem
 to be a way in Struts to set the XML in such a way to automatically do
 this.  It seems that I would need to add code specifically to my Action.  Is
 this correct? Am I missing something?
 
 2) Validation - I am using the struts validator -
 http://home.earthlink.net/~dwinterfeldt/ and find that it doesn't support
 errors vs. warnings vs. informational text.  Is there something that I'm
 missing here?
 
 Thanks in advance
 Arthur Frankel
 [EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


=
~~
Search the archive:-
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
~~
Keith Bacon - Looking for struts work - South-East UK.
phone UK 07960 011275

__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




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 ActionFormBeans
 collection
 javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans
 collection
 
 Can anybody let me know what could be the reason for the above exception.
 
 Anant Sagar
 


=
~~
Search the archive:-
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
~~
Keith Bacon - Looking for struts work - South-East UK.
phone UK 07960 011275

__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




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_Almli [EMAIL PROTECTED] wrote:
 
 The Action.setInput is frozen after the configuration phase, so
 I cannot change the input-attribute (I think)-
 
 How can I control where to go if validation
 fails (validate() return errors)   ??
 
 
 
 
 Bjørnar Almli, mailto:[EMAIL PROTECTED]
 Delfi Data AS, http://www.delfidata.no
 +47 55 20 96 48  |  +47 55 20 96 00  |  +47 901 56 279
 
 ###
 
 
 This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
 For more information, connect to http://www.F-Secure.com/
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


=
~~
Search the archive:-
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
~~
Keith Bacon - Looking for struts work - South-East UK.
phone UK 07960 011275

__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




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 assumes that your forward does not do a redirect.

  Regards
  Mikael


At 13:00 2002-03-16 +0800, you wrote:
Hi all,

I would like to know, how can i forward a page with parameter... my
problem detail like that:

A action class...
---

public ActionForward perform(.) {
...
... do what i have to do.. like update/delete/insert operation...
...
if ( every ok ) {
return (mapping.findForward(success);
// problem here... success is map to a jsp ListDetailwith_ID.jsp...
}
}

---
The ListDetailwith_ID.jsp accord the parameter (?ID=11) to list out
the detail ... but i don't how can i pass the parameter at my Action class.

Please help.

Gordon


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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



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




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: Saturday, March 16, 2002 4:57 PM
Subject: Re: Newbie :Error- Cannot find ActionMappings or ActionFormBeans


 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
ActionFormBeans
  collection
  javax.servlet.jsp.JspException: Cannot find ActionMappings or
ActionFormBeans
  collection
 
  Can anybody let me know what could be the reason for the above
exception.
 
  Anant Sagar
 


 =
 ~~
 Search the archive:-
 http://www.mail-archive.com/struts-user%40jakarta.apache.org/
 ~~
 Keith Bacon - Looking for struts work - South-East UK.
 phone UK 07960 011275

 __
 Do You Yahoo!?
 Yahoo! Sports - live college hoops coverage
 http://sports.yahoo.com/

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


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




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 sent to DBMS back and forth

I found tons of articles on I18N suggest using UTF-8 encoding, so I follow
this.

1) For static Chinese character, add the following line at the beginning of
each JSP page:

  %@ page contentType=text/html; charset=UTF-8 %

2) For characters sent through HTTP, you can use some encoding filter to
solve this. You can refer to http://www.anassina.com/struts/i18n/i18n.html
for a tutorial on this. There is a filter you can use in your project. Since
I am using WebLogic 6.1, I also found a convenient setting in web.xml to do
the same job. Add the following lines in your web.xml file:

web-app
context-param
param-nameweblogic.httpd.inputCharset./*/param-name
param-valueUTF8/param-value
/context-param
..
/web-app

and in your weblogic.xml file, add the following:

weblogic-web-app
  descriptionWebLogic descriptor/description
  jsp-descriptor
jsp-param
  param-nameencoding/param-name
  param-valueUTF8/param-value
/jsp-param
  /jsp-descriptor
..
/weblogic-web-app

3) For characters sent to and from DBMS, I use standard String(byte[],
encoding) to convert the characters. It is a bit tedious but it works fine
for SQL Server 2000 of my project. I believe it will work in Oracle too.

Hope it helps.
Good day!

Liu Yan


Gordon Luk [EMAIL PROTECTED] ?¤J®ø®§·s
?:[EMAIL PROTECTED]
 Hi Liu Yan,

 have you meet the input chinese problem? if yes, how to solve it ? could
 you share your experiense? Thanks.

 Gordon

 Struts Newsgroup (@Basebeans.com) wrote:

 Subject: Re: I18N Problem with Chinese Character
 From: Liu Yan [EMAIL PROTECTED]
  ===
 hi,
 
 Thanks. Yes, it helps. And now the Chinese character is displayed OK.
 
 I used the native2ascii command with -encoding UTF-8 parameter and with
no
 exception. I believe that the your exception is caused by non-UTF-8
format
 of your original properties file.
 
 Good day!
 Liu Yan
 
 nsg [EMAIL PROTECTED] $BLF~CB)?7(B
 ?:[EMAIL PROTECTED]
 
 you should turn your resource file to UTF-8 encoding using native2ascii
 command.
 that command locates in your-jdk-home\bin directory.
 detail command line is listed below:
 
 native2ascii ApplicationResources_zh.properties
 ApplicationResources_zh.propertiesX
 
 the first parameter is source file,second is destination file. Use the
 destination file as your resource file.
 
 Many articles introduce that the encodeing parameter should be specified
 like following:
 
 native2ascii -encoding UTF-8 ApplicationResources_zh.properties
 ApplicationResources_zh.propertiesX
 .
 but if so, an exception would be thrown.I dont know what reason causes
the
 exception?
 
 of course,you use first command and should be OK.
 
 
 hope helps for you.
 
 
 Laker
 
 
 
 
 - Original Message -
 From: Struts Newsgroup @[EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, March 15, 2002 9:40 PM
 Subject: I18N Problem with Chinese Character
 
 
 Subject: I18N Problem with Chinese Character
 From: Liu Yan [EMAIL PROTECTED]
  ===
 hi List,
 
 I am using struts-1.0.2 with WebLogic 6.1-sp2. For an I18N project, I
 followed the steps:
 
 1) I created ApplicationResources.properties and
 ApplicationResources_zh.properties files to store strings.
 2) The whole project is using UTF-8 encoding.
 3) On the beginning of each JSP page, add:
%@ page contentType=text/html; charset=UTF-8 %
 
 For static Chinese character in JSP page, this setting goes well. But
 
 when
 
 I
 
 tried to use:
 
 bean:message key=prompt.username/
 
 to get some strings from ApplicationResources_zh.properties file, the
 
 output
 
 is corrupted.
 
 I am suspecting this is the bean:message taglib's problem, but
decided
 
 to
 
 drop a letter here for a quick answer. Am I doing something wrong or I
 
 have
 
 to wait for the upcoming 1.1 beta release?
 
 Regards!
 Liu Yan
 
 
 
 
 --
 To unsubscribe, e-mail:
 
 mailto:[EMAIL PROTECTED]
 
 For additional commands, e-mail:
 
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:
 
 mailto:[EMAIL PROTECTED]
 
 For additional commands, e-mail:
 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 





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




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 information so I don't have to put objcts in the session. And
 yes, I do want to have redirect=true. So I still don't know how to
 solve the problem.
 Och visst är det lite kul att träffa på fler svenskar här minsann :)
 / Ulrika
 
 --- In [EMAIL PROTECTED], Mikael Eriksson [EMAIL PROTECTED] wrote:
 
  Hi
 
   The config looks good to me (except a spurions = in the forward
  but I assume that is a copy paste error).
 
  Since it works when redirect is not true a long shot might be
  that it is your Error page that is not found. At least if
  you are putting something in the request inside your action
  class and looking for it in the page.
 
  Possible scenario with redirect
 Action class puts stuff in request
 Redirect goes to browser, new request object without stuff
 Page called, tries to find stuff in request
   fails to do that... exception, resends to error page
 Error page not found
 404 to browser
 
  Hmm, on the other hand you write that giving the page url
  directly in the browser works and if the request-object theory
  is correct that should not work either.
 
  If it is something with the request you could either try to
  put the object into the session instead or avoid the redirect
  if that can be done.
 
   Regards
   Mikael
 
  PS
   Good to see more Swedes on this list :-)
  DS
 
  Hi,
  
  This is how struts-config looks like
  
   action path=/ChangePassword/doChangePassword
  
  type=se.amfpension.prototyp.action.DoChangePasswordAction
 name=changePasswordForm
 scope=request
 input=/ChangePassword/changePassword.jsp
 validate=true
 forward name=success
  path==/ChangePassword/changePasswordConfirmed.jsp
 redirect=true/
  
  /action
  
  In  my action class I return: mapping.findForward(success);
  
  But I get an error message, HTTP 404, file not found.
  mReturn.getPath() writes the correct path and if I copy this path
  inte the
  browser's address field the page will be displayed.
  
  If I remove redirect=true from struts-config the page will be
  found. What
  is the problem, how can I solve this? I have done this in another
  project
  and that worked.
  
  Ulrika
  
 
 
 
 
  ===
  Skickat genom Swedish Connection WebMail
  ===
 
 
 
  --
  To unsubscribe, e-mail:   mailto:struts-user-unsubscribe@j...
  For additional commands, e-mail: mailto:struts-user-help@j...
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


=
~~
Search the archive:-
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
~~
Keith Bacon - Looking for struts work - South-East UK.
phone UK 07960 011275

__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




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 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: Saturday, March 16, 2002 4:57 PM
 Subject: Re: Newbie :Error- Cannot find ActionMappings or ActionFormBeans
 
 
  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
 ActionFormBeans
   collection
   javax.servlet.jsp.JspException: Cannot find ActionMappings or
 ActionFormBeans
   collection
  
   Can anybody let me know what could be the reason for the above
 exception.
  
   Anant Sagar
  
 
 
  =
  ~~
  Search the archive:-
  http://www.mail-archive.com/struts-user%40jakarta.apache.org/
  ~~
  Keith Bacon - Looking for struts work - South-East UK.
  phone UK 07960 011275
 
  __
  Do You Yahoo!?
  Yahoo! Sports - live college hoops coverage
  http://sports.yahoo.com/
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


=
~~
Search the archive:-
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
~~
Keith Bacon - Looking for struts work - South-East UK.
phone UK 07960 011275

__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




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 ordinary html page
or something, does it work then?

At 04:59 2002-03-16 -0800, you wrote:
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.



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




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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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/

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




html:options collection=X.Y.Z ??

2002-03-16 Thread Michael

i started using the html:select and html:options.

i'm getting confused with the attributes of the
html:options 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 confusing me.. how do i reference the collection from the current form?

so far i can only get the collection to be found by placing it
directly into the request object.

i want to get the collection from:

request--(my ActionForm object)--getA()--getB()--getMyCollection






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




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 html:options tag???

In the old 'cruddy' raw jsp world I'd loop through the collection until
finding the preset value and stick 'selected' into the option tag that
matched.

Seems I can't do that when using html:options collection=mybean
property=value labelProperty=label - though I was expecting some neater
way would exist to handle it anyway??

Do I need to have another property in 'mybean' called 'selected' with
getters/setters
Or do I somehow preset the selection on the htm:select tag???.

Any help much appreciated

Regards,
Blinky



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




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 166 167 168 169 170 171 172 173 174 175 176 
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 
282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 33!
9 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 
382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 
424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 
445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 
466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 
487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 
508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 
529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 
550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 
571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586!
 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 
608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 
629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 
650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 
671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 
692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 
713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 
734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 
755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 
776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 
797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 
818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 !
834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 
855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 
876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 
897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 
918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 
939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 
960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 
981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999
From: blinky [EMAIL PROTECTED]
 ===
I had trouble trying to invoke the reset() method on an ActionForm. I got
info somewhere that this fires whenever an action is submitted (prior to all
setters then being used to grab stuff form the html form). Thats fine even
though it seems unnecessary (except I read somewhere when dealing with
checkboxes).

My need for reset was directly from a 'reset' button on the page. Should
this button fire the ActionForm's reset() method simply by having a type
'reset' ? Or is there some other syntax I should use to make it work.  I've
done it another way using a customer command of 'reset' within my
ActionClass but that seems to be deviating away from what I would expect is
built into the framework itself ??

Regards,
Blinky



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




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 form is posted by the actionservlet into the ActionForm.
it's a (re)intializer.


-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Saturday, March 16, 2002 6:55 PM
To: [EMAIL PROTECTED]
Subject: reset() on ActionForm ???


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 166 167
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281
282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300
301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338
33!
9 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357
358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376
377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395
396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414
415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433
434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452
453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471
472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490
491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509
510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528
529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547
548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566
567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585
586!
 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605
606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624
625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643
644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662
663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681
682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700
701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719
720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738
739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757
758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776
777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795
796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814
815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833
!
834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852
853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871
872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890
891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909
910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928
929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947
948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966
967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985
986 987 988 989 990 991 992 993 994 995 996 997 998 999
From: blinky [EMAIL PROTECTED]
 ===
I had trouble trying to invoke the reset() method on an ActionForm. I got
info somewhere that this fires whenever an action is submitted (prior to all
setters then being used to grab stuff form the html form). Thats fine even
though it seems unnecessary (except I read somewhere when dealing with
checkboxes).

My need for reset was directly from a 'reset' button on the page. Should
this button fire the ActionForm's reset() method simply by having a type
'reset' ? Or is there some other syntax I should use to make it work.  I've
done it another way using a customer command of 'reset' within my
ActionClass but that seems to be deviating away from what I would expect is
built into the framework itself ??

Regards,
Blinky



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



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