Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-24 Thread James Mitchell
ROFL!!!  I think that is the funniest thing I've read all year!!  I'm 
definitely going to share that one!



--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM:   jmitchtx
MSN:   [EMAIL PROTECTED]
Skype: jmitchtx

- Original Message - 
From: Rick Reumann [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Friday, July 22, 2005 11:43 AM
Subject: Re: [OT] Hibernate vs. iBatis vs. POJO



Larry Meadors wrote the following on 7/22/2005 10:43 AM:
Books are not always a requirement...do you have a book on bicycling or 
going to the bathroom? I guess some people do, but 99% of us do not 
because we can do it well enough without them. If I want to be the next 
Lance Armstrong or Rick Reumann however, I may need to pick one up. ;-)


Larry, I do recommend you pick up my book on going to the bathroom. It has 
a lot useful information. I'm weak on technologies but my bathroom skills 
reign supreme. My first edition is here...


http://tinyurl.com/94pg6

(u it is Friday right?:)

--
Rick

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



Re: multi page form, html:select multiple select and editing!

2005-07-24 Thread GnomeKing
On 24/07/05, Laurie Harper [EMAIL PROTECTED] wrote:
 You need to follow the same guidelines for selects as for checkboxes:
 ensure you reset the underlying form bean property each time.
 
http://struts.apache.org/userGuide/struts-html.html#select

I knew about the reset method; but the problem was that it is a multi
page form, and the reset method is called for every page visited, but
not everything is included in each page.

I believe I have solved the issue using mapping.getPath() in the reset
method to identify which page has just been submitted, and only
resetting the html:select if the appropriate page is being submitted.

Bob

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



Tutorial: Test Automation with Struts

2005-07-24 Thread Stephan Wiesner
Hi list,
I have published a tutorial that demonstrates how to automate the testing of
a web based application. It uses Struts, but you will learn how to test any
web application, with some special points on Struts (which you can skip if
your application doesn’t use it). So if you have a Spring based J2EE
application or even if it is written in Perl (and you want to test it with
Java), there should be something for you in here.

http://stephanwiesner.de/strutsbuch/Testing_Struts.pdf

The tutorial is work in progress, but the basics are there. Feedback is very
welcome.

Stephan Wiesner

-- 
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

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



Re: html:select onchange

2005-07-24 Thread Wendy Smoak

From: Tony Smith [EMAIL PROTECTED]


html:select name=myform property=myfield
onchange=location.href='mynewpage.do?para=XX'
...
/html:select



http://www.javascriptkit.com/jsref/select.shtml

onChange=location.href='mynewpage.do?para='+options[selectedIndex].value;

Keep in mind that this can be *very* annoying in terms of UI design.  The 
user doesn't get a chance to correct a mistake; he changes one thing and 
suddenly he's off on some other page.


--
Wendy Smoak 




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



Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-24 Thread Michael Jouravlev
On 7/22/05, Larry Meadors [EMAIL PROTECTED] wrote:
 You just lack appreciation for the finer things in life Buddy.
 
 Classical Persian poetry is really quite good. ;-)
 
 On a serious note: Basing tech decisions on who has more books out is
 similar to making them on the company with the higher stock price. Sun:
 $3.85; MS: $26.44...gosh, what does that tell you? Books are not always a
 requirement...do you have a book on bicycling or going to the bathroom?

http://www.amazon.com/exec/obidos/tg/detail/-/0898156270/ref=pd_sxp_f/103-1864939-1630247?v=glances=books

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



Re: html:select onchange

2005-07-24 Thread Tony Smith
Thank you very much for your post. I agree with you
and some user were complaining about the effect your
mentioned. My situition is that I have two selects,
once the users update one, I need to populate the
other with correspondent options. If I do not go to
another page, what is the best way to do? WOuld you
please give me some hits? THanks, again.


--- Wendy Smoak [EMAIL PROTECTED] wrote:

 From: Tony Smith [EMAIL PROTECTED]
 
  html:select name=myform property=myfield
 
 onchange=location.href='mynewpage.do?para=XX'
  ...
  /html:select
 
 
 http://www.javascriptkit.com/jsref/select.shtml
 

onChange=location.href='mynewpage.do?para='+options[selectedIndex].value;
 
 Keep in mind that this can be *very* annoying in
 terms of UI design.  The 
 user doesn't get a chance to correct a mistake; he
 changes one thing and 
 suddenly he's off on some other page.
 
 -- 
 Wendy Smoak 
 
 
 

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





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



calender in jsp

2005-07-24 Thread Tony Smith
My jsp user interface contains one Textfield and
button beside the textfiled. If that button is clicked
, a calender should be displayed and the selected date
in that particular calender is to be displayed in the
textfield. 
how to do this in JSP?





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



