Re: Problem using Servlet 2.3 DTD with Struts

2002-12-05 Thread Mark Woon
Weber Timo wrote: Hi, there seems to be a problem with Xerces. Have a look at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13282 Thanks! That did the trick! -Mark -- To unsubscribe, e-mail: For additional commands, e-mail:

Problem using Servlet 2.3 DTD with Struts

2002-12-04 Thread Mark Woon
Hi all. I've been wanting to use filters lately and finally got around to trying it out, but am having trouble with my web.xml file (which only has Struts related entries) and Struts. The first thing I did was update the DOCTYPE in my web.xml to use web-app_2_3.dtd. Now, I'm getting: Parse F

Re: redirection from an action/ refreshing page

2002-03-05 Thread Mark Woon
form on the successpage.jsp. > > So, I am wondering, does anyone know how to prevent this from happening? > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mai

Re: MultipartIterator

2002-02-28 Thread Mark Woon
Mark Woon wrote: > but am getting ServletExceptions instead ("Problem while reading > request: The maximum length of -1 bytes has been exceeded") eventhough > I have maxLength set to 10240 on . Oops. Just realized maxlength refers to characters entered into input field an

MultipartIterator

2002-02-28 Thread Mark Woon
Can anyone (Ted?) confirm or deny if MultipartIterator is working properly in Struts 1.0.2? I've seen reports in the archive that it's broken in 1.0.1, but the changelog for 1.0.2 has not noted that this has been fixed. I'm not getting the NPE that the reports were complaining about, but am get

Re: JSP size optimizations

2002-02-19 Thread Mark Woon
Dave J Dandeneau wrote: > We are using the <%@ include file="" %> tag and not ...>. Which means you aren't using dynamic includes. As far as the limit is concerned, you might as well have it inline if youre using <%@ include file %>, since that's what it does (put it inline). -Mark >

Re: is ActionForm required for Action even if no form on page?

2002-02-19 Thread Mark Woon
Adam Hardy wrote: > How do I create a mapping that doesn't need an ActionForm? Could you give me the >XML? Currently I've got the following with a dummy form and an empty dummy class, but >if I get rid of the name attribute, it gives an ActionError: > >type="com.siemens.csw.evote.QuestionSe

Re: Quick question about iterators & beans on a page

2002-02-16 Thread Mark Woon
Adam Hardy wrote: > On Sat, 16 February 2002, Mark Woon wrote: > > > (2) is it thread-safe? Guess it must be, but why? Does it all stay in one thread >of the main struts controller servlet, and out of reach of any other threads? > > > > Depends on what you mean. If

Re: Quick question about iterators & beans on a page

2002-02-16 Thread Mark Woon
Adam Hardy wrote: > (1) if you put it in the request, then it will get cleaned up by the server at the >end of the page automatically, but in the session it will stay until the session >dies, right? Yup. But you can also clean it out of the session yourself. > (2) is it thread-safe? Guess i

Re: action without form

2002-02-15 Thread Mark Woon
"Galbreath, Mark" wrote: > Why would you do this (no joke)? To do some sort of filtering/redirecting on the request. -Mark -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: [OT] Poolman problem

2002-02-15 Thread Mark Woon
Mikkel Bruun wrote: > do you know where i can get a more stable build then??? Same place you got 2.1b1: http://www.codestudio.com. Another connection pool implementation: http://www.bitmechanic.com/projects/jdbcpool/. -Mark -- To unsubscribe, e-mail: For additio

Re: ActionForm Defaults/Updates Question

