Re: [Tiles] getAsString only works once for a given value?

2002-09-19 Thread Gemes Tibor
2002. szeptember 18. 19:07 dátummal Martin Cooper ezt írtad: Probably because of different tag handler reuse strategies being used by the container. I'm using Resin 2.1.4. I'm using tomcat 4.0.4 and 4.1.10. Anyway if it is not working with even one standard implementation, it is a bug. Bye

Re: [OT] Schwing!

2002-09-19 Thread micael
Core Graphics, Sun, David Geary. That's the man! There are a lot of resources, but David has a sense of balance in things that I like. At 10:10 PM 9/18/2002 -0500, you wrote: Any good resources for learning to do GUI development with Swing? I gather it's favored over AWT nowadays. I did

RE: [OT] Schwing!

2002-09-19 Thread micael
Agreed! It seems as if things are just getting cooler and cooler in Java by the day. At 11:52 PM 9/18/2002 -0400, you wrote: Thinlet...WOW.very nice. I think I'll be able to use this on my next project. James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open

Re: [STRUTS] struts-el success case history

2002-09-19 Thread kiuma
I attached a sample page, but ml doesn't accept attachments. Do some1 want the sample page and the compiled libs ? Anand Sharma wrote: Where can I get more info on struts-el? Thx Anand --- Anand Sharma Global AS-IT Support team Cisco Systems

Backtracking Breadcrumbs

2002-09-19 Thread Howard Miller
Hi, Two slightly different yet related questions. Does anybody have an elegant way to forward to the page that called the page that has just been processed arbitrarily. A picture being worth a thousand words [Page ?] | [Page ? Action] | [Page X] | [Page X Action] | [Page ?] The point being

bean:write with null beans...

2002-09-19 Thread Michael Delamere
Hi, because we are integrating struts with our content management system, we are not always able to make calls directly to ActionServlets (because then you can´t navigate through the CMS). That means that some beans might not exist before the form has been sent off. i.e. 1) in CMS using jsp

Tiles definition (help)

2002-09-19 Thread Heligon Sandra
I want to use a common look for each page so I defined a file classicLayout.jsp. Then for each page I define a new entry site.name page.page in Tiles.xml where I point on a specific body for example login_body.jsp for the login page. But I don't understand well I

Control a field in an HTML page

2002-09-19 Thread BARADAT Benoit
Hi I would like to control field in an HTML page (like a valid date) by using a Struts tag Is it possible ? How can I do ? Benoit Thanks in advance -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Control a field in an HTML page

2002-09-19 Thread Andrew Hill
You might like to take a look at the Struts Validator as it provides a lot of this functionality. http://jakarta.apache.org/struts/userGuide/dev_validator.html The documentation seems a bit sparse though! Anyone out there know where to find a more complete reference to this extension?

RE: Dynamic configuration?

2002-09-19 Thread Kevin Roast
Does anyone know how you would do this sort of dynamic configuration in 1.1? I am having trouble seeing how you write Struts based apps where you need to add page definitions from a database at runtime. Any ideas? Thanks, Kevin -- +44 (0)1628 589125 [EMAIL PROTECTED] -Original

Access Session-Object from Form

2002-09-19 Thread Marc.Hofer
Title: Access Session-Object from Form Hi I think I'm at the point where I need professional help: Question: Is it possible to access a Session-Object from an ActionForm?? Why: I want to read some informations from the session-object which allow me to decide how the answers on

RE: Access Session-Object from Form

2002-09-19 Thread Jon.Ridgway
Hi Marc, The normal approach (recommended I think) is to go through a 'load' action. This action would have access to the session object. In the action you setup your form bean with the required data and then forward onto the JSP. Have a look at Ted Husted's site www.husted.com/struts ; here

RE: Control a field in an HTML page

2002-09-19 Thread Jon.Ridgway
Hi Benoit, I think you might want to take a look at the Struts-validator. This allows you to validate input (date validation is included by default). It want stop the user entering an invalid date, but it will detect invalid dates upon submit of a form - return the user to the form and ask them

Running struts app on WebSphere 4