Re: calender in jsp

2005-07-24 Thread Wendy Smoak

From: Tony Smith [EMAIL PROTECTED]

My jsp user interface contains one Textfield and
button beside the textfiled. If that button is clicked
, a calender should be displayed and the selected date
in that particular calender is to be displayed in the
textfield.
how to do this in JSP?


This one's easy.  You Google for 'JavaScript Calendar' and pick the one you 
like best. ;)  Let someone *else* deal with all the cross-browser 
compatibility problems.


I'm using an apparently abandoned one that Robert Husted wrote in 1999.  If 
it ever breaks, I'll probably switch to: 
http://www.dynarch.com/projects/calendar/


--
Wendy Smoak




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



Re: html:select onchange

2005-07-24 Thread Wendy Smoak

From: Tony Smith [EMAIL PROTECTED]

Thank you very much for your post. I agree with you
and some user were complaining about the effect your
mentioned. My situition is that I have two selects,
once the users update one, I need to populate the
other with correspondent options. If I do not go to
another page, what is the best way to do? WOuld you
please give me some hits? THanks, again.


Not long ago I would have said your two options were to submit the form and 
re-display it with the new contents in the second select list, or else put 
everything in the page and make the changes with client side scripting.


But now, there's AJAX, and you can replace individual parts of the page 
seemingly by magic.  Someone who actually knows how it works will have to 
comment, but you can take a look at Frank's Java Web Parts project for an 
example:  http://javawebparts.sourceforge.net/


I don't quite see how you'd ask the Struts framework to render just one 
html:select tag without letting it process the entire page so it would 
have the information from the enclosing html:form tag.


FWIW, my original suggestion can be reduced to:
  onChange='mynewpage.do?para='+value;

--
Wendy Smoak 




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



Re: Tutorial: Test Automation with Struts

2005-07-24 Thread Glen Mazza

Thanks--I've added it to my reading list.

Glen

Stephan Wiesner wrote:

Hi list,
I have published a tutorial that demonstrates how to automate the testing of
a web based application. It uses Struts, but you will learn how to test any
web application, with some special points on Struts (which you can skip if
your application doesn’t use it). So if you have a Spring based J2EE
application or even if it is written in Perl (and you want to test it with
Java), there should be something for you in here.

http://stephanwiesner.de/strutsbuch/Testing_Struts.pdf

The tutorial is work in progress, but the basics are there. Feedback is very
welcome.

Stephan Wiesner




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



Cannot retrieve definition for form bean null disaster

2005-07-24 Thread Gareth Meyrick
hi,

i'm at a loss.. i've verified the usual suspects, checked the usual places,
but still can't find an answer.

background:

  /Login - /LoginSubmit - /Survey - /SurveySubmit

  from struts-config.xml (IMHO unrelelated stuff elided):

  form-beans
form-bean  name=surveyForm
type=com.w3elements.form.SurveyForm/
  /form-beans

  global-forwards
forward  name=survey path=/Survey.do/
  /global-forwards

  action-mappings
action path=/Survey
forward=/pages/Survey.jsp/
  /action-mappings

the first time everything works.

the next time tomcat bails with:

snip
  - Root Cause -
  javax.servlet.jsp.JspException: Cannot retrieve definition for form bean null 
on
 action /Survey
/snip

and won't work again unless you restart tomcat.

well.. it's just a forward hiding a JSP.  Survey.jsp contains a form
that forwards to /SurveySubmit (which _is_ associated with a form bean..
yup.. also works the first time).

software:
tomcat 5.0.19
struts 1.2.6

i'm probably doing something incredibly stupid..

any comments or suggestions appreciated.

TIA -gm

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



Re: Cannot retrieve definition for form bean null disaster

2005-07-24 Thread Lucas Bern
Hi, I think the problem should be arround the SurveySubmit action...
Coul you paste that definition form struts-config???
 
What is failing??, the load of the form, or the submit???
 
waiting
 
Lucas


Gareth Meyrick [EMAIL PROTECTED] escribió:
hi,

i'm at a loss.. i've verified the usual suspects, checked the usual places,
but still can't find an answer.

background:

/Login - /LoginSubmit - /Survey - /SurveySubmit

from struts-config.xml (IMHO unrelelated stuff elided):


type=com.w3elements.form.SurveyForm/







forward=/pages/Survey.jsp/


the first time everything works.

the next time tomcat bails with:


- Root Cause -
javax.servlet.jsp.JspException: Cannot retrieve definition for form bean null on
action /Survey


and won't work again unless you restart tomcat.

well.. it's just a forward hiding a JSP. Survey.jsp contains a form
that forwards to /SurveySubmit (which _is_ associated with a form bean..
yup.. also works the first time).

