Struts 2: Does the Indexed List Example Work?

2011-04-29 Thread Joe
/test.jsp If I browse to the prepTest url, I get 3 text boxes, so the iterator is working, but the boxes are empty. Has anyone else had success with this example or accessing List elements by the List element ID's rather than using something like status.id? Thanks,

Re: Struts 2: Does the Indexed List Example Work?

2011-04-29 Thread Joe
On Apr 29, 2011, Dave Newton-6 wrote: >What does the JSP look like? >Dave Sorry, it is the same as the example with the exception of fixing a minor typo in the textfield tag (the example is missing a colon): <%@ taglib prefix="s" uri="/struts-tags"%> Experimenting with indexed

Re: Struts 2: Does the Indexed List Example Work?

2011-04-29 Thread Joe
Chris Pratt wrote: Shouldn't that be: I changed my JSP as indicated and still didn't get values in the text boxes. The source of the page looks like this: which to me indicates that it is having a problem with the "bean.id" part of the equation. Wouldn't square brackets indicate an index

Re: Struts 2: Does the Indexed List Example Work?

2011-04-29 Thread Joe
Chris Pratt wrote: Oh, duh, I'm not sure why I didn't see it before. You can either just use %{id} and then you don't need the id="bean" on the s:iterate tag. Or, you can use %{#bean.id}. No joy. If I use the tags like so: the page source looks like what I'd expect, but no values in the

Re: Re: Struts 2: Does the Indexed List Example Work?

2011-04-29 Thread Joe
Dave Newton-6 wrote: Try the square brackets again. Chris Pratt wrote: Try: value="%{name}" That gets the value into the textbox, but when I submit the form, I get either nothing in the action (square brackets) or an exception (using curly brackets): All my save action does is print out

Re: Struts 2: Does the Indexed List Example Work?

2011-05-03 Thread Joe
Dave Newton-6 wrote: > The above JSP still has parens instead of square brackets. I tried it both ways, parens last, so I only posted the one JSP. Chris Pratt: > If youvare trying to update an existing list make your Action implement > Preparable > and retrieve the existing list so you can re

RE: [ANNOUNCE] Struts Console v4.6 - GUI tool

