Re: select/options/option

2002-01-14 Thread Manuel Martin

Hello,

On Fri, 11 Jan 2002 15:48:31 -0800 
Jason Wells [EMAIL PROTECTED] wrote:
 Using the html:option tag, is there a way to set an option to be 
 initially selected? I'm looking for something equivalent to
 
 option value=blah selectedblah/option
 
 I don't see mention of this in the online docs for the HTML taglib.

This can be done by initializing the form-bean with the value you'd like
to be selected by default. Very nice indeed.

Bye, MM
-- 
http://www.martinnet.de


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




Re: JavaScript -- use or not use???

2002-01-07 Thread Manuel Martin

Hello,

On Sun, 6 Jan 2002 17:24:08 -0600 
George White [EMAIL PROTECTED] wrote:
  This isn't exactly a struts question but I have seen comments about JavaScript 
often enough I was hoping someone could answer this very general question.
 The people I work use struts but are avoiding JavaScript because they say that some 
clients may have JavaScript functionality turned off on their browsers.
 I use I.E. 5.0 and cannot see where I can turn JavaScript off.
 Is this a valid concern (in other browsers such as Netscape, as well) and if so 
how/where can JavaScript be turned off?

yes, it's an imo extreme valid concern: any validation on client side can
be:
- switched off or 
- doesn't work as expected (in different browsers),
- or doesn't work at all (because the user chose a browser w/o
  javascript or simply use a screenreader... ) or
- can be manipulated by the user (never trust the client).

There will be more and more users who chose to switch it off with the
tons and tons of javascript-related bugs in IE , or switch
browsers, what makes javascript development harder.

JavaScript as additional means to avoid resubmiting of clearly incorrect
forms (like ones who lack a certain field) is a good thing, as long as
it is compatible to different browsers - which is a harder task as it
may seem at first with more sophisticated scripts - and if it is
ultimately rechecked at the server. Because of the latter I think it is
a waste of time using javascript while having a powerful scripting
language like Java on the server. It only adds to complexity, adds
extra problems and mostly very little extra comfort or performance. I
haven't tried t yet, but the possibility to split a complex form in
wizard style over multiple JSPs via a shared form-bean in Struts is a
better way to go imo.

Bye, MM
-- 
http://www.martinnet.de


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




Re: Reload resources without restarting server

2001-12-30 Thread Manuel Martin

Hello,

On Wed, 26 Dec 2001 10:35:43 -0600 
Chen, Fang [EMAIL PROTECTED] wrote:
 I am pretty new to Struts. I was reading the Walk Through of the struts
 example from the struts installation. In the document, it is said that You
 can even reload the configuration and message resources without restarting
 the container. See the end of the web.xml file for details. I do not know
 where I can find how to do this. Any help will be appreciated. 

Correct me if I'm wrong: 
At the end of the web.xml are some administrative urls. If they're
active (I've commented them out just from the beginning, before I forget
:-)) you can call:
http://yourhost:yourport/yourapp/admin/reload.do
to reload.  I've tried it, it seems to work ok, now I've switched it off
again :-)

Bye, MM
-- 
http://www.martinnet.de


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




Re: Error Tag Usage

2001-12-30 Thread Manuel Martin

Hello,

On Fri, 28 Dec 2001 14:36:33 -0600 
[EMAIL PROTECTED] wrote:
  The output shows the single error for legalName but includes the header and
 footer.
 
  Do I have an error in my thinking?

this is my observation, too. I think it would be great to be able to do
the following (just an example):

html:errors
Dear Sir, Dear Lady,
I'm so sorry, but you're too dumb to fill in the form correctly. Here's
a list of your sins:
html:errors multipleul/html:errors multiple
html:errors list /
html:errors multiple/ul/html:errors multiple
Try harder. :-)
/html:errors

Bye, MM
-- 
http://www.martinnet.de


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