software:
tomcat 5.0.19
struts 1.2.6

i'm probably doing something incredibly stupid..

any comments or suggestions appreciated.

TIA -gm

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


__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar

Re: Cannot retrieve definition for form bean null disaster

2005-07-24 Thread Gareth Meyrick
hi,

Lucas Bern wrote:
 
 Hi, I think the problem should be arround the SurveySubmit action...
 Coul you paste that definition form struts-config???

action path=/SurveySubmit
type=com.w3elements.action.SurveyAction
name=surveyForm
input=survey
validate=false
parameter=dispatch
/action

 What is failing??, the load of the form, or the submit???

tomcat barfs about not finding a form bean for /Survey. note:

  global-forwards
forward  name=survey path=/Survey.do/
  /global-forwards

and that survey is /SurveySubmit input source.

it's a simple form display/submission pattern that i've used in a number
of web applications (that has always worked).  even wierder, it always
works the _first_ time the app is depolyed.. after that, it's hosed.

hosed in the sense that reoloading the original URI (that worked the
first time) barfs.  worse yet, the web.xml error-page directive is
ignored and the exceptions are displayed on the browser.

any ideas or thoughts greatly appreciated.

cheers -gm

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



Re: Cannot retrieve definition for form bean null disaster

2005-07-24 Thread Lucas Bern
I think the problem is the input attribute
Try  without this attribute.(you do not need it since validate=false)
Think of the input attribute like the path of the action where to go when the 
validate method return errors. It is not the name of a forward,  it is the 
request URI path like /Survey.do or /pages/Survey.jsp not survey.
 
Nevertheless, I do not understand the exception, I think it should be thrown 
form the html:form tag, when teh attribute action is wrong, but, in this case 
it should never work...as you say that the first time it works, we can think 
that the jsp is not the problem, so when the submit is performed the app 
crashes... and if you start form the begning it crashes again... -is it ok?
 
wish it helps, make me know what happens
 
 
 


Gareth Meyrick [EMAIL PROTECTED] escribió:
hi,

Lucas Bern wrote:
 
 Hi, I think the problem should be arround the SurveySubmit action...
 Coul you paste that definition form struts-config???

type=com.w3elements.action.SurveyAction
name=surveyForm
input=survey
validate=false
parameter=dispatch


 What is failing??, the load of the form, or the submit???

tomcat barfs about not finding a form bean for /Survey. note:





and that survey is /SurveySubmit input source.

it's a simple form display/submission pattern that i've used in a number
of web applications (that has always worked). even wierder, it always
works the _first_ time the app is depolyed.. after that, it's hosed.

hosed in the sense that reoloading the original URI (that worked the
first time) barfs. worse yet, the web.xml error-page directive is
ignored and the exceptions are displayed on the browser.

any ideas or thoughts greatly appreciated.

cheers -gm

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


__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar

Problem with date

2005-07-24 Thread syed abrar
  
Hello 
   This problem is more of a core java issue than a struts one.
I have a user interface to accept time and another field to enter the 
difference of time with GMT (GMT+x or GMT-1) .
I have to accept this time and convert the time exactly into the 
timezone in which the server is running and store.
 Can anyone help me in this(converting into the time zone) and please if you 
have any sample code ,send it along.

Regards
Abrar

[HELP] Can or can not call a specific message group in *.properties file?

2005-07-24 Thread Pham Anh Tuan
Hi all,

I wonder whether or not the Messages files (*.properties) in Struts support a 
message definition form like a config file of Smarty or not?

in Smarty config file:

[loginForm]
username=User name:
firstname=First name:

[userHome]
hello=Hello

... so, with above definition form, we can call specific message group that we 
need. For example, if we only need messages for Login Form.

:(

thanks for reading

Pham

Re: [HELP] Can or can not call a specific message group in *.properties file?

2005-07-24 Thread James Mitchell
You are more than welcome to submit an enhancement request for 
commons-resources (http://jakarta.apache.org/commons/resources/) and we can 
take a look from there.  Struts will be moving to commons-resources *very* 
soon, so it would be better to add such an enhancement there.




--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM:   jmitchtx
MSN:   [EMAIL PROTECTED]
Skype: jmitchtx

- Original Message - 
From: Pham Anh Tuan [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Monday, July 25, 2005 12:42 AM
Subject: [HELP] Can or can not call a specific message group in *.properties 
file?



Hi all,

I wonder whether or not the Messages files (*.properties) in Struts support 
a message definition form like a config file of Smarty or not?


in Smarty config file:

[loginForm]
username=User name:
firstname=First name:

[userHome]
hello=Hello

... so, with above definition form, we can call specific message group that 
we need. For example, if we only need messages for Login Form.


:(

thanks for reading

Pham 




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