RE: Does instanceof work?

2004-03-21 Thread Steve Raeburn
An instanceOf tag does exist in the Jakarta Taglibs 'Unstandard' taglib.

http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/intro.html

That's the only place I know of.

Steve

> -Original Message-
> From: Joe Germuska [mailto:[EMAIL PROTECTED]
> Sent: March 21, 2004 6:33 AM
> To: Struts Users Mailing List
> Subject: Re: Does instanceof work?
>
>
> At 1:31 PM + 3/21/04, Frank Burns wrote:
> >I've tried the Struts logic and the JSTL tag version of
> instanceof, like
> >these (below), but get errors returned implying that
> instanceof doesn't
> >exist as a valid option.
> >Does it exist? Am I doing something wrong? Can someone give
> me an example,
> >please?
>
> As far as I know, it simply doesn't exist.  The full array of tags in
> the Struts logic taglib (from CVS HEAD) can be found at
> http://jakarta.apache.org/struts/userGuide/struts-logic.html   (For
> older versions of struts, consult the documentation included in the
> distribution, although I don't recall any major changes happening in
> this area recently.)
>
> As for the JSTL expression language, I've never seen reference to an
> "instanceof" operator.  Note that the expression language is not
> simply  "${any java you like}"  Here's one reference to consult:
>
> http://www.manning-source.com/books/bayern/bayern_apxA.pdf
>
> If you really wanted, you could probably extend ConditionalTagBase
> and implement your own.
> http://jakarta.apache.org/struts/api/org/apache/struts/taglib/
logic/ConditionalTagBase.html

Joe

--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
   "Imagine if every Thursday your shoes exploded if you tied them
the usual way.  This happens to us all the time with computers, and
nobody thinks of complaining."
 -- Jef Raskin

-
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: html:select example

2003-12-30 Thread Steve Raeburn
I have some examples of Struts tags, including html:select, at
http://www.ninsky.com/struts

Various other examples are listed at
http://struts.sourceforge.net/community/examples.html

Steve

Sorry if this is a duplicate message, sent the first one from the wrong
address :-(

> -Original Message-
> From: Otavio Augusto [mailto:[EMAIL PROTECTED]
> Sent: December 30, 2003 8:41 AM
> To: [EMAIL PROTECTED]
> Subject: html:select example
>
>
> Would someone show me a very simple example of the use of an
> html:select tag? I did not understand its use.
>
> I'd appreciate any simple example.
>
> Thanks a lot.
>
> -
> 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: Solved super.init() dies silently after migration from struts 1.0 to struts 1.1

2003-12-03 Thread Steve Raeburn
You should really take a look at the Ant  task.
http://ant.apache.org/manual/index.html - look under Ant Tasks/Optional
tasks. It's free and it will allow you to validate your XML files as
part of the build process.

Alternatively, use an editor that will validate the files for you as you
go. I'm sure if you take a look around there are options for IDEs and
standalone editors.

Steve

> -Original Message-
> From: Ralf Hauser [mailto:[EMAIL PROTECTED]
> Sent: December 2, 2003 11:20 PM
> To: [EMAIL PROTECTED]
> Subject: Solved super.init() dies silently after migration from struts
> 1.0 to struts 1.1
>
>
> Hi,
>
> Just for that others do not waste time on this.
>
> Eventually, I found that some error is posted, but not to
> catalina.out.
>
> Unfortunately, the error message was not very telling so I
> posted an RFE to
> make it more helpful
> (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25155).
>
> Essentially, the problem was that I had both,
> 
> and
> 
> in struts-config.xml after migrating.
>
> Rgds
>
>Ralf
>
>
> -
> 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: "A Walking Tour of the Struts Example Application" does not match the code!

2003-10-30 Thread Steve Raeburn
Unfortunately, this documention *is* out of date with the sample
application.
It has been noted as something that needs to be done but no-one's found
time to do it yet.

The tutorials page
(http://jakarta.apache.org/struts/resources/tutorials.html) lists some
alternatives.
Rick Reumann's tutorial is worth a look.

Steve

> -Original Message-
> From: Steven Woody [mailto:[EMAIL PROTECTED]
> Sent: October 29, 2003 10:27 PM
> To: structs-user
> Subject: "A Walking Tour of the Struts Example Application" does not
> match the code!
>
>
> Hi, list
>
> The "A Walking Tour of the Struts Example Application"
> (MailReader example) seems not to match the code come with
> release 1.1.   A few minutes after I began to read the
> document, I got:
>
> --- cut ---
> If you check the application's web.xml, you will see how
> these objects are loaded. The message resource is loaded by
> the application parameter to the ActionServlet. When the
> ActionServlet initializes, it parses the
> ApplicationResources.properties in the package folder into
> the default message resource. If you change a message in the
> resource, and then reload the application, it will appear
> throughout the application.
> --- end ---
>
> But in the web.xml, I dont find anything to loading those
> mentioned objects and message resource.  They are loaded in
> the strut-config.xml in fact.
>
> I'm new to Struts, so a begining example is very important
> for me.  Is this a version conflict?  Where is the correct
> tour for the MailReader example?
>
> --
> Steven Woody
> [EMAIL PROTECTED]



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



RE: browser cache.

2003-10-25 Thread Steve Raeburn
There is.
http://jakarta.apache.org/struts/userGuide/configuration.html#controll
er_config

Steve

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of kimbuba
> Sent: October 25, 2003 10:27 AM
> To: [EMAIL PROTECTED]
> Subject: browser cache.
>
>
> Hello!
> is there a way to tell struts sending headers to tell
> client browser to
> don't cache  pages?
> (sending expired headers).
>
> Thnx to all!
>
>
>
>
> 
> -
> 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: far reaching db question

2003-10-24 Thread Steve Raeburn


> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]
> Sent: October 24, 2003 11:21 AM
> To: Struts Users Mailing List
> Subject: Re: far reaching db question
>
> IMO, Struts isn't applicable to sites less than 5 pages.  Coding a Servlet
> with JDBC is suitable for many small web tools.
>

While I agree that it's not worth *learning* Struts for such a small app, if
you already know Struts then it's no hassle to use it in a small
application. Even for a simple one page form, you can utilize i18n, form
population and validation features of Struts.

Though it's not worth learning Struts just for a 5 page app, that would be a
good place to cut your teeth if you plan to continue to use Struts on a
larger scale.

And 5 page apps have a habit of growing into 10 page apps which have a habit
of growing into 20 page apps... ;-)

Steve

> David
>



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



RE: Good list for JSTL questions?

2003-10-23 Thread Steve Raeburn
The best place would be the Jakarta Taglibs user list
(http://jakarta.apache.org/taglibs/#MailingLists). The guys that wrote JSTL
hang out there.

I'm sure if it's reasonably Struts related, you'll get some help here too.

Steve

> -Original Message-
> From: Ruth, Brice [mailto:[EMAIL PROTECTED]
> Sent: October 23, 2003 3:34 PM
> To: Struts Users Mailing List
> Subject: Good list for JSTL questions?
>
>
> What's a good list to address JSTL questions to?
>
> Thanks.
>
> --
> Brice D. Ruth
> Sr. IT Analyst
> Fiskars Brands, Inc.
>
>
>
> -
> 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: [ANN] Struts and JavaServer Faces talk by Craig McClanahan on 11/5

2003-10-23 Thread Steve Raeburn
Craig's just being modest. He's *already* an Internet TV star :-)
http://www.theserverside.com/events/library.jsp#mcclanahan

Steve

> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
> Sent: October 22, 2003 10:58 PM
> To: Struts Users Mailing List
> Cc: 'Ruth, Brice'
> Subject: Re: [ANN] Struts and JavaServer Faces talk by Craig McClanahan
> on 11/5
> 
> 
> Van Riper, Mike wrote:
> 
> >>-Original Message-
> >>From: Ruth, Brice [mailto:[EMAIL PROTECTED]
> >>Sent: Wednesday, October 22, 2003 12:31 PM
> >>To: Struts Users Mailing List
> >>Subject: Re: [ANN] Struts and JavaServer Faces talk by Craig 
> >>McClanahan
> >>on 11/5
> >>
> >>
> >>Any chance that someone could setup a DV camera, record the 
> >>presentation, then post it somewhere as a small Quicktime movie? That 
> >>would be excellent, too.
> >>
> >>
> >
> >I found a volunteer to record Craig's talk with a DV camera as you
> >suggested. Assuming Craig gives us his permission to record the 
> talk, we'll
> >do that and make it available online afterwards.
> >
> >  
> >
> Oh my!  I'm going to be on Internet TV!  My parents will be *so* 
> proud!!!  :-)
> 
> Yes, you definitely have my permission to record and broadcast this 
> talk.  Considering that this is the #1 question I have been asked by 
> people over the last year or so, it will be very nice to be able to 
> point them at a link that gives a comprehensive answer.
> 
> >FYI, Van
> >
> >  
> >
> 
> Craig
> 
> 
> >>Van Riper, Mike wrote:
> >>
> >>
> >>
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 21, 2003 7:20 PM
> To: Struts Users Mailing List
> Subject: Re: [ANN] Struts and JavaServer Faces talk by Craig 
> McClanahan
> on 11/ 5
> 
> 
> Ruth, Brice wrote:
> 
>    
> 
> 
> 
> >Any chance of getting a webcast setup for this? For those 
> >  
> >
> >>of us not 
> >>
> >>
> >fortunate enough to be local to the 'Valley? :)
> >
> > 
> >
> >  
> >
> You'll have to ask Van about broadcast facilities :-),
>    
> 
> 
> 
> >>>I'll look into this, but, it will most likely not be 
> >>>  
> >>>
> >>happening. At my day
> >>
> >>
> >>>job, I am on the critical path for completing and shipping a 
> >>>  
> >>>
> >>new product
> >>
> >>
> >>>right now. So, it is not going to happen unless they have 
> >>>  
> >>>
> >>the facilities
> >>
> >>
> >>>required for this at Netscape *and* I can find a volunteer 
> >>>  
> >>>
> >>with more free
> >>
> >>
> >>>time than myself to set it up.
> >>>
> >>>Sorry, Van
> >>>
> >>> 
> >>>
> >>>  
> >>>
> but I do plan to 
> make my slides available after the talk.
> 
> Craig
> 
> 
>    
> 
> 
> 
> >Van Riper, Mike wrote:
> >
> > 
> >
> >  
> >
> >>The next meeting of the Silicon Valley Struts User BOF 
> >>   
> >>
> >>
> >>
> will be held at
>    
> 
> 
> 
> >>Netscape in Mountain View on Wednesday, November 5th. Craig 
> >>McClanahan, a
> >>senior staff engineer for Sun Microsystems, will make a 
> >>   
> >>
> >>
> >>
> presentation 
>    
> 
> 
> 
> >>on this
> >>topic:
> >>
> >>Struts and JavaServer Faces -- Competition or Coexistence?
> >>
> >>Craig is uniquely qualified to give this talk, because he 
> >>   
> >>
> >>
> >>
> is both the
>    
> 
> 
> 
> >>original creator of the Struts Framework and 
> >>   
> >>
> >>
> >>
> co-specification lead for
>    
> 
> 
> 
> >>JavaServer Faces (JSR-127). You will find the full announcement 
> >>including
> >>directions to Netscape here:
> >>
> >>
> >>(Please note the change of venue from
> >>VeriSign to Netscape for November)
> >>
> >>This meeting is being co-hosted by the Silicon Valley Java 
> >>   
> >>
> >>
> >>
> User Group
>    
> 
> 
> 
> >>(SVJUG) and the Java SIG of the East Bay I.T. Group 
> >>   
> >>
> >>
> >>
> (eBIG). Special 
>    
> 
> 
> 
> >>thanks
> >>goes to SVJUG President Venki Seshaadri for arranging the meeting 
> >>space at
> >>Netscape.
> >>
> >>SVJUG 
> >>eBIG 
> >>
> >>That's all folks, Van
> >>
> >>Mike Van Riper
> >>mailto:[EMAIL PROTECTED]
> >>http://www.baychi.org/bof/struts/
> >>
> >>
> >>
> >>
> >>

RE: Off Topic: A suitable JVM could not be found

2003-10-20 Thread Steve Raeburn
I can't find the details right now, but I have a vague recollection that the
IBM JDK includes an RMI-IIOP implementation that is a requirement for
Websphere. So you won't be able to switch to a non-IBM JDK.

If you're running just about anything except Windows, you may be able to use
an updated IBM JDK (http://www-106.ibm.com/developerworks/java/jdk/).
IBM has not separately released its 1.4 version for Windows, though it is
available bundled with products like MQ Series (sorry, Websphere MQ -
marketing dept strikes again).

I don't have any information on whether it's *advisable* to change the JDK
on Websphere, since it doesn't seem to be supported. Personally, I wouldn't
risk it in a production environment.

Steve

> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED]
> Sent: October 20, 2003 8:00 PM
> To: [EMAIL PROTECTED]
> Subject: Off Topic: A suitable JVM could not be found
>
>
> Way off topic but I'm stumped
>
> Websphere 5
> When attempting to do run any Java Process from Websphere I get
> "A suitable JVM could not be found"
> I know Websphere likes to install their own IBM JDK1.31
> but I want to retain my SUN JDK 1.41 for obvious reasons
>
> Has anyone seen this and know of a workaround?
>
> Thanks,
>
> -M
>



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



RE: Keep Them In the Database Or In the Properties File?

2003-10-20 Thread Steve Raeburn
Either will work. One thing to consider is who will maintain the data.

If developers will create / maintain the lists and the data is essentially
static, then properties files would be a good bet.
If end users maintain the data, then a database and suitable user interface
may be better.

US States are unlikely to ever change so a properties file is a good bet.
Bizarrely, countries tend to change more frequently so you might want to
have those in a database where they could be more easily maintained,
depending on how up to date you need to be.

Steve

> -Original Message-
> From: Caroline Jen [mailto:[EMAIL PROTECTED]
> Sent: October 20, 2003 1:56 PM
> To: [EMAIL PROTECTED]
> Subject: Keep Them In the Database Or In the Properties File?
>
>
> I have to prepare many drop down lists for visitors of
> the website to make selections.  For example, I have
> the 51 states of the United States prepared like
> Virginia=VA, ., etc.  Do I keep the data in a
> database or in a properties file?
>
> __
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
>
> -
> 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: Help with form bean [urgent]

2003-10-20 Thread Steve Raeburn
If you've set the Map up in you Action, something like this:
Map countries = new HashMap();
countries.put("AF", "Afghanistan");
countries.put("AL", "Albania");
countries.put("DZ", "Algeria");
countries.put("AS", "American Samoa");
countries.put("AD", "Andorra");
countries.put("AO", "Angola");
countries.put("AI", "Anguilla");
countries.put("AQ", "Antarctica");
request.setAttribute("countries", countries);

You can generate the list in your JSP using:
  

  

'countryId' is the name of the property in your ActionForm
'countries' is the request scope attribute name where you stored the Map.

You would probably want to load the list from a properties file or database
and since these values don't change very often, you could do this once at
startup and place the Map in application scope rather than in the request.

To generate checkboxes, use something like this:

  

  


  

Your form property must be a String array to receive multiple values.

Steve

p.s. Please don't put 'urgent' in your subject line. It may not achieve the
effects you desire ;-)


> -Original Message-
> From: Rajat Pandit [mailto:[EMAIL PROTECTED]
> Sent: October 20, 2003 12:15 PM
> To: 'Struts Users Mailing List'
> Subject: Help with form bean [urgent]
>
>
> Ok, yet another attempt to explain my problem. Say I have a registration
> form and I have the list of countries stored in an ArrayList with each
> element as a key, value pair (Map). Now when I call the registration
> form. The actionForm for the the registration form has one field country
> (with both the getter and setter). How do I write the bean tag, so that
> the ArrayList (which is placed in the request scope already) is taken to
> render a dropdown menu of countries and the value of the selected item
> goes into the countryId property of the registration ActionForm.
>
> If ur still with me so far, then yet another question, how do do the
> same in case I want to user to select the countries from a checkbox
> (could be possibly multiple countries) if possible please give me a
> sample code to learn as well.
>
> My project deadline is coming close and I am stuck with conceptual
> problems. Please consider this as urgent call for help.
>
> Thanks in advance.
>
>
>
>
> Rajat Pandit | [EMAIL PROTECTED]
> +91 612 3117606
> [ Developer and Part Time Human Being]
>
>
> -
> 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: Trimming the extra spaces in the output page

2003-10-20 Thread Steve Raeburn
I agree with the Filter suggestion, but I would take a step back and ask
whether you *really* need to do this.

Trimming the excess whitespace won't really make much difference to the size
of the downloaded page and adding the Filter processing could even make it
slower, not faster to load.

If you're really producing pages that are too large I would first consider
the following optimizations before worrying about trimming whitespace:

 - Reduce the number and size of images in the page
 - Convert the page layout to use CSS instead of nested tables (this alone
can reduce the page weight by as much as 50%)
 - Split the page into smaller, lighter pages.


Steve


> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]
> Sent: October 20, 2003 11:40 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Trimming the extra spaces in the output page
>
>
> Someone mentioned this a few weeks back.  I don't remember the solution,
> but if it were my job to make this happen, I would most likely use a
> Filter.
>
>  http://java.sun.com/products/servlet/Filters.html
>
>
> --
> James Mitchell
> Software Engineer / Struts Evangelist
> http://www.struts-atlanta.org
> 678.910.8017
> AIM:jmitchtx
>
>
>
>
> > -Original Message-
> > From: EL AKARI Mehdi [mailto:[EMAIL PROTECTED]
> > Sent: Monday, October 20, 2003 1:34 PM
> > To: Struts Users Mailing List
> > Subject: Trimming the extra spaces in the output page
> >
> >
> > Hi,
> > I'm trying to optimise the size of the output pages of a
> > struts application.
> > The first thing that i'm trying to do is to trim the extra
> > spaces and carriage returns in the output page.
> > Do you have any ideas of how to do this?
> > If you have any suggestions of how to optimise the page
> > output they are welcome!
> > Thanks
> > Mehdi
> >
>
>
> -
> 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: repopulating options of when validation fails

2003-10-17 Thread Steve Raeburn
Set your input parameter to the *action* that prepares the page, not
directly to the page itself.

Steve

> -Original Message-
> From: Marc Dugger [mailto:[EMAIL PROTECTED]
> Sent: October 17, 2003 1:33 PM
> To: [EMAIL PROTECTED]
> Subject: repopulating options of  when validation fails
>
>
> Can anyone offer a crafty method of reloading a dynamic collection of
>  into the request scope in case form validation
> fails and the
> controller must forward to the 'input' of the action mapping?  Thanks.
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.525 / Virus Database: 322 - Release Date: 10/9/2003
>
>
> -
> 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: struts-el and messages

2003-10-17 Thread Steve Raeburn
The nightly build has a method that allows you to store messages in the
session.
They are automatically removed after being displayed.

Action:
protected void saveMessages(HttpSession session, ActionMessages
messages)

Steve

> -Original Message-
> From: Chris Searle [mailto:[EMAIL PROTECTED]
> Sent: October 17, 2003 1:44 AM
> To: [EMAIL PROTECTED]
> Subject: Re: struts-el and messages
>
>
> > "Chris" == Chris Searle <[EMAIL PROTECTED]> writes:
>
> > Had the problem with using the html:messages with struts-el
> > from the 1.1RC1 build (NullPointerException) - so I've just
> > upgraded to 1.1 (thought I'd already done so).
>
> > Now - I get no exception - but I get no message either.
>
> Got it. The forward was set redirect="true" so of course the messages
> disappeared.
>
> However - we do have a couple of (odd) places where a redirect is
> desired but keeping the messages - is this possible? Can they be
> propagated over a redirect by use of session or similar?
>
> --
> Chris Searle
> [EMAIL PROTECTED]
>
>
> -
> 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: IMPORTANT: & how to tell

2003-10-15 Thread Steve Raeburn
A little bit more than a weeks worth ;-)

http://jakarta.apache.org/struts/resources/archives.html

Steve

> -Original Message-
> From: Barry Volpe [mailto:[EMAIL PROTECTED]
> Sent: October 15, 2003 9:23 AM
> To: Struts Users Mailing List
> Subject: Re: IMPORTANT: & how to tell
>
>
> The list does have an abundance of valuable information.
> Am I correct in saying that the list only archives about
> a weeks worth of posts?  It would be great if the list
> had a way of cataloging the information.  I find that
> a topic could be discussed for two days and then go away.
> The next day someone will decide to post the same topic again.
> It's like Here we go again!   What could be done so that
> information that has already been posted can be available
> to future questions or posts?
>
> Barry
>
>
> - Original Message -
> From: "Brandon Goodin" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 15, 2003 9:06 AM
> Subject: Re: IMPORTANT: & how to tell
>
>
> > How about we set up a review board that examines every post to the list.
> > Discards pointless discussions (like this one) and rates them according
> > to a scale of importance to the community. Then they place them into
> > bugzilla where they will be propagated to the struts list subscribers as
> > tasks.
> >
> > :-\
> >
> > Thoughts? Further Sarcasm? :-D
> >
> > -
> > 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]
>
>
>



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



RE: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Steve Raeburn
Adam,
I assumed it was tongue-in-cheek ;-)

Greg,

I wasn't commenting on people who are trying to understand the MVC pattern
and Struts, but authors who claim to be experts in the field and who should
be *very* familiar with the Model1/Model2 debate and how Struts addresses
the problem. From that perspective, the discussion about *whether* to use an
MVC framework is old news. I think an article discussing the pros and cons
of the various approaches to MVC would have been more valuable. It was a
negative article that invited a negative response.

If you're still on that learning curve then I wouldn't expect you to
immediately understand the benefits of Struts and I'm sure you'll get plenty
of advice on this list.

Here's a few links that might help:
  http://www.fawcette.com/javapro/2002_06/online/servlets_06_11_02/
  http://java.sun.com/blueprints/patterns/MVC-detailed.html
  http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html
  http://otn.oracle.com/oramag/webcolumns/2003/techarticles/mills_mvc.html


Steve


> -Original Message-
> From: Adam Levine [mailto:[EMAIL PROTECTED]
> Sent: October 7, 2003 10:35 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Article] SoftwareFashion (includes paragraph about Struts)
>
>
> apologies. it was a joke with good intentions, but apparently bad
> delivery.
>
>
>
> From: "Keith Pemberton" <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Subject: Re: [Article] SoftwareFashion (includes paragraph about Struts)
> Date: Tue, 7 Oct 2003 12:28:14 -0500
>
> This response was uncalled for... at least be more professional when
> responding to people through the listserv.
>
> - Original Message -
> From: "Adam Levine" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 07, 2003 12:04 PM
> Subject: Re: [Article] SoftwareFashion (includes paragraph about Struts)
>
>
>  > Hey, Steve ...
>  >Guess what?  You don't understand Struts.   (=
>  >
>  >
>  >
>  >
>  > From: Gregory Seidman <[EMAIL PROTECTED]>
>  > Reply-To: [EMAIL PROTECTED]
>  > To: Struts Users Mailing List <[EMAIL PROTECTED]>
>  > Subject: Re: [Article] SoftwareFashion (includes paragraph
> about Struts)
>  > Date: Tue, 7 Oct 2003 12:57:18 -0400
>  >
>  > On Tue, Oct 07, 2003 at 09:32:52AM -0700, Steve Raeburn wrote:
>  > } 'In fact, we'd particularly invite Struts advocates to
> respond to this
>  > } article by describing the benefits that they feel Struts
> provides over
>  > } "vanilla" JSP.'
>  > }
>  > } Well if they don't get what Struts provides over "vanilla" JSP, then
> they
>  > } never will. Discussing what Struts provides compared to other MVC
>  > } frameworks might be useful, but the "vanilla" JSP topic is
> surely dead
>  > } and buried by now.
>  >
>  > This is a lousy attitude. It's like the stereotype of a woman who says,
> "If
>  > you don't know what you did, I'm not going to tell you." If you can
> clearly
>  > and succinctly respond to his challenge, do so. If not,
> perhaps you don't
>  > understand Struts as well as you think.
>  >
>  > Myself, I'm still evaluating Struts. I have a prototype of my project
>  > written with "vanilla" JSP and a tiny custom taglib, and I'm trying to
>  > decide whether to rewrite it with Struts or simply clean it up
> and extend
>  > it. I can't, yet, see whether there is a net benefit to using
> Struts for
> my
>  > small project.
>  >
>  > [...]
>  > } Steve
>  > --Greg
>  >
>  >
>  > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  > _
>  > High-speed Internet access as low as $29.95/month (depending
> on the local
>  > service providers in your area). Click here.
https://broadband.msn.com
 >
 >
 > -
 > 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]