2002-02-14 Thread Mark Woon
[EMAIL PROTECTED] wrote: > > In the end, I've just grabbed the Form bean from the pageContext > > Pardon my ignorance but can you tell me the syntax in your JSP page to do > just that above?I think I'll need to be doing the same thing. <% MyForm form = (MyForm)pageContext.getAttribute("form

Re: Datetime validation taglib for struts?

2002-02-14 Thread Mark Woon
[EMAIL PROTECTED] wrote: > Thanks Mark for your answer. > > I was just curious how most others here choose "when" to perform things > like date/numeric validation? You would always want to perform in server-side, once you've received the user's input, regardless of whether you have JS validatio

Re: Datetime validation taglib for struts?

2002-02-14 Thread Mark Woon
[EMAIL PROTECTED] wrote: > Does there exist a taglib or a way to perform date/time validation on an > input form WITHOUT having to use Javascript in the form? [snip] > I don't see any that will actually perform validation on a field after > focus has been lost... I don't see how you could poss

Re: ActionForm Defaults/Updates Question

2002-02-14 Thread Mark Woon
[EMAIL PROTECTED] wrote: > 1. What is the best way to load default values into an ActionForm bean that > will show up the first time a user visits the site and pulls up a jsp page? You know, this question has come up a bunch of times, but I've never seen any good responses. If I've got a form i

Re: [OT] Poolman problem

2002-02-14 Thread Mark Woon
Ted Husted wrote: > You probably should bring this up to the Poolman team. Alas, the PoolMan "team" (one guy) is no longer working on PoolMan. As to the problem: you probably have to turn off . You should probably use true as well. You're using 2.1b1, which is definitely a beta1, and buggy.

Re: Javadoc for Struts Version 1.0

2002-02-13 Thread Mark Woon
David W Palmieri wrote: > When I go to the link under "Getting Started", it says "Apache Struts > Framework (Version 1.1-dev)". Where is Version 1.0? Hmm... They changed stuff. Go to http://jakarta.apache.org/struts/api-1.0/index.html. Struts maintainers, could you please fix that link? -Ma

Re: Javadoc for Struts Version 1.0

2002-02-13 Thread Mark Woon
David W Palmieri wrote: > I'm using Struts Version 1.0. I've noticed that the Javadoc available via > the Struts home page is for Version 1.1. Where can I find the Javadoc for > Version 1.0? Look carefully. There are two javadoc links. You want the javadoc link under "Getting Started," not t

Re: Loading pdf files using jsp

2002-02-12 Thread Mark Woon
"Galbreath, Mark" wrote: > Adobe used to have a Java library but there were so many issues with it (and > Adobe did not support it) that they removed it from their downloads. > > http://support.adobe.com/devsup/devsup.nsf/docs/51759.htm > > I would suggest a Google search, however, because I know

Re: Acton without a Form

2002-02-08 Thread Mark Woon
t; > > -- > > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- ~~Mark Woon~~~ If you're not part of the solution, you're part of the precipitate.

Re: Using JavaScript in the JSP Pages

2002-02-08 Thread Mark Woon
ed even though the credit card is not validated. > How I can prevent this from happening. > > Thanks, > Satish > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- > To uns

Re: bean write tag's format

2002-02-08 Thread Mark Woon
Jay sissom wrote: > This has been very confusing for our users. The documentation on the web > site doesn't match the released version. Would it be possible to have > documentation for the release seperate from documentation for the nightly > versions? It seems like it is going to be a very lo

Initializer servlet?

2002-02-08 Thread Mark Woon
Hello. I've seen a few posts about initializer servlets that basically does whatever setup/housekeeping work needs to be done for the application. How do you guarantee that this servlet will run before anything else? Is this something you can define within your servlet container? If so, does any

Re: ActionErrors

2002-02-08 Thread Mark Woon
Steve Earl wrote: > It's nearly working (isn't that always the way!!) - > unfortunately I'm getting some null values coming out around the errors > which I don't yet understand - see below: > null > * Please pick an arrival city you muppet > * Please enter a fare > * Please pick a departure city

Re: Struts scalability?

2002-02-08 Thread Mark Woon
Kenneth Ljunggren wrote: > Anyone that have used Struts in any systems that required very high > scalability? See http://husted.com/struts/resources/performant.htm. Also search the mailing list archive, there was a thread a while back listing sites that were using Struts (subject was "Things th

Re: Poolman Help?

2002-02-07 Thread Mark Woon
Jason B Menard wrote: > Without examining your code it is hard to say exactly where the problem is, > but basically it doesn't sounds like something is going on with your > Connection object (reusing it when you shouldn't, goes out of scope, not > closing it when you should, something along those

OT: Bug in PoolMan's ResultSet

2002-02-06 Thread Mark Woon
I know this isn't a PoolMan list, but this is the only place I know where PoolMan users seem to hang out. Please forgive this off-topic post. I've downgraded to the last stable version, PoolMan 2.04, and the problems I was having with 2.1b1 has gone away. Now, I'm hitting a bug that can be foun

OT: Poolman Help?