2002-09-19 Thread Darren McGuinness
Hi, Have developed a web app using the struts framework, using JBuilder and it worked fine using TomCat4 within JBuilder. Now I need to migrate it to a WebSphere server and I've amended the required Websphere files/etc but I keep getting this error when starting up the server.: [9/18/02

Running struts app on WebSphere 4

2002-09-19 Thread Darren McGuinness
Hi, Have developed a web app using the struts framework, using JBuilder and it worked fine using TomCat4 within JBuilder. Now I need to migrate it to a WebSphere server and I've amended the required Websphere files/etc but I keep getting this error when starting up the server.: [9/18/02

Nothing? Rien? Nichts? Null? (was: How to define a context attribute key for a message-resource under Struts 1.0.2?)

2002-09-19 Thread Sann, Stephan
I wrote on 17.09.02, 08:04 : I would like to use the bundle-attribute from the html:errors-Tag, but I didn't find out how to define a context attribute key for a message-resource under Struts 1.0.2 jet. On the web I found [...] Not even a RTFM??? Best regards Stephan -- To unsubscribe,

RE: onclick in html:radio tag doesn't work

2002-09-19 Thread Galbreath, Mark
I filter everything EXCEPT [OT] -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 10:45 PM Didn't my reply on this get sent to all the list? (Or is everyone filtering me these days!) I mean sure, most of my posts are

RE: [OT] Schwing!

2002-09-19 Thread Galbreath, Mark
Yep - get John Zukowski's Definitive Guide to Swing for Java 2, 2d. ed. (APress 2000). Zukowski also wrote Java Collections (APress 2001), an indispensable handbook on any Java programmer's desk. Mark -Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

Newbie Question

2002-09-19 Thread Edgar Dollin
This is a little off topic, my apologies. Has anyone gotten Eclipse working so you can debug the JSP and / or the Java classes? On resin? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: JSF JSTL STRUTS

2002-09-19 Thread Galbreath, Mark
Reid's still in prison. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 12:59 AM Reid? Is that you again? James Mitchell Software Engineer\Struts Evangelist -Original Message- From: Brijesh NK [mailto:[EMAIL PROTECTED]]

RE: Nothing? Rien? Nichts? Null? (was: How to define a context attribute key for a message-resource under Struts 1.0.2?)