_
Instant message in style with MSN Messenger 6.0. Download it now FREE!
http://msnmessenger-download.com


-
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: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Steve Raeburn
'In fact, we'd particularly invite Struts advocates to respond to this
article by describing the benefits that they feel Struts provides over
"vanilla" JSP.'

Well if they don't get what Struts provides over "vanilla" JSP, then they
never will. Discussing what Struts provides compared to other MVC frameworks
might be useful, but the "vanilla" JSP topic is surely dead and buried by
now.

I guess it's a sign of success when people who obviously know nothing about
Struts start taking swipes at it :-)

Steve

> -Original Message-
> From: Adam Levine [mailto:[EMAIL PROTECTED]
> Sent: October 7, 2003 9:07 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Article] SoftwareFashion (includes paragraph about Struts)
>
>
> a bunch of postings, including the article, by a bunch of un/mis-informed
> evangelists (for all technologies mentioned).  it's like state
> fair day at
> /.
>can i get my 20mins back ?
>
> -- adam
>
>
>
> From: "Yann Cébron" <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [Article] SoftwareFashion (includes paragraph about Struts)
> Date: Tue, 7 Oct 2003 17:30:02 +0200
>
> Read for yourself and judge:
>
> http://www.softwarereality.com/soapbox/softwarefashion.jsp
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> _
> Get MSN 8 Dial-up Internet Service FREE for one month.  Limited
> time offer--
> sign up now!   http://join.msn.com/?page=dept/dialup
>
>
> -
> 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: setting application context

2003-10-07 Thread Steve Raeburn
If you have a Servlet 2.3 compatible container (e.g. Tomcat 4.x or later)
you can implement a ServletContextListener which will be notified when your
context is started and gives you access to the ServletContext.

  ...
  import javax.servlet.ServletContextEvent;
  import javax.servlet.ServletContextListener;

  public class StartUpListener implements ServletContextListener {

public void contextInitialized(ServletContextEvent evt) {
MyBean bean = new MyBean();
evt.getServletContext().setAttribute("MyKey", bean);
}

public void contextDestroyed(ServletContextEvent evt) {
// Whatever shutdown processing you need goes here.
}
  }

Listeners are configured in web.xml:
  
myapp.StartUpListener
  


Another way that is Struts specific but also works with Servlet 2.2
containers is to implement a PlugIn.

  ...
  import org.apache.struts.action.ActionServlet;
  import org.apache.struts.action.PlugIn;
  import org.apache.struts.config.ModuleConfig;

  public class MyPlugIn implements PlugIn {

public void init(ActionServlet servlet, ModuleConfig config)
throws ServletException {
MyBean bean = new MyBean();
servlet.getServletContext().setAttribute("MyKey", bean);
}

public void destroy() {
// Whatever shutdown processing you need goes here.
}
  }

A PlugIn is configured  at the end of your struts configuration file
(struts-config.xml) See the Struts example webapp for a demonstration of
plugins:

  ...
  


Finally, you could create a Servlet that runs automatically at start up and
set-up any ServletContext attributes in it's init() method.

My preference is to use a ServletContextListener if possible, or a PlugIn.

Steve


> -Original Message-
> From: Kannan [mailto:[EMAIL PROTECTED]
> Sent: October 7, 2003 8:35 AM
> To: Struts Users Mailing List
> Subject: setting application context
>
>
> Hi all!
> I have a lot of drop down menus in my web application.
> I need to set them as collection objects in  servlet context.
> that should load up when the application ( tomcat start..) load  up.
> Then i can play with struts by iterating it..
>
> Can any one help me , How to do this? How to write the loader class and
> set it up...?
>
> thanks in advance.
> Kannan.
>
>
> -
> 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: [OT] International telephone number formatter component????

2003-10-02 Thread Steve Raeburn
Disclaimer: The following represents my personal experience - I'm not a
phone number expert :-)

As an example of the problem, the Oftel website (www.oftel.gov.uk) lists the
following *recommended* formats for the UK:

Fixed line phone number:
* (01XX) XXX 
* (01XXX) XX
* (01) X
* (02X)  

07 (mobile) number
* 07XX XXX or 07XXX XX.

08 (freephone, Lo-call or National Rate) number
* 08XX XXX or 08XXX XX.

09 (PRS) number
* 09XX XXX or 09XXX XX.
* 09XX XXX or 09XXX XX.

Since you're probably only interested in fixed and cell phone numbers that
cuts it down to a mere six different formats for the UK alone. At least
until they change the codes again :-)

I think the only thing you can guarantee about phone numbers is that if you
ignore the formatting entirely and just dial the digits, you'll probably get
through. Unless of course, a UK user has included the international dialling
code and entered the number like + 44 (01XXX) XX. In this case, you need
to dial your local international access code, then 44 for the UK, then DROP
the zero, then dial the rest of the number!

If you were in the UK trying to dial a US number entered as (picking a
random example ;-) ) +001(805) 563-0666, you might incorrectly dial 00 001
805 563 0666 (international access code from the UK is 00).

An alternative approach to attempting to validate a single telephone number
field would be to split it into separate input fields e.g.
 - Country code : 44
 - Area code: 01
 - Local number : XX
 - Extension: 

(note: this 'area code' doesn't always represent a geographical area. UK
cell phone numbers, for instance, are national, with the code denoting the
provider.)

I'd store the 'numbers' as Strings to ensure you retain whatever format your
users are comfortable with (after all it is *their* number) and strip out
the formatting when you need to use it.

That still leaves you with the leading 0 problem (or whatever the rules are
for other countries). I can only suggest that you would need to be able to
look up the rules for each country and strip off any unnecessary digits
based on a rule. You might be able to do this during input validation and
warn the user, but to avoid confusing/infuriating the user I think I would
just accept whatever they gave me and handle it intelligently when I need to
use it.

Telephone numbers are as personal and varied as postal codes and I just
*hate* it when some site tells me my house doesn't exist because their rules
can't handle my post code.

Good luck!

Steve