2002-02-06 Thread Mark Woon
Hi all... I'm hoping someone can help me out with a problem I'm having with Poolman 2.1b1. I have it set up, and everything seems to work fine the first time I access the database, but on subsequent connections, I get an NPE: java.lang.NullPointerException at oracle.jdbc.dbaccess.DBDataSetImpl

OT: PoolMan looking for transaction.interoperability property?

2002-02-01 Thread Mark Woon
Hi all. After seeing so many people on the struts list recommend PoolMan, I decided to check it out for myself. After downloading and installing PoolMan 2.1-b1, I'm now getting these errors on calling PoolMan.findDataSource(): Warning: unable to read transaction.interoperability config propert

Re: Poolman benefits? (was Re: Connection Pooling)

2002-02-01 Thread Mark Woon
Thanks for the info. Out of curiosity, what version of Poolman and Oracle thin client are you using? We have a policy here that frowns upon using anything marked as beta on our production systems, and I'm wondering about the stability of the beta Poolman 2.1. Should I be using the older 2.0.4 v

Re: Connection Pooling

2002-02-01 Thread Mark Woon
I guess my real question is whether Poolman's implementation is better than Oracle's implementation. Has anyone done any performance testing of any sort along these lines? Larry Meadors wrote: > You could use Oracle's connection pooling. You can use either the oci or > thin client (in fact, th

Poolman benefits? (was Re: Connection Pooling)

2002-01-31 Thread Mark Woon
cahana wrote: > Have you tried Poolman to do your connection pooling? I've only taken a cursory look at Poolman and I'm a little unclear as to what benefits it provides. I'm using an Oracle server, and using the Oracle JDBC thin client to connect to it. The thin client has support for connecti

Re: Problem With Forwarding to a non-HTML file

2002-01-31 Thread Mark Woon
"Tingleff, Sam" wrote: > I've been working on this a little. You can add a header: > > Content-Disposition: attachment; filename=mypdf.pdf > > Seems to work on ie 5.5, haven't tested other browsers. Thanks, this did the trick. Works in Netscape (Windows and Linux) as well. -Mark -- To unsu

Re: opening with MS-EXCEL

2002-01-30 Thread Mark Woon
Syed Niaz wrote: > Hi > > Can anyone send me a sample code for opening an MS-EXCEL using struts . > > ... or some tips on how/where to set the content-type ,etc You can either use: request.setContentType("application/msexcel"); in your Action (or a scriptlet), or <%@ page contentType="applica

Re: Problem With Forwarding to a non-HTML file

2002-01-30 Thread Mark Woon
for your situation. > > -Max > > - Original Message - > From: "Mark Woon" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Tuesday, January 29, 2002 11:28 PM > Subject: Problem With Forwarding to a non-H

Problem With Forwarding to a non-HTML file

2002-01-29 Thread Mark Woon
Hi all. I'm using an Action to figure out which document I need to serve, and the document could be a pdf file. The problem is that when I forward to a PDF file, the browser still thinks that it's on the action (get.do), and tries to save the file as get.do. I've set the content-type so it'll s

Re: Required attributes for 'Action' tag in struts-config.xml

2002-01-25 Thread Mark Woon
Sriram Nookala wrote: > I have the following action mapping in my struts-config.xml: > > type="com.proteusmobile.actions.CampaignMainAction" > If this is a cut-and-paste job, your open action tag doesn't have a trailing >. > Isn't it possible to have an action mapping with just the "

Re: welcome-file-list

2002-01-25 Thread Mark Woon
Anna Chen wrote: > Can I put an action instead of a page in the welcome-file-list like: > > /do/login > Nope. The servlet container will look for an actual file at that path. You need to have a index.html/jsp that forwards to your login page. For example,

Re: Adding/Modifying parameters in the Request object

2002-01-25 Thread Mark Woon
Elena Yee wrote: > I'm also running into a similiar problem, but need to add parameters with > large chunks of data in a redirect call. Is there another way to do this > besides adding it in the url (which doesn't work because of the data size) ? If you need to pass more data that can fit in th

Re: How to do an outcall but return to the session?

2002-01-23 Thread Mark Woon
the external resource a return URL with that already has the session id in it. -- ~~Mark Woon~~~ If you're not part of the solution, you're part of the precipitate.

Re: persistance for wizard type forms