2002-09-19 Thread Galbreath, Mark
Struts 1.0.2. jet? Is this a Microsoft adaptation? -Original Message- From: Sann, Stephan [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 2:03 AM I would like to use the bundle-attribute from the html:errors-Tag, but I didn't find out how to define a context attribute

RE: [OT] Schwing!

2002-09-19 Thread Galbraith, Paul
I'd second this...vi and javac until you feel comfortable. Then you can worry about figuring out that your generator is doing (and not doing) for you. FWIW, I still refer to the o'reilly swing tome. Old, but still very applicable (and very thorough). -Original Message- From: Andrew

Re: DBCP Pooling Example App?

2002-09-19 Thread V. Cekvenich
I just asked similar question in commons. Download DBCP from commons, it comes with samples. V. Matt Raible wrote: I am trying to migrate from using Tyrex 0.9.7 (EnabledDataSource) to DBCP in Tomcat 4.1.10. I can get an initial connection, but then it fails with the following issue:

RE: Some ActionClasses Are Invoked Twice, Why?

2002-09-19 Thread Mazza, Glen R, PERSCOM
This has happened to me--still haven't found a good solution. If the browser is IE, under some circumstances it will post/get a request twice for (in my case) PDF files. This is apparently not a Struts issue. I would test your code under a different browser, and then a different container than

Re: Control a field in an HTML page

2002-09-19 Thread BARADAT Benoit
thanks I have an another question: Where is the Struts-validator.war ? I cant't find it in my struts file Thanks in advance - Original Message - From: Jon.Ridgway [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, September 19, 2002 11:35 AM Subject:

RE: Some ActionClasses Are Invoked Twice, Why?

2002-09-19 Thread Dave Weis
Print out the user agent in both cases. I think that IE does that to determine the mime type for an unknown extension (rather than use the server mime type like they should). I think the user agent string tha the browser sends is different in the type-determining case. You can just match on that

Re: JSF JSTL STRUTS

2002-09-19 Thread Joe Germuska
At 9:56 AM +0530 2002/09/19, Brijesh NK wrote: Hi, I was going through the JSF tutorials. After going through few chapters i feel that the JSF finctionality can be implemented using JSTL and Struts, why do we need another thechnology with different name. I'd suggest reading the public draft of

Re: Newbie Question

2002-09-19 Thread Will Jaynes
There isn't a plugin for debuggin the JSP pages, at least not in Resin, but I debug my code and the java generated classes by using the remote debuggin. Here's the FAQ for this: http://www.eclipse.org/eclipse/faq/eclipse-faq.html#users_18 Note: As a note in the FAQ mentions, be sure to use

I seek a sample databae crud application

2002-09-19 Thread elvisness
Does anyone have a working example of of a Struts application that does simple CRUD routines on a database. I'm looking for an example of how to a) handle the database connections (pooling) b) process create/read/update/delete database requests I'm not asking for someone to write one for me,

jsp-to-action-to-action: when does the request die

2002-09-19 Thread elvisness
I want to do something this: (1) (2) (3) /edit.do --- JSP --- /save.do --- /edit.do (1) Action '/edit.do' preps and displays the JSP (does a mapping.finfDorward()) (2) JSP is submitted and POSTs to action, '/save.do' (3) '/save.do' processes the save and does a

Re: AAAARGH! SOMEONE! How do I set the default selection when I'm using html:options?

2002-09-19 Thread Jan Fetyko
One more advice to make your life easier: Why bother getting the states from the database for every form ( or even the same form ) when it's accessed ? I think the better way is to load the states when the app starts up and store it in the application bean in format that you can get the list

RE: AAAARGH! SOMEONE! How do I set the default selection when I'm using html:options?

2002-09-19 Thread Galbreath, Mark
Aboslutely - must have been brain-dead for not thinking of that (especially because that's exactly what I do!). -Original Message- From: Jan Fetyko [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 8:00 AM To: Struts Users Mailing List Subject: Re: RGH! SOMEONE! How do I

Re: Some ActionClasses Are Invoked Twice, Why?

2002-09-19 Thread Eddie Bush
Let's hear it for M$. Gotta love it when a vendor makes a special case for you to take into account ... especially when it doesn't have to be there! Dave Weis wrote: Print out the user agent in both cases. I think that IE does that to determine the mime type for an unknown extension (rather

RE: Automated Site testing

2002-09-19 Thread Darren Hill
Check this out ... http://strutstestcase.sourceforge.net/ Darren. -Original Message- From: gautam [mailto:[EMAIL PROTECTED]] Sent: September 19, 2002 2:14 AM To: Struts Users Mailing List Subject: RE: Automated Site testing Check out Cactus. http://jakarta.apache.org/cactus/

Re: [OT] Schwing!

2002-09-19 Thread Eddie Bush
Thanks for all your replies! Galbreath, Mark wrote: Yep - get John Zukowski's Definitive Guide to Swing for Java 2, 2d. ed. (APress 2000). Zukowski also wrote Java Collections (APress 2001), an indispensable handbook on any Java programmer's desk. Mark -Original Message- From: Eddie

Re: jsp-to-action-to-action: when does the request die

2002-09-19 Thread Dave Derry
The second action has access to it; if you mean save.do is 1 edit.do is 2. If edit .do forwards to somethingelse.do, it also has access to it. The request 'dies' when the action sends the response to the client. Dave Derry - Original Message - From: [EMAIL PROTECTED] I want to do

RE: AAAARGH! SOMEONE! How do I set the default selection when I'm using html:options?

2002-09-19 Thread Day, Michael-IBM/TT
This is probably one of the stupidest questions, but I don't know how to do something once during application startup. For instance, if I wanted a bean to hold a list of states, how would I create that once during startup? -Original Message- From: Jan Fetyko [mailto:[EMAIL PROTECTED]]

Tomcat 4.1.9 locks up

2002-09-19 Thread Day, Michael-IBM/TT
Has anyone had any problems with Tomcat 4.1.9 + Struts and multiple requests? If I refresh a page multiple times (around 50), Tomcat will completely stop responding to ALL requests. I have to kill the java processes. I have no idea how to figure out what is causing this (Struts code, my

BeanUtils Question

2002-09-19 Thread Darren Hill
Not sure if this is the write forum for this.. anyway. I have a Stateless Session Bean that acts as my Service Layer in my App. ( It seperates my Domain Layer[EJB's] from my App Layer [Actions/Views] ) My 'views' are simply beans the duplicate the EJB's. I want to use the

RE: AAAARGH! SOMEONE! How do I set the default selection when I'm usinghtml:options?

2002-09-19 Thread Stephane Ricci
Why don't you use startup servlet ? Day, Michael-IBM/TT [EMAIL PROTECTED] on 09/19/2002 02:17:22 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc:(bcc: Stephane RICCI/PARIS/CAI-Cheuvreux) Subject: RE:

Re: Dynamic configuration?

2002-09-19 Thread Eddie Bush
Have you looked at the source code yet? That would be the definitive source (d'oh! pun!). The primary area you want to look at is ActionServlet.java. If you follow the directions on the jakarta site for accessing CVS and checkout a copy of the source, you can then locate ActionServlet.java

Re: AAAARGH! SOMEONE! How do I set the default selection when I'musing html:options?

2002-09-19 Thread Eddie Bush
Michael, I'm currently building some functionality on top of Struts for a project. The way I found to do this the easiest was to keep my config in an XML file and use the commons digester in a Plugin. Plugin writing is very straight-forward, and there are a couple of standard examples

RE: AAAARGH! SOMEONE! How do I set the default selection when I'm using html:options?

2002-09-19 Thread Robert Taylor
javax.servlet.ServletContextListener @since Servlet2.2 spec acts a bootstrap. Prior to Servlet2.2 spec, try a bootstrap servlet. A quick scan of the mailing list archives and . http://www.mail-archive.com/struts-user@jakarta.apache.org/msg38242.html should help. robert -Original

Re: AAAARGH! SOMEONE! How do I set the default selection when I'm using html:options?

2002-09-19 Thread Jan Fetyko
You were not alone. :(( Galbreath, Mark wrote: Aboslutely - must have been brain-dead for not thinking of that (especially because that's exactly what I do!). -Original Message- From: Jan Fetyko [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 8:00 AM To: Struts Users

Re: Control a field in an HTML page

2002-09-19 Thread Eddie Bush
If you have a struts binary distribution, you can locate the struts-validator.war in dist-directory/webapps. At least, that's where it is in 1.1. What version are you using? Regards, Eddie BARADAT Benoit wrote: thanks I have an another question: Where is the Struts-validator.war ? I

Re: AAAARGH! SOMEONE! How do I set the default selection when I'musing html:options?

2002-09-19 Thread Eddie Bush
Yeah, actually this might be your best approach. Mine would depend on Struts. This approach would be totally independent of Struts. If you're (wasn't it spec 2.3 that brought us these listeners?) on an older spec, using the plugin may well be the way to go though. Robert Taylor wrote:

[STRUTS] Cleasing form fields fields

2002-09-19 Thread kiuma
Hello, how can I have a clean form field the second time I visit it? It seems it keeps data into session. How can I clean those fields, without cleaning other informations? Thanks, kiuma -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

RE: Tomcat 4.1.9 locks up

2002-09-19 Thread James Mitchell
Yes, I've experienced this problem. I went back to Tomcat 4.0.4 on the open-tools.org server because of this. I don't really care 'why' it was happening, just needed to have something reliable. Good Luck James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded

Re: javascript confirm

2002-09-19 Thread Melissa L Kelley
On Wed, 18 Sep 2002, Chris Wall wrote: Since you didn't give an error message to help say why it isn't working, all I can say it to try this: html:cancel onclick=return window.confirm('Cancel Record?'); / -- stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho

Re: AAAARGH! SOMEONE! How do I set the default selection when I'musing html:options?

2002-09-19 Thread Jan Fetyko
How to by using an Init Servlet. Some examples, since explaining would take too long : Java startup servlet ---cut--- package org.init.whatever; import javax.servlet.*; import javax.servlet.http.*; public class InitServlet extends HttpServlet {

Re: [STRUTS] Cleasing form fields fields

2002-09-19 Thread Dave Derry
The action mappings store the form fields in the session by default. You can specify that they be stored in the request. This will give you a 'fresh' ActionForm for each request. action path=/some/action name=the.action.form.to.use scope=request/ Is this what you

RE: [STRUTS] Cleasing form fields fields

2002-09-19 Thread Andrew Hill
The scope into which struts places the ActionForm instance is defined by you in the struts config file in the action definition. For example in the follwing action definition thingy the scope attribute states to use the request context. If you specify session, then the session context will be

AW: Nothing? Rien? Nichts? Null? (was: How to define a context attribute key for a message-resource under Struts 1.0.2?)

2002-09-19 Thread Sann, Stephan
Hello, Struts 1.0.2. jet? Is this a Microsoft adaptation? No. This was a typo. Once again: I would like to use the bundle-attribute from the html:errors-Tag, but I didn't find out how to define a context attribute key for a message-resource under Struts 1.0.2 yet. Best regards Stephan --

Re: Running struts app on WebSphere 4

2002-09-19 Thread Darren McGuinness
no1? :( Darren McGuinness wrote: Hi, Have developed a web app using the struts framework, using JBuilder and it worked fine using TomCat4 within JBuilder. Now I need to migrate it to a WebSphere server and I've amended the required Websphere files/etc but I keep getting this error when

Re: [STRUTS] Cleasing form fields fields

2002-09-19 Thread kiuma
Thank u very much! Andrew Hill wrote: The scope into which struts places the ActionForm instance is defined by you in the struts config file in the action definition. For example in the follwing action definition thingy the scope attribute states to use the request context. If you specify

Using BeanUtils with EJB

2002-09-19 Thread Darren Hill
I guess the better question is ... Can you use the BeanUtils on EJB's? Darren. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: AAAARGH! SOMEONE! How do I set the default selection when I'm using html:options?

2002-09-19 Thread Day, Michael-IBM/TT
Both are much easier than I thought. Thanks for the help. One question remains: if I were to have a ConfigurationPlugIn, for example, how would I get that information to each servlet. Should I create static method within the ConfigurationPlugIn class that returns an object with all of the

[ANNOUNCE] Struts Console v2.2

2002-09-19 Thread James Holmes
Struts Console version 2.2 is now available. http://www.jamesholmes.com/struts/ Download Now: http://www.jamesholmes.com/struts/struts-console-2.2.zip -- OR -- http://www.jamesholmes.com/struts/struts-console-2.2.tar.gz Struts Console is FREE software. This release adds some minor new

Re: Tomcat 4.1.9 locks up

2002-09-19 Thread Eddie Bush
Have you tried 4.1.10? James Mitchell wrote: Yes, I've experienced this problem. I went back to Tomcat 4.0.4 on the open-tools.org server because of this. I don't really care 'why' it was happening, just needed to have something reliable. Good Luck James Mitchell Software Engineer\Struts

Re: Running struts app on WebSphere 4

2002-09-19 Thread Danny Mui
For me, I got class cast exceptions with StringBuffer so this may be the same or lead you to your solution. The IBM JDK with Websphere is 1.2 compliant i think? So anything compiled as 1.4 will not work. I compiled with 1.3 and voila they disappeared. But for actionservlet, I don't

RE: [ANNOUNCE] Struts Console v2.2

2002-09-19 Thread Darren Hill
Is there still and issue with the jdom replacement screwing up the EJB Modeler in JBuilder? Darren. -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED]] Sent: September 19, 2002 10:10 AM To: Struts Users Mailing List Subject: [ANNOUNCE] Struts Console v2.2 Struts Console

RE: AAAARGH! SOMEONE! How do I set the default selection when I'm using html:options?

2002-09-19 Thread Day, Michael-IBM/TT
Jan, Definitely clear; however, using an Init servlet requires someone to access that servlet each time I restart the server, correct? When I really think about it, that's not a big deal, but it's something I might forget :). Thanks for the suggestion. -Original Message- From: Jan

RE: Dynamic configuration?

2002-09-19 Thread Kevin Roast
Yes - this is this same conclusion that I have now come too. Basically extending the ActionServlet and overriding the init() method to not freeze the config is the only way I could see to do this. I'm wondering if Struts is really the best framework for the sort of things I need to do - I'm

RE: DBCP Pooling Example App?

2002-09-19 Thread Matt Raible
I downloaded it and none of the samples have JNDI example. I've tried this setup (see below), and it didn't work for me. So now I'm looking for a more concrete example - some proof that it actually works ;-) http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples -howto.html

Re: AAAARGH! SOMEONE! How do I set the default selection when I'musing html:options?

2002-09-19 Thread Eddie Bush
Here's what I do: - Plugin uses digester to load config into bean instances. - Place the overall container into application scope under a known key. I don't particularly care of the Struts approach of declare a constant in some distant package for this key, as, at best, it causes the

RE: Dynamic configuration?

2002-09-19 Thread Andrew Hill
Have you taken a look at Barracuda? (Havent worked with it myself but I did steal its idea (well XMLC's idea actually) of using *ml dom manipulation for rendering the view...) It may (or may not) prove more suited for this sort of thing. -Original Message- From: Kevin Roast

RE: [ANNOUNCE] Struts Console v2.2

2002-09-19 Thread James Holmes
Yep, since Struts Console relies on 1 version of JDOM and Jbuilder on another there is a problem. I'm not aware of a way to work around this yet. -james --- Darren Hill [EMAIL PROTECTED] wrote: Is there still and issue with the jdom replacement screwing up the EJB Modeler in JBuilder?

DispatchAction DynaValidatorForm problem!

2002-09-19 Thread Ralf Lorenz
Hi there, I'm trying to put the processing of a complete step (insert a new entry into a table of my database) with one Action. Therefore I found a very useful discussion at http://www.mail-archive.com/struts-user@jakarta.apache.org/msg32366.html I decided to take a DispatchAction and a

Re: Dynamic configuration?

2002-09-19 Thread Eddie Bush
I'm not entirely sure why the config gets frozen. I'd guess it's for security. Still, it seems there would be a better solution that just disregarding Struts -- it really is a fine framework. Think of all you would lose -- just to gain the dynamicness you seek. Perhaps you could make a

Re: AAAARGH! SOMEONE! How do I set the default selection when I'musing html:options?

2002-09-19 Thread Eddie Bush
No, that's not true. You can set it to be loaded on startup -- just like Struts' own ActionServlet is done. Day, Michael-IBM/TT wrote: Jan, Definitely clear; however, using an Init servlet requires someone to access that servlet each time I restart the server, correct? When I really think

Re: DBCP Pooling Example App?

2002-09-19 Thread Eddie Bush
Matt Raible wrote: I downloaded it and none of the samples have JNDI example. I've tried this setup (see below), and it didn't work for me. So now I'm looking for a more concrete example - some proof that it actually works ;-) It seems to me that, if you're using JNDI (for acquisition) ...

RE: DBCP Pooling Example App?

2002-09-19 Thread David Graham
Don't know about the JNDI issue but you don't have to set rs = null. I assume rs is a ResultSet and most of the time you declare rs in a method so when the method exits, rs will be free to be garbage collected anyway. It's useless to set it to null when it's about to go out of scope.

Forwards

2002-09-19 Thread Richard Stevens
Hi, I have one action that searches some data from a database and forwards it to a jsp that shows a list with radio buttons to select one. There are two buttons, view and edit. The form submits to an action that decides which path to forward to by looking at the name of the button that was

RE: Tomcat 4.1.9 locks up

2002-09-19 Thread James Mitchell
Not yet. I've got it on the laptop, but mostly use JBoss for dev-redeploy-test cycle. I'm sure I'll need to test XMLMessageResources with all of the above before I release it. Thanx James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network

Database access deployment question

2002-09-19 Thread Kirby Vandivort
Hello, I have been reading up on accessing databases from within the struts framework, and I'm not totally sure of the best way to approach the issue of deployment. We package up a WAR file for distribution to end users, and I would like to be able to tell them to drop the WAR file in webapps

RE: jsp-to-action-to-action: when does the request die

2002-09-19 Thread Gideon, Thomas
Actually, the value of the redirect attribute also plays a role. True, when forwarding to a JSP, utlimately the request ends with the JSP generating content and sending it the the browser. If one of your actions is invoking another action using findForward, pay attenting to the redirect

Re: [ANNOUNCE] Struts Console v2.2

2002-09-19 Thread Vilya Harvey
Thanks for this great tool - it's made my life a lot easier! One question, about the IDEA plugin: the only way that I've been able to save the edited file is to close and reopen the current project. Am I missing something obvious? Cheers, Vil. -- Vilya Harvey, Consultant [EMAIL PROTECTED]

RE: Tomcat 4.1.9 locks up

2002-09-19 Thread Day, Michael-IBM/TT
You know what, Eddie? You're awesome. I just installed and tried it. The issue seems to be resolved. Thanks. -Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:12 AM To: Struts Users Mailing List Subject: Re: Tomcat 4.1.9 locks up

The link and img tag

2002-09-19 Thread Marcus Andersson
Hello I'm trying to use the html:link and the html:img tag but there is no output at all in the page after the usage of one of the mentioned tags so I figure I have made something wrong. But what? Example usage: html:link page=/form/theform.jspLink to the form/html:link I do get html:rewrite

RE: AAAARGH! SOMEONE! How do I set the default selection when I'm using html:options?

2002-09-19 Thread Day, Michael-IBM/TT
Eddie, I agree with your approach. How can I place the beans into application scope? Forgive me if these seems ignorant. -Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:24 AM To: Struts Users Mailing List Subject: Re: RGH!

Re: Database access deployment question

2002-09-19 Thread Eddie Bush
So far as your DB access goes, you could do away with using the data-source inside struts and declare one in JNDI using whichever container you're using. Addressing your property file concerns: I don't see a good way around this. If you standardized on a name, you could simply have them

Re: I seek a sample databae crud application

2002-09-19 Thread Danny Mui
Look at Chuck C.'s (haha can't spell it) book, it has a very nice sample app that uses the OJB framework (i likey!) to do the O/R mapping so no SQL required. http://www.theserverside.com/resources/strutsreview.jsp You can pre-order it now from various book vendors. (other books are coming

Re: AAAARGH! SOMEONE! How do I set the default selection when I'musing html:options?

2002-09-19 Thread Eddie Bush
Go look at the ValidatorPlugin source :-) Here is a brief overview: Each plugin gets a reference to: - an ActionServlet instance - an ApplicationConfig instance (for the current module) You can use the ActionServlet instance to get at the application (servlet-context)

Re: Database access deployment question

2002-09-19 Thread Danny Mui
The container usually sets up a datasource for you in JNDI, for tomcat you modify server.xml and in resin you modify resin.conf so that's outside your web application. In your web.xml file you just define the resource-ref... to expose to your application and all you have make sure is that

re:java.net.MalformedURLException: unknown protocol: jndi

2002-09-19 Thread Nambiar, Sajan
Hi: We are using struts 1.0.2 in our web application deployed on Orion application server (version 1.4.5). We get the exception (java.net.MalformedURLException: unknown protocol: jndi) during action servlet's initialization. The deployment platform is HP-UX 11 and we are using jdk 1.3. Has

RE: [OT] Schwing!

2002-09-19 Thread Karr, David
-Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 8:10 PM To: Struts Users List Subject: [OT] Schwing! Any good resources for learning to do GUI development with Swing? I gather it's favored over AWT nowadays. I did some AWT

Re: java.net.MalformedURLException: unknown protocol: jndi

2002-09-19 Thread Danny Mui
Your problem looks like an XML parsing issue. Try dropping newer Xalan/Xerces to WEB-INF/lib (thats how i fix websphere stuff) or even the server's classpath. danny Nambiar, Sajan wrote: Hi: We are using struts 1.0.2 in our web application deployed on Orion application server (version

Error: Cannot retrieve ActionForward named welcome

2002-09-19 Thread Heligon Sandra
I defined the following configuration: index.jsp: logic:redirect forward=welcome/ struts-config.xml: global-forwards forward name=welcome path=/Welcome.do / /global-forwards action-mappings action

Re: Error: Cannot retrieve ActionForward named welcome

2002-09-19 Thread Eddie Bush
We're case-sensitive. welcome != Welcome. You defined your foward as Welcome and then asked for welcome -- it does not exist. Change forward=welcome to forward=Welcome. Heligon Sandra wrote: I defined the following configuration: index.jsp: logic:redirect

Re: Error: Cannot retrieve ActionForward named welcome

2002-09-19 Thread Eddie Bush
Sorry - I didn't look closely enough (in a hurry to get out the door for an appointment). I don't see a problem ... Heligon Sandra wrote: I defined the following configuration: index.jsp: logic:redirect forward=welcome/ struts-config.xml: global-forwards

Re: [STRUTS] Cleasing form fields fields (NOT WORKING)

2002-09-19 Thread kiuma
Hello I need scope=session, so I had coded this method into the form public void reset(ActionMapping mapping, javax.servlet.http.HttpServletRequest request) { resetFields(); } but vhe I call from an execute method: return mapping.findForward(

RE: Dynamic configuration?

2002-09-19 Thread Kevin Roast
I agree - don't want to dump Struts as it nicely solves some of the more fiddly problems in writing web application frameworks (form processing, logical page dispatching etc.) I'm thinking about going for a system where we take the Struts ActionServlet and extend it to provide our modifiable

Re: [Forward-Looking] Portal API and JavaServer Faces

2002-09-19 Thread Craig R. McClanahan
On Wed, 18 Sep 2002, William Connor wrote: Date: Wed, 18 Sep 2002 20:58:34 -0600 From: William Connor [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: [Forward-Looking] Portal API and

Re: JSF JSTL

2002-09-19 Thread Craig R. McClanahan
On Thu, 19 Sep 2002, Brijesh NK wrote: Date: Thu, 19 Sep 2002 09:49:24 +0530 From: Brijesh NK [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: JSF JSTL Hi, I was going through the

RE: Dynamic configuration?

2002-09-19 Thread Craig R. McClanahan
On Thu, 19 Sep 2002, Kevin Roast wrote: Date: Thu, 19 Sep 2002 09:59:18 +0100 From: Kevin Roast [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Dynamic configuration? Does anyone know how you would do

RE: Dynamic configuration?

2002-09-19 Thread Craig R. McClanahan
On Thu, 19 Sep 2002, Kevin Roast wrote: Date: Thu, 19 Sep 2002 15:18:56 +0100 From: Kevin Roast [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Dynamic configuration? Yes - this is this same conclusion

Re: BeanUtils Question

2002-09-19 Thread Craig R. McClanahan
On Thu, 19 Sep 2002, Darren Hill wrote: Date: Thu, 19 Sep 2002 09:21:12 -0400 From: Darren Hill [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: BeanUtils Question Not sure if this is the write forum for

Logout and Browser Back

2002-09-19 Thread Aravapalli, Udaya
Hi when I logout of the Struts application and click on browser back I was taken to the previous page(where I clicked on logout) . But If I tried to do any operation on this page, I'll be taken to the login page. Is there any way to prevent the browser back taking to this

Re: Dynamic configuration?

2002-09-19 Thread Eddie Bush
Oops - good catch! I (don't know why I) hadn't thought of that! Craig R. McClanahan wrote: On Thu, 19 Sep 2002, Kevin Roast wrote: Date: Thu, 19 Sep 2002 15:18:56 +0100 From: Kevin Roast [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List

Re: Database access deployment question

2002-09-19 Thread Craig R. McClanahan
If you're running on a container that supports it (which means any J2EE container plus Tomcat 4), using JNDI resources is the right way to deal with this. Essentially, you declare a resource reference to a data source in your web.xml file, and then configure the database access details in your

  1   2   >