> -Original Message-
> From: Mick Knutson [mailto:[EMAIL PROTECTED]
> Sent: October 2, 2003 7:03 AM
> To: Struts Users Mailing List
> Subject: Re: [OT] International telephone number formatter component
>
>
> I do not disagree about the research part at all. I know it will take a
> researcher on my staff a great deal of time to maintain, but it
> is never the
> less, a needed feature.
> I just thought that most Countries have a fairly well formatted
> number. And
> mostly I am taking about supporting N.&S. America, Western Europe only.
> Later look at the far East.
>
> But this would need to choose the whole part of the phone number then just
> store the proper number into my DB for the user. Until they update the
> number again, then they choose again.
>
> ---
> Thanks
> Mick Knutson
>
> +001(805) 563-0666 Office
> +001 (708) 570-2772 Fax
> ---



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



RE: Application Resources & Error messages

2003-09-30 Thread Steve Raeburn
Take a look at the validator example application that comes in the Struts
distribution. There is an example of referencing the variable so you don't
define it twice.

In your case, it should be:

  
  
  
  
minlength
4
  
  
maxlength
12
  


Steve

> -Original Message-
> From: Fenderbosch, Eric [mailto:[EMAIL PROTECTED]
> Sent: September 30, 2003 1:53 PM
> To: Struts Users Mailing List
> Subject: RE: Application Resources & Error messages
>
>
> I just came to the same conclusion a coupld of minutes ago.
>
> Now the question is, if I define both a minlength and a
> maxlength, do I have to define it like this:
>
>   
> 
> 
> 
> 
>   minlength
>   4
> 
> 
>   maxlength
>   12
> 
>   
>
> And then make my error messages like this:
> errors.minlength={0} can not be less than {1} characters.
> errors.maxlength={0} can not be greater than {2} characters.
>
> It seems a little silly that I have to specify "4" and "12" twice
> in the validator.  Shouldn't it just pass the 
> argument along to the error message?  Is there a easy way to do that?
>
> -Original Message-
> From: Chen, Gin [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 30, 2003 16:44
> To: 'Struts Users Mailing List'
> Subject: RE: Application Resources & Error messages
>
>
> This has to do with your validation xml.
> You should have an arg0 and an arg1 that represent {0} and {1} in your
> message respectively.
> Check how you have it defined.
> -Tim
>
> -Original Message-
> From: Fenderbosch, Eric [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 30, 2003 4:11 PM
> To: Struts Users Mailing List
> Subject: RE: Application Resources & Error messages
>
>
> Agh!
> I just didn't have it in the right location.  It was in the package
> structure alright, just in the war root, not WEB-INF/classes.
>
> Now, however, I'm getting this:
> User name can not be less than null characters.
>
> Why doesn't it know how many characters?
>
> -Original Message-
> From: Fenderbosch, Eric
> Sent: Tuesday, September 30, 2003 15:56
> To: [EMAIL PROTECTED]
> Subject: Application Resources & Error messages
>
>
> I'm confused on how error messages work.  I've created a properties file
> TrackMessageResource.properties in the proper package structure and
> specified it in my struts-config like this:
>null="false"
>   parameter="com.*.cc.track.struts.TrackMessageResources"/>
>
> I'm using the validator plugin and it is returning error messages like:
> ???en_US.errors.minlength???
>
> In TrackMessageResource.properties I have:
> errors.minlength={0} can not be less than {1} characters.
>
> This application is not going to be I18N so I only want/need one message
> resource file.  I don't understand why validator can't find the correct
> error message.  Any help would be appreciated.
>
> Thanks.
>
> Eric
>
> -
> 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]
>
> -
> 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]
>
>
>



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



RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Steve Raeburn
#2 - It was I revelation when I realised I didn't need to write ActionForms!

(But one day soon I'm going to look at XDoclet to see what that can do for
me).

Steve

> -Original Message-
> From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> Sent: September 30, 2003 9:52 AM
> To: [EMAIL PROTECTED]
> Subject: [POLL] ActionFrom vs DynaActionForm
>
>
> Next in my series of struts-user polls (please complain if this gets old).
>
> What sort of ActionForms does everyone use?
>
> #1 ActionForm
> #2 DynaActionForm
>
> Personally, I'm an advocate of the DynaActionForm as it seems to
> be able to
> do 80-90% of everything I need to do and everything else can be done in my
> business tier.  I have, however, run into another person who is dead set
> against using it.  His rationale is that you are then unable to do custom
> validation when you use the DynaValidatorForm...  I think you can still do
> it, it's just a little more difficult, but, I'm polling to see if
> I'm out in
> left field...
>
>
>
> This message and its contents (to include attachments) are the
> property of Kmart Corporation (Kmart) and may contain
> confidential and proprietary information. You are hereby notified
> that any disclosure, copying, or distribution of this message, or
> the taking of any action based on information contained herein is
> strictly prohibited. Unauthorized use of information contained
> herein may subject you to civil and criminal prosecution and
> penalties. If you are not the intended recipient, you should
> delete this message immediately.
>
>
>
> -
> 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: default for parameter

2003-09-29 Thread Steve Raeburn
http://jakarta.apache.org/struts/api/org/apache/struts/actions/DispatchActio
n.html

Take a look at the 'unspecfied' method.

Steve

> -Original Message-
> From: deepaksawdekar [mailto:[EMAIL PROTECTED]
> Sent: September 29, 2003 5:17 AM
> To: Struts Users Mailing List
> Subject: default for parameter
>
>
> Hi,
> I have a action class extended for DispatchAction class.
> Is there any way if the parameter value is not define it will
> call some predefine method.
>
> e.g
> my strut config is as follows
>  path="/Project"
> type="com.ft.pmp.gui.action.local.ProjectAction"
> name="ProjectForm"
> scope="session"
> parameter="dispatch"
> validate="false">
>
>  path="/pages/localadmin/locCreateProject.jsp"/>
> 
>
>
> Now if there is no dispatch variable in any scope, is there any
> way by which a some defalut method will be called.
>
>
> Thanks and regards
> Deepak
>
>
>
> -
> 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: Change the ".do" extension

2003-09-29 Thread Steve Raeburn
http://jakarta.apache.org/struts/userGuide/configuration.html#dd_config_mapp
ing

Steve

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: September 29, 2003 7:09 AM
> To: [EMAIL PROTECTED]
> Subject: Change the ".do" extension
>
>
> Hello!
>
> Is there a possibility to get rid of the .do extension in the actions?
>
> For example:
>
>  http://localhost/login.do
>
> should be
> --> http://localhost/login
>
>
> Ist this possible?
>
> Thanks!
>
> Dirk
>
>
>
>
> -
> 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: ApplicationResources.properties

2003-09-24 Thread Steve Raeburn
The exact location is configured in struts-config.xml

e.g.
  

looks for a file named 'application.properties' in the 'resources'
package.

- or -
  

looks for a file, 'ApplicationResources.properties' in
the 'org.apache.struts.webapp.example' package.


These examples are taken from the struts-example and struts-blank
example web applications that are bundled with Struts.

http://jakarta.apache.org/struts/userGuide/configuration.html#resource
s_config


Steve


> -Original Message-
> From: Navjot Singh [mailto:[EMAIL PROTECTED]
> Sent: September 24, 2003 12:22 PM
> To: Struts Users Mailing List
> Subject: RE: ApplicationResources.properties
>
>
> it just should be in classpath.
>
> |-Original Message-
> |From: Martin Gainty [mailto:[EMAIL PROTECTED]
> |Sent: Thursday, September 25, 2003 12:52 AM
> |To: [EMAIL PROTECTED]
> |Subject: ApplicationResources.properties
> |
> |
> |What mechanism does struts use to find the
> |ApplicationResources.properties file?
> |All attempts by Tomcat to locate the file result in failure
> |
> |The configuration in web.xml as:
> |
> |
> |
> | |Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> |
> |
> |
> |
> |
> |
> |
> |action
> |
> |org.apache.struts.action.ActionServlet let-class>
> |
> |
> |
> |application
> |
> |ApplicationResources
> |
> |
> |
> |Thanks,
> |-Martin
> |
>
> 
> -
> 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: Can I have 1 struts jar file for multiple servers/applications

2003-09-23 Thread Steve Raeburn
http://jakarta.apache.org/struts/userGuide/configuration.html#config_a
dd

For more explanation see:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.htm
l

Steve

> -Original Message-
> From: David Thielen [mailto:[EMAIL PROTECTED]
> Sent: September 23, 2003 9:08 PM
> To: Struts Users Mailing List
> Subject: Re: Can I have 1 struts jar file for multiple
> servers/applications
>
>
> ok - thanks.
>
> Is this because of static data in the jar files?
>
> Is this true of the commons*.jar files and jakarta-oro.jar
> too - or just
> struts.jar and struts-el.jar?
>
> Also, how about the JSTL jar files - do they need to be one
> for each web
> app?
>
> thanks - dave
>
>
> - Original Message -
> From: "Kwok Peng Tuck" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, September 23, 2003 9:46 PM
> Subject: Re: Can I have 1 struts jar file for multiple
> servers/applications
>
>
> > There should be one struts jar for each web app, if you
> have 10 web app
> > then that's 10 struts.jar.
> >
> > David Thielen wrote:
> >
> > >Hi;
> > >
> > >I thought I read something somewhere that said I need to
> have a seperate
> set of struts jar files for each application or server. But
> I can't find it
> now.
> > >
> > >I am using JRun and under a given server it has multiple
> applications
> with each application having it's own web.xml and
> struts-config.xml files.
> Can several of these applications share the same struts.jar
> or do I need to
> put a seperate struts.jar in each application's WEB-INF directory?
> > >
> > >thanks - dave
> > >
> > >
> >
> >
> >
> 
> -
> > 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]
>
>
>



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



[OT] Hibernate joins JBoss

2003-09-20 Thread Steve Raeburn
I know a lot of Struts developers use Hibernate as their persistence
mechanism so this announcement may be of some interest.

http://www.hibernate.org/136.html and more at
http://forum.hibernate.org/viewtopic.php?t=515


Steve



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



RE: Is it possible to remove *.do or /do/* from the URL

2003-09-19 Thread Steve Raeburn
Sadly, it's flash-based and it doesn't work in Mozilla.

Steve

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Vic Cekvenich
> Sent: September 19, 2003 5:07 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Is it possible to remove *.do or /do/* from the URL
>
>
> The best back button solution I found with source is here:
> http://www.robertpenner.com/experiments/backbutton/backbutto
> n_code.html
> Click next row, next row; and then back button goes to
> prior row. And
> you do not have to worry about browser compatibility (and
> it works on
> PocketPC. Yes, I have been talking about it a lot)
>
>
> 
>Got any insights on what is
> > going to replace this protocol?
> >
>
> Yes, html/http is so 80's; it needs a replacement.
> I just stayed in holiday in.
> They said:
> http://www.xmlrpc.com/directory/1568/implementations or
> some similar
> light XML based SOA.
>
> PHP, J2EE, Peal, ASP, you pick it. No client is monolithic.
> I will be
> presenting an sync. zipcode decode at an upcoming Struts-NJ
> meeting via
>   .js /Struts.
> When the user types in zipcode, the state and city fields
> is filled out
> async. without a submit (using XML-RPC)
> Did I say that it is Cross platform?
>
> .V
>
>
>
> 
> -
> 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: [FRIDAY] Save the Servers!

2003-09-19 Thread Steve Raeburn
LOL TLAP, Ar!

(For those grogged up land-lubbers who wouldn't know a bilge rat from
a beauty - http://tinyurl.com/mguv)

Steve


> -Original Message-
> From: James Childers [mailto:[EMAIL PROTECTED]
> Sent: September 19, 2003 7:15 AM
> To: Struts Users Mailing List
> Subject: RE: [FRIDAY] Save the Servers!
>
>
> Arr, but the bleedin' scurvy ridden dogs of Redmond shall
> cowardly stab ye in the back should y'ever tryyy. And yer
> mad-as-a-hatter CIO will look at the shiny treasures given
> him by the sales executive, and toss the ol' penguin box
> overboard. Ar.
>
> -= J



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



[OT] RE: Stackoverflow after DB inactivity

2003-09-16 Thread Steve Raeburn
Additional info on why MySQL autoReconnect does not work when
autoCommit is false.

http://www.mail-archive.com/[EMAIL PROTECTED]/msg70196.html

Steve



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



RE: Stackoverflow after DB inactivity

2003-09-16 Thread Steve Raeburn
Try the latest MySQL driver (3.08). I had a similar problem recently
with a StackOverflowError that was solved by upgrading.

3.08 lists "infinite loop with Connection.cleanup()." as one of the
fixed bugs, which is what I suspect was causing the overflow problem.

You'll still have to contend with the MySQL connection which times out
after 8 hours, but you should be able to check for that and reconnect
if necessary or use the autoReconnect parameter
(http://www.mysql.com/documentation/connector-j/index.html)

Steve



> -Original Message-
> From: Vikram Goyal [mailto:[EMAIL PROTECTED]
> Sent: September 16, 2003 6:49 PM
> To: Struts Users Mailing List
> Subject: Stackoverflow after DB inactivity
>
>
> Hello all,
>
> I am getting a Stackoverflow error in Tomcat 4.1+ after a
> period of database
> inactivity, typically (3+ hours). I am using Struts for the
> front end and
> while the non DB access pages work fine, as soon as access
> to a page is
> requested where data is to be fetched from the database, I get the
> StackOverflow. This is not random and I can replicate the
> error. The error
> goes away however, when I try to access the same page twice
> or thrice and
> everything works fine after that.
>
> This error is appearing on both windows and linux, i.e.,
> Tomcat is on these
> machines, although the database, MySQL 4 is running on
> linux 9. The DB
> access is through a connection pool I set up in Struts config for my
> application using org.apache.commons.dbcp.BasicDataSource.
>
> The stack trace follows:
> 2003-09-16 11:39:56 StandardWrapperValve[action]:
> Servlet.service() for
> servlet action threw exception
> javax.servlet.ServletException: Servlet execution threw an exception
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi
> lter(Application
> FilterChain.java:269)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App
> licationFilterCh
> ain.java:193)
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke(Standar
> dWrapperValve.ja
> va:256)
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa
> lveContext.invok
> eNext(StandardPipeline.java:643)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip
> eline.java:480)
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.
> java:995)
>  at
> org.apache.catalina.core.StandardContextValve.invoke(Standar
> dContextValve.ja
> va:191)
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa
> lveContext.invok
> eNext(StandardPipeline.java:643)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip
> eline.java:480)
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.
> java:995)
>  at
> org.apache.catalina.core.StandardContext.invoke(StandardCont
> ext.java:2416)
>  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHo
> stValve.java:180
> )
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa
> lveContext.invok
> eNext(StandardPipeline.java:643)
>  at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error
> DispatcherValve.
> java:171)
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa
> lveContext.invok
> eNext(StandardPipeline.java:641)
>  at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo
> rtValve.java:172
> )
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa
> lveContext.invok
> eNext(StandardPipeline.java:641)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip
> eline.java:480)
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.
> java:995)
>  at
> org.apache.catalina.core.StandardEngineValve.invoke(Standard
> EngineValve.java
> :174)
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa
> lveContext.invok
> eNext(StandardPipeline.java:643)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip
> eline.java:480)
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.
> java:995)
>  at
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapte
> r.java:223)
>  at
> org.apache.coyote.http11.Http11Processor.process(Http11Proce
> ssor.java:601)
>  at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand
> ler.processConne
> ction(Http11Protocol.java:392)
>  at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp
> oint.java:565)
>  at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru
> n(ThreadPool.jav
> a:619)
>  at java.lang.Thread.run(Thread.java:534)
> - Root Cause -
> java.lang.StackOverflowError
>
> Any help, pointers appreciated.
>
> Regards,
> Vikram
>
>
> 
> -
> 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: Q : Calling an action via a java URL ?

2003-09-13 Thread Steve Raeburn
I haven't actually used it, but the Commons HttpClient
(http://jakarta.apache.org/commons/httpclient/index.html) might of
interest to you.

Steve

> -Original Message-
> From: Henry Voyer [mailto:[EMAIL PROTECTED]
> Sent: September 13, 2003 8:50 PM
> To: [EMAIL PROTECTED]
> Subject: Q : Calling an action via a java URL ?
>
>
> hi fellow programmers
>
> im trying to call a struts action via http in a java program.
>
> Something like URL (Action to call)
>
> http://localhost:8443/printHelloWorld.do
>
> this returns a blank page with the text "Hello World"
>
> I want to read this input from a java program using something like
>
>URL u = new URL(notificationServiceURL);
> URLConnection uc = u.openConnection();
> uc.setDoOutput(true);
> uc.setRequestProperty("Content-Type",
> "application/x-www-form-urlencoded");
> PrintWriter pw = new PrintWriter(uc.getOutputStream());
>
> pw.close();
>
> BufferedReader in = new BufferedReader(new InputStreamReader(
> uc.getInputStream()));
> String res = in.readLine()
>.trim();
> in.close();
>
> But i keep getting some errors.
> Has someone tried this before? with parameters, properties, etc etc?
>
> Thanks a lot
>
> _
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> 
> -
> 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: Retrieving the ModuleConfig object

2003-09-13 Thread Steve Raeburn
Look at the Javadoc for o.a.s.Globals.MODULE_KEY

With it you can get the current module from the request, or append the
module prefix (name) to look up any module in the ServletContext.

Steve

> -Original Message-
> From: Marco Tedone [mailto:[EMAIL PROTECTED]
> Sent: September 13, 2003 2:28 AM
> To: Struts-user-list
> Subject: Retrieving the ModuleConfig object
>
>
> Hi, is it possible to retrieve a ModuleConfig object (with
> the module
> configuration information) directly from within an Action
> without any
> backwork?
>
> Marco
>
>
>
>
> 
> -
> 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: YASJR, Part Duex

2003-09-11 Thread Steve Raeburn
Well I would say that software the passed QA containing malicious code was
faulty!

My point was that your company should trust you to judge the quality of the
code you're working with - wherever it comes from - and that you should have
a reasonably high degree of confidence in Struts code because:

1) You can review the code yourself.
2) Thousands of other developers also review the changes.
3) The committers review changes.
4) Only a small number of people actually have commit access.

Good luck with your project!

Steve


> -Original Message-
> From: Gregory F. March [mailto:[EMAIL PROTECTED]
> Sent: September 11, 2003 8:51 AM
> To: Struts Users Mailing List
> Subject: Re: YASJR, Part Duex
>
>
>
> On Sep 11, 2003, "Steve Raeburn" <[EMAIL PROTECTED]>  wrote:
>
>  |Who do they sue if the code you've written in-house is faulty?
>
> Faulty code was not what I was referring to.  Malicious code, hacks,
> timebombs, etc. was.  In the case of "in house" maliciousness, you lose
> your job, lose benefits and legal action will be taken against you.  In
> the case of external maliciousness, restitution for damages will usually
> be sought.
>
> Quality is another issue, and I can defend struts pretty well on that
> front.
>
> In any case, I think this is digressing.  I've gotten some great points
> from all of you - thanks!!
>
> Cheers,
>
> /greg
>
> --
> Gregory F. March-=-http://www.gfm.net:81/~march-=-
> AIM:GfmNet
>
> -
> 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: YASJR, Part Duex

2003-09-11 Thread Steve Raeburn
Who do they sue if the code you've written in-house is faulty?

The fact is they pay you a lot of money (not enough I'm sure ;-)) for the
benefit of your expertise. There's no difference between the stuff you
develop in-house and any open source software you use. You still need to
apply the same QA process that you would use for your own code, but you save
a lot of time (and them a lot of money) by building on others' work.

In short, their guarantee of quality comes not on a piece of paper, but in
the quality of the people they employ.

Steve

> -Original Message-
> From: Gregory F. March [mailto:[EMAIL PROTECTED]
> Sent: September 11, 2003 5:09 AM
> To: Struts Users Mailing List
> Subject: YASJR, Part Duex
>
>
>
> Again, thanks to all who responded.  Your replies are very helpful.
>
> As someone pointed out, there are hacks in MS Word and other commercial
> products, so even commercial companies are not immune from hacks.
>
> In this case however, MS can have a lawsuit brought against them if
> damage is done.  How do I argue the issue that we can't do the same with
> OSS with my management?
>
> [Yes, I know this is getting a little off topic, so feel free to shut it
> down when it goes too far.]
>
> Thanks!
>
> /greg
>
> --
> Gregory F. March-=-http://www.gfm.net:81/~march-=-
> AIM:GfmNet
>
> -
> 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: YASJR (Yet Another Struts Justification Request)

2003-09-10 Thread Steve Raeburn
>
> Nope, WLS 6.1SP4. :-(

BEA uses Struts compatability as a selling point for WLS 8.1:

"Enterprise-class architecture - Implement standards-based applications
leveraging Model-View-Controller (MVC) architecture and Struts framework"

http://kr.bea.com/products/workshop/features/features.shtml

Enterprise class, no less. Tell 'em BEA said it was OK :-)

Steve



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



RE: YASJR (Yet Another Struts Justification Request)

2003-09-10 Thread Steve Raeburn
Congratulations and thanks for evangalising Struts to your organization.

> How can I guarantee that there are no hacks, bombs, etc. in the
> Struts code or any OS code for that matter?

The clue is in the title - OPEN source :-)

If open source has a weakness it certainly is not that anyone is hiding
things in the code.

If they're worried about rogue committers -- and I'd say we're probably all
rogues ;-) -- you can monitor the struts-dev list and be notified of every
single change to the codebase as it happens. I bet you can't get that level
of reassurance from any commercial vendor.

Out of interest, what web server is your bank running its website on?
Apache, by any chance? :-)

Steve



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



RE: Commons Versions bundled with Struts 1.1

2003-09-03 Thread Steve Raeburn
Build requirements (including jakarta-oro) are here:
  http://jakarta.apache.org/struts/userGuide/installation.html#Prerequisites

Steve
http://www.ninsky.com/struts/



> -Original Message-
> From: Andrew Hill [mailto:[EMAIL PROTECTED]
> Sent: September 2, 2003 6:41 AM
> To: Struts Users Mailing List
> Subject: RE: Commons Versions bundled with Struts 1.1
>
>
> btw: Anyone have a clue as to the version for the "jakarta-oro" jar?
> (Its manifest doesnt say)
>
> -Original Message-
> From: Andrew Hill [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 2 September 2003 21:31
> To: Struts
> Subject: Commons Versions bundled with Struts 1.1
>
>
> Ive been trying to find out the versions of the commons libraries bundled
> with Struts 1.1 Final, but haven't found where its definitively documented
> (links welcome please!)
>
> I went through the various manifest files and got this, but Im
> not sure how
> up to date the manifests are:
>
> struts 1.1 (Yeh. Ok. Im pretty confident about this one... ;->)
> commons-beanutils 1.6
> commons-collections 2.1
> commons-digester 1.5
> commons-fileupload 1.0
> commons-lang 1.0
> commons-logging 1.0.3
> commons-validator 1.0.2
>
> Is this correct?
>
>
> -
> 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]
>
>
>



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



RE: [OT] Delays in list posts arriving (was [OT] Scheduling)

2003-09-01 Thread Steve Raeburn
I've been having the same problem. Most messages appear immediately but some
can take up to two days to arrive! Craig thinks it's due to the SoBig.F worm
and that makes sense, but I still don't get why it only affects a very small
number of messages.

I guess it's just "one of those things". The best thing to do is just sit it
out until things get better. Just be patient if someone's post seems to be
hopelessly out of touch with the thread.

It might also help if we kept list traffic down by keeping off-topic posts
to a minimum ;-)

Steve
http://www.ninsky.com/struts/



> -Original Message-
> From: Hue Holleran [mailto:[EMAIL PROTECTED]
> Sent: September 1, 2003 12:12 PM
>
> Resent because message still hasn't made it to the list!
>
> What's going on with posts to this list - some make it in seconds - others
> take days or never appear?



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



RE: Validator and DispatchAction

2003-08-28 Thread Steve Raeburn
Ok, I see one potential problem. Your methods are declared as throwing
ServletException and IOException, but for Struts 1.1 they should be declared
as throwing Exception.

 public ActionForward create(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
  ...

should be
throws Exception {


Try changing that and see how you get on.

Steve
http://www.ninsky.com/struts/





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



RE: J2EE IDE

2003-08-28 Thread Steve Raeburn
There's a wiki page for this topic that might be a better place to post IDE
reviews that on the mailing list.

http://nagoya.apache.org/wiki/apachewiki.cgi?MyFavoriteIDEAndWhy

Steve


> -Original Message-
> From: Butt, Dudley [mailto:[EMAIL PROTECTED]
> Sent: August 27, 2003 8:15 AM
> To: 'Struts Users Mailing List'
> Subject: RE: J2EE IDE
>
>
> I use IntelliJ, really fast to get up and running, I believe
> eclipse is really good, but heard many complain that its hard to
> get up and running. But
> then again, there's a lot of support for it nowadays. Just pick
> one or two and try them out, one of them must be IntelliJ
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 27, 2003 8:46 AM
> To: [EMAIL PROTECTED]
> Subject: J2EE IDE
>
>
> Can someone please suggest me a free J2EE IDE suitable for development of
> webapps using STRUTS. I know of some IDE's like the FORTE, ECLIPSE,
> NETBEANS. However I wanted to ckeckout if anyone has already evaluated any
> of these since I am not sure which one is easy to use and has reasonably
> good features as well.
>
> Regards
> Sreekant G
>
>
>
>
> NOTICE:
>
> This message contains privileged and confidential information intended
> only for the person or entity to which it is addressed.
> Any review, retransmission, dissemination, copy or other use of, or
> taking of any action in reliance upon this information by persons or
> entities other than the intended recipient, is prohibited.
>
> If you received this message in error, please notify the sender
> immediately by e-mail, facsimile or telephone and thereafter delete the
> material from any computer.
>
> The New Africa Capital Group, its subsidiaries or associates do not
> accept liability for any personal views expressed in this message.
>
> -
> 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: Formatting form data inside the *view* (JSP's)

2003-08-27 Thread Steve Raeburn
The Struts  tag offers a format attribute (or formatKey if you
want to use a resource file).
But JSTL would be a better option if you can use it in your environment.

Steve

http://www.ninsky.com/struts/



> -Original Message-
> From: Sasha Borodin [mailto:[EMAIL PROTECTED]
> Sent: August 27, 2003 8:43 AM
> To: Struts Users Mailing List
> Subject: Formatting form data inside the *view* (JSP's)
>
>
> Thought I'd throw this out in the middle of the week again...
>
> Kind of a conceptual question:  how do you format Dates, Numbers,
> Currencies, etc. for *form fields* inside the JSP?
>
> I know I could do in in the ActionForm getters, but:
> 1.  I don't know the locate of the user at that point
> 2.  I'd have to recompile the ActionForm every time I want to make a
> change to the *view* - seems like a bad practice.
>
> What I'm looking to achieve is something similar to  JSTL tag,
> where you can specify a format mask, or even a format "style" defined
> elsewhere.
>
> Thanks,
>
> -Sasha
>
> On 8/22/03 12:30, "Sasha Borodin" <[EMAIL PROTECTED]> wrote:
>
> > I would like to state a basic assumption I deduced in learning
> struts, then
> > pose a question.
> >
> > Assumption:  ActionForm property getters and setters should
> return and take
> > Strings.
> >
> > My initial impulse was to try passing the actual data types
> (Dates, Numbers,
> > etc.); however, the Struts mechanism seems to pass Strings to
> the ActionForm
> > setter methods on form submission (which throws a conversion
> Exception of
> > course). Then I tried making the setters take Strings, and
> getters return
> > the actual data types, but this seemed to confuse the introspection
> > mechanism; plus I didn't see any way to apply formatting inside the
> > html:text tags (like you can in JSTL's fmt:format tags).
> >
> > Question:  How does one handle formatting data (custom
> formatting or i18n)
> > for (pre/re)population of a form?
> >
> > Ex.:  An update form; a user's information is loaded from the
> database into
> > classes (Strings, Dates, Numbers, etc.).  If you want to format
> this data,
> > you have to do it in the Model, as the ActionForm only takes and gives
> > Strings - which seems to be a Bad Practice.  Even if you had additional
> > special setters for the explicit purpose of populating the
> ActionForm from
> > original data types, you still don't know what Locale the
> client is from.
> >
> > Is my assumption incorrect?  Is there a basic flaw in my
> understanding of
> > the use of ActionForm?  Or there an actual short-coming, and workaround?
> >
> > In short, How Can You Format Data For Strut's Form Tags Inside
> The Actual
> > JSP :-) ?
> >
> > Thank you for any input.
> >
> > -Sasha
> >
> >
> > -
> > 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]
>
>
>



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



RE: Another missing attribute in html-el

2003-08-27 Thread Steve Raeburn
When I try adding it, I get a JSP compiler error - "Attribute accesskey
invalid according to the specified TLD."

I can only suggest that you still have an old copy of struts.jar. Try
starting with a fresh copy of struts-blank.war from the Struts 1.1
distribution and try that.

Steve
http://www.ninsky.com/struts/


> -Original Message-
> From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
> Sent: August 27, 2003 10:03 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Another missing attribute in html-el
>
>
> One last word on accesskey in .
>
> My application currently has a page that uses three  tags
> that have an "accesskey" attribute. These all work just fine.
> Then there are
> four  tags, then a . Inside the iterate loop
> are six  tags, then , ,
> , .
>
> The first  in the loop had an accesskey
> attribute. I changed
> all four of the non-hidden tags in the loop to their 
> counterparts. That's when I started having problems with accesskey.
>
> Currently, the first three selects are still there and still working just
> fine. The  in the loop no longer has its accesskey
> attribute, I had to remove it.
>
> So I have three  tags with accesskey, and two
>  tags without accesskey tags. I have no
> earthly idea why
> this works. I've examined the struts-html.tld in my app, and it does not
> have an accesskey attribute in the select tag. But the page works.
>
> --
> Tim Slattery
> [EMAIL PROTECTED]
>
>
> -
> 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: Validator and DispatchAction

2003-08-27 Thread Steve Raeburn
The error message you are receiving indicates that DispatchAction is trying
to find a method named 'error' in your class and it can't find one.

There's really only two reasons that could be:
  1. There should be a method named 'error' and there isn't one.
  2. There isn't supposed to be one but somehow you are attempting
 to call it with a URL like this:
   http://localhost:8080/myapp/tr518page1.do?dispatch1=error

Are you dynamically generating the URL? If so, that might be the problem if
it is generating an error returning a string like "error=".

For what it's worth, I copied your code and it dispatches perfectly well
here. (BTW my previous message about Exceptions was a red herring. Although
you should be throwing Exception, I tried it as you had written and it
works.)

Steve
http://www.ninsky.com/struts/



> -Original Message-
> From: Venkat Jambulingam [mailto:[EMAIL PROTECTED]
> Sent: August 27, 2003 9:58 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: Validator and DispatchAction
>
>
> Hi Steve,
>
> I don't have a method named "error" in my action class. I don't need
> one. Why is it looking for such a method in my action class? Help me
> please. I have to decide soon whether to go with validator framework or
> not.
>
> Thank you very much,
> Venkat
>
> >>> [EMAIL PROTECTED] 08/27/03 12:05PM >>>
> This is the relevant part of the message: "Action[/tr518page1] does
> not
> contain method named error"
>
> Does your DispatchAction class,
> com.ewd.biztax.actions.Tr518page1Action,
> contain a method named "error"?
>
> Steve
> http://www.ninsky.com/struts/
>
>
>
> > -Original Message-
> > From: Venkat Jambulingam [mailto:[EMAIL PROTECTED]
> > Sent: August 27, 2003 8:43 AM
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: Re: Validator and DispatchAction
> >
> >
> > Hi Nagi,
> >
> > Here is the error I'm getting while using validator with
> > DispatchAction:
> >
> > [ERROR] DispatchAction - -Action[/tr518page1] does not contain
> method
> > named error  > error>java.lang.NoSuchMethodException: error
> > at java.lang.Class.getMethod0(Native Method)
> > at java.lang.Class.getMethod(Class.java:928)
> > at
> > org.apache.struts.actions.DispatchAction.getMethod(DispatchAction.
> > java:334)
> > at
> > org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAc
> > tion.java:266)
> > at
> >
> org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
> > at
> > org.apache.struts.action.RequestProcessor.processActionPerform(Req
> > uestProcessor.java:484)
> > at
> > org.apache.struts.action.RequestProcessor.process(RequestProcessor
> > .java:274)
> > at
> >
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> > at
> >
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> > com.ibm.servlet.engine.webapp.StrictServletInstance.doService(Serv
> > letManager.java:827)
> > at
> > com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(Stri
> > ctLifecycleServlet.java:167)
> > at
> > com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifec
> > ycleServlet.java:297)
> > at
> > com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(Stric
> > tLifecycleServlet.java:110)
> > at
> > com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManag
> > er.java:472)
> > at
> > com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(
> > ServletManager.java:1012)
> > at
> > com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(Se
> > rvletManager.java:913)
> > at
> > com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebApp
> > Dispatch(WebAppRequestDispatcher.java:678)
> > at
> > com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(Web
> > AppRequestDispatcher.java:331)
> > at
> > com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebA
> > ppRequestDispatcher.java:117)
> > at
> >
> com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
> > at
> > com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebA
> > ppInvoker.java:239)
> > at
> > com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocatio
> > n(CachedInvocation.java:67)
> > at
> > com.ibm.servlet.engine.invocation.CacheableInvocationContext.invok
> > e(CacheableInvocationContext.java:106)
> > at
> > com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(S
> > ervletRequestProcessor.java:154)
> > at
> > com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(O
> > SEListener.java:315)
> > at
> > com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpCon
> > nection.java:60)
> > at
> > com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection
> > .java:323)
>

RE: J2EE IDE

2003-08-27 Thread Steve Raeburn
There's a wiki page for this topic that might be a better place to post IDE
reviews that on the mailing list.
http://nagoya.apache.org/wiki/apachewiki.cgi?MyFavoriteIDEAndWhy

(I sent this already but it didn't make it to the list. The original may
show up in a few hours, so sorry if this is a duplicate).

Steve





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



RE: How to get a String object from request scope.

2003-08-27 Thread Steve Raeburn
Just reference your string by its name. e.g. 

  

Will display the value of the String.

Steve 
http://www.ninsky.com/struts/


> -Original Message-
> From: Fumitada Hattori [mailto:[EMAIL PROTECTED]
> Sent: August 27, 2003 9:02 AM
> To: [EMAIL PROTECTED]
> Subject: How to get a String object from request scope.
> 
> 
> Hi gurus.
> 
> I got one Action servlet class and one jsp.
> If the action servlet is successfully processed, it's forwarded to the
> jsp.
> In the Action servlet, there's a following statement.
> 
> 
> 
> String my_name = "JACK";
> request.setAttributte("MY_NAME",my_name);
> return (mapping.findForward("success"));
> 
> 
> Now I wanna get the "MY_NAME" property with a struts tag in the jsp 
> which is redirected from the Action servlet.
> I don't know how to make it since the instance(my_name) in the action 
> servlet is a just String Object...not a javabean.
> 
> Thanks in advance.
> 
> wolfgang
> 
> 
> 
> -
> 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: Validator and DispatchAction

2003-08-27 Thread Steve Raeburn
This is the relevant part of the message: "Action[/tr518page1] does not
contain method named error"

Does your DispatchAction class, com.ewd.biztax.actions.Tr518page1Action,
contain a method named "error"?

Steve
http://www.ninsky.com/struts/



> -Original Message-
> From: Venkat Jambulingam [mailto:[EMAIL PROTECTED]
> Sent: August 27, 2003 8:43 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: Validator and DispatchAction
>
>
> Hi Nagi,
>
> Here is the error I'm getting while using validator with
> DispatchAction:
>
> [ERROR] DispatchAction - -Action[/tr518page1] does not contain method
> named error  error>java.lang.NoSuchMethodException: error
>   at java.lang.Class.getMethod0(Native Method)
>   at java.lang.Class.getMethod(Class.java:928)
>   at
> org.apache.struts.actions.DispatchAction.getMethod(DispatchAction.
> java:334)
>   at
> org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAc
> tion.java:266)
>   at
> org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
>   at
> org.apache.struts.action.RequestProcessor.processActionPerform(Req
> uestProcessor.java:484)
>   at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor
> .java:274)
>   at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
>   at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> com.ibm.servlet.engine.webapp.StrictServletInstance.doService(Serv
> letManager.java:827)
>   at
> com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(Stri
> ctLifecycleServlet.java:167)
>   at
> com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifec
> ycleServlet.java:297)
>   at
> com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(Stric
> tLifecycleServlet.java:110)
>   at
> com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManag
> er.java:472)
>   at
> com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(
> ServletManager.java:1012)
>   at
> com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(Se
> rvletManager.java:913)
>   at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebApp
> Dispatch(WebAppRequestDispatcher.java:678)
>   at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(Web
> AppRequestDispatcher.java:331)
>   at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebA
> ppRequestDispatcher.java:117)
>   at
> com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
>   at
> com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebA
> ppInvoker.java:239)
>   at
> com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocatio
> n(CachedInvocation.java:67)
>   at
> com.ibm.servlet.engine.invocation.CacheableInvocationContext.invok
> e(CacheableInvocationContext.java:106)
>   at
> com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(S
> ervletRequestProcessor.java:154)
>   at
> com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(O
> SEListener.java:315)
>   at
> com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpCon
> nection.java:60)
>   at
> com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection
> .java:323)
>   at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
>   at com.ibm.ws.util.CachedThread.run(ThreadPool.java:137)
>
> [8/27/03 11:16:41:759 EDT] 268bd254 WebGroup  X SRVE0026E: [Servlet
> Error]-[action]: com.ibm.servlet.engine.webapp.WebAppErrorReport:
> Action[/tr518page1] does not contain method named error
>   at
> com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(W
> ebAppDispatcherResponse.java:93)
>   at
> org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAc
> tion.java:272)
>   at
> org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
>   at
> org.apache.struts.action.RequestProcessor.processActionPerform(Req
> uestProcessor.java:484)
>   at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor
> .java:274)
>   at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
>   at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> com.ibm.servlet.engine.webapp.StrictServletInstance.doService(Serv
> letManager.java:827)
>   at
> com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(Stri
> ctLifecycleServlet.java:167)
>   at
> com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifec
> ycleServlet.java:297)
>   at
> com.ibm.servlet.engine.webapp.Stric

RE: DynaValidator and two fields with identical content

2003-08-26 Thread Steve Raeburn
Take a look at the examples here http://www.ninsky.com/struts/
The validator example shows one way of doing exactly this. (It's very
similar to David's example).

If you can use the nightly build, then the validwhen rule can alsoe compare
fields.

Steve


> -Original Message-
> From: Jiri Chaloupka [mailto:[EMAIL PROTECTED]
> Sent: August 26, 2003 2:14 PM
> To: Struts Users Mailing List
> Subject: DynaValidator and two fields with identical content
>
>
> Hallo,
> I have registration form
>
> username: 
> password: 
> password again: 
>
> how I can chceck if pwd contains identical content as pwd2 in
> DynaValidator layer?
> Does anybody has this extension for validator-rules?
>
> Thanks, Jiri
>
>
> -
> 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: Another missing attribute in html-el

2003-08-26 Thread Steve Raeburn
"The following elements support the accesskey attribute: A, AREA, BUTTON,
INPUT, LABEL, and LEGEND, and TEXTAREA."
http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.html#adef-acces
skey

I'm not quite sure *why*  does not have an accesskey, but it
definitely doesn't.

Looking back at the source, there *was* an accesskey attribute but it was
removed before 1.1 Beta 3. This explains more -
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13337

Check that you actually are running the release version of 1.1 and you don't
have any old jar or .tld files hanging around.

Steve
http://www.ninsky.com/struts/


> -Original Message-
> From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
> Sent: August 26, 2003 12:34 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Another missing attribute in html-el
>
> That's insane! I started using the accesskey attribute with "select" in
> whatever Struts version came before version 1.1. It's in HTML4.0, and W3C
> DOM Level 1 (according to MSDN, which says IE has known about it since
> IE4.0). And it is beyond question in Struts 1.1!
>
> --
> Tim Slattery
> [EMAIL PROTECTED]
>
>
> -
> 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: Another missing attribute in html-el

2003-08-26 Thread Steve Raeburn





No accesskey.

http://jakarta.apache.org/struts/userGuide/struts-html.html#select

No access key.

I'm not denying that I could be wrong. Could you tell me what version of the
taglibs you are using and what version of the HTML or XHTML dtd you are
referring to?

Steve

http://www.ninsky.com/struts/


> -Original Message-
> From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
> Sent: August 26, 2003 11:25 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Another missing attribute in html-el
>
>
>
>
> > -----Original Message-
> > From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, August 26, 2003 2:19 PM
> > To: Struts Users Mailing List
> > Subject: RE: Another missing attribute in html-el
> >
> >
> > accesskey is not a valid attribute for the select element
> > (See http://www.w3.org/TR/html4/sgml/loosedtd.html).
> > It's not on the  tag either.
>
> Yes it is valid for the  HTML tag, and yes it is valid for
> . I was using it on an  tag, and when I
> switched that tag to  I got the error message.
>
>
> -
> 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: Another missing attribute in html-el

2003-08-26 Thread Steve Raeburn
accesskey is not a valid attribute for the select element (See
http://www.w3.org/TR/html4/sgml/loosedtd.html).
It's not on the  tag either.

Also re your earlier message, I took a look at the  tag for
the the styleId attribute. It has already been added to the source since
1.1. There's also a styleClass attribute but I suspect that's a little less
useful ;-)

If you download the nightly build you'll able to use it. Or wait for 1.2
which should be along soon.

Steve
http://www.ninsky.com/struts/


> -Original Message-
> From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
> Sent: August 26, 2003 7:35 AM
> To: Struts User List ([EMAIL PROTECTED])
> Subject: Another missing attribute in html-el
>
>
> The  tag does not have an "accesskey"
> attribute. I tried
> adding the attribute to the struts-html-el.tld file, and got this error
> message:
>
> Error in using tag library uri='/WEB-INF/struts-html-el.tld'
> prefix='html-el': The Tag class
> 'org.apache.strutsel.taglib.html.ELSelectTag' has no setter method
> corresponding to TLD declared attribute 'accesskey'
>
>
>
> --
> Tim Slattery
> [EMAIL PROTECTED]
>
>
> -
> 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: Checkboxes

2003-08-26 Thread Steve Raeburn
Atachments don't make it through the list, Mike.

Best bet would be to make your file available on a publicly accessible
website and post the link, or if it's small enough, post the text in the
body of your message.

Steve


> -Original Message-
> From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
> Sent: August 25, 2003 12:25 PM
> To: Struts Users Mailing List
> Subject: RE: Checkboxes
>
>
> The attached JSP may help you, I posted it a couple weeks ago to
> help solve
> a similar problem.
>
> HTH,
> mike jasnowski
>
> -Original Message-
> From: Filip Polsakiewicz [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 25, 2003 4:58 AM
> To: Struts Users Mailinglist
> Subject: Checkboxes
>
>
> Hi,
> I have the following problem:
>
> I have a list of 71 Checkboxes and want to have one checkbox to select all
> of them at once. This works fine but I cannot uncheck this checkbox if it
> was checked once in order to uncheck all other checkboxes.
>
> Can anybody help me on this. Any code samples would be very helpful.
>
> Thanks in advance,
>
> Filip
>
>
>
>
>



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



RE: Java Question

2003-08-26 Thread Steve Raeburn
This question was asked and *answered* yesterday.

http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]
he.org&msgNo=86724

Is there any reason you are repeating the it?

Steve

> -Original Message-
> From: Kapadia Mitesh-C23457 [mailto:[EMAIL PROTECTED]
> Sent: August 24, 2003 11:21 AM
> To: [EMAIL PROTECTED]
> Subject: Java Question
>
>
> I've been trying to compile my BLB (Business Logic Bean) and have
> been getting errors during compilation.  I haven't a clue as to
> how I could debug this.  Any assistance would be appreciated.
>
> Thanks in advance.
>
> - Mitesh
>
...



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



RE: Database Pooling and Factory Bean

2003-08-26 Thread Steve Raeburn
This might give you a start,
http://jakarta.apache.org/struts/faqs/database.html

However, I prefer not to involve Struts in the data access layer, so these
are also well worth a look:
- Hibernate http://hibernate.bluemars.net/
- Ibatis http://www.ibatis.com/

Rick Reumann has recently added an Ibatis tutorial which looks good
http://www.reumann.net/do/struts/ibatisLesson1

Steve
http://www.ninsky.com/struts/



> -Original Message-
> From: greg [mailto:[EMAIL PROTECTED]
> Sent: August 25, 2003 11:09 PM
> To: 'Struts Users Mailing List'
> Subject: Database Pooling and Factory Bean
>
>
> Ok, here is the question.
>
> I have been reading the doucmentation of struts and some books that
> I have gotten my hand on.  I think I understand most of the framework
> stuff. Now I would like to be able to incorporate database resource
> to my site using pooling resources and I would like to have a
> factory entity that would produce specific business objects
> on request.
>
> How do I create persistant entity that would be available to
> the framework's action classes?
>
> How can I incorporate database pooling into that?
>
> Thanks.
>
> Greg
>
>
> -
> 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: Struts custom tags tutorial

2003-08-26 Thread Steve Raeburn
In addition to the other resources I listed, you should take a look at JSTL:
  http://java.sun.com/products/jsp/jstl/

The reference implementation for JSTL is at Jakarta taglibs:
  http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html

In particular, look at the iteration tag  which is roughly
equivalent to Struts  tag.
Both can be used to generate your result table by iterating over a
collection.

For example, using JSTL:
If 'widgetResults' is the name of a Collection of Widgets in some scope
(page, request, session, application) then you could use the JSTL tags in
the following extract to display a table containing the Widget details:

<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %>

...

  No widgets found.



  
  
SKU
Color
Size
Description
Price
  
  
  





  
  


...

This will print out a row in the table for each Widget in your Collection.

JSTL requires JSP 1.2 or later and you should use it in preference to the
Struts tag libraries where you can.

Steve

http://www.ninsky.com/struts/



> -Original Message-
> From: Seshadhri Srinivasan [mailto:[EMAIL PROTECTED]
> Sent: August 25, 2003 11:51 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts custom tags tutorial
>
>
> Hi Steve,
> Let me clarify:
>   I know some of the basic concepts of struts and I have been using
> things like the Action class, the Form class etc. But the point is, after
> having finished the work on the backend logic, I have to present
> my data in
> the form of tables on the page. Now the table dimensions, the
> colours used,
> etc. can vary based on the data generated. So I wanted to use
> custom Struts
> tags on the page where the table has to be generated and displayed. Then I
> want to put my code corresponding to these struts tags else
> where. This way
> the logic to display the data will not be there on the JSP page.
> This is my
> problem. I have tried to get the right tutorial for this but my search has
> noy yielded the right results. Can you please help me.
>
> Thanks,
> Seshadhri Srinivasan
>



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



RE: Struts custom tags tutorial : urgent!!

2003-08-26 Thread Steve Raeburn
I do appreciate that when you are completely new to a subject it can be
difficult to know where to look. However, you'll get a much more sympathetic
response if you demonstrate that you have at least tried to find things out
for yourself before asking for help.

Start with the Struts web site:
 - http://jakarta.apache.org/struts/userGuide/index.html
 - http://jakarta.apache.org/struts/resources/tutorials.html
 - http://jakarta.apache.org/struts/resources/examples.html

And also try Google:
 - http://www.google.com/search?q=Struts+tutorial
 - http://www.google.com/search?q=Struts+examples

Also, there are at least seven books specifically on Struts and several
others that offer some coverage.


  Flagging your messages as URGENT!! gives the impression that you somehow
  think your problem is so important that others should stop what they are
  doing and tend to your needs. In reality, URGENT!! tends to get your
  message ignored.

  Please, don't use URGENT!! unless your house is on fire. And even then
  you'd probably be better off calling the fire service than emailing me :-)



Steve

http://www.ninsky.com/struts/


> -Original Message-
> From: Seshadhri Srinivasan [mailto:[EMAIL PROTECTED]
> Sent: August 25, 2003 10:30 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts custom tags tutorial : urgent!!
>
>
> Hi,
> I have a JSP page in which I am supposed to add content
> dynamically based on
> some logic. I came to know that using custom struts tags in the
> jsp page can
> aid in making the presentation logic modular. However I have no idea of
> custom Struts tags. Can some one suggest a good tutorial to cover up this
> portion as quickly as possible?
> Thanks in advance
>
> Seshadhri Srinivasan
>
>
> -
> 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: Html-el:hidden tag!?!?!

2003-08-26 Thread Steve Raeburn
That was the first answer that popped into my head, but the styleId
attribute generates an (X)HTML id attribute which is not a visual style
attribute at all, despite the Struts attribute name, but an element
identifier within the (X)HTML document.

I think the fact that it's missing is just an oversight in the tag library
descriptor.

If you're using a local copy of the struts-html-el.tld file (not the one in
struts-el.jar), you may be able to add the attribute there as a workaround.

Add this to the  tag entry:
  
  styleId
  false
  true
  

Disclaimer: I haven't tested this workaround so it may not work.

I'll take a look and fix it in the nightly build when I get a chance.

Steve



> -Original Message-
> From: David Friedman [mailto:[EMAIL PROTECTED]
> Sent: August 25, 2003 3:27 PM
> To: Struts Users Mailing List
> Subject: RE: Html-el:hidden tag!?!?!
>
>
> I'll go with the logical answer of:
>
> It's a hidden form tag, so there is no point
> in having a visual style for a non-visible element.
>
> Regards,
> David
>
> -Original Message-
> From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 25, 2003 1:37 PM
> To: Struts User List ([EMAIL PROTECTED])
> Subject: Html-el:hidden tag!?!?!
>
>
> Why is it that the html-el:hidden tag has no "styleId" attribute?
>
>
> --
> Tim Slattery
> [EMAIL PROTECTED]
>
>
> -
> 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]
>
>
>



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



RE: Struts-example database

2003-08-25 Thread Steve Raeburn
The example application defines a custom plug-in that is initialised at
start-up and loads the database and stores it in the ServletContext
(application scope).

struts-config.xml:
  

  

MemoryDatabasePlugIn.java
  servlet.getServletContext().setAttribute(Constants.DATABASE_KEY,
database);

Constants.java
  public static final String DATABASE_KEY = "database";

Plug-ins are a common way to initialise application resources. Another way,
that requires at least a Servlet 2.3 container would be to implement a
ServletContextListener.

Steve

http://www.ninsky.com/struts/



> -Original Message-
> From: Derrick Brooks [mailto:[EMAIL PROTECTED]
> Sent: August 24, 2003 3:43 PM
> To: [EMAIL PROTECTED]
> Subject: Struts-example database
>
>
> I just downloaded struts 1.1 binary and loaded the struts-example into
> tomcat and it works fine.
>
> My question is I do not understand when and how the database is loaded in
> the index.jsp. There is a tag that reads:
>
> 
>
> But I do not see the "database" name in the struts-config or web.xml file.
> In the tour.htm file it talks about a DatabaseServlet that I can
> not seem to
> find (I guess it was takin out).
>
> Thanks for the help,
>
> Derrick
>
> (Sorry if this is the second time you received this message. I do
> not think
> my first post went through.)
>
>
>
> -
> 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: How to keep session info??

2003-08-15 Thread Steve Raeburn
> But if redirect to another web application your session is lost 

That's by design. Sessions belong to a single web application.

The Servlet Spec says:

...
SRV.7.3 Session Scope
HttpSession objects must be scoped at the application (or servlet context)
level.

The underlying mechanism, such as the cookie used to establish the session,
can be the same for different contexts, but the object referenced, including
the attributes in that object, must never be shared between contexts by the
container.

To illustrate this requirement with an example: if a servlet uses the
RequestDispatcher to call a servlet in another web application, any sessions
created for and visible to the callee servlet must be different from those
visible to the calling servlet.
...

To maintain user data across web applications, you could use your own cookie
and/or store information in a database.

Steve



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



RE: How to keep session info??

2003-08-14 Thread Steve Raeburn
Redirect causes a new request, not a new session.

A few other things to try:
 - Check that your server is actually sending a session cookie or rewriting
the URL
   (change your browser settings to see when the server sends you a cookie)
 - If your server supports it, try using an HttpSessionListener and
   HttpSessionAttributeListener to help debug when sessions are created and
   attributes added/removed
 - If you still can't see the problem, post the relevant code from your
action

Steve


> -Original Message-
> From: Nathan Coast [mailto:[EMAIL PROTECTED]
> Sent: August 14, 2003 7:53 PM
> To: Struts Users Mailing List
> Subject: Re: How to keep session info??
>
>
>  > Make sure that your  isn't doing a redirect (i.e.
>  > redirect="true").  If I understand things correctly, a redirect will
> cause a
>  > new session to be created...
>  >
>  > Jerry
>
> Are you sure?  I haven't looked at this area of the source for a while
> but I can't think any sensible reason why it would be desirable for a
> redirect to cause a new session.
>
> If the problem is that a variable is placed into the session and then is
> missing during the same request (and the forward is within the same
> web-app), it sounds to me like there might be some erroneous code
> somewhere.  I'd check for silly mistakes
>
> check you aren't putting null in the session,
> check you aren't setting the var in the request rather than the session,
> check the var in the session isn't null immediately after placing in the
> session,
> check the request isn't going via some code that calls
> session.invalidate(), or is removing the var from the session.
>
> hope this helps
>
> Jerry Jalenak wrote:
>
> >
> > -Original Message-
> > From: development [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 14, 2003 8:42 PM
> > To: [EMAIL PROTECTED]
> > Subject: How to keep session info??
> >
> >
> > Hi all,
> >
> > I've got a LoginAction which inside its execute method validates and
> > saves the login info into HttpSession instance. It creates an
> > ActionForward and returns it.
> > All works good and it calls the new Action which I call MembersAction
> > which tries to retrieve the login info.
> > Somehow though the session ID is different and so I lost all my login
> > info :(
> >
> > Can someone tell me why session would be diferent please?
> >
> > Cheers
> > Vic
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > This transmission (and any information attached to it) may be
> confidential and is intended solely for the use of the individual
> or entity to which it is addressed. If you are not the intended
> recipient or the person responsible for delivering the
> transmission to the intended recipient, be advised that you have
> received this transmission in error and that any use,
> dissemination, forwarding, printing, or copying of this
> information is strictly prohibited. If you have received this
> transmission in error, please immediately notify LabOne at the
> following email address: [EMAIL PROTECTED]
> >
> >
> >
> > -
> > 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]
>
>
>



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



RE: Password encryption on http client...

2003-08-14 Thread Steve Raeburn
Have a look at : 
http://pajhome.org.uk/crypt/md5/index.html

You would also need to consider if you want to be reliant on Javascript.

Steve

> -Original Message-
> From: Keith Pemberton [mailto:[EMAIL PROTECTED]
> Sent: August 14, 2003 6:41 PM
> To: [EMAIL PROTECTED]
> Subject: Password encryption on http client...
> 
> 
> I would like to create a registration page for my site but I would like
> to encrypt the passwords on the client side before they are submitted
> across the line to the server.  Is this possible or will I have to just
> use SSL to get a decent level of security?  Your help and suggestions
> are very much welcome!
> 
> Keith Pemberton
> -- 
> Keith Pemberton <[EMAIL PROTECTED]>
> 
> 
> -
> 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: Apache Tomcat web servers

2003-08-14 Thread Steve Raeburn
Jason Hunter maintains an ISP list at http://www.servlets.com/isps

I don't think it would be appropriate to review ISPs on the Struts site.

Steve

> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED]
> Sent: August 10, 2003 9:16 AM
> To: Struts Users Mailing List
> Subject: Re: Apache Tomcat web servers
>
>
> Hi Hue,
> thanks for the comprehensive run-down on hosting. Perhaps you should get
> the company put on
>
> http://jakarta.apache.org/struts/resources/hosts.html
>
> for the record. Actually it's a shame that there are no comments about
> the current hosting companies on that list.
>
> By the way Hue, you neglected to state one very important fact - how
> much the package at memset costs! Guess I'll have to check out the link ;)
>
> Maybe you can clear up something else for me - with full root access to
> a virtual server? What is virtual about it? Are you still sharing
> hardware with other customers?
>
> Just as a caveat, I was talking online to a guy who ran tomcat online
> with unlimited traffic, and he got hacked somehow - he said he had
> unwittingly left some exploit in RedHat open - the cracker got in and
> used the bandwidth solid for 18 hours before he discovered it. Cost him
> 2 grand - eek!
>
> Adam
>
>
>
> Hue Holleran wrote:
> > Hi yan,
> >
> > I would be inclined to keep-away from ISPs who do not have good and
> > *extensively* proven experience with JSP and only go with those who are
> > specifically recommended to you for JSP. I fell-out with a UK-based ISP
> > (servers hosted in the US/Canada) in the last 6 months after
> > failure-after-failure with Tomcat - although they apparently supported
> > tomcat. They felt I was being "unreasonable" if I complained that TC was
> > down frequently as they claimed their servers were still "up"
> and serving
> > static content - so this was fine in their mind - the simple website in
> > question was finally offline for at least 2 weeks.
> >
> > We were being blamed for apparent errors in the pages although
> the website
> > had not been changed and had worked flawlessly for 3 months
> prior to this
> > outtage ... and also worked without changes on a fresh download
> of Tomcat
> > and on every configuration of ours: Windows and Debian Linux
> with IBM, BEA
> > and Sun's JDKs 1.3-1.4 and under a JSM and without a JSM!
> >
> > We did attempt to get a refund as we'd paid for 12 months hosting in
> > advance - but they refused and unless we wanted to get legal
> they would not
> > pay up - in the end we transferred to another ISP (easy to do
> as our DNS is
> > located elsewhere and enabled us to do this). A *costly* lesson.
> >
> > The lessons we learned are:
> >
> > 1) Always keep control of DNS records - and allows easily and
> quickly moving
> > from a poorly-performing ISP. Ours are with "register.com" -
> not cheap but
> > their DNS appears to be very solid and all DNS can be
> configured online and
> > DNS costs are included in the domain registration costs. There
> are plenty of
> > other options for other DNS providers, though.
> >
> > 2) Never go with an ISP for technologies they "seem" to support
> - only ever
> > go with a technology from an ISP if they specialise in this and
> really know
> > what they're doing. Recommendations seem to be the key, here -
> > recommendations for kgbinternet seem to crop-up a lot - I
> haven't personally
> > read a bad word about them yet.
> >
> > 3) For JSP specifically - always consider what _could_ go wrong
> with hosting
> > and what implications sharing with other sites could have. For
> instance a
> > private JVM is a really good idea - from a security, performance and
> > reliability viewpoint. Also, consider what effect other
> services running on
> > the same server could have - for instance we lost tomcat once
> as, unknown to
> > us - the server was also being used for users just playing about with
> > tomcat - another user had deleted their "jserv" directory and
> this caused
> > tomcat to fail to start - taking our site with it. We also had problems
> > wanting to change some settings for the JSM - in order to run
> Struts/Tiles -
> > this was finally done - but grudgingly only by the above ISP.
> >
> > 4) Consider what version of Tomcat (or other container) you'd like to be
> > running and ask whether this is the version they run and how
> proactive are
> > they at installing security updates and fixes. When we first
> investigated
> > the version running with our ISP it was Tomcat 3.2 beta 4(!) -
> even though
> > 3.3a Final and 4.1.x was also suitable for production. From the
> Tomcat bug
> > database there appeared to be some very serious security
> problems with the
> > version they were running: source disclosure, web.xml disclosure etc.!
> >
> > Our Choice
> > **
> >
> > After trying 4 different shared hosting providers we now use
> > http://www.memset.com/ - who supply a very competitively-priced complete
> > virtual Linux server - with unlimited bandwi

RE: Validator

2003-08-14 Thread Steve Raeburn
Are you running Struts 1.1? I think this is a problem that was fixed before
1.1 final was released.

Steve


> -Original Message-
> From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]
> Sent: August 11, 2003 8:12 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Validator
>
>
> What about replacing reference PUBLIC in fetching the DTD by a SYSTEM in
> order to locate it in the same machine, i.e. with no internet access? We
> have successfully tried.
>
> Adolfo.
>
> >From: Doug <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> >Subject: Re: Validator
> >Date: Mon, 11 Aug 2003 09:15:59 -0500
> >
> >On one of our machines that cannot get to the internet, the DTD
> references
> >definitely cause validation to be ignored completely.  I believe
> we can see
> >errors during the web application's startup (or we probably
> wouldn't have
> >found the problem.)
> >
> >We have to comment-out those DTD lines, or we get no validation.
> >
> >Sergey Smirnov wrote:
> >
> >>Common-Validators Framework does not check Validation file
> against DTD in
> >>run-time at all. I wonder, how removing DTD declaration can
> help to change
> >>something in this case.
> >>   - Original Message -   From: Nagendra Kumar O V S   To:
> >>[EMAIL PROTECTED]   Sent: Sunday, June 22, 2003 9:42 PM
> >>   Subject: RE: Validator
> >>
> >>
> >> HI keith,
> >> comment your dtd declarations in both ur validator.xml &
> >>validator-rules.xml and try.
> >>
> >> this should work for u..
> >>
> >> -nagi
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> Add photos to your messages with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
>
> -
> 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: [OT] Interesting JSF info

2003-08-14 Thread Steve Raeburn
You talk as if Sun were in sole control of the destiny of JSF and of Struts.
The truth is that Sun in in control of neither.

JSF is being developed under the the Java Community Process and the expert
group comprises a wide cross section of companies and individuals. You can
see for yourself: http://jcp.org/en/jsr/detail?id=127

>From the JCP home page:
"The Java Community Process is the way the Java platform evolves. Its an
open organization of international Java developers and licensees whose
charter is to develop and revise Java technology specifications, reference
implementations, and technology compatibility kits. Both Java technology and
the JCP were originally created by Sun Microsystems, however, the JCP has
evolved from the informal process that Sun used beginning in 1995, to a
formalized process overseen by representatives from many organizations
across the Java community."

That doesn't sound very like Microsoft at all. (Microsoft also aren't known
for giving away the fruits of their labour or committing development
resources to open source projects.)

Also, don't forget that JSF is a *specification*, not a product. As far as
I'm aware, vendors (in the loose sense, including Apache) will be free to
develop their own implementations.

With regard to Struts, as long as there is demand and support for Struts
from the user community then Struts will continue to exist and develop. Even
if JSF encompassed everything that Struts has to offer (Craig says it
doesn't and I'm apt to believe him) that would not kill Struts as long as
people still want an alternative.

The bottom line is that Struts will be what *we* need it to be and what *we*
make of it.

Steve

p.s. I don't work for Sun and I don't hate Microsoft :-)

> -Original Message-
> From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
> Sent: August 11, 2003 12:06 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [OT] Interesting JSF info
>
>
>
>
> I understand all that but as Sun is more like Microsoft than given credit
> (at least with Java).  IE incorporated JavaScript because it had to even
> though NS invented it based on Sun's language (neither
> Microsoft's friend).
> Not that Struts is JSF's foe but I think for the meantime it is
> good to have
> them play well together until Sun decides how they want to complete the
> whole framework from A-Z and anything you can do in Struts you
> will be able
> to do with JSF and so will be promoted that way (at least by Sun
> of course).
>
> Java (to Sun) is like Windows (to Microsoft):  The browser is part of the
> OS. In the same vain it will come down to this: JSF is part of Java so
> therefore that is what you should use (as your one and only
> framework). Can
> you imagine MS saying, no, use NS in concert with IE?
>
> My point is that Sun has added to the core or extensions of Java
> everything
> but the kitchen sink.  C++ has been around longer and maybe it is
> my lack of
> knowledge but I think Sun's Java (it's younger years) has more APIs to
> develop in more genres than C or C++.  Java is destined to be
> everything to
> everybody.  No one over there will be happy with JSF being used in part.
>
> Sun has to compete with .NET.  If .NET offers everything for EE
> development
> then so does Sun's Java and they can't risk that people will just know to
> use Struts along with JSF they want to say here is the whole
> thing, the only
> thing you need to compete with .NET, come and get it at Sun.com!
>
> That is just my opinion, of course.
>
> But I guess you are right that if the Struts controller framework
> is better
> and plays well with JSF that, even if Sun promotes JSF as a 100% solution,
> it doesn't mean developers will do exactly that.  You do know
> more about the
> near future but I am just trying to look a little farther beyond.
>
> It is almost like you are saying it yourself that in order for
> Struts to be
> used in concert with JSF there needs to be some changes (new features you
> are going to add to Struts).  Unless you are saying that Sun is going to
> package JSF so that it contains code from the Jakarta project and
> so stated.
> Then I can see Struts hanging around as Mozilla is the base for browser
> development then Struts will be the code base for some JSF releases.
>
> BTW, I did not know you worked for Sun:
> http://java.sun.com/j2ee/javaserverfaces/
> so you know how Sun works.  Where am I going wrong?
>
>
>
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 11, 2003 2:22 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] Interesting JSF info
>
> On Mon, 11 Aug 2003, Bailey, Shane C. wrote:
>
> > Date: Mon, 11 Aug 2003 13:24:53 -0400
> > From: "Bailey, Shane C." <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: [OT] Interesting JSF info
> >
> >
> >
> > Start here:
> >
> > http://java.sun.com/webservices/docs/1.2/tutorial/doc/IntroIWA6.html

RE: Struts Validator

2003-08-14 Thread Steve Raeburn
Time to put up or shut up, Mark. If there are specific bugs you have
encountered with Validator, please report them via Bugzilla so they can be
addressed. (Patches would also be nice).

Failing that, why not write something yourself and donate it so we can call
your hard work crap?

Otherwise, please give it a rest.

Steve

> -Original Message-
> From: Mark Galbreath [mailto:[EMAIL PROTECTED]
> Sent: August 13, 2003 1:41 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts Validator
>
>
> Validator is crap; don't waste your time.
>
> Mark
>
> -Original Message-
> From: Stephen Bennett [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 13, 2003 11:39 AM
> To: [EMAIL PROTECTED]
> Subject: Struts Validator
>
>
> Has anyone had any problems getting the Struts Validator to work?
>
> I have a small sample app that works OK but cannot get my main
> app to work!
> As far as I can see I have done everything the same as in the sample one.
>
> I have noticed that when the sample app that works starts up I get four
> messages from the ValidatorPlugin the first pair mentions the
> validation.xml
> and the validator-rules.xml then later it says ValidatorPlugin
> initResources
> then the previous xml messages.
>
> With the real app that doesn't work I don't get these second initResources
> messages. I am not sure if this is significant or not, does
> anyone have any
> ideas?
>
> I have: -
>
>   
>property="pathnames"
>   value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
>   
>
> in my struts-config
>
> and
>
>   
>property="code"
>   depends="required">
>   
> 
>property="constant"
>   depends="required,integer">
>   
> 
>   
>
> in my validation.xml
>
> validator-rules.xml are default
>
> my formbean is extending ValidatorActionForm
>
> and my action mapping is
>
>path="/ValidationType"
>   name="validationTypeForm"
>   input="/jsp/validationtype/validationType.jsp"
>   type="com.mycompany.ValidationTypeAction"
>   scope="session">
>   
>   
> 
>
> I am using Struts 1.1 with Tomcat 4.1.24 on XP
>
> Can anyone help?
>
> Thanks
>
> Steve
>
>
>
> -
> 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: Struts Validator

2003-08-14 Thread Steve Raeburn
I've included an example of the Two Fields custom validator in the examples
at http://www.ninsky.com/struts/

The bundled struts examples are found in the webapps directory of the struts
distribution (struts-validator.war).

There's lots of good stuff in that directory ;-)

Steve



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



RE: Struts Validator-validwhen

2003-08-14 Thread Steve Raeburn
It's not in Struts 1.1 but it's available in the nightly build and will be
in the next release.

Steve

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: August 14, 2003 8:32 AM
> To: [EMAIL PROTECTED]
> Subject: Struts Validator-validwhen
>
>
>
> Hi,
> The struts Validator
> 'validwhen' I could not find anywhere in struts,even though it was
> mensioned
> in documentation.
> If it is available  Could  anybody please help me where exactly it is
> available?
> Thanks,
> Shailaja
>
>   -- A . S . C . A . P.--
> This message, including any attachments, is intended solely for the person
> or entity to which it is addressed and may contain information that is
> legally privileged, confidential or otherwise protected from disclosure.
> If you are not the intended recipient, please contact sender
> immediately by
> reply email and destroy all copies.
>
>
>
> -
> 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: validation mask for currency

2003-08-14 Thread Steve Raeburn
Unless there's some regional standard that I'm unfamiliar with, currencies
(in fact, any numbers) are *always* grouped in threes. Otherwise the commas
are meaningless.

Steve

> -Original Message-
> From: david chan [mailto:[EMAIL PROTECTED]
> Sent: August 14, 2003 9:12 AM
> To: Struts Users Mailing List
> Subject: RE: validation mask for currency
>
>
> Thanks. But the comma can be in anywhere in between
> first digit and the period.
>
> so this is valid also:
> 1,23,22
> 1234,2.3
>
> how to do that? (I am really new to regular
> expression)
>
> Thanks.
> David
>
> --- Yansheng Lin <[EMAIL PROTECTED]> wrote:
> > Try:
> >  > property="" depends="mask"
> > 
> > 
> >  mask
> >
> >
> ^\d{1,3}(,?\d{3})*\.?(\d{1,2})?$
> > 
> > 
> >
> > I tested your numbers, it seemed to work; but more
> > testing needed:).
> >
> >
> >
> > -Original Message-
> > From: david chan [mailto:[EMAIL PROTECTED]
> > Sent: August 14, 2003 8:09 AM
> > To: Struts Users Mailing List
> > Subject: validation mask for currency
> >
> >
> > Hi,
> >  I need a regular expression for checking the dollar
> > among inputed by user (using validator struts 1.1
> > mask)
> >  Here are some valid money (comma and period are
> > allowed in specify location):
> >
> >  432,343.12
> >  212.12
> >  0.00
> >  1294
> >
> >  The max. value should be less than 999
> >
> >  Any regular expression expert can help?
> >
> > Thanks.
> > David
> >
> > __
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> > design software
> > http://sitebuilder.yahoo.com
> >
> >
> -
> > 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]
> >
>
>
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> -
> 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: Struts 1.1: what's the preferred way to use databases?

2003-08-14 Thread Steve Raeburn
Take a look at Hibernate , I found the
documentation to be much better than OJB and it was much easier get
productive quickly.

Steve

> -Original Message-
> From: Reinhard [mailto:[EMAIL PROTECTED]
> Sent: August 14, 2003 9:39 AM
> To: Struts Users Mailing List
> Subject: Re: Struts 1.1: what's the preferred way to use databases?
>
>
> meanwhile 2 steps done.
>
> I gave ojb a try, but as I was fascinated by the white paper, I got
> disappointed from the implementation and the support.
>
> So I stay with ibatis db-layer, stable a very well documented.
> The support is very fast and profund, so what do I need soap bubbles.
>
> cheers and bye
>
> Reinhard
>
>
> -
> 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: [OT] going insane

2003-08-14 Thread Steve Raeburn
The file I downloaded was jakarta-tomcat-5-bin-20030812.zip, running on W2K.

Steve

> -Original Message-
> From: John Cavacas [mailto:[EMAIL PROTECTED]
> Sent: August 13, 2003 12:36 PM
> To: Struts Users Mailing List
> Subject: RE: [OT] going insane
>
>
> I've give it a shot. I tried yesterdays nightly but had the same problem.
>
> Thanks,
> John
>
> At 12:29 PM 13/08/2003 -0700, you wrote:
> >Try the Tomcat nightly build. I found the same problem as you with 5.0.7,
> >but I've just tried the nightly and it's fine. Of course that
> doesn't mean
> >you won't find other problems ;-)
> >
> >Steve
>
>
> -
> 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: message resource bundles and client-side validation

2003-08-14 Thread Steve Raeburn
Thanks for the clear and detailed description of your problem. You're not
doing anything wrong, this is something that is not currently supported by
the  tag which doesn't have a bundle attribute to enable
you to select a custom bundle.

There is a bug report relating to this
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19396. (This bug has been
closed in favour of a more general I18N enhancement request.)

The plan is to move to commons-resources soon so that may be the best time
to add the enhancement but I'll take a look to see if this can be added now.

To add colour to your error messages, use errors.prefix and errors.suffix,
e.g.:
  errors.prefix=
  errors.suffix=

That way you don't include mark-up in your error messages.

Steve

> -Original Message-
> From: Jeff Kyser [mailto:[EMAIL PROTECTED]
> Sent: August 13, 2003 6:15 PM
> To: [EMAIL PROTECTED]
> Subject: message resource bundles and client-side validation
>
>
> Hey all,
>
> Server-side validation works fine for me, but I'm having a little
> trouble with client-side validation as follows:
>
>   Because lots of different web apps use the 'default' messages,
>   I placed them in a separate file, ValidatorResources.properties:
>
>   errors.byte={0} must be a byte.
>   errors.double={0} must be a double.
>   (etc.)
>
>   My struts-config.xml file declares a second resource file:
>
>parameter="torch.webapp.sandbox.ValidatorResources"
>  null="false"
>  key="VALIDATOR_BUNDLE">
>   
>
>   I reference the bundle  when I display the error message
>   associated with a validation error (on my jsp):
>
>  
>   bundle="VALIDATOR_BUNDLE"/>
>
>   And my validation.xml rule file contains a reference to the message:
>
>  
>  
>  
>
>   Finally, my ApplicationResources.property file lists the property:
>
>   validateForm.byteField.errorname= class='formErrorMessage'>Byte
> field
>
>   (where class formErrorMessage is declared in a css file...)
>
> WITHOUT client-side validation, if I enter an invalid value for the
> byte field,
> I get a message like:
>
>   Byte field must be a byte.
>
> Cool - everything works.
>
> Now, when I turn on client-side validation, the fun begins.
> First, leaving everything alone except adding the :
>
>   
>   
>
> I get the following popup with an invalid entry:
>
>   JavaScript: ???en_US.errors.byte???
>
> and yes, inspecting the javascript function ByteValidations()
> reveals that it contains that exact string.
>
> If I move the definitions for:
>
>   errors.byte={0} must be a byte
>
> from ValidatorResources.properties to ApplicationResources.properties,
> (my default resource bundle) then I get the following popup:
>
>   JavaScript: Byte
> field must be a
> byte.
>
> (in other words, it has displayed my stylesheet instead of using it to
> format, since the string is being displayed in a JavaScript dialog
> rather than as HTML).
>
> In summary,
>   1. I don't seem to be able to pull in the resources into
> the JavaScript
>   when they come from something other than the default
> resource bundle,
> and
>   2. I wanted to have nicer (like bold red) markup on the
> error messages
>   when only server-side validation is present (like the client turned
> off javascript),
>   but I get the explicit markup in the JavaScript dialog when
> client-side validation
>   is off.
>
> Yes, I suppose I could include the ValidatorResources.properties
> messages
> into every ApplicationResources.properties file and only have a single
> (default)
> message bundle, and yes, I could have a plainer message, but I wondered
> if
> anyone saw a problem with what I'd done or had a better solution.
>
> TIA,
>
> -jeff
>
> BTW, one screw-up on my part that made me think validation wasn't
> working -
> I initially declared my error messages  with double quotes:
>
>   validateForm.byteField.errorname= class="formErrorMessage">Byte
> field
>
> and they got incorporated into the JavaScript inside double quotes:
>
>   "Byte field"
>
> and of course, I got absolutely nothing... good old JavaScript...
>



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



RE: [OT] going insane

2003-08-14 Thread Steve Raeburn
Try the Tomcat nightly build. I found the same problem as you with 5.0.7,
but I've just tried the nightly and it's fine. Of course that doesn't mean
you won't find other problems ;-)

Steve

> -Original Message-
> From: John Cavacas [mailto:[EMAIL PROTECTED]
> Sent: August 13, 2003 11:33 AM
> To: Struts Users Mailing List
> Subject: RE: [OT] going insane
>
>
> I couldn't agree more :) At the same time I'm interested to know the
> effects of moving applications to 2.4, and since I'm bored learn the new
> stuff coming up in J2EE. Going to try Resin 3.0 beta as well, but their
> site seems to be down.
>
> Thanks,
> John
>
> At 01:29 PM 13/08/2003 -0500, you wrote:
> >Well, my immediate borderline smart-alec response is "Yeah, Tomcat 5.0.x
> >is an alpha product. Don't expect it to work." Politely, I would
> say that
> >you can't be assured of consistent or even correct behavior from an
> >unfinished product.
> >
> >However, you're luckier than I am. I can't even get the default
> index page
> >for 5.0 yet.
> >
> >-= J
> >
> > > -Original Message-
> > > From: John Cavacas [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, August 13, 2003 11:54 AM
> > > To: Struts Users Mailing List
> > > Subject: Re: [OT] going insane
> > >
> > >
> > > So i gave this another shot today and here's what I've found.
> > >
> > > It seems the problem with deploying struts-blank.war on
> > > Tomcat 5.0.7 are
> > > caused by the  struts tag in Welcome.jsp. Once
> > > that tag is
> > > removed, the page compiles just fine and displays. Is there a
> > > particular
> > > reason why this tag would cause this problem? Am I missing something
> > > obvious when moving a Struts 1.1 Servlet 2.3 container based app to a
> > > Struts 1.1 Servlet 2.4 container?
> > >
> > > Thanks,
> > > John
> > >
> > >
> > >
> > > At 06:01 PM 11/08/2003 -0400, you wrote:
> > > >I sure can!
> > > >
> > > >I get the dreaded:
> > > >
> > > >org.apache.jasper.JasperException: Unable to compile class for JSP
> > > >
> > > >Followed by:
> > > >
> > > >java.lang.IllegalArgumentException: -1
> > > >
> > > >That as it turns out is a pretty common issue when it comes
> > > to Tomcat as
> > > >it is detailed here:
> > > >
> > > >http://jakarta.apache.org/tomcat/faq/misc.html#compile
> > > >
> > > >After going through those fixes, which really don't apply to
> > > my situation
> > > >but anyway, still nothing.
> > > >
> > > >I do tend to be a bit of an idiot at times and miss little
> > > things, but I
> > > >really can't figure it out. I've also tried it on my laptop
> > > and I get the
> > > >same problem. I'm about to try it on one of my linux boxes.
> > > >
> > > >Thanks,
> > > >John
> > > >
> > > >
> > > >At 03:51 PM 11/08/2003 -0700, you wrote:
> > > >>Is an exception generated ??
> > > >>Can you be more specific about what happens ??
> > > >>
> > > >>John Cavacas wrote:
> > > >>
> > > >>>Would it be too much trouble for one or more of you kind
> > > souls out there
> > > >>>to try something?
> > > >>>
> > > >>>Install JDK 1.4.2 into :\Java
> > > >>>Install Tomcat 5.0.7 into :\Tomcat5
> > > >>>Set JAVA_HOME to :\Java
> > > >>>
> > > >>>Start Tomcat 5, copy struts-blank.war from Struts 1.1 final into
> > > >>>":\Tomcat5\webapps\", and browse to
> > > http://localhost:8080/struts-blank/
> > > >>>
> > > >>>Should work right? Is there something i'm missing? I've
> > > been trying for
> > > >>>the past 4 hours to get this to work, but no cigar. Maybe
> > > I should just
> > > >>>go drink beer instead.
> > > >>>
> > > >>>Thanks,
> > > >>>John
> > > >>>
> > > >>>
> > > >>>---
> > > --
> > > >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >>>For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > >>
> > > >>--
> > > >>
> > > >>Kevin J Citron
> > > >>Sr. Object Imagineer
> > > >>Optimized Objects, Inc.
> > > >>EL Paso, Texas 79930
> > > >>(915) 565-5777/566-2403
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > -
> > > >>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]
> > > >
> > >
> > >
> > > -
> > > 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]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



--

RE: [FRIDAY] Impossible requirements & customer expectation management [WAS: method to get new Id to next action when old Id is in request?]

2003-08-14 Thread Steve Raeburn
To be fair to Aussie (and other non-US) developers, in the mid-90s *every*
major economy was begging developers to move from anywhere. How I miss those
days!

We had a lot of good Aussie developers in London at the time.

Steve

> -Original Message-
> From: Mark Galbreath [mailto:[EMAIL PROTECTED]
> Sent: August 11, 2003 4:50 AM
> To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
> Subject: RE: [FRIDAY] Impossible requirements & customer expectation
> management [WAS: method to get new Id to next action when old Id is in
> request?]
>
>
> In the mid-90s, Australia was begging American developers to move there;
> what happened?  And why are you in Singapore, anyway?
>



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



RE: Design Question: Forms-and-Validation, which scope to use for dynamic beans?

2003-08-14 Thread Steve Raeburn
In your action configuration set the 'input' URL to point to an action
instead of your JSP and then build your lists in the action.

Steve

> -Original Message-
> From: Gino LV. Ledesma [mailto:[EMAIL PROTECTED]
> Sent: August 10, 2003 10:28 PM
> To: Struts Users Mailing List
> Subject: Design Question: Forms-and-Validation, which scope to use for
> dynamic beans?
>
>
> Hello,
>
> I've been using the Struts framework for a couple of months
> now and have really fancied it. I try as much as possible
> to adhere to the MVC guidelines, but have run into a couple
> of problems I've not been able to solve.
>
> I have a form which is validated by Struts-validator. One
> of the form's properties is a pull-down menu which contains
> list of selectable items. These list of selectable items
> are generated dynamically (by being called from an EJB).
> The problem I have is when an error in the form occurs
> Struts brings back the form page, but the servlet container
> (Tomcat) then reports a "no such bean" error -- this bean
> containing the list of items that populate the pull-down
> menu.
>
> The bean is stored in a request-level scope by the
> controller servlet. Now when the form is submitted (new
> request), and an error is found, the form is displayed
> again. But because the bean was stored in a request-level
> scope, the bean is no longer found.
>
> What is the "propery" way of fixing this? Currently, I've
> implemented a tag which generates this list (it basically
> calls the EJB) and stores it in a page-level scope, so the
> servlet no longer bothers storing this in any scope. But
> doesn't doing this "break" the "separate logic from the
> view" rule? I don't want to store it in the session-level
> scope as well as the list _can_ be updated frequently.
> Granted, the session-scope seems to be the ideal solution,
> though.
>
> What are your thoughts on this? I'd appreciate help on the
> matter, as I'm weeding out "non-conforming" implementations
> in my code. :)
>
> Thanks for your help in advance.
>
> =
>
>
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> -
> 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: Struts Validator

2003-08-14 Thread Steve Raeburn
Let me state the blindingly obvious:

  1. Validator works. Other people seem to be able to use it.
  2. Validator is not perfect. Valid bug reports would help make it better.
  3. This is a community project. There is no Us and Them, only Us. And, for
better or worse, that includes you.

Since you've not posted any bug reports about validator I can only assume
that you are either (a) blowing hot air, or (b) incapable of describing the
bugs you say you've found. If you aren't capable of making a meaningful
contribution, please at least don't waste other people's time with your
nonsense.

I'm not going to spend any more time batting this back and forth with you.
If you are prepared to provide constructive criticism and/or help improve
Struts, you'll find many people willing to accept your help and to offer
theirs in return. If not, well it's pretty easy to filter you out.

Steve

> -Original Message-
> From: Mark Galbreath [mailto:[EMAIL PROTECTED]
> Sent: August 13, 2003 3:17 PM
> To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
> Subject: RE: Struts Validator
>
>
> Dave,
>
> My only complaint with the authors of validator is that (a) they say it's
> really cheeky, but (b) a host of developers, including me, have complaints
> about it.  It just doesn't work within the framework documented.  The List
> is full of complaints and requests along these lines.  You can ignore me,
> but just dip into the List archive and see.  I write my own validator
> methods because I couldn't get Validator to work within the Struts
> framework; looking at the archive, there are hundreds more that
> could not do
> the same.
>
> I am not looking for a war here.  All I ask is to get the damn thing right
> before offering it as a release to our community.
>
> Mark
>
> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 13, 2003 5:45 PM
> To: Struts Users Mailing List
> Subject: RE: Struts Validator
>
>
> --- Mark Galbreath <[EMAIL PROTECTED]> wrote:
> > Me put up?  You offered this to the OS community with insufficient
> > documentation.  Just look at the archive for this list and I'll wager
> > there are more questions/complaints about Validator than any other
> > aspect of the
> > Struts community.
> > Me shut up?  Why don't you guys PUT UP?
>
> We don't work for you.  Steve is right. If you don't have any constructive
> criticism or patches it's time to quiet down.
>
> David
>
> >
> > Mark
>
> > -Original Message-
> > From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, August 13, 2003 5:02 PM
> > To: Struts Users Mailing List
> > Subject: RE: Struts Validator
> >
> >
> > Time to put up or shut up, Mark. If there are specific bugs you have
> > encountered with Validator, please report them via Bugzilla so they
> > can be addressed. (Patches would also be nice).
> >
> > Failing that, why not write something yourself and donate it so we can
> > call your hard work crap?
> >
> > Otherwise, please give it a rest.
> >
> > Steve
> >
> > > -Original Message-
> > > From: Mark Galbreath [mailto:[EMAIL PROTECTED]
> > > Sent: August 13, 2003 1:41 PM
> > > To: 'Struts Users Mailing List'
> > > Subject: RE: Struts Validator
> > >
> > >
> > > Validator is crap; don't waste your time.
> > >
> > > Mark
> > >
> > > -Original Message-
> > > From: Stephen Bennett [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, August 13, 2003 11:39 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Struts Validator
> > >
> > >
> > > Has anyone had any problems getting the Struts Validator to work?
> > >
> > > I have a small sample app that works OK but cannot get my main app
> > > to
> > > work! As far as I can see I have done everything the same as in the
> > > sample one.
> > >
> > > I have noticed that when the sample app that works starts up I get
> > > four messages from the ValidatorPlugin the first pair mentions the
> > > validation.xml and the validator-rules.xml then later it says
> > > ValidatorPlugin initResources
> > > then the previous xml messages.
> > >
> > > With the real app that doesn't work I don't get these second
> > > initResources messages. I am not sure if this is significant or not,
> > > does anyone have any ideas?
> > >
> > > I have: 

RE: Struts Validator

2003-08-14 Thread Steve Raeburn
> -Original Message-
> From: Brian McSweeney [mailto:[EMAIL PROTECTED]
> Sent: August 14, 2003 6:29 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts Validator
>
>
> +1 for it works for me too.
> Not knowing javascript well, using the validator allowed me
> to quickly do client side validation.
>
> +1 for it isn't so easy to use. I think a "REALLY" simple default app
> that shows exactly how each different field validation works would
> dramatically increase the use of the validator, which would in turn
> dramatically increase the quality of the validator.

Have you looked at the struts-validator sample app? The 'types' examples
show most of the basic validations. If you've already looked at it, is there
anything that would make it easier to understand?

>
> Even a single jsp page for each field type and a submit button would
> be a help. I only really use it for required strings and emails for
> example. Even though I tried and failed to use required if
> functionality. It's
> a pity that this feature couldn't be included in the struts 1.1 release.

requiredif is in 1.1. Do you mean validwhen? If so, that's back in the
nightly build and will be in the next release.

Steve

>
> However, at any rate, saying it's absolutely crap is both wrong
> and not so nice IMHO.
>
> Brian
>
>
> -Original Message-
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
> Sent: 14 August 2003 14:06
> To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
> Subject: RE: Struts Validator
>
> +1 - Validator works.  I started using it wy back in the pre-RC1
> days.
> Everytime that Validator hasn't worked for me, I've found that it was
> due to
> a screw up on my part (usually something in the validation.xml file).
> Except for rare occasions, I haven't had to write a customized validate
> method.  When I do have to, I try to extend Validator so I can continue
> to
> use the tool.
>
> +1 - Validator is not perfect.  While I haven't found any major bugs (at
> least ones that haven't already been reported), Validator does have its
> quirks - you have got to get the validation.xml file right or else it
> just
> flat won't work.  Also, since Validator relies on your
> ApplicationResources.properties file for its error messages, it may
> appear
> that Validator is not working, when in reality, it just can't find the
> message to return to the client.
>
> +1,000,000 - There is only Us.  If not, then Micro$oft would be the only
> choice for doing web development, and I'd have to find another career
> :-)
>
> Mark - I'll offer this again.  I'll be more than happy to look over your
> forms, struts-config.xml, validator-rules.xml, validation.xml, and
> properties files and see if I can figure out why you can't get Validator
> working.  Let me know.
>
> Jerry Jalenak
> Team Lead, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
>
> [EMAIL PROTECTED]
>
>
> > -Original Message-
> > From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, August 13, 2003 7:30 PM
> > To: Struts Users Mailing List
> > Subject: RE: Struts Validator
> >
> >
> > Let me state the blindingly obvious:
> >
> >   1. Validator works. Other people seem to be able to use it.
> >   2. Validator is not perfect. Valid bug reports would help
> > make it better.
> >   3. This is a community project. There is no Us and Them,
> > only Us. And, for
> > better or worse, that includes you.
> >
> > Since you've not posted any bug reports about validator I can
> > only assume
> > that you are either (a) blowing hot air, or (b) incapable of
> > describing the
> > bugs you say you've found. If you aren't capable of making a
> > meaningful
> > contribution, please at least don't waste other people's time
> > with your
> > nonsense.
> >
> > I'm not going to spend any more time batting this back and
> > forth with you.
> > If you are prepared to provide constructive criticism and/or
> > help improve
> > Struts, you'll find many people willing to accept your help
> > and to offer
> > theirs in return. If not, well it's pretty easy to filter you out.
> >
> > Steve
> >
> > > -Original Message-
> > > From: Mark Galbreath [mailto:[EMAIL PROTECTED]
> > > Sent: August 13, 2003 3:17 PM
> > > To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
> > > Subject: RE

RE: broken link

2003-08-14 Thread Steve Raeburn
Thanks. I've removed the link. The website will be updated with the next
Struts release.

Steve

> -Original Message-
> From: message message [mailto:[EMAIL PROTECTED]
> Sent: August 12, 2003 1:55 AM
> To: [EMAIL PROTECTED]
> Subject: broken link
>
>
>
> The example for wireless using struts listed here.
> http://jakarta.apache.org/struts/resources/examples.html
>
> The link is broken
> Sample hdml/wireless based struts application
>
> _
> Protect your PC - get McAfee.com VirusScan Online
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
> -
> 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: Struts Validator Javascript

2003-08-14 Thread Steve Raeburn


> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED]
> Sent: August 10, 2003 9:42 AM
> To: Struts Users Mailing List
> Subject: Re: Struts Validator Javascript
>
>
> Sgarlata Matt wrote:
> > I like the concept of the validator, but personally I don't
> have a lot of
> > confidence in it.
>
> that's a bit harsh. I think as long as you know what it does and doesn't
> do, there's every reason to have confidence in it. It's an excellent
> package that will benefit even more when people use it and reports bugs
>   or vote for existing ones or even submit patches in bugzilla :O
>
> I sense an opportunity to share something I got from the Ant mailing
> list recently (struts gurus feel free to slap me down if the same sort
> of thing doesn't apply to struts) :
>

Can I also suggest:
  (0) make *sure* it's a bug before you post a bug report.

If you don't *know* that what you're experiencing is a *Struts* bug then the
correct place to explore the problem is on the struts-user list. If what
you're asking for is really an enhancement then mark it as such in Bugzilla.

>
> (1) open an enhancement request in bugzilla and attach your patch.  If
>  you just send it to the list it could get lost over time.
>
> (2) send a mail to [EMAIL PROTECTED] explaining why you think the enhancement is
>  worth it.

Bugzilla reports get sent to the dev list so you don't need to duplicate
that. Committers are also pretty active on the user list ;-)

>
> (3) send a mail to [EMAIL PROTECTED] so that the people who share your opinion
>  can go to the enhancement request and vote for it.
>
> (4) be persistent.  It is often the case that committers have a lot of
>  time for Ant development in one week and almost none in the next.
>  This could mean you'll need to redo (2).

I would replace (4) with be patient. If you've opened a Bugzilla report then
it *will* get reviewed. But time is limited and certain issues will be dealt
with more quickly. Straight-forward items and serious items tend to get
closed more quickly, with those falling into the not serious, but not
trival, taking a little longer.

Keep investigating the problem. If you can come up with new information or a
patch, then that will serve as a much more useful reminder than just
repeating yourself.

Steve

>
>
> -
> 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: Validation errors display prob in jsp

2003-08-14 Thread Steve Raeburn
This might help: http://www.husted.com/struts/tips/017.html

Steve

> -Original Message-
> From: Raj Atchutuni [mailto:[EMAIL PROTECTED]
> Sent: August 9, 2003 3:07 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Validation errors display prob in jsp
> 
> 
> I am using Dynaforms for the form validation. In my jsp i use 
>  tag to display them. Validation is working fine, 
> but the errors are displayed horizontally next to each other. I 
> cant use strtus.el now since i completed the coding for many 
> forms. Does anyone one know why this is happening.
> Thanks
> Raj
> 
> 
> -
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



RE: very simple if/else question

2003-08-14 Thread Steve Raeburn
Dude, did you bother to look at the links David gave you?
Or ask on the correct mailing list?
Or even do some research yourself?

Google. Fifth link down. JSTL reference.

Steve

> -Original Message-
> From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
> Sent: August 13, 2003 2:50 PM
> To: 'Struts Users Mailing List'
> Subject: RE: very simple if/else question
>
>
>
> OK, let's vote. Who here thinks that Ace Graham is correct in saying that
> these links are as easy to use as a reference (which is what I requested
> since I understand the concept of tags in general and I only need a quick
> reference):
>
> http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSTL.html
>
> http://www.amazon.com/exec/obidos/search-handle-url/index=books&fi
> eld-keywor
> ds=jstl&search-type=ss&bq=1/002-7447468-3651265
>
> http://www.google.com/search?q=jstl&sourceid=opera&num=0&ie=utf-8&oe=utf-8
>
>
> VS.
>
>
> http://jakarta.apache.org/struts/userGuide/struts-logic.html
>
>
> I am not talking about the tags themselves right now as to which
> better but
> as to which links, the set above or the last one, is better in a reference
> situation.  Get your stop watches out and see how fast you can know the
> attributes for any given Struts tags vs. any given JSTL.  Ready go.
>
> I understand there is documentation out there for JSTL that is not the
> point.
>
>
>
> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 13, 2003 1:29 PM
> To: Struts Users Mailing List
> Subject: RE: very simple if/else question
>
> --- "Bailey, Shane C." <[EMAIL PROTECTED]> wrote:
> >
> >
> > Why isn't there a page for JSTL reference that is as nice and easy to
> > use
> > as:
> >
> > http://jakarta.apache.org/struts/userGuide/struts-logic.html ???
> >
> > You would be much closer to substantiating your claim of JSTL being
> > faster
> > to develop with if such a page existed, Ace.
>
> http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSTL.html
>
> http://www.amazon.com/exec/obidos/search-handle-url/index=books&fi
> eld-keywor
> ds=jstl&search-type=ss&bq=1/002-7447468-3651265
>
> http://www.google.com/search?q=jstl&sourceid=opera&num=0&ie=utf-8&oe=utf-8
>
> David
>
> >
> >
> >
> > -Original Message-
> > From: David Graham [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, August 13, 2003 12:41 PM
> > To: Struts Users Mailing List
> > Subject: RE: very simple if/else question
> >
> > --- "Slattery, Tim - BLS" <[EMAIL PROTECTED]> wrote:
> > > > 
> > > > 
> > >
> > > What are these  tags? What do I have to have installed in
> > order
> > > to
> > > use them?
> >
> > http://java.sun.com/products/jsp/jstl/index.html
> >
> > http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html
> >
> > David
> >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> > __
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site design software
> > http://sitebuilder.yahoo.com
> >
> > -
> > 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]
> >
>
>
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> -
> 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]
>
>
>



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



RE: How to make dynamic SELECT elements?

2003-07-31 Thread Steve Raeburn

  You can download an application containing Struts examples, 
  including populating select options, from
   http://www.ninsky.com/struts 


Steve

> -Original Message-
> From: Joe Krause [mailto:[EMAIL PROTECTED]
> Sent: July 31, 2003 3:32 PM
> To: '[EMAIL PROTECTED]'
> Subject: How to make dynamic SELECT elements?
> 
> 
> Can anyone please give me an example of a JSP page and the appropriate
> ActionForm object that would prepopulate the form on the JSP page
> specifically creating an HTML drop down Select menu using the Struts'
>  tag? Or just send me a link to a tutorial that has it - I
> can't seem to find it in the Documentation anywhere.
> 
>  
> 
> Thanks!
> 
>  
> 
> Joe Krause
> 
> 


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



RE: JSTL in html-el:option

2003-07-31 Thread Steve Raeburn
You need to use varStatus to get the current index:



">





Steve

> -Original Message-
> From: struts [mailto:[EMAIL PROTECTED]
> Sent: July 31, 2003 1:11 PM
> To: Struts Users Mailing List
> Subject: JSTL in html-el:option
>
>
> The following yields Attribute ${i} has no value (first occurrence) error.
>
> 
>  
>  "> value="${i}"/>
>  
> 
>
> Any suggestions on alternative syntax?
>
> Thanks,
> Barry
>
>



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



RE: struts-el example app not working?

2003-07-31 Thread Steve Raeburn
Help > Contents >Core IDE Help > Tomcat Plugin > Tomcat Installation Node >
Setting Tomcat Installation Node Properties:

"IDE Integration Mode. Use this property to choose an IDE integration mode.
The default value is Full. In Minimum mode, the IDE will not modify the
configuration file in any way except those changes required to deploy your
web module. In this mode, some features of the IDE will be unavailable,
including HTTP monitoring and JSP debugging. In Full mode, all web module
development features are available, including HTTP monitoring, JSP
compilation, and JSP debugging. The web.xml file in your server will be
modified to support these features. To set IDE Integration mode, click on
the ellipses (...) in the right-hand column of the IDE Integration Mode row
and choose the appropriate button in the property editor."

Now you know as much as I do ;-)

Steve

> -Original Message-
> From: struts [mailto:[EMAIL PROTECTED]
> Sent: July 31, 2003 11:32 AM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: struts-el example app not working?
>
>
> Hi Steve,
>
> Going from Full Integration to minimum works as you describe.  As I am
> coming up to speed on the IDE what impact does changing the
> Integration have
> on development.
>
> Thanks,
> Barry
>
>
>
> - Original Message -
> From: "Steve Raeburn" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 30, 2003 10:09 PM
> Subject: RE: struts-el example app not working?
>
>
> > Well, I managed to get it running but I'm definitely not a convert to
> > Netbeans :-(
> >
> >   - In Netbeans, go to the Runtime tab and expand the Explorer
> view until
> > you see the 'Internal Tomcat' server.
> >   - Right click on it and change the IDE Integration Mode from Full to
> > Minimum.
> >
> > That seems to get it working. You could also look at the External Tomcat
> > Server feature as an alternative. There's information in the application
> > Help.
> >
> > I think this
> <http://www.netbeans.org/issues/show_bug.cgi?id=32425> is the
> > cause of the problem. In any case, this issue is with Netbeans
> integration
> > of Tomcat and not with Struts.
> >
> > Related information:
> > James Mitchell has written a guide to setting up a Struts project in
> > Netbeans (version 3.4)
> > <http://jakarta.apache.org/struts/faqs/netbeans.html>. He's using Ant to
> > build and deploy the web application so that probably gets round the
> > problems by avoiding the IDE's build/deploy features.
> >
> > If you have access to WebSphere Studio it is IMHO a *much* more pleasant
> > experience than Netbeans and importing a WAR is
> straightforward. I haven't
> > tried Eclipse (on which Websphere Studio is based) with the
> Sysdeo plugin
> > for Tomcat, but that would be a cheaper (free!) option than WS Studio.
> >
> > Hope this works for you... now where's that uninstall option :-)
> >
> > Steve
> >
> > > -Original Message-
> > > From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> > > Sent: July 30, 2003 7:12 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: struts-el example app not working?
> > >
> > >
> > > I'll try to take a look at Netbeans sometime, but it may not be for a
> few
> > > days. If I have any success I'll post back to the list and copy
> > > you. If, in
> > > the meantime you find the problem, do post the result here.
> > >
> > > Steve
> > >
> > > > -Original Message-
> > > > From: struts [mailto:[EMAIL PROTECTED]
> > > > Sent: July 30, 2003 5:51 PM
> > > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > > Subject: Re: struts-el example app not working?
> > > >
> > > >
> > > > Yep the stand alone (Tomcat 4.1) works fine.  Just install the
> > > > struts-el-exercise-taglib.war through
> > > > the tomcat manager and no problems.
> > > > Barry
> > > >
> > > > - Original Message -
> > > > From: "Steve Raeburn" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, July 30, 2003 4:27 PM
> > > > Subject: RE: struts-el example app not working?
> > > >
> > > >
> > > > > 4.0.6 works for me. I don't remember the details, but

RE: Validator: Is validwhen available ?

2003-07-31 Thread Steve Raeburn
The only possible answer is "when it's ready". I would cautiously say within
the next quarter. It could be a lot sooner than that and I doubt it will be
any longer.

What I do know is that there won't be any major new features. It's primarily
a 'tidy-up' release with internal reorganization of the code and removal of
deprecations.

Keep monitoring the struts-dev list for activity.

Steve

> -Original Message-
> From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
> Sent: July 31, 2003 8:00 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Validator: Is validwhen available ?
>
>
> Hmm.
> I'm not going to be impatient, but do we have any rough idea how long it
> will be until the 1.2 release comes out?  Just curious.
> Anyway, thanks for answering my question.
>
> - Keith
>
>
> -Original Message-
> From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 31, 2003 10:59 AM
> To: Struts Users Mailing List
> Subject: RE: Validator: Is validwhen available ?
>
>
> The nightly builds are not working for now because of a problem with the
> build machine.
>
> ValidWhen has been added to the source but, for now, you'll need
> to check it
> out from CVS and do your own build.
> It will be included in the 1.2 release which will come along a lot sooner
> than the 1.1 release did :-)
>
> Steve
>
>   -Original Message-
>   From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
>   Sent: July 31, 2003 1:49 AM
>   To: [EMAIL PROTECTED]
>   Subject: Re: Validator: Is validwhen available ?
>
>
> hi,
> 'validwhen' is available in the nightly builds...
>
> -- nagi
>
> ---Original Message---
>
> From: Struts Users Mailing List
> Date: Thursday, July 31, 2003 02:08:30 PM
> To: [EMAIL PROTECTED]
> Subject: Validator: Is validwhen available ?
>
> Hi
> In the Struts Validator User Guide
> (http://jakarta.apache.org/struts/userGuide/dev_validator.html)
> I read under "Designing Complex Validations with validwhen" the
> following
> sentence:
>
> 
> The new validwhen validation rule, which will be included into the
> Struts
> release immediately after the 1.1 release, is designed to handle
> these cases.
> 
>
> Is the validator with 'validwhen' sowhere available or do
> we have to
> wait
> for the next Struts release?
> Thanks
> Koni
>
>
>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
> .
>
>
>   
> IncrediMail - Email has finally evolved - Click Here
>
> -
> 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: html:select multiple pre select

2003-07-31 Thread Steve Raeburn
I've put together a set of Struts examples at http://www.ninsky.com/struts,
one of which focuses on populating and options.

struts-config.xml:
  

  

JSP:

  Strawberry
  Apple
  Orange
  Pear
  Mango
  Banana
  Pineapple


Here, I've set initial values in the DynaActionForm configuration, but you
could also initialise the values in your 'prepare' action.

Steve

> -Original Message-
> From: Daniel Massie [mailto:[EMAIL PROTECTED]
> Sent: July 31, 2003 5:02 AM
> To: Struts Users Mailing List
> Subject: RE: html:select multiple pre select
>
>
> I've tried this, I passed in Strin[] as the value, but no options were
> selected.
>   -Original Message-
>   From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
>   Sent: 31 July 2003 12:50
>   To: [EMAIL PROTECTED]
>   Subject: Re: html:select multiple pre select
>
>
> hi.
> docs say
> a.. multiple="true" IS selected - The corresponding
> property should
> be an array of any supported data type.
> so try populating the array (html:select property) with
> the required
> elements to be selected before hand.
>
> -- nagi
>
>
> ---Original Message---
>
> From: Struts Users Mailing List
> Date: Thursday, July 31, 2003 05:02:03 PM
> To: Struts Users Mailing List
> Subject: html:select multiple pre select
>
> I have a html:select with multiple="true" how can I get
> this to have
> options
> highlighted when it loads? based on the elements already
> stored for
> this
> select field.
>
> Thanks
>
> Daniel Massie
>
>
>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
> .
>
>
>   
> IncrediMail - Email has finally evolved - Click Here
>



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



RE: ..javascript

2003-07-31 Thread Steve Raeburn
html:javascript defaults to true for both dynamic and static parameters so
that shouldn't make a difference.
Also, location on the page doesn't matter (I stick it in the head section).

Steve

> -Original Message-
> From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> Sent: July 31, 2003 6:03 AM
> To: 'Struts Users Mailing List'
> Subject: RE: ..javascript
>
>
> I my html:javascript looks like this
>staticJavascript="true"/>
> don't know if those other two attributes matter or not...
> In addition, I put the html:javascript tag at the bottom of my page.
>
> For What It's Worth
>
>
> -Original Message-
> From: Prashant Samant [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 31, 2003 7:17 AM
> To: Struts Users Mailing List (E-mail)
> Subject: ..javascript
>
> Hello Group,
> I want to put javascript validations on my page.
> In simple words i have 4 radio buttons and submit button.
> if i don't click any of the radio buttons and click submit, then i should
> get a javascript error.
> I tried a lot.I am getting the error using  tag on the page.
> But i am not getting the javascript POPUP.
>
> My Html page is as follows
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
>
> 
>   
>   
>   
>   UserName : 
>   Password : 
>   Radio 1 :
>   Radio 2 :
>   Radio 3 :
>   Radio 4 :
>
>   
>   
>
>   
> 
>
>
>
> My struts-config file contains
>
>  
>
>type="org.apache.struts.validator.DynaValidatorForm">
>   
>   
>   
>   
>  
>
>
>
>   type="ValidateAction"
>name="logonForm"
>scope="request"
>validate="true"
>input="/validateeg.jsp">
> 
>   
> 
> 
> value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml,/WEB-I
> NF/mVtrVal
> idation.xml,/WEB-INF/mVtrValidator-rules.xml"/>
>   
>
>
>
>
>   My validation.xml is as follows
>
>   
>
>
>   
>   
>
>   
>
>  property="username"
>   depends="required,minlength,maxlength">
>
>
> key="logonForm.userName.displayName"/>
>
> key="logonForm.userName.displayName"/>
> name="minlength"
>  key="${var:minlength}" resource="false"/>
>   
>   minlength
>   3
>   
>
> key="logonForm.userName.displayName"/>
> name="maxlength"
>  key="${var:maxlength}" resource="false"/>
>   
>   maxlength
>   6
>   
>
>  
>
>
>
>  key="logonForm.userName.selectRadio"/>
>
>   
>   
>
> 
> can anybody throw some light.
>
> Best Regards,
> Prashant S.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> This message and its contents (to include attachments) are the
> property of Kmart Corporation (Kmart) and may contain
> confidential and proprietary information. You are hereby notified
> that any disclosure, copying, or distribution of this message, or
> the taking of any action based on information contained herein is
> strictly prohibited. Unauthorized use of information contained
> herein may subject you to civil and criminal prosecution and
> penalties. If you are not the intended recipient, you should
> delete this message immediately.
>
>
>
> -
> 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: Validator: Is validwhen available ?

2003-07-31 Thread Steve Raeburn
The nightly builds are not working for now because of a problem with the
build machine.

ValidWhen has been added to the source but, for now, you'll need to check it
out from CVS and do your own build.
It will be included in the 1.2 release which will come along a lot sooner
than the 1.1 release did :-)

Steve

  -Original Message-
  From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
  Sent: July 31, 2003 1:49 AM
  To: [EMAIL PROTECTED]
  Subject: Re: Validator: Is validwhen available ?


hi,
'validwhen' is available in the nightly builds...

-- nagi

---Original Message---

From: Struts Users Mailing List
Date: Thursday, July 31, 2003 02:08:30 PM
To: [EMAIL PROTECTED]
Subject: Validator: Is validwhen available ?

Hi
In the Struts Validator User Guide
(http://jakarta.apache.org/struts/userGuide/dev_validator.html)
I read under "Designing Complex Validations with validwhen" the
following
sentence:


The new validwhen validation rule, which will be included into the
Struts
release immediately after the 1.1 release, is designed to handle
these cases.


Is the validator with 'validwhen' sowhere available or do we have to
wait
for the next Struts release?
Thanks
Koni



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


.


  
IncrediMail - Email has finally evolved - Click Here


RE: How to show GLOBAL ERRORS in a JSP

2003-07-31 Thread Steve Raeburn
http://jakarta.apache.org/struts/api/org/apache/struts/taglib/html/package-s
ummary.html#doc.Other.messages

http://www.husted.com/struts/tips/017.html

Steve

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: July 31, 2003 6:22 AM
> To: [EMAIL PROTECTED]
> Subject: How to show GLOBAL ERRORS in a JSP
>
>
> Can you give me a code fragment?
>
>
>
>
> The same way you display any other struts error in a JSP page:
> 
>
> Dirk Behrendt wrote:
>
> >Hello!
> >
> >I my ActionClass I set a Global Error. How can I display this error in
> >my JSP?
> >
> >
> >ActionErrors errors = new ActionErrors();
> >ActionError loginError = new
> >ActionError("error.login.failed");
> >errors.add(ActionErrors.GLOBAL_ERROR, loginError);
> >saveErrors(req,errors);
> >
> >
> >Dirk
> >
> >
> >
> >
>



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



RE: Could one figure out the context path in Servlet.init() method?

2003-07-31 Thread Steve Raeburn
The ServletContextListener interface has a callback method  -
contextInitialized() - that passes in a ServletContextEvent parameter. You
can get the context from getServletContext() method of ServletContextEvent.

This was added in Servlet 2.3 spec.

Steve

> -Original Message-
> From: Jing Zhou [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 11:18 PM
> To: Struts Users Mailing List
> Subject: Could one figure out the context path in Servlet.init() method?
>
>
> Hi,
>
> Maybe I overlook something. We can get context path
> from HttpServletRequest.getContextPath() at request time.
> But could one get the same path when the servlet is
> initialized? Or simply say why we do not have an API like
> ServletContext.getContextPath()?
>
> Jing
> Netspread Carrier
> http://www.netspread.com
>



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



RE: Path Finder

2003-07-30 Thread Steve Raeburn
Place the  tag in the 'head' section of your JSP. Relative paths
will be then be calculated based on the location of your JSP.

Alternatively, use the  tag to rewrite the value of the URL as
a context-relative path.
  " TYPE="text/css">

Steve

> -Original Message-
> From: Altug B. Altintas [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 11:35 PM
> To: 'Struts Users Mailing List'
> Subject: Path Finder
>
>
> Hi,
>
> My Jsp page include the followings;
>
>  HREF="../inc/risk.css" TYPE="text/css">
>SRC="../js/Calendar1-82.js">
>SRC="../js/Validate.js">
>SRC="../js/functions.js">
>
> When i call this JSP page there is no problem,
> http://localhost:8080/engine-struts/jsp/yield/verigirisi-struts.jsp
>
> CSS file applied to this page  but when  an error occurs, it goes
> valition pages (struts forwards it).
>
> http://localhost:8080/engine-struts/hesapla.do
>
> In this validation page i saw that my css file is not applied to that
> page. CSS file  is not applied because it doesn't find "../inc/risk.css"
>
> i try all the combination but i couldn't solve it..
>
> Any idea ?
>
> Regards.
>
>
> -
> 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: How to add action errors from action class's execute method

2003-07-30 Thread Steve Raeburn
If you add an error in your action:
  errors.add("username", new
ActionError("error.username.unique",regform.getUsername()));
  ...
  saveErrors(request, errors); // And don't forget to save them ;-)

You can refer to the error by the property name (e.g. "username") in your
JSP
  



This also works with  but it iterates over the
messages/errors exposing each one as a page scope bean. To actually display
the message you use 

This would be the equivalent to the above  example:
  

  

As the 'message' attribute is not specified and it defaults to false,
messages are obtained using the Action.ERROR_KEY (that constant has now move
to org.apache.struts.Globals by the way). Thus, the ActionErrors collection
is accessed.

The 'message' attribute of the messages tag is documented here:



Steve

> -Original Message-
> From: Prashanth.S [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 10:49 PM
> To: Struts Users Mailing List
> Subject: Re: How to add action errors from action class's execute method
>
>
> Hi stephan,
> Even i too dont know abt that option...Another important thing is
> that in  tag u must use {message=true} attribute
> in order for message to get displayed...That thing is not
> specified in docs...I dont know  why
> HTH
> Prashanth
>
> Stephan Wiesner <[EMAIL PROTECTED]> wrote:
> Hi Prashanth,
> thanks that did indeed help. Though I don't understand, why I should not
> use the actionerrors. There certainly should be a way to display a
> selected one, if I can display all?
>
> Stephan
>
>
> Prashanth.S wrote:
>
> >Hi stephan,
> >For ur problem i recommend that u use action messages not actionerrors..
> >http://jakarta.apache.org/struts/api/org/apache/struts/taglib/htm
> l/package-summary.html#doc.Other.messages
> >hope the above link helps..
> >Thanks
> >Prashanth
> >
> >
> >Stephan Wiesner wrote:
> >Hi Anurag,
> >your proposal works for me, but how can I recall the value? I can get at
> >it with but I want to display it by key, not all stored
> >values?
> >
> >Stephan
> >
> >Anurag Garg wrote:
> >
> >
> >
> >>Hi,
> >>
> >>U can create the ActionError object and add them in the
> ActionErrors class
> >>in the action class.
> >>Now to forward the request to some resource add the actionerrors object
> >>method in the sendError().
> >>
> >>Use saveErrors(request,errors) in the action class.
> >>
> >>where errors is an object of type ActionClass.
> >>
> >>Anurag Garg.
> >>
> >>
> >>-Original Message-
> >>From: White, Joshua A (HTSC, CASD) [mailto:[EMAIL PROTECTED]
> >>Sent: Thursday, July 24, 2003 11:36 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: How to add action errors from action class's execute method
> >>
> >>
> >>Hello all,
> >>
> >>How would you add action errors from an action class's execute method?
> >>
> >>I would like to be able to add errors and forward to another resource
> >>without the need to do it in the validate method of the form bean.
> >>
> >>Thanks,
> >>
> >>Joshua
> >>
> >>
> >>
> >>This communication, including attachments, is for the exclusive use of
> >>addressee and may contain proprietary, confidential or privileged
> >>information. If you are not the intended recipient, any use, copying,
> >>disclosure, dissemination or distribution is strictly prohibited. If
> >>you are not the intended recipient, please notify the sender
> >>immediately by return email and delete this communication and
> destroy all
> >>copies.
> >>
> >>
> >>-
> >>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]
> >>
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >-
> >Do you Yahoo!?
> >Yahoo! SiteBuilder - Free, easy-to-use web site design software
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software



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



RE: struts-el example app not working?

2003-07-30 Thread Steve Raeburn
Well, I managed to get it running but I'm definitely not a convert to
Netbeans :-(

  - In Netbeans, go to the Runtime tab and expand the Explorer view until
you see the 'Internal Tomcat' server.
  - Right click on it and change the IDE Integration Mode from Full to
Minimum.

That seems to get it working. You could also look at the External Tomcat
Server feature as an alternative. There's information in the application
Help.

I think this <http://www.netbeans.org/issues/show_bug.cgi?id=32425> is the
cause of the problem. In any case, this issue is with Netbeans integration
of Tomcat and not with Struts.

Related information:
James Mitchell has written a guide to setting up a Struts project in
Netbeans (version 3.4)
<http://jakarta.apache.org/struts/faqs/netbeans.html>. He's using Ant to
build and deploy the web application so that probably gets round the
problems by avoiding the IDE's build/deploy features.

If you have access to WebSphere Studio it is IMHO a *much* more pleasant
experience than Netbeans and importing a WAR is straightforward. I haven't
tried Eclipse (on which Websphere Studio is based) with the Sysdeo plugin
for Tomcat, but that would be a cheaper (free!) option than WS Studio.

Hope this works for you... now where's that uninstall option :-)

Steve

> -Original Message-
> From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 7:12 PM
> To: Struts Users Mailing List
> Subject: RE: struts-el example app not working?
>
>
> I'll try to take a look at Netbeans sometime, but it may not be for a few
> days. If I have any success I'll post back to the list and copy
> you. If, in
> the meantime you find the problem, do post the result here.
>
> Steve
>
> > -Original Message-
> > From: struts [mailto:[EMAIL PROTECTED]
> > Sent: July 30, 2003 5:51 PM
> > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > Subject: Re: struts-el example app not working?
> >
> >
> > Yep the stand alone (Tomcat 4.1) works fine.  Just install the
> > struts-el-exercise-taglib.war through
> > the tomcat manager and no problems.
> > Barry
> >
> > - Original Message -
> > From: "Steve Raeburn" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 30, 2003 4:27 PM
> > Subject: RE: struts-el example app not working?
> >
> >
> > > 4.0.6 works for me. I don't remember the details, but I
> *think* Netbeans
> > has
> > > cropped up as a problem before.
> > > If you can, try it with a standalone version of Tomcat and
> > check the mail
> > > archives for Netbeans issues.
> > >
> > > Steve
> > >
> > >
> > > > -Original Message-
> > > > From: struts [mailto:[EMAIL PROTECTED]
> > > > Sent: July 30, 2003 4:06 PM
> > > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > > Subject: Re: struts-el example app not working?
> > > >
> > > >
> > > > I am running Tomcat 4.0xx
> > > > (using netbeans 3.5 with Tomcat bundle)
> > > >
> > > > Barry
> > > >
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Steve Raeburn" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, July 30, 2003 4:03 PM
> > > > Subject: RE: struts-el example app not working?
> > > >
> > > >
> > > > > Works fine for me with the 1.1 release version on Tomcat 4.1.24.
> > > > >
> > > > > What container are you running on?
> > > > >
> > > > > Steve
> > > > >
> > > > > > -Original Message-
> > > > > > From: struts [mailto:[EMAIL PROTECTED]
> > > > > > Sent: July 30, 2003 3:52 PM
> > > > > > To: [EMAIL PROTECTED]
> > > > > > Subject: struts-el example app not working?
> > > > > >
> > > > > >
> > > > > > Hello,
> > > > > >
> > > > > > When testing the struts-el example I get the following error.
> > > > > > The problem goes away
> > > > > > if I remove:
> > > > > >
> > > > > > <%@ taglib uri="/WEB-INF/struts-html-el.tld"
> prefix="html-el" %>
> > > > > >
> > > > > > Of course this is useless

RE: struts-el example app not working?

2003-07-30 Thread Steve Raeburn
I'll try to take a look at Netbeans sometime, but it may not be for a few
days. If I have any success I'll post back to the list and copy you. If, in
the meantime you find the problem, do post the result here.

Steve

> -Original Message-
> From: struts [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 5:51 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: struts-el example app not working?
>
>
> Yep the stand alone (Tomcat 4.1) works fine.  Just install the
> struts-el-exercise-taglib.war through
> the tomcat manager and no problems.
> Barry
>
> ----- Original Message -
> From: "Steve Raeburn" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 30, 2003 4:27 PM
> Subject: RE: struts-el example app not working?
>
>
> > 4.0.6 works for me. I don't remember the details, but I *think* Netbeans
> has
> > cropped up as a problem before.
> > If you can, try it with a standalone version of Tomcat and
> check the mail
> > archives for Netbeans issues.
> >
> > Steve
> >
> >
> > > -Original Message-
> > > From: struts [mailto:[EMAIL PROTECTED]
> > > Sent: July 30, 2003 4:06 PM
> > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > Subject: Re: struts-el example app not working?
> > >
> > >
> > > I am running Tomcat 4.0xx
> > > (using netbeans 3.5 with Tomcat bundle)
> > >
> > > Barry
> > >
> > >
> > >
> > > - Original Message -
> > > From: "Steve Raeburn" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, July 30, 2003 4:03 PM
> > > Subject: RE: struts-el example app not working?
> > >
> > >
> > > > Works fine for me with the 1.1 release version on Tomcat 4.1.24.
> > > >
> > > > What container are you running on?
> > > >
> > > > Steve
> > > >
> > > > > -Original Message-
> > > > > From: struts [mailto:[EMAIL PROTECTED]
> > > > > Sent: July 30, 2003 3:52 PM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: struts-el example app not working?
> > > > >
> > > > >
> > > > > Hello,
> > > > >
> > > > > When testing the struts-el example I get the following error.
> > > > > The problem goes away
> > > > > if I remove:
> > > > >
> > > > > <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
> > > > >
> > > > > Of course this is useless because the html-el tags do not
> function.
> > > > >
> > > > > I have even tried incorporating the struts-html-el in my
> own app and
> > > > > included all jars from the struts 1.1 release, defined
> the el tld's
> in
> > > my
> > > > > web.xml and I get the same exact error.  Same partial solution if
> > > > > I remove the
> > > > >
> > > > > <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
> > > > >
> > > > > the error goes away and the jsp page is displayed and of
> > > course without
> > > > > the properly generated html.
> > > > >
> > > > > Appreciate any suggestions
> > > > >
> > > > > Barry
> > > > >
> > > > >
> > > > > I get the following error:
> > > > >
> > > > > index.jsp [-1:-1] java.lang.ExceptionInInitializerError
> > > > > at java.lang.Class.forName0(Native Method)
> > > > > at java.lang.Class.forName(Class.java:141)
> > > > > at
> > > > > org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.class$(ELLinkTag
> > > > > BeanInfo.java:88)
> > > > > at
> > > > > org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.getPropertyDescr
> > > > > iptors(ELLinkTagBeanInfo.java:88)
> > > > > at
> > > > >
> java.beans.Introspector.getTargetPropertyInfo(Introspector.java:459)
> > > > > at
> java.beans.Introspector.getBeanInfo(Introspector.java:372)
> > > > > at
> java.beans.Introspector.getBeanInfo(Introspector.java:144)
>

RE: struts-el example app not working?

2003-07-30 Thread Steve Raeburn
4.0.6 works for me. I don't remember the details, but I *think* Netbeans has
cropped up as a problem before.
If you can, try it with a standalone version of Tomcat and check the mail
archives for Netbeans issues.

Steve


> -Original Message-
> From: struts [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 4:06 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: struts-el example app not working?
>
>
> I am running Tomcat 4.0xx
> (using netbeans 3.5 with Tomcat bundle)
>
> Barry
>
>
>
> - Original Message -
> From: "Steve Raeburn" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 30, 2003 4:03 PM
> Subject: RE: struts-el example app not working?
>
>
> > Works fine for me with the 1.1 release version on Tomcat 4.1.24.
> >
> > What container are you running on?
> >
> > Steve
> >
> > > -Original Message-
> > > From: struts [mailto:[EMAIL PROTECTED]
> > > Sent: July 30, 2003 3:52 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: struts-el example app not working?
> > >
> > >
> > > Hello,
> > >
> > > When testing the struts-el example I get the following error.
> > > The problem goes away
> > > if I remove:
> > >
> > > <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
> > >
> > > Of course this is useless because the html-el tags do not function.
> > >
> > > I have even tried incorporating the struts-html-el in my own app and
> > > included all jars from the struts 1.1 release, defined the el tld's in
> my
> > > web.xml and I get the same exact error.  Same partial solution if
> > > I remove the
> > >
> > > <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
> > >
> > > the error goes away and the jsp page is displayed and of
> course without
> > > the properly generated html.
> > >
> > > Appreciate any suggestions
> > >
> > > Barry
> > >
> > >
> > > I get the following error:
> > >
> > > index.jsp [-1:-1] java.lang.ExceptionInInitializerError
> > > at java.lang.Class.forName0(Native Method)
> > > at java.lang.Class.forName(Class.java:141)
> > > at
> > > org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.class$(ELLinkTag
> > > BeanInfo.java:88)
> > > at
> > > org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.getPropertyDescr
> > > iptors(ELLinkTagBeanInfo.java:88)
> > > at
> > > java.beans.Introspector.getTargetPropertyInfo(Introspector.java:459)
> > > at java.beans.Introspector.getBeanInfo(Introspector.java:372)
> > > at java.beans.Introspector.getBeanInfo(Introspector.java:144)
> > > at
> > >
> org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:116)
> > > at
> > > org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerato
> > > r.java:146)
> > > at
> > > org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.addG
> > > enerator(AnalyzerParseEventListener.java:154)
> > > at
> > > org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.hand
> > > leTagBegin(AnalyzerParseEventListener.java:962)
> > > at
> > > org.apache.jasper.compiler.DelegatingListener.handleTagBegin(Deleg
> > > atingListener.java:221)
> > > at
> > > org.apache.jasper.compiler.DelegatingListener.handleTagBegin(Deleg
> > > atingListener.java:216)
> > > at
> org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:878)
> > > at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
> > > at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
> > > at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
> > > at
> > > org.apache.jasper.compiler.ParserController.parse(ParserController
> > > .java:214)
> > > at
> > > org.netbeans.modules.web.jspparser.JspParserImpl.callTomcatParser(
> > > JspParserImpl.java:126)
> > > at
> > > org.netbeans.modules.web.jspparser.JspParserImpl.analyzePage(JspPa
> > > rserImpl.java:93)
> > > at
> > > org.netbeans.modules.web.core.jsploader.JspDataObject.createCompil
> > > er(Jsp

RE: struts-el example app not working?

2003-07-30 Thread Steve Raeburn
The URI is not the problem, it's exactly the same as mine (as it would be if
the example hasn't been modified :-))

This is mine:
  <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el"  %>

This may also be valid, depending on what (if anything) you've got
configured in web.xml
  <%@ taglib uri="http://jakarta.apache.org/struts/tags-html-el";
prefix="html-el"  %>

Steve

> -Original Message-
> From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 4:06 PM
> To: 'Struts Users Mailing List'
> Subject: RE: struts-el example app not working?
>
>
> You uri look suspicious. I think it has to read something along
> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html-el";
> prefix="html-el" %>
>
> open up the jar, in META-INF dir there is a bunch of TLDs just read off
> the uris from there.
>
>
> > -Original Message-
> > From: struts [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 30, 2003 6:52 PM
> > To: [EMAIL PROTECTED]
> > Subject: struts-el example app not working?
> >
> > Hello,
> >
> > When testing the struts-el example I get the following error.   The
> > problem goes away
> > if I remove:
> >
> > <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
> >
> > Of course this is useless because the html-el tags do not function.
> >
> > I have even tried incorporating the struts-html-el in my own app and
> > included all jars from the struts 1.1 release, defined the el tld's in
> my
> > web.xml and I get the same exact error.  Same partial solution if
> > I remove the
> >
> > <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
> >
> > the error goes away and the jsp page is displayed and of course
> without
> > the properly generated html.
> >
> > Appreciate any suggestions
> >
> > Barry
> >
> >
> > I get the following error:
> >
> > index.jsp [-1:-1] java.lang.ExceptionInInitializerError
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Class.java:141)
> > at
> >
> org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.class$(ELLinkTagBeanIn
> fo
> > .java:88)
> > at
> >
> org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.getPropertyDescriptors
> (E
> > LLinkTagBeanInfo.java:88)
> > at
> > java.beans.Introspector.getTargetPropertyInfo(Introspector.java:459)
> > at java.beans.Introspector.getBeanInfo(Introspector.java:372)
> > at java.beans.Introspector.getBeanInfo(Introspector.java:144)
> > at
> >
> org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:116
> )
> > at
> >
> org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java
> :1
> > 46)
> > at
> >
> org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.addGenerat
> or
> > (AnalyzerParseEventListener.java:154)
> > at
> >
> org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.handleTagB
> eg
> > in(AnalyzerParseEventListener.java:962)
> > at
> >
> org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingL
> is
> > tener.java:221)
> > at
> >
> org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingL
> is
> > tener.java:216)
> > at
> org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:878)
> > at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
> > at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
> > at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
> > at
> >
> org.apache.jasper.compiler.ParserController.parse(ParserController.java:
> 21
> > 4)
> > at
> >
> org.netbeans.modules.web.jspparser.JspParserImpl.callTomcatParser(JspPar
> se
> > rImpl.java:126)
> > at
> >
> org.netbeans.modules.web.jspparser.JspParserImpl.analyzePage(JspParserIm
> pl
> > .java:93)
> > at
> >
> org.netbeans.modules.web.core.jsploader.JspDataObject.createCompiler(Jsp
> Da
> > taObject.java:297)
> > at
> >
> org.netbeans.modules.web.core.jsploader.JspCompilerSupport.addToJob(JspC
> om
> > pilerSupport.java:62)
> > at
> >
> org.openide.actions.AbstractCompileAction.prepareJobFor(AbstractCompileA
> ct
> > ion.java:361)
> > at
> >
> org.openide.actions.AbstractCompileAction.createJob(AbstractCompileActio
> n.
> > java:198)
> > at
> >
> org.openide.actions.AbstractCompileAction.compile(AbstractCompileAction.
> ja
> > va:209)
> > at
> >
> org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.processR
> eq
> > uest(CompileServlet.java:76)
> > at
> >
> org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.doGet(Co
> mp
> > ileServlet.java:122)
> > at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> > at org.apache.tomcat.core.Handler.service(H

RE: struts-el example app not working?

2003-07-30 Thread Steve Raeburn
Works fine for me with the 1.1 release version on Tomcat 4.1.24.

What container are you running on?

Steve

> -Original Message-
> From: struts [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 3:52 PM
> To: [EMAIL PROTECTED]
> Subject: struts-el example app not working?
>
>
> Hello,
>
> When testing the struts-el example I get the following error.
> The problem goes away
> if I remove:
>
> <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
>
> Of course this is useless because the html-el tags do not function.
>
> I have even tried incorporating the struts-html-el in my own app and
> included all jars from the struts 1.1 release, defined the el tld's in my
> web.xml and I get the same exact error.  Same partial solution if
> I remove the
>
> <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
>
> the error goes away and the jsp page is displayed and of course without
> the properly generated html.
>
> Appreciate any suggestions
>
> Barry
>
>
> I get the following error:
>
> index.jsp [-1:-1] java.lang.ExceptionInInitializerError
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:141)
> at
> org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.class$(ELLinkTag
> BeanInfo.java:88)
> at
> org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.getPropertyDescr
> iptors(ELLinkTagBeanInfo.java:88)
> at
> java.beans.Introspector.getTargetPropertyInfo(Introspector.java:459)
> at java.beans.Introspector.getBeanInfo(Introspector.java:372)
> at java.beans.Introspector.getBeanInfo(Introspector.java:144)
> at
> org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:116)
> at
> org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerato
> r.java:146)
> at
> org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.addG
> enerator(AnalyzerParseEventListener.java:154)
> at
> org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.hand
> leTagBegin(AnalyzerParseEventListener.java:962)
> at
> org.apache.jasper.compiler.DelegatingListener.handleTagBegin(Deleg
> atingListener.java:221)
> at
> org.apache.jasper.compiler.DelegatingListener.handleTagBegin(Deleg
> atingListener.java:216)
> at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:878)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
> at
> org.apache.jasper.compiler.ParserController.parse(ParserController
> .java:214)
> at
> org.netbeans.modules.web.jspparser.JspParserImpl.callTomcatParser(
> JspParserImpl.java:126)
> at
> org.netbeans.modules.web.jspparser.JspParserImpl.analyzePage(JspPa
> rserImpl.java:93)
> at
> org.netbeans.modules.web.core.jsploader.JspDataObject.createCompil
> er(JspDataObject.java:297)
> at
> org.netbeans.modules.web.core.jsploader.JspCompilerSupport.addToJo
> b(JspCompilerSupport.java:62)
> at
> org.openide.actions.AbstractCompileAction.prepareJobFor(AbstractCo
> mpileAction.java:361)
> at
> org.openide.actions.AbstractCompileAction.createJob(AbstractCompil
> eAction.java:198)
> at
> org.openide.actions.AbstractCompileAction.compile(AbstractCompileA
> ction.java:209)
> at
> org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.pr
> ocessRequest(CompileServlet.java:76)
> at
> org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.do
> Get(CompileServlet.java:122)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManag
> er.java:797)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
> tion(HttpConnectionHandler.java:210)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:534)
> Caused by: java.lang.NullPointerException
> at
> org.apache.struts.util.MessageResources.getMessageResources(Messag
> eResources.java:577)
> at
> org.apache.struts.taglib.html.BaseHandlerTag.(BaseHandlerT
> ag.java:108)
> ... 38 more
> Errors compiling index.
>



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

RE: Prob:Calling a bean:write inside html:text - Nesting is nice

2003-07-30 Thread Steve Raeburn
Try JSTL. For example: 

  

is equivalent to:

  
26/12/1968
  

The content of the second example can even be generated by nested tags.

Steve

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 11:10 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Prob:Calling a bean:write inside html:text - Nesting is
> nice
> 
> 
> It would be nice if this:
> 
> 
> 
> Parsed the same as:
> 
> 
>aValue
> 
> 
> 
> Failing that it would be nice if any tags with attribute
> also accepted nested tags with the same name and meaning as an 
> alternative.
> 
> Brendan
> 
> 
> 
> 
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 10:23 AM
> To: Struts Users Mailing List
> Cc: [EMAIL PROTECTED]
> Subject: RE: Prob:Calling a bean:write inside html:text
> 
> 
> 
> 
> On Wed, 30 Jul 2003, James Childers wrote:
> 
> > Date: Wed, 30 Jul 2003 11:35:53 -0500
> > From: James Childers <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>,
> >  [EMAIL PROTECTED]
> > Subject: RE: Prob:Calling a bean:write inside html:text
> >
> >
> > YOU CAN'T NEST TAGS.
> >
> > YOU CAN'T NEST TAGS.
> >
> > You, or anyone else, cannot nest tags. Tags cannot be nested. 
> Nesting tags
> is prohibited. If you nest a tag inside another tag, the page 
> won't compile.
> Nesting tags ist verbotten. Do not nest tags if you want your 
> page to work.
> >
> > The following won't work:
> >
> > " />
> 
> It is true that this won't work, but I would caution you that "nesting
> tags" actually means something different:
> 
>   
> 
> 
>   
> 
> which is perfectly legitimate.  A correct sentence describing what you
> cannot do is "You cannot use one tag to create all or part of the
> attribute value of another tag."
> 
> Craig
> 
> -
> 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]
> 
> 
> 


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



RE: Multiple modules - Please help

2003-07-30 Thread Steve Raeburn
It wouldn't be (easily) possible to change ForwardAction to be configurable
between context and module relative because the ActionMapping only has one
parameter which is already being used to provide the path.

A couple of options would be to create a second version of ForwardAction
(ModuleForwardAction ?) that returns a module relative ActionForward, or to
create a simple action that returns an ActionForward which is configured in
struts-config with a well-known name ("success", in my example).

I prefer the latter approach because it is more flexible and uses the
standard method of configuring the ActionForward via struts-config. You'd
have to create your own for now, but I hope to add this as a standard
action.

The action (SuccessAction):
  public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
  throws Exception {

  return mapping.findForward("success");

  }

struts-config.xml:
  
  

  

-or-

  
  

  



Steve


> -Original Message-
> From: Ajay Patil [mailto:[EMAIL PROTECTED]
> Sent: July 29, 2003 7:11 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: Multiple modules - Please help
>
>
> Dear Steve,
>
> Thanks for finding the problem in the configuration file. I had
> not realized it. ** sorry for the typo in bug report **
>
> So, now I have an enhancement request.. :)
>
> Would it be possible to enhance ForwardAction so that it also
> requires a MODULE relative path ?
>
> It would be then very intuitive and convenient.
> Also, splitting into modules will be easier as you simply have to
> chop off the module path globally. Changing module names will be
> even easier.
>
> If you think the above is ok and it doesnt conflict with the current
> implementation, I shall re-open the bug as an enhancement request.
>
> Please let me know,
>
> Thanks a bunch,
> Ajay



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



RE: Subject RE: Multiple modules - Please help

2003-07-29 Thread Steve Raeburn
Ajay,
I've closed this bug. It seems to be a configuration problem...

I'm assuming that your add.jsp and edit.jsp files are in the /admin
directory.

The problem is with your configuration. ForwardAction requires a CONTEXT
relative path which, in this case would be:

 
 

(Note also, you had your parameter in a separate tag, but it should be an
attribute of the action tag. Not sure if that's what you actually had in
your
source or it's just a typo in the bug report, but it wouldn't help!)

The reason it worked when you used your own custom action is that by default
ActionFoward paths are MODULE relative, so your configuration entry
"/edit.jsp"
would be translated by the RequestProcessor to a context relative path of
"/admin/edit.jsp"

... if you still have problems after this, please post back to the user
list.

Steve

> -Original Message-
> From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> Sent: July 28, 2003 9:13 PM
> To: Struts Users Mailing List
> Subject: RE: Subject RE: Multiple modules - Please help
>
>
> Glad you got it working. I'll take a look at your bug report and see if I
> can sort out what's happening with ForwardAction.
>
> Steve
>
>
> > -Original Message-
> > From: Ajay Patil [mailto:[EMAIL PROTECTED]
> > Sent: July 28, 2003 8:28 PM
> > To: [EMAIL PROTECTED]
> > Subject: Subject RE: Multiple modules - Please help
> >
> >
> > Dear Steve,
> >
> > > Can you access the edit or remove actions by entering the URL in your
> > > address bar?
> > > e.g. http://localhost:8080/myapp/admin/edit.do?parameter=XXX
> >
> > Your tip helped me to debug the problem.
> >
> > Apparently, I got the 404 error from the browser.
> > In the config file, edit.do was declared to be of type "ForwardAction".
> > I created a new action class and used it instead of ForwardAction.
> >
> > and voila, it worked !
> >
> > So, it might be a bug in ForwardAction.
> >
> > I have posted a bug at
> > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21949
> >
> > Thanks,
> > Ajay
> >
> >
> > -
> > 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]
>
>
>



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



RE: Subject RE: Multiple modules - Please help

2003-07-28 Thread Steve Raeburn
Glad you got it working. I'll take a look at your bug report and see if I
can sort out what's happening with ForwardAction.

Steve


> -Original Message-
> From: Ajay Patil [mailto:[EMAIL PROTECTED]
> Sent: July 28, 2003 8:28 PM
> To: [EMAIL PROTECTED]
> Subject: Subject RE: Multiple modules - Please help
>
>
> Dear Steve,
>
> > Can you access the edit or remove actions by entering the URL in your
> > address bar?
> > e.g. http://localhost:8080/myapp/admin/edit.do?parameter=XXX
>
> Your tip helped me to debug the problem.
>
> Apparently, I got the 404 error from the browser.
> In the config file, edit.do was declared to be of type "ForwardAction".
> I created a new action class and used it instead of ForwardAction.
>
> and voila, it worked !
>
> So, it might be a bug in ForwardAction.
>
> I have posted a bug at
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21949
>
> Thanks,
> Ajay
>
>
> -
> 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: submitting forms

2003-07-28 Thread Steve Raeburn
Just use a normal link with an onclick handler.

There's no need to use  because you're not actually linking to
another page but using the link as a convenient way of initiating
Javsacript.

  Click
here

Steve

> -Original Message-
> From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED]
> Sent: July 28, 2003 3:00 AM
> To: [EMAIL PROTECTED]
> Subject: submitting forms
>
>
> how do you submit a form using javascript via html:link?
> --
> Frances Aleah Z. De Guzman
> SA/Programmer
> Ingenium Technology, Inc.
> http://www.ingenium.com.ph
>
> Disclaimer :
> This message is intended only for the named recipient. If you are not the
> intended recipient you are notified that disclosing, copying, distributing
> or taking any action in reliance on the contents of this information is
> strictly prohibited.
>
>
>
> -
> 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]



  1   2   3   >