2002-01-23 Thread Mark Woon
Ted Husted wrote: > Because when you go from one page to another in a wizard, the properties > from the prior page can be reset. Ah. Whoops. Didn't read the subject line, and didn't get the context. -Mark -- To unsubscribe, e-mail: For additional commands, e-mai

Re: persistance for wizard type forms

2002-01-23 Thread Mark Woon
Ted Husted wrote: > Be sure your reset() method is not blindly resetting the properties. The > default reset() does nothing, but people often have it reset everything. > The only important thing to reset() is the checkboxes, since the > browsers do not resubmit these if they are unchecked. It's

Re: ActionError parameters syntax

2002-01-22 Thread Mark Woon
Olivier Dinocourt wrote: > I have a key/value pair for the error message in my > ApplicationResources.properties. Should I use the MessageFormat syntax (blah > {0} blah {1} blah) for the value, or another Struts-specific syntax ? Struts uses the MessageFormat syntax. There is no Struts-specific

Scriptlet printing out custom tags?

2002-01-21 Thread Mark Woon
Hi all... Is there a way to have a scriptlet in a JSP file print out custom tags () and have the custom tag get evaluated? Thanks, -Mark -- To unsubscribe, e-mail: For additional commands, e-mail:

Question: ActionForm specific ApplicationResources.properties?

2002-01-17 Thread Mark Woon
Hi all... I've asked this before, and got no response. But third time's a charm, eh? I'd appreciate a quick "this isn't supported" if that was the case before I started implementing my own custom solution... Is there a way to have Action/ActionForm specific resources? Instead of dumping it a

Re: focus failing in NS on linux?

2002-01-17 Thread Mark Woon
> This may depend on how your focus style is set with your window manager. I seem to >remember that when I use sloppy focus that netscape linux didn't always focus right. > > Jeff > > -Original Message- > From: Mark Woon [mailto:[EMAIL PROTECTED]] > Sent: Wedn

Re: Action Passing a Class Instance?

2002-01-17 Thread Mark Woon
Mark Galbreath wrote: > Thanks so very much! I have found very little on how the Struts API can > actually be used in practice, and even less on struts-config.xml. I > actually assumed that that is how it must be done. That being said, I still > don't have a clue as to the actual implementatio

Re: Action Passing a Class Instance?

2002-01-17 Thread Mark Woon
Mark Galbreath wrote: > Anyway, I need to pass control from one class to another in a web app > something like: > > public String getNextPage() throws Exception { > Command nextCommand = new ListEquipmentAction(); > nextCommand.setAttributes( this); > nextCommand.execute(); > > re

Re: bug -> form taglib

2002-01-17 Thread Mark Woon
"Tom Klaasen (TeleRelay)" wrote: > Hmm, maybe. But Struts is for rendering html, and I'm pretty sure xhtml > and html aren't entirely compatible... (how does your IE3.0 react on > "" ?) I've been using straight XHTML for a while now with no problems. The way to get around older browsers getting

focus failing in NS on linux?

2002-01-16 Thread Mark Woon
Is anyone else seeing weirdness with the focus attribute to the tag? It works fine for me on Windows (NS and IE), but on Linux, NS never grabs the focus properly. Is this a known bug? I've attached the html result. It all looks good to me, but yet... Any thoughts? Thanks, -Mark -- To un

Re: Fw: PLEASE, LOOK AT THE LITTLE GIRL'S PICTURE THEN FORWARD

2002-01-15 Thread Mark Woon
John McClain, I know you meant well, but you just forwarded more spam. IMO it is totally inappropriate to forward this kind of stuff to a dev mailing list, but that's another story. Don't believe everything you read. This has been marked as an urban legend: http://www.snopes2.com/inboxer/child

Re: Subclassing ActionMapping

2002-01-15 Thread Mark Woon
Ted Husted wrote: > You can create your own ActionMapping subclass, and specify that in the > web.xml. > > If it uses additional methods, you would type-cast the mapping in the > perform to access those, just as you type-case the ActionForm to get to > its extended properties. > > To set new prop

struts-example question

2002-01-14 Thread Mark Woon
In struts-example, there's a note about removing the bean from the session: // remove the obsolete form bean if (mapping.getAttribute() != null) { if ("request".equals(mapping.getScope())) { request.removeAttribute(mapping.getAttribute()); } else { session.rem

Loading data for

2002-01-14 Thread Mark Woon
Hi all... What's the standard way of loading a list of options from a database for use within the tag? Do you normally just do it within the JSP page? Is there a way to get the ActionForm to load it? Or do you do something completely different? Thanks, -Mark -- To unsubscribe, e-mail: <

ActionForm specific ApplicationResources.properties?

2002-01-14 Thread Mark Woon
Hi all... Is there a way to have ActionForm specific resources? Instead of dumping it all in one ApplicationResources.properties, can I have multiple .properties files? I'd like to associate a specific ActionForm with a specific .properties file, instead of dumping all my resources into one fil

ActionForm specific ApplicationResources.properties?

2002-01-12 Thread Mark Woon
Hi all... Is there a way to have ActionForm specific resources? Instead of dumping it all in one ApplicationResources.properties, can I have multiple .properties files? Thanks, -Mark -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: SSL and actions: some secure and some not possible?

2002-01-11 Thread Mark Woon
Adam Grohs wrote: > Not sure if you have solved this problem yet, but if not, please let me > know, I have an http filter, ie servlet 2.3 filter that does just as you are > asking. I'd be interested in seeing this too... -Mark -- To unsubscribe, e-mail: For additi

Accessing ActionForm in JSP page?

2002-01-08 Thread Mark Woon
Hi all... How can I access an ActionForm object and play with it in Java from within a JSP page? I need to perform some calculations on the properties of an ActionForm. I'm currently sticking it into the request object. Is there a better way? Struts must have taken care of this for me one way

Re: Questions on Actions

2002-01-07 Thread Mark Woon
[EMAIL PROTECTED] wrote: > 1. The "control jsp" decides beforehand whether "a.jsp" or "b.jsp" will be > printed and saves this value in session. > 2. Forwards to "print header.jsp" which after printing forwards back to > your initial "control jsp". Exactly. How do I accomplish this step? I s

Re: Questions on Actions

2002-01-07 Thread Mark Woon
sp or d.jsp should be printed? If so, how? -Mark > - Original Message - > From: "Mark Woon" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Tuesday, January 08, 2002 12:34 PM > Subject: Re: Questions on Actions > > &

Re: Questions on Actions

2002-01-07 Thread Mark Woon
> -- Building Java web applications with Struts. > -- Tel +1 585 737-3463. > -- Web http://www.husted.com/struts/ > > Mark Woon wrote: > > > > Hello all... > > > > I've got a couple more questions I'm hoping someone can help me with: > > > >

Re: Page reload problem

2002-01-07 Thread Mark Woon
David Bolsover wrote: > I think I need a mechanism to force a reload of Frame1 when Frame2 is > updated with welcomeback.jsp but I am unsure how to do this. > > Any help? One solution would be to use Javascript in Frame2 to reload Frame1. -Mark -- To unsubscribe, e-mail:

Another Question on Actions

2002-01-04 Thread Mark Woon
Hello all... Last question tonight, I promise: Can an Action class forward to/include a JSP or HTML page that is neither listed in nor defined as a legitimate forward in an tag in struts-config.xml? Thanks, -Mark -- To unsubscribe, e-mail: For additional comman

Questions on Actions

2002-01-04 Thread Mark Woon
Hello all... I've got a couple more questions I'm hoping someone can help me with: 1) What's the difference between and if they both target a JSP page? Is it the same as vs. (I don't see how it could be)? 2) After an or , how do I specify what the next to take should be? Must it be st

index.do as welcome file?

2002-01-04 Thread Mark Woon
Mark Woon wrote: > I've just started looking at Struts, and I'm trying to figure out how to > set an action as the default file for the webapp? For example, I have > an index.do Action, and I'd like that served by default instead of > index.htm[l]. Is this poss

Documentation for struts-config.xml?

2002-01-04 Thread Mark Woon
Hello all... Another newbie question: is there any documentation for struts-config.xml? Thanks, -Mark -- To unsubscribe, e-mail: For additional commands, e-mail:

Newbie question

2002-01-04 Thread Mark Woon
Hello, I've just started looking at Struts, and I'm trying to figure out how to set an action as the default file for the webapp? For example, I have an index.do Action, and I'd like that served by default instead of index.htm[l]. Is this possible? Thanks, -Mark -- To unsubscribe, e-mail: