RE: first release date struts 1.1

2003-07-31 Thread Andrew Hill
Yes. The book is based on a beta version. -Original Message- From: object worlds [mailto:[EMAIL PROTECTED] Sent: Friday, 1 August 2003 10:00 To: [EMAIL PROTECTED] Subject: Re: first release date struts 1.1 Are you sure that was the very first occasion that Struts v 1.1 was released f

RE: [OT] Best super-class for context handling.

2003-07-31 Thread Andrew Hill
ngineer II Enterprise Midrange - Bank One Infrastructure & Operations [EMAIL PROTECTED] (614) 213-6100 "Andrew Hill" <[EMAIL PROTECTED]> on 07/30/2003 10:49:19 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Maili

How to rename file in FormFile in struts 1.1 final release

2003-07-31 Thread Andrew Hill
Whats the deal with org.apache.struts.upload.CommonsMultipartRequestHandler.CommonsFormFile being immutable? Its broken my (production) code that was working with struts 1.1 b1 and relied on using setFileName() :-( What is the rationale for the FormFile interface still having these methods when t

RE: [OT] Best super-class for context handling.

2003-07-30 Thread Andrew Hill
InputStream is = servlet.getServletContext().getResourceAsStream("/WEB-INF/dir/file.x"); Thats fine if your in an action, but down in your business classes you dont want to be dependant on the servlet api classes. Obviously the trick is to have some kind of interface (which in my apps I usuall

RE: Action Chaining and File Uploads

2003-07-29 Thread Andrew Hill
Ah... another entry to the "joys of action chaining" list. Action chaining is bad. You should avoid it like the plague because it will only ever end in tears... What I heard about filters was that it would be in struts 2.x - so quite a while yet I think :-( Hmm... lets see, 1.0.2 to 1.1.0 took ab

RE: how can I switch between different languages

2003-07-28 Thread Andrew Hill
Switch off struts default locale handling (if I recall correctly this is the 'locale' attribute in the 'controller' element in struts-config.xml - set it to "false") and provide the locale yourself stored in the same attribute in the session that struts stores it (the Action class provides a setLoc

RE: [FRIDAY] Funny legal signatures [WAS: RE: Struts in Action]

2003-07-24 Thread Andrew Hill
Fri, 25 Jul 2003, Andrew Hill wrote: > Date: Fri, 25 Jul 2003 11:29:15 +0800 > From: Andrew Hill <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] > To: Struts Users Mailing List <[EMAIL PROTECTED]>, >

[FRIDAY] Funny legal signatures [WAS: RE: Struts in Action]

2003-07-24 Thread Andrew Hill
If received in error, please destroy and notify sender Wouldnt it be more logical if I notified you first and then destroyed you? That way you would have a chance to say goodbye to everyone first. I have to say thats a pretty strict rule! Id have thought accidentally sending email to the wrong

RE: model - controller interface

2003-07-24 Thread Andrew Hill
Id suggest you take the time to learn how to use one of the various persistence frameworks out there: He says having yet to do this himself... ;-> OJB http://db.apache.org/ojb/ Torque http://db.apache.org/torque/ Hibernate http://hibernate.bluemars.net/?cowiki=35a3a22697b6c2f7504ce56c4b6b114c e

RE: [newbie] Multi-Form Page ... PLEASE

2003-07-24 Thread Andrew Hill
Take a look at: http://www.keyboardmonkey.com/pilotlight/index.jsp -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, 24 July 2003 16:22 To: [EMAIL PROTECTED] Subject: [newbie] Multi-Form Page ... PLEASE Hi ... I am quite new to Struts and like to know w

RE: JSR-198 : (A little history between IBM and Sun's fight)

2003-07-23 Thread Andrew Hill
A colleague of mine upon reading the archived message you linked to did a bit of a search and come up with this thread in which some of those named set the record straight: http://www.javalobby.com/threadMode_printfriendly.jsp?forum=61&thread=7034 -Original Message- From: Yansheng Lin [m

RE: dynamic forward to different pages from ActionClass

2003-07-23 Thread Andrew Hill
Its impolite to hijack topic threads like that for a totally unrelated question. Create a new thread with an appropriate subject line. Read this: http://www.catb.org/~esr/faqs/smart-questions.html -Original Message- From: lyl [mailto:[EMAIL PROTECTED] Sent: Thursday, 24 July 2003 13:17 T

RE: NullPointer exception

2003-07-23 Thread Andrew Hill
ear not. Btw, thanks for the "best practice" tip.. When's the book comming out ;) Cheers Mark On Wednesday, July 23, 2003, at 09:55 AM, Andrew Hill wrote: > > Now there appears to be something setting the request to > null between actions, I just have no idea wh

RE: Forward outside application can or not?

2003-07-23 Thread Andrew Hill
] Subject: RE: Forward outside application can or not? yes u can do that -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 2:43 PM To: Struts Subject: Forward outside application can or not? I know I should rtfm for this but Im feeling lazy: Its

Forward outside application can or not?

2003-07-23 Thread Andrew Hill
I know I should rtfm for this but Im feeling lazy: Its not possible to forward outside of the application (for example to another webapp) using an ActionForward is it? Its always relative to the context yes? - To unsubscribe, e-

RE: NullPointer exception

2003-07-23 Thread Andrew Hill
Now there appears to be something setting the request to null between actions, I just have no idea what. Well of course the request attributes are null (i presume its the request attribute thats null and not the request reference itself!) in the second action. Unless you do a server-side redirec

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Andrew Hill
this great filters in place of ActionServlet direction that struts is taking and deprecation of datasource. i guess i need to read these lists regularly. (I've been using Struts for a while, but I just subscribed to ask my question). -Original Message- From: Andrew Hill [mailto:[

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Andrew Hill
talking about specifying data sources in struts-config.xml (when it can be configured in a container and retrieved through JNDI), or declarative exception handling which is also available in web.xml (although i'm not sure if its as powerful). ranko -Original Message- From: Andrew

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Andrew Hill
Struts is becoming kind of self sufficient where everything is done through it even if it already can be done through something else. Its like a little container itself. There is a certain element of truth in that ;-) ...though your 'already can be done' is a little presumptuous - in most case

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Andrew Hill
One of the things to remember is that struts is quite old - back when it was created filters were not part of the servlet spec - so to give struts a place to do its thing (creating & populating the actionform, populating multipart requestwrappers, etc...) before invoking your code, it has all the r

RE: Struts modules does not work with Tiles, is there a tiles plugin problem?

2003-07-21 Thread Andrew Hill
This is just a guess - (I have no idea what Im talking about ,I just remember seeing this somewhere) - do you link straight to your JSPs? If so you wont hit the controller (tile request processor) so it can get confused when modules are involved. You might need to use a SwitchAction or something li

RE: Is it possible to get the ActionMapping object in a filter ?

2003-07-18 Thread Andrew Hill
ActionMappings are initialised at startup surely and available from the servlet context? -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Friday, 18 July 2003 15:47 To: Struts Users Mailing List Subject: RE: Is it possible to get the ActionMapping object in a filter ?

RE: Question on making Action classes thread-safe

2003-07-17 Thread Andrew Hill
Yep more memory and more time for the garbage collector - but in fact its probably insignificant - your already creating an actionform (if its request scoped) , a request object, and all sorts of other things as by products of processing the request. This is just one more object. JVMs now are much

RE: Struts without beans

2003-07-17 Thread Andrew Hill
request.getParameter() -Original Message- From: Anubhav Kale [mailto:[EMAIL PROTECTED] Sent: Thursday, 17 July 2003 18:12 To: [EMAIL PROTECTED] Subject: Struts without beans hello. I want to create a JSP page which shows the contents of XML file. Also,on clicking 'Save' buton on the pag

RE: Request object Null Pointer

2003-07-16 Thread Andrew Hill
ater in the same Action class or even in a different Action class. Thx. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 12:06 AM To: Struts Users Mailing List Subject: RE: Request object Null Pointer Well of course its null. The second time

RE: Request object Null Pointer

2003-07-16 Thread Andrew Hill
Well of course its null. The second time through you arent calling request.setAttribute("vehList",vehList) before calling prepareListForUpdate() -Original Message- From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] Sent: Thursday, 17 July 2003 10:52 To: '[EMAIL PROTECTED]' Subject: Reque

RE: [OT] Re: 4th Of July Struts Challenge...

2003-07-16 Thread Andrew Hill
I do not believe this to be the case. Indeed Im 99% certain it is not the case. I suppose I should bang together a class to prove this, but it will be more fun to argue about it for a while yet ;-) -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Wednesday, 16 July 2

RE: is Struts action class a Design Pattern of utility class?

2003-07-16 Thread Andrew Hill
You shouldnt be using (modifiable) instance methods in an Action class as actions need to be threadsafe - remember that could be any number of threads executing that code at the same time! (This is where request attributes come in handy) so certainly you should be eliminating instance variables and

RE: [OT]How to invoke Visual Basic Objects from Java Servlet(Action in Struts)?

2003-07-16 Thread Andrew Hill
I don't think I have ever seen VB word (even as misspelled) on this mailing list. Oh I dunno mate. I reckon I may well have mentioned VB in a Friday [BEER] thread... ;-> (Victoria Bitter) If the client is using Internet Explorer you should be able to invoke VB objects clientside using VBScript

RE: [OT] Re: 4th Of July Struts Challenge...

2003-07-16 Thread Andrew Hill
Strictly speaking, JavaBeans do not contain a constructor and implement Serializable. Dont they just need to make sure a noargs constructor is available? Are they allowed to implement serializable if they want though? Be kinda funny if they couldnt... I wouldnt count expression evaluation lang

RE: what the webwork guys say about struts

2003-07-16 Thread Andrew Hill
WebWork’s pros include being a smaller, simpler framework, not having to build ActionForm beans, making it very simple to test your Actions, having multiple well-supported view technologies, simpler views with less JSP tags and a more powerful expression language, not having to make your Actions t

RE: Struts and JSF?

2003-07-16 Thread Andrew Hill
Read it again. Its a bit cooler than that. I reckon its more like struts the way it would have been written if Craig knew then what he knows now. ;-> Something Ive been wondering... anyone out there also familiar with Barracuda and can comment on how similar/dissimilar the concepts are between ba

RE: struts generation tools for actionhandler, action forms and jsp?

2003-07-16 Thread Andrew Hill
Im still generating my actionforms the old fashioned way and the generate getter/setter option in Eclipse makes this a whole lot quicker than it used to be :-) -Original Message- From: Butt, Dudley [mailto:[EMAIL PROTECTED] Sent: Wednesday, 16 July 2003 17:06 To: [EMAIL PROTECTED] Subject:

RE: Passing Parameters Between Actions

2003-07-15 Thread Andrew Hill
Is there any reason you are forwarding from JSP? JSP where got? He stated quite clearly he is forwarding from one action to another using (returning I presume) an ActionForward. I was going to suggest that you specify redirect="false" in the forward, but looking at the javadoc it seems that

RE: checkboxes - ActionForm in session scope

2003-07-15 Thread Andrew Hill
I call reset method selectively since I am trying to develope wizard style pages with one form. Ah, but if you dont reset the checkbox it will always stay ticked - as nothing (not even an empty string!) is submitted for an unticked checkbox so the forms setter method is never called. THIS is th

RE: two little questions

2003-07-14 Thread Andrew Hill
Other alternative is similar - convert the < and > to < and > etc... so it outputs as though it was text. -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: Monday, 14 July 2003 18:38 To: 'Struts Users Mailing List' Subject: RE: two little questions Hi Simon, That w

RE: debate over Struts vs other frameworks

2003-07-14 Thread Andrew Hill
ks : ) i like what i hear so far.. umm, well, there's quite a few...Velocity/Webwork/Turbine/Tapestry/Maverick -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 11:03 AM To: Struts Users Mailing List Subject: RE: debate over Struts vs othe

RE: Check box problem.

2003-07-14 Thread Andrew Hill
I wouldst refereth thy attention unto the documentation for the reset() method of the class known as ActionForm wherein shall be found all that which thou doust require. -Original Message- From: Ravi Garg [mailto:[EMAIL PROTECTED] Sent: Monday, 14 July 2003 18:09 To: Struts Users Mailing L

RE: debate over Struts vs other frameworks

2003-07-14 Thread Andrew Hill
Struts good Others bad ...hehe ;-> Really it all depends on what you want to get out of your framework... Perhaps if you name some frameworks you are comparing it with then people in the list with experience in both can give some specific strength and weakness comparisons. -Original Message-

RE: [FRIDAY] Old news already but amusing...

2003-07-11 Thread Andrew Hill
ts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: [FRIDAY] Old news already but amusing... what an asshole! -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 11:15 PM To: Struts Subject: [FRIDAY] Old news already but amusing...

[FRIDAY] Old news already but amusing...

2003-07-10 Thread Andrew Hill
http://www.wired.com/news/politics/0,1283,59305,00.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [OT] Use of Static Methods

2003-07-10 Thread Andrew Hill
It's this kind of discussion that makes this list one (if not THE) best list on the web. +1 I guess the only question I have remaining is whether there is a problem with maintaining 'thread safety' with the use of a static method As for thread safety, thats all about the data rather than

RE: [OT] colours

2003-07-10 Thread Andrew Hill
Maybe this can help: http://www.visibone.com/colorlab/ -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, 10 July 2003 19:11 To: Struts Users Mailing List Subject: [OT] colours I'm doing the HTML design for my current project and I'm looking for some resource

RE: [OT] Use of Static Methods

2003-07-10 Thread Andrew Hill
In the mean time, I suggest you avoid this trap for your application specific classes, and implement the singleton pattern instead. Having made this mistake a fair few times myself I give this suggestion a big +1 -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sen

RE: [OT] Use of Static Methods

2003-07-09 Thread Andrew Hill
Put them as methods of a Singleton instance instead of static methods. (Ive been using lots of static methods so the fact Im telling you to do it differently to that should indicate something ;->) -Especially when other people have to use these methods too. The number of times Ive cursed classes l

RE: Passing parameter to another Action class using POST

2003-07-09 Thread Andrew Hill
But isn't there a way to send POST data programmatically ?? Servlet API 2.3 supports the HttpServletRequestWrapper class so you could subclass and create one of these that returns the parameters you want. The tricky bit will be in having it used for the forwarding. You will probably need to play

RE: Validation of user input depending upon the user locale.

2003-07-08 Thread Andrew Hill
Yep. Your Japanese users are sure gonna love that feature when they try to enter the names of their German clients into the application (or whatever). -Original Message- From: Sagar A. Phanse [mailto:[EMAIL PROTECTED] Sent: Wednesday, 9 July 2003 14:32 To: [EMAIL PROTECTED] Subject: Valida

RE: Urgent!!!Sorting Problem while loading from HashMap

2003-07-07 Thread Andrew Hill
coz TreeMap itself is giving me the list in order of how i have stored Regds Partha > -- > From: Andrew Hill[SMTP:[EMAIL PROTECTED] > Reply To: Struts Users Mailing List > Sent: Tuesday, July 08, 2003 10:45 AM > To: Struts Users Mailing List > Subject:

RE: Urgent!!!Sorting Problem while loading from HashMap

2003-07-07 Thread Andrew Hill
HashMaps will rearrange stuff internally and will NOT preserve the original order (see the j2se javadocs for details). There is a class in commons-collections (which should already be on your classpath as struts (1.1 anyway) uses this library) called SequencedHashMap - try using this instead as it

RE: Multiple updates to objects from a table list

2003-07-07 Thread Andrew Hill
If the name in the html sent to the browser is just "units" (with multiple instances of this field) then use: request.getParameters("units")[1] (this method returns an array of String) Have you looked at the nesting tutorials yet? http://www.keyboardmonkey.com/next/index.jsp If you use collection

RE: Request/Response Utils future request

2003-07-07 Thread Andrew Hill
+1 (& crossposting to struts-dev to try and spark some discussion on implementation) Couldn't agree more George. I too have come across *numerous* situations where I wanted to override and do things a little bit differently for certain cases. And not just with Request & Response Utils but also wi

RE: [Q] Struts 1.1 & Commons Logging

2003-07-07 Thread Andrew Hill
I have both my commons-logging.properties and log4j.properties in WEB-INF/classes directory. As for your other question I dont really know any more about how to do it than you do but heres what I understand so far for what its worth: Commons-Logging is just an abstraction wrapper around whichever

RE: [Q] Struts 1.0 or 1.1 ?

2003-07-07 Thread Andrew Hill
I would imagine that while there may be some performance gain due to code optimizations and the like the real benefit is in the expanded set of features (and that really is a big expansion from what I hear (the general consesus amoung the developers is that 1.1 would be more like 1.8 had they made

RE: extending Action problems

2003-07-06 Thread Andrew Hill
logging an enhancement request to have the RP instantiate new action objects everytime. Last time the idea came up it was shot down, but with 1.1 out now maybe it might be considered? -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Monday, 7 July 2003 11:35 To: Struts Users

RE: Why html:xxx tags? / Dreamweaver and .do extension

2003-07-06 Thread Andrew Hill
Another plus to the struts tags is the nesting ability, which imho rocks! (Though Im not actually using JSP so had to render the nesting details the hard way...) -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: Sunday, 6 July 2003 05:02 To: Struts Users Mailing List Subj

RE: javascipt error in IE

2003-07-06 Thread Andrew Hill
Yes. Its a big nuisance. Ive had to stick with IE5 and hope if it works in 5 it works in 6. Not always the case , but more so than the other way round! Glad to say Ive had no trouble running NS6 and Mozilla together on the same machine - at the same time too. -Original Message- From: Da

RE: extending Action problems

2003-07-06 Thread Andrew Hill
it. Do you have any running application that is using this method? Thanks Andrew! Billy Ng - Original Message - From: "Andrew Hill" <[EMAIL PROTECTED]> To: "Struts" <[EMAIL PROTECTED]> Sent: Friday, July 04, 2003 3:49 AM Subject: RE: extending Acti

RE: extending Action problems

2003-07-04 Thread Andrew Hill
ServletResponse resp) { ActionContext ac = new ActionContext(mapping, form, req, resp); process(ac); } public HttpServletRequest getRequest(ActionContext ac) { return ac.getRequest(); } } - Original Message - From: "Andrew Hil

RE: Struts-bean.tld

2003-07-04 Thread Andrew Hill
rary. Probably more information than you needed ;-) Steve > -Original Message- > From: Andrew Hill [mailto:[EMAIL PROTECTED] > Sent: July 4, 2003 2:56 AM > To: Struts Users Mailing List; Billy Ng > Subject: RE: Struts-bean.tld > > > The tags you are referring to ar

RE: Struts-bean.tld

2003-07-04 Thread Andrew Hill
The tags you are referring to are part of the struts-bean tag library. A .tld file is whats known as a 'tag library descriptor' (or words to that effect) - tld files being used by JSP to define tag libraries - in this case its a definition for the struts bean taglib. When you wish to use the bean

RE: struts.jar

2003-07-04 Thread Andrew Hill
Just have it in WEB-INF/lib of your webapp. The servlet container makes sure all the stuff there is available on the classpath (of the classloader it provides you). :-) -Original Message- From: Jagannayakam [mailto:[EMAIL PROTECTED] Sent: Friday, 4 July 2003 17:25 To: Struts Users Mailing

RE: extending Action problems

2003-07-04 Thread Andrew Hill
Yes, this is a quite annoying feature of the singleton nature of Actions (and given the efficiency of modern JVMs at instantiating and garbage collecting there is jolly good argument for changing the RequestProcessor to instantiate new instances of Action for each request (and do feel free to try t

RE: Session Question

2003-07-04 Thread Andrew Hill
Hmmm. Somebody hasnt been paying attention to the list today... ;-) Here is what Craig had to say about it just a few hours ago: (Today must be "ask about single sign on" day, since this has already come up on earlier discussions :-) Single Sign On support for Struts-based apps is no different

RE: [OT] 4th of July

2003-07-03 Thread Andrew Hill
+1 -Original Message- From: Jason Meredith [mailto:[EMAIL PROTECTED] Sent: Friday, 4 July 2003 14:43 To: Struts Users Mailing List Subject: [OT] 4th of July To all Struts developers in America Have a GREAT Independence Day. Regards Jason Meredith United Kingdom **

RE: Virtual [FRIDAY]

2003-07-03 Thread Andrew Hill
Whats a 'long weekend'? I am not familiar with these terms. :-( I know what a weekend is. Thats when there are less managerial/sales/support type people around at the office so I can actually get some work done without having to deal with all those distracting "urgent requirements" that keep comin

RE: view objects

2003-07-02 Thread Andrew Hill
Its recomended that you also pass through an Action before going to a JSP - this being a setup action as opposed to the one you hit after submitting from that JSP (though they are often different executes in the same dispatch action). Load your stuff into beans there and save it as a request attri

RE: Upgrading to Struts 1.1

2003-07-02 Thread Andrew Hill
No I didn't type it manaually So did you check your commons-logging.properties and make sure your spelling it correctly... its: 'apache' not 'apche'! -Original Message- From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, 2 July 2003 17:27 To: Struts Users Mailing

RE: [ANNOUNCEMENT] Struts 1.1 Final released

2003-06-30 Thread Andrew Hill
emes Tibor [mailto:[EMAIL PROTECTED] Sent: Monday, 30 June 2003 16:10 To: Struts Users Mailing List Subject: Re: [ANNOUNCEMENT] Struts 1.1 Final released Andrew Hill írta: > >However I don't care for releases, I just download nighties. > > >Im gonna need a lot of counselling to

RE: [ANNOUNCEMENT] Struts 1.1 Final released

2003-06-30 Thread Andrew Hill
t: Re: [ANNOUNCEMENT] Struts 1.1 Final released Andrew Hill írta: >WOOHOO! >Great work guys :-) > >So does anyone know when 1.2 will be released? ;-> > > I bet not in the next 2 ys. :) However I don't care for releases,

RE: [ANNOUNCEMENT] Struts 1.1 Final released

2003-06-30 Thread Andrew Hill
WOOHOO! Great work guys :-) So does anyone know when 1.2 will be released? ;-> -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED] Sent: Monday, 30 June 2003 15:39 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [ANNOUNCEMENT] Struts 1.1 Final

RE: Test Message!

2003-06-27 Thread Andrew Hill
Ignore what? I didnt see anything! -Original Message- From: manglu [mailto:[EMAIL PROTECTED] Sent: Saturday, 28 June 2003 05:51 To: [EMAIL PROTECTED] Subject: Test Message! Please Ignore! - To unsubscribe, e-mail: [EM

RE: [FRIDAY] Lichtenberg quote [WAS: RE: Deprecation of perform()]

2003-06-27 Thread Andrew Hill
You know its funny but I cant actually recall seeing that on 'late night'... oh hang on - Wrong Conan! Mongol General: We have won again. That is good! But what is best in life? Mongol Warrior: The open steppe, fleet horse, falcon on your wrist, wind in your hair! Mongol General: Wrong! Conan, wh

[FRIDAY] Lichtenberg quote [WAS: RE: Deprecation of perform()]

2003-06-27 Thread Andrew Hill
"I have often wondered how it is that every man loves himself more than all the rest of men, but yet sets less value on his own opinion of himself than on the opinion of others." -- Georg Christoph Lichtenberg Perhaps this is because love is based on idealism while opinion is more firmly rooted

RE: Question - how many of us?

2003-06-26 Thread Andrew Hill
240,000 eh? In other words, only about 1% of the users subscribe to the list, from which we can make the deduction that the other 99% do not need support for struts and have no trouble using it, so I guess that makes us list subscribers the intellectual bottom of the barrel? ;-) -Original Mes

RE: submitting back to opener page

2003-06-25 Thread Andrew Hill
My app had a similar requirement so what I did was have the popup submit directly to the action and then the action returned a forward to a page (displayed in the popup) that had javascript to invoke a refresh method in the opener window and then to close its own (popup) window. -Original Mes

RE: Can I pass an object through request object from Action class

2003-06-24 Thread Andrew Hill
Yes, you can put the resultset into a request attribute, forward to the jsp (make sure its a non-redirecting forward!), and have the code/tags in your jsp access the resultset. It is considered better practice to extract/wrap the resultset data with javabeans and forward these in the request attr

RE: Dynamic number of properties in an ActionForm?

2003-06-22 Thread Andrew Hill
The 'simple' way involves using properties that take an array If your columns are foo, bar, etc... you could have: setFoo(String[] foo) setBar(String[] bar) but... a *better* way would probably be to leverage the power of nested action forms - where you have a property on your form whose value is

RE: JBoss v.s. tomcat?

2003-06-22 Thread Andrew Hill
JBoss actually uses tomcat (or jetty, (etc...)) to provide its servlet container functionality. -Original Message- From: Sloan Bowman [mailto:[EMAIL PROTECTED] Sent: Monday, 23 June 2003 11:00 To: Struts-user MailingList Subject: JBoss v.s. tomcat? I have been using Tomcat for over a yea

RE: [BeanUtils] Map can or not?

2003-06-18 Thread Andrew Hill
or not? Andrew Hill írta: >Nah mate. Not using JSP. In this case Im actually traversing an xhtml DOM >and doing a getProperty() to get values when I encounter input elements >(etc...) based on the name attribute and using the result to set the value >attribute. (or checked

RE: My View Is Messy

2003-06-18 Thread Andrew Hill
ou like it? Thanks, Aaron Andrew Hill wrote: > >(serializing to XML just to reserialize to HTML seems like an unnecessary >performance hit) > > >Yeh, Id imagine it can get pretty expensive when the server is under heavy >load. > >I wouldnt want to do that for amazon

RE: My View Is Messy

2003-06-18 Thread Andrew Hill
(serializing to XML just to reserialize to HTML seems like an unnecessary performance hit) Yeh, Id imagine it can get pretty expensive when the server is under heavy load. I wouldnt want to do that for amazon.com type sites ... although actually for xslt, I think the modern browsers can underst

RE: [BeanUtils] Map can or not?

2003-06-18 Thread Andrew Hill
me, right? So maybe something like this would work: Quoting Andrew Hill <[EMAIL PROTECTED]>: > Cool. > > So if I wanted an ActionForm but the fieldname (or some of them) on it were > determined only at runtime I could simply make all the 'runtime' fields be > nested p

RE: [OT] 101 was: Re: Good Struts-tiles example?

2003-06-18 Thread Andrew Hill
I think a lot of course structures at universities and colleges will use that as a course number. ie: Computer Science 101 hmmm How long till universities offer "Struts 101" as a standard unit? ;-) Ive learnt more comsci concepts since I started using struts a year ago than I ever did at Uni o

RE: [BeanUtils] Map can or not?

2003-06-18 Thread Andrew Hill
To: Struts Users Mailing List Subject: Re: [BeanUtils] Map can or not? Andrew Hill írta: >Are PropertyUtils.populate() and getProperty() (etc...) smart enough to work >with a Map instead of a bean and use the property name as a key

[BeanUtils] Map can or not?

2003-06-18 Thread Andrew Hill
Quick yes/no question for the more experienced bean utilisers out there: Are PropertyUtils.populate() and getProperty() (etc...) smart enough to work with a Map instead of a bean and use the property name as a key into it? - To

RE: About prepopulating a form...

2003-06-18 Thread Andrew Hill
Yep. If you dont specify it in the mapping then struts wont know to create/retrieve the form... Its quite common to have two actions associated with a form - one for preparing the form for display and the other for handling the submitted form after display. (Often the two roles will be combined int

RE: About prepopulating a form...

2003-06-18 Thread Andrew Hill
The problem I have with this is that in the action class the form has not yet been initialized (since it is before form gets displayed and submitted, of course) and therefore is null. Shouldnt be. The request processor will have instantiated your ActionForm bean for you based on whats in the ac

RE: few questions from new struts user

2003-06-17 Thread Andrew Hill
1.) I vaguely recall seeing somewhere that Camino does this? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, 17 June 2003 21:31 To: Struts Users Mailing List; Adwait B Subject: Re: few questions from new struts user About... 1. Replacing html tags... I

RE: Same boring copy/paste technique

2003-06-17 Thread Andrew Hill
You would probably benefit from investing some time into trying to learn tiles. -Original Message- From: Alen Ribic [mailto:[EMAIL PROTECTED] Sent: Tuesday, 17 June 2003 15:36 To: Struts Users Mailing List Subject: Same boring copy/paste technique Hi Everyone, I have many functions in m

RE: endless actionforms and valueobjects questions

2003-06-17 Thread Andrew Hill
Except for boolean properties that back a checkbox field, you should NOT be using other than strings in your form beans. Id go all the way and say you should use Strings for these too. I dont see any reason to treat checkboxes differently (well apart from the reset issue) - and while its a check

RE: [OT] FRIDAY: HTML Checkboxes SUCK!!!

2003-06-16 Thread Andrew Hill
validation with the validator? thanks, Brian - Original Message - From: "Andrew Hill" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, June 16, 2003 4:23 AM Subject: RE: [OT] FRIDAY: HTML Checkboxes SUCK!!! > +1 &g

RE: multiple request / query parameters in struts-config.xml

2003-06-15 Thread Andrew Hill
ruts Users Mailing List Subject: Re: multiple request / query parameters in struts-config.xml hmm, actually I just looked at my config file and I didn't forget the ';'. I only forgot it when posting this question. Any other suggestions? Andrew Hill wrote: > > > Note

RE: OT FRIDAY: Take a break with struts users

2003-06-15 Thread Andrew Hill
Yeh yeh yeh. I make 6 figures a month mate... 7 if you count the decimal point... -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Friday, 13 June 2003 22:59 To: 'Struts Users Mailing List' Subject: RE: OT FRIDAY: Take a break with struts users I feel your pain, ma

RE: [OT] FRIDAY: HTML Checkboxes SUCK!!!

2003-06-15 Thread Andrew Hill
+1 Im thinking of doing the same. Checkboxes are evil. Another bonus to using dropdowns instead is that if you really need the user to think about whether that field should be true or false then you can add an extra empty choice that doesnt pass validation. That way they will be forced to set a v

RE: Newbie Q: Missing parameters with multipart/form-data

2003-06-13 Thread Andrew Hill
specifically Actions but not Forms Ahh... which is of course why there are no request parameters... (Assuming 1.0.2 populates its multipart forms the same way!) Ive not actually played with 1.0.2 so I dont know the intricate details, but I can tell you that it is a little bit different in the wa

RE: Newbie Q: Missing parameters with multipart/form-data

2003-06-13 Thread Andrew Hill
I havent really grokked what it is your doing here, but can share an insight into multipart forms using struts that you probably already know and probably wont help you - but maybe you can relate it to your situation? HttpServletRequest parameters for multipart forms as provided by the servlet api

RE: multiple request / query parameters in struts-config.xml

2003-06-12 Thread Andrew Hill
Note the ';' in the above. (proper xml terminates its entities with ; while html doesnt need it) -Original Message- From: Rob [mailto:[EMAIL PROTECTED] Sent: Friday, 13 June 2003 14:23 To: Struts Users Mailing List Subject: multiple request / query parameters in struts-config.xml I hav

RE: OT FRIDAY: Take a break with struts users

2003-06-12 Thread Andrew Hill
Bah! Theres nobody there! ... boring... -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Friday, 13 June 2003 04:39 To: Struts Users Mailing List Subject: RE: OT FRIDAY: Take a break with struts users try: irc.darkmyst.org 6667 #struts_users Brandon Goodin

RE: [OT] Java Trivia

2003-06-12 Thread Andrew Hill
Well it is [FRIDAY] the 13th... -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Friday, 13 June 2003 01:54 To: 'Struts Users Mailing List' Subject: RE: [OT] Java Trivia And thanks for making it worse. -Original Message- From: Steven Sajous [mailto:[EMAIL

RE: PHP version of Struts

2003-06-11 Thread Andrew Hill
ave page designers to train... then it is easier to teach them jstl than php. No? Brandon Goodin -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 11:27 PM To: Struts Users Mailing List Subject: RE: PHP version of Struts It may sound a little cyn

<    1   2   3   4   5   6   7   8   9   10   >