2004-05-06 Thread Joe Hertz
My JBuilder 8 IDE is hanging on startup with Struts Console 4.6. I remove the jar file from lib/ext and it launches fine. > -Original Message- > From: James Holmes [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 05, 2004 3:19 PM > To: 'Struts Users Mailing List' > Subject: [ANNOUNCE] Str

RE: [ANNOUNCE] Struts Console v4.6 - GUI tool

2004-05-06 Thread Joe Hertz
Ecch. Sorry about that. I mean this to go to James and munged my to: field > -Original Message- > From: Joe Hertz [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 06, 2004 6:30 PM > To: 'Struts Users Mailing List' > Subject: RE: [ANNOUNCE] Struts Console v

RE: Overriding RequestProcessor for sesion validationi

2004-05-07 Thread Joe Hertz
IIRC, Action.saveErrors just puts things into the request scope that the JSP pulls out. You could do that yourself the same way (there's a struts constant for the identifier) Filters really do a nice job for this type of thing. > -Original Message- > From: news [mailto:[EMAIL PROTECTED]

RE: Overriding RequestProcessor for sesion validationi

2004-05-07 Thread Joe Hertz
You can actually do the filter with struts 1.0. You need a >=2.3 servlet container (Tomcat 4 or better). If you don't have that though, then yeah, the Request Processor is the way to go. > -Original Message- > From: MARU, SOHIL (SBCSI) [mailto:[EMAIL PROTECTED] > Sent: Friday, May 07, 20

[Kina-OT] Declarative Security form question

2004-05-07 Thread Joe Hertz
ive me the behavior I was hoping to implement. I want the user to be able to login on any page that doesn't necessarily require a login, and upon doing so, get sent back to that same page. Is Declarative Security not meant for me?? TIA -Joe

RE: Response to "error in setting up sslext"

2004-05-07 Thread Joe Germuska
me" property of your TilesPlugin in the struts-config.xml -- but if you have Struts 1.1 final, it should work for you without needing that. Joe At 11:22 PM + 5/6/04, Marcella Turner wrote: I managed to get a more complete stack trace of the error: [Servlet Error]-[action]: jav

RE: [Kinda-OT] Declarative Security form question

2004-05-07 Thread Joe Hertz
Solved. I punted and decided to use Security Filter. This works so much better. > -Original Message- > From: Joe Hertz [mailto:[EMAIL PROTECTED] > Sent: Friday, May 07, 2004 2:07 PM > To: 'Struts Users Mailing List' > Subject: [Kina-OT] Declarati

RE: taglibs bitter for web designers!!!

2004-05-07 Thread Joe Hertz
There is a commercial struts extension for Dreamweaver http://www.fwasi.com/products/ > -Original Message- > From: ali [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 06, 2004 7:42 PM > To: [EMAIL PROTECTED] > Subject: taglibs bitter for web designers!!! > > > the first time i used tag

RE: getting non-struts form elements

2004-05-14 Thread Joe Hertz
If you want to submit it to a struts action, then presumably you can control the action element of the form tag. If so, why can't you associate the action with a struts form too? It would help to have more information. -Joe > -Original Message- > From: Matt Bathje [ma

Re: getting non-struts form elements

2004-05-14 Thread Joe Germuska
-part (formfile) elements from the form. Any way to do it in struts, or do I just need to give up and make something non-struts to do it? you can always use request.getParameter(String) Any other solution to get a populated ActionForm would be way too much trouble to even consider. Joe -- Joe

RE: Sharing what I've learned: locale switching

2004-05-14 Thread Joe Hertz
Suggestion: Rather than using the GLOBALS.Locale_Key in the session, use the action.setLocale() method. This way you won't have to be changing your code if the internals change. For example, to decide between, say English and Russian, you can do this and never mess with the httpSession directly.

RE: getting non-struts form elements

2004-05-14 Thread Joe Hertz
Actually, it's not at all the case. To merge a couple of simultaneous threads here, my app has a link that lets the user toggle between languages. It calls an action that cares nothing about any form. It just looks at the current Locale and goes on :-) You only need an ActionForm in your action

Re: memFileSize to control the file in memory or on disk

2004-05-15 Thread Joe Germuska
e property honored. Maybe you should turn up logging to see messages from the org.apache.struts.upload package? Joe At 5:09 PM +0300 5/15/04, Ayoub, Ashraf A wrote: Dears, I'm depending on struts in my application, and I have an option for uploading files in my application. The problem is: I

Re: OutOfMemoryError with multipart/form-data

2004-05-15 Thread Joe Germuska
mply be to set memFileSize low enough that you won't run out of memory! Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with comp

RE: memFileSize to control the file in memory or on disk

2004-05-16 Thread Joe Germuska
andler) where your errors are ultimately occurring. One of the struts-example apps uses the file-upload stuff; it might give you another way to test your configuration and deployment enviroment. Joe -----Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Sunday, May 16, 2004 2:

Re: use of session object in Action Form?

2004-05-17 Thread Joe Germuska
at you want. So why does your ActionForm "need" the session? Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thin

Re: struts is giving error on weblogic81

2004-05-17 Thread Joe Germuska
start getting tested. Joe At 8:18 PM +0530 5/17/04, Jignesh Patel wrote: We are trying to deploy struts1.1 based application on weblogic8.1 which is already working fine on tomcat5.19. But it is giving problem because of following datasource code, if we remove it then we are not able to get the o

RE: App-level globals

2004-05-17 Thread Joe Germuska
o if you need a handle on that object, using a PlugIn is probably the most straightforward way to get one. Joe Paul -Original Message- From: None None [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 5:17 PM To: [EMAIL PROTECTED] Subject: App-level globals Hello again everyone...

Re: Tiles - retrofit existing struts based wars

2004-05-17 Thread Joe Germuska
nsistent look. http://www.opensymphony.com/sitemesh/ I'm not 100% certain that it can deal with content from across multiple applications, but i think it can because I think I've even read about it being used to decorate static content. Joe -- Joe Germuska [EMAIL PROTECT

RE: Session Timeout

2004-05-18 Thread Joe Hertz
If I don't miss my guess, it sounds like you want to do what declarative security would do for you. Any protected page gets redirected to a login form. After successfully logging in, the user is redirected to where he wanted to go in the first place. This isn't struts specific, but it does work w

Re: Help with using declarative error handling

2004-05-18 Thread Joe Germuska
JSP that is forwarded to. -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaini

Re: struts is giving error on weblogic81

2004-05-18 Thread Joe Germuska
Tomcat 5 because JSP 2.0 works around the maximum method-length limitation. Weblogic 8.1 is still J2EE 1.3 (Servlet 2.3/JSP 1.2). I'd suggest using Tomcat 4 where you now use Tomcat 5 to minimize the likelihood of these kinds of surprises. Joe -- Joe Germuska [EMAIL PROT

Re: FW: code too large for try statement

2004-05-18 Thread Joe Germuska
It just so happens that I just wrote an answer to in response to a different email. At 8:18 AM -0500 5/18/04, Joe Germuska wrote: It works find on Tomcat 5 because JSP 2.0 works around the maximum method-length limitation. Weblogic 8.1 is still J2EE 1.3 (Servlet 2.3/JSP 1.2). I'd su

RE: sending emails from a struts app

2004-05-18 Thread Joe Hertz
> This is what i want to acheive. I cant have the user > submitting a request, and then stopping it part way through. This is what you get. The browser simply says, "Do this". And you do. There is no Mechanism for the user to say, "No! Stop! Don't!". You may never get the request if there is a

RE: FW: code too large for try statement

2004-05-19 Thread Joe Germuska
At 1:38 PM +0530 5/19/04, Rahul Mohan wrote: Thank for the reply joe... But the Tomcat I am using is 4.1 only.I have checked the documentation and found out that both Tomcat4.1 and Weblogic8.1 is conformant to J2EE1.3 ( Servlet 2.3 / JSP 1.2 ) so the problem is not with the jsp specs

RE: How to read a parameter in web.xml from Action class

2004-05-20 Thread Joe Hertz
Why should he? He's already got a servlet context. He's got to have a web.xml *anyway*, so why not use it? Yeah, there are a list of things that could dictate using JNDI, but this isn't necessarily one of them). I mean unless you like having lng classpaths :-) > -Original Message---

Re: Tiles with javascript heavy pages

2004-05-20 Thread Joe Germuska
r the title, and then fill it in like this: Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of c

RE: Tiles with javascript heavy pages

2004-05-20 Thread Joe Germuska
At 3:13 PM +0100 5/20/04, Tim Penhey wrote: > From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: 20 May 2004 14:47 At 2:32 PM +0100 5/20/04, Tim Penhey wrote: >I am thinking about using tiles to simplify some of my JSPs, but many of my >pages are javascript heavy. All the js

RE: Tiles with javascript heavy pages

2004-05-20 Thread Joe Germuska
assuming you're using the JSTL and struts-el, which is highly recommended if you are on a Servlet 2.3/JSP 1.2 container (including Tomcat 4 among others). Otherwise, it would look more like Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagin

Re: Does STRUTS Support CSS Layout or Only Table Layout?

2004-05-20 Thread Joe Germuska
tags, which Struts has nothing particularly to do with. In short, the answer is "yes," you can do "pure css formatting" with Struts. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if yo

Re: LOGIC:INTERATE

2004-05-21 Thread Joe Germuska
ld probably be better off using ; logic:iterate was created before the JSTL, but is less generally useful than Joe At 4:14 PM -0500 5/21/04, Teixeira, Jorge (Informaker) wrote: Can you send me one interate sample workin with one object colletion how attribute? I'm tried it And

Re: Tomcat startup error using struts.

2004-05-24 Thread Joe Germuska
he content of element type "set-property" must match "EMPTY". org.xml.sax.SAXParseException: The content of element type "set-property" must match "EMPTY". Presumably the XML parser has found that you have a non-empty element on line 18 of your struts-co

Re: From bean into "for" loop

2004-05-24 Thread Joe Germuska
you can expose a property on productData which returns an array, collection, or iterator. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with co

Re: How to get length of an array(collection)

2004-05-24 Thread Joe Germuska
custom tag to define two variables, the list and another with the length of the list. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the

struts.meetup.com (Re: [OT] Struts users in [my city, my country])

2004-05-24 Thread Joe Germuska
Struts users interested in meeting other Struts users face-to-face might want to have a look at http://struts.meetup.com/ Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to u

RE: struts.meetup.com (Re: [OT] Struts users in [my city, my country])

2004-05-24 Thread Joe Germuska
truts-user. Have any Struts meetups happened? It looks like no one city has more than 4 people registered... Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happen

RE: Tomcat startup error using struts.

2004-05-24 Thread Joe Germuska
n anyone tell me why this is the case? because the element wasn't empty. It had at least one newline character as its content. This is a good reason to render the element using the empty-element syntax instead of Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com

RE: struts.meetup.com (Re: [OT] Struts users in [my city, my coun try])

2004-05-25 Thread Joe Germuska
like.) To be honest, though, I haven't noticed any email from them for a while, so either it's getting treated as spam or they may have changed the way it works. I've never actually attended any Meetups for any topic, but I had remembered that someone set up the Struts area a whi

Re: Question regarding use/stability of Struts 1.2 pre-release

2004-05-25 Thread Joe Germuska
eeds. Since this is all volunteer, we don't have a bunch of people testing everything like a formal commercial product. The best thing Struts community members can do is use the newest version they can afford the time to use, and report bugs if they find them, and ideally, provide patches to fi

Re: Validator question

2004-05-25 Thread Joe Germuska
ll not except option[3] since it is blank. I tried using a mask of [ TP]. That worked for the JavaScript validation, but failed in the validate method of the ValidatorActionForm. Any thoughts? Make the value for "None" a non-empty string (maybe the word 'none'), and translat

RE: Multiple validation.xml

2004-05-26 Thread Joe Hertz
In a sense everyone does just this when they declare their plugin as such: It's just you put all the project specific stuff into one. Can't imagine why adding more files to it wouldn't work (although could introduce it's own set of "confuscation") > -Original Messag

Re: Struts modules question

2004-05-26 Thread Joe Germuska
chical configuration. Since Struts is open source, there's no reason people couldn't build that out -- but I've found that I don't actually need modules, so I don't use them. Joe At 3:12 PM -0700 5/26/04, Ashwin Desai wrote: Hi, I have two modules in my application Modul

RE: Struts - not compatible with IE 5.2 on MacIntosh???

2004-05-26 Thread Joe Germuska
ren't fundamentally incompatible -- most of our web artists use Mac IE 5.2 at least some of the times. There is a known incompatibility with MSIE 5.2/Mac and the commons-fileupload component. http://issues.apache.org/bugzilla/show_bug.cgi?id=23229 Joe -- Joe Germuska [EMAIL PROTECT

RE: version confusion

2004-05-27 Thread Joe Germuska
expressions anywhere in a page in JSP 2.0 -- no need for the clutter of in most cases. OnJava had a four part series about JSP 2.0 that probably has some more info: part one: http://www.onjava.com/pub/a/onjava/2003/11/05/jsp.html Joe -- Joe Germuska [EMAIL PROTECTED] http

Re: Struts - not compatible with IE 5.2 on MacIntosh???

2004-05-27 Thread Joe Germuska
#x27;d run into a problem that I just wrote of as being the same as Bug #23229. Mark, if you had any time to look at the bug and possibly annotate it with some details of counter examples, people would probably appreciate that. Joe There is a known incompatibility with MSIE 5.2/Mac and th

Re: Confirmation Requested: "development has stopped on the presentation tags"

2004-05-27 Thread Joe Germuska
e values, which is really nice. Users who can use the JSTL but choose not to are encouraged to pick up support for the pre-JSTL tags :^) Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the

Re: presentation tag

2004-05-27 Thread Joe Germuska
ify the name under which the tag will define a "LoopTagStatus" bean. http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/c/forEach.html http://java.sun.com/webservices/docs/1.3/api/javax/servlet/jsp/jstl/core/LoopTagStatus.html The LoopTagStatus bean has an index property. Joe -- Jo

RE: Are there any IDE's that understand Struts tags?

2004-05-27 Thread Joe Hertz
I'm glad someone feels this way. I use JBuilder 8, and I find it's the only IDE that actually has helped me more than it has gotten in my way. Still, it bothers me that it does things differently than every other IDE out there (Borland Make vs Ant, etc), and I keep threatening to punt it. I'm wai

RE: Semi-OT: Organizing WEB-INF/lib dir...

2004-06-03 Thread Joe Hertz
What IDE are you using? Can't it help you with this? JBuilder certainly spares me this hassle (okay, that's not all good. I've had some *other* hassles* because of it, but they are certainly worth it). > -Original Message- > From: Riyad Kalla [mailto:[EMAIL PROTECTED] > Sent: Thursday,

RE: How appropriately access message-resources from Form classes??

2004-06-04 Thread Joe Hertz
name is {0} Or Me llamo es {0} Does it matter to your app if {0} is Joe or Jose'? Is it not something you can handle in the message text itself? Kind of curious now... -Joe > -Original Message- > From: Cosyns Xavier [mailto:[EMAIL PROTECTED] > Sent: Friday, June 04, 20

RE: implementation of permission subsystem

2004-06-04 Thread Joe Hertz
You tried the Declarative Security model built into Tomcat? You can use that to talk to the database by defining a "JDBCRealm". Or even better (since that doesn't give you a login form you can use the way you might expect to), take a look at SecurityFilter, which is what I use. http://www.securi

RE: Deprecated Method

2004-06-04 Thread Joe Hertz
In your action, instead of: servlet.getResources(); // Deprecated Use this.getResources(request); // Not Deprecated > -Original Message- > From: Jason L. West, Sr. [mailto:[EMAIL PROTECTED] > Sent: Friday, June 04, 2004 12:25 PM > To: Struts Users Mailing List > Subject: Deprecated Met

Re: Taglib: how do you call a method like java.util.List.size() from the property of a tag?

2004-06-06 Thread Joe Germuska
/jstl/1.1/docs/tlddocs/fn/length.fn.html Of course, you could use scriptlets too. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn back; I&#x

Re: [Raw newbie] Struts/JSTL - A cople of urgent question (Message resources)

2004-06-06 Thread Joe Germuska
is the same in spirit. Hm. Now that I read a little more, I wonder if you're also looking for a localization solution? In any case, using the DigestingPlugIn, you could make a slightly smarter bean which was localized. It would take more code, but nothing too hard to put together. Joe

Re: [PATCH] for DynaActionForm set(String, int, Object)

2004-06-08 Thread Joe Germuska
la It will help keep track of the patch until it can be applied and tested. Thank you, Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn back; I'll know I'm

RE: Application Resources Question

2004-06-10 Thread Joe Germuska
p/jstl/1.1/docs/tlddocs/c/out.html This is not a problem specific to application resources; it would apply to any value displayed with these tags. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "In fact, when I die, if I don't hear 'A Love Supre

Re: Struts 1.2.x binaries download?

2004-06-11 Thread Joe Germuska
onally want to work on changing the request processor to default to using the struts-chain, and there has also been talk about completing the message resources refactoring to use commons-resources in 1.3.x. Hope that helps... Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.ge

RE: Internationalization support in Tiles

2004-06-14 Thread Joe Hertz
as if they weren't tiles at all. About the only concession I make to i18n with tiles is that I try to avoid specifying string attributes in the tiles-config.xml. -Joe > -Original Message- > From: Suresh S [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 15, 2004 2:15 AM &g

RE: Reporting Tool

2004-06-16 Thread Joe Hertz
do "suits" want to look at the database in the way the database design anticipated. HTH -Joe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Newbie: Using Struts with JAAS?

2004-06-16 Thread Joe Hertz
You've got a middle case youre not mentioning. What's wrong with container managed/declarative security (ex: A JDBCRealm) or something a shade more robust like SecurityFilter? > -Original Message- > From: Adam Lipscombe [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 16, 2004 5:11 AM

Re: Respond Differently based upon host name

2004-06-16 Thread Joe Germuska
use the chained request processor as its default request processor, it would be good to see Struts users jumping in and helping to chart the territory. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "In fact, when I die, if I don't hear 'A Love Supreme,

Re: Tiles problem

2004-06-16 Thread Joe Germuska
e able to achieve what you need without triggering a whole second run through the request processor. Maybe someone else has successfully used actions for tiles content -- but I suspect it's not a good long-term solution. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.

ActionError/ActionMessage

2004-06-18 Thread Joe Hertz
to something else then?? I suspect it's just Friday and I'm just brainfreezing. N pairs of eyeballs would be appreciated. -Joe > -Original Message- > From: Nick Heudecker [mailto:[EMAIL PROTECTED] > Sent: Friday, June 18, 2004 11:35 AM > To: Struts Users Mailing Li

RE: ActionError/ActionMessage

2004-06-18 Thread Joe Hertz
ng question was a huge brainfreeze) > -Original Message- > From: Joe Hertz [mailto:[EMAIL PROTECTED] > Sent: Friday, June 18, 2004 12:28 PM > To: 'Struts Users Mailing List' > Subject: ActionError/ActionMessage > > > Using a 6/10 Nightly the I have a page with t

RE: ActionError/ActionMessage

2004-06-18 Thread Joe Hertz
Nevermind again. It's exactly that: Tells it to display ActionMessages and not ActionErrors. Apparently the new validator returns ActionErrors. Hitting the Bugzilla. > -Original Message- > From: Joe Hertz [mailto:[EMAIL PROTECTED] > Sent: Friday, June 18, 2004 1:28 PM

RE: Detecting browser close

2004-06-19 Thread Joe Hertz
is is a path well traveled. If the user doesn't do anything for a certain amount of time, make him log in again. You don't know what happened to him. Don't keep resources open just for him. If youre doing that, then you've got design issues. HTH -Joe > -Original Message

RE: Detecting browser close

2004-06-21 Thread Joe Hertz
This is fine if you want to provide a popup window to the user. This still isn't an authoritative way of determining if the user has "logged out". Your app should never depend on the client's PC having electricity. > -Original Message- > From: Simone - Dev [mailto:[EMAIL PROTECTED] > Sen

RE: Validator Error Messages different way to show them ?

2004-06-21 Thread Joe Hertz
By messages (plural) I assume you want them all. Did not work? > -Original Message- > From: Rouven Gehm [mailto:[EMAIL PROTECTED] > Sent: Monday, June 21, 2004 11:43 AM > To: Struts Users Mailing List > Subject: Validator Error Messages different way to show them ? > > > Hi, > > i'm

RE: [OT] Accessing Http Request with Groovy

2004-06-21 Thread Joe Germuska
lient-side javascript which is my favorite benefit from using commons-validator. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn back;

RE: Pulling Punches

2004-06-21 Thread Joe Hertz
Would making a Struts Action your "input" parameter solve this? This way you could do some checking before they made it all the way to the input page. > -Original Message- > From: Mark R. Diggory [mailto:[EMAIL PROTECTED] > Sent: Monday, June 21, 2004 7:33 PM > To: Struts Users Mailing L

RE: Pulling Punches

2004-06-21 Thread Joe Germuska
At 7:47 PM -0400 6/21/04, Joe Hertz wrote: Would making a Struts Action your "input" parameter solve this? This is not a great solution, for all the reasons that action chaining is considered dangerous. After the validation fails, Struts would begin an entire re-execut

RE: Pulling Punches

2004-06-21 Thread Joe Hertz
able > and worth avoiding. Joe- Not to change the subject *too* much, but what is the recommended way of handling following case: User clicks a button causing Action A to fire. Brings him to a page with data it needs (say for a dropdown box). User submits form on this page, causing Action B to

RE: Pulling Punches

2004-06-21 Thread Joe Hertz
d the dark side.". So, I figured getting the data to display was safe. Caring about the request data however seems to be where one draws the line, which this question clearly did. Am I wrong (again)? -Joe > -Original Message- > From: Frank Zammetti [mailto:[EMAIL PROTECTED]

RE: Pulling Punches

2004-06-22 Thread Joe Germuska
At 10:48 PM -0400 6/21/04, Joe Hertz wrote: Okay, whew. Knew I had seen something else about it. http://www.jguru.com/faq/view.jsp?EID=1057613 "...There are times when one Action should forward to another, but only to display the final result. Using a second action to complete a bus

RE: Pulling Punches

2004-06-22 Thread Joe Germuska
real objection is to invoking RequestProcessor.process(), which is ultimately what happens if you call RequestDispatcher.forward() or RequestDispatcher.include() (which, in turn, is ultimately what happens if you return an ActionForward which maps to a Struts Action or use a Struts action as the input forward for

Re: Pulling Punches

2004-06-22 Thread Joe Germuska
atchAction? Or are you saying that the RequestProcessor should break down processActionPerform() into a two-phase approach? If that's the case, why is it better to do that without using CoR? Joe Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn back; I'll know I'm in the wrong place." - Carlos Santana

RE: Pulling Punches

2004-06-22 Thread Joe Germuska
g instead of the ActionMapping? How to implement the actual configuration is the major outstanding question in my mind before I'd be ready to try implementing it. I'd love to hear some opinions... Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "In fac

RE: How To Create a Form That Contains Two Drop-Down Menu?

2004-06-22 Thread Joe Hertz
I'm not getting your question. You'd have -- I assume an OptionsCollection or Options tag follows. I generally don't do it that way... -- I assume an OptionsCollection or Options tag follows. I generally don't do it that way... ...etc It's doesn't look like your lists content is going

Message Resource lookup curiosity..

2004-06-23 Thread Joe Hertz
Caroline Jen's question make me think about something. I'm wondering how other people deal with this particular issue- Say that you have some sort of i18n'd app, and on a JSP screen for doing CRUD, you have one or more select boxes. You use html:option tags that get the labels (and maybe even the

Re: New Validating system instructions?

2004-06-23 Thread Joe Germuska
is text in the Struts Wiki at http://wiki.apache.org/struts/ActionErrorsAndActionMessages Anyone who wants to clarify is encouraged to document it there, and, of course, if you see a place in the core struts docs that could make this more clear, we welcome documentation contributions as much as code contribution

Re: Struts and PL/SQL

2004-06-23 Thread Joe Germuska
ng about your database layer; after that, you might get better answers from a PL/SQL user forum. I have certainly used Java to call PL/SQL stored procedures before, but not in a way that is specific to either Struts or PL/SQL; I simply used java.sql.CallableStatement. Joe -- Joe Germuska [EM

RE: Message Resource lookup curiosity..

2004-06-23 Thread Joe Hertz
om the database as a String attribute. > > > So to display the value in your jsp page: > filter="true"/> > > The property "gender" is a property in your detail and form object. > > > > > - Original Message - > From: "Joe Hertz&quo

Re: LabelValueBeans

2004-06-23 Thread Joe Germuska
label labelValueBeans[0].value labelValueBeans[1].label labelValueBeans[1].value I would do this using c:forEach and the struts-el tags, roughly like this: Label: Value: If you aren't using the EL, there are other ways to do this, but frankly, I never learned how to do them and I think it'

RE: [Solved] Message Resource lookup curiosity

2004-06-25 Thread Joe Hertz
Short of property lookups always coming out of the database, this appears to be the worst solution, except for all of the others: # one per language gender.male.text=Male # one only gender.male.value=M lookup.gender.M=gender.male.text > -Original Message- > From: Joe Hertz [

Re: How to populate fields in a form with data retrieved from a database table...

2004-06-28 Thread Joe Germuska
his more straightforward in the future which have been discussed thoroughly on both the dev and user lists, but hopefully this addresses your immediate needs. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "In fact, when I die, if I don't hear 'A Love S

Anyone using JBuilder X with Tiles and the Struts Nightly?

2004-06-28 Thread Joe Hertz
particular battle already? -Joe javax.servlet.ServletException: Servlet.init() for servlet action threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:963) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at

RE: Using 1 Validator definition for 2 different forms?

2004-06-29 Thread Joe Hertz
Using ValidatorActionForm would result in the Validator being pointed at Actions and not forms. I don't see how that gets one validator definition... Let me ask this of Mick: Why you using two different form definitions? If they are identical, what are you hoping to accomplish by defining it twic

RE: problem using Commons Validator. please Help

2004-07-05 Thread Joe Hertz
or, I'm wondering if maybe you have a typo in your validation.xml's DOCTYPE declaration. Mind posting it's contents? HTH, -Joe > -Original Message- > From: Alvin Antony [mailto:[EMAIL PROTECTED] > Sent: Monday, July 05, 2004 5:14 AM > To: [EMAIL PROTECTED] >

Re: OT: RE: Spring or Tapestry Framework

2004-07-07 Thread Joe Germuska
try and Struts. Yes, confusing. Still, I think at the level at which the original question targetted, a more accurate comparison would be between Spring and HiveMind. I have no experience with HiveMind. I've been pretty happy using Spring as a lightweight configuration management

Re: Simplifying struts-config.xml

2004-07-09 Thread Joe Germuska
ly the use case for that feature. Joe BAL - Original Message - From: "Michael McGrady" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, July 08, 2004 5:44 PM Subject: Simplifying struts-config.xml Is there a way to do t

1.2.1 to which Maven repo? (RE: [ANN] Struts 1.2.1 (Beta) Released)

2004-07-12 Thread Joe Germuska
l. If we don't put Struts 1.2.1 on iBiblio, we should definitely put it at http://cvs.apache.org/builds/java-repository/ I'll do either one, but I'll wait to see if a few opinions roll in before taking action. Joe I have built it from cvs sources with maven and the size is n

Re: Prepopulating forms

2004-07-12 Thread Joe Germuska
the [EMAIL PROTECTED] list where this would be discussed/critiqued/etc. I can't use the pending release of 1.2.1 as an excuse any more, so now I just have to squeeze time into my schedule to get started. Joe At 10:31 AM -0400 7/12/04, Erik Weber wrote: Hello. I want to solicit s

Re: Prepopulating forms

2004-07-12 Thread Joe Germuska
At 12:16 PM -0400 7/12/04, Erik Weber wrote: Joe, thanks for your opinion. You and Rick have convinced me to stay with one form page for add/update. I did this before in a non-struts app, and despite all the conditionals I ended up with, the ensuing layout revisions did make it worth it. So

Re: R: Prepopulating forms

2004-07-12 Thread Joe Germuska
It's generally considered better for usability if you present exactly the data the user entered when returning them to a form page because of validation errors. This is also why it's generally advised to make your free-text-entry form bean properties of type String even if you want the

  1   2   3   4   5   6   7   8   9   >