RE: Question about authentication

2004-08-26 Thread David Suarez
I may be mis-reading the question but... why hide your jsp's from direct access? The actions should definitely check for security and it makes sense there but if your jsp's populate information from the form, wouldn't the jsp be empty/unusable anyway?.. The approach above is what I have used. O

RE: nested collections and index

2004-08-26 Thread David Suarez
I have run into this before as well. My solution was just to include a property on the form itself with the name set on the jsp that in turn sets the property at the correct level instead of holding the property on the form. Just need to use javabeans naming convention so your method is called wh

RE: Question about authentication

2004-08-26 Thread David Suarez
ot;.jsp". Now the only way to view your JSPs is to go through the controller. Erik David Suarez wrote: >I may be mis-reading the question but... why hide your jsp's from >direct access? The actions should definitely check for security and it >makes sense there but if your j

RE: Think I'm stuck with using Session scope for this..unless a better idea?

2004-09-16 Thread David Suarez
For a generic solution (framework), it seems this wrapper class would come in very handy. Pretty cool how it creates a composition of a bean instantly. If it is a user solution to one problem I would think you would want to go with a potentially more maintainable solution of extending the Foo c

RE: Localization

2004-10-12 Thread David Suarez
Do you have any recommended news group/mailing list for JSF users? Thanks!...djsuarez -Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Friday, October 08, 2004 4:51 PM To: Struts Users Mailing List Subject: Re: Localization On Fri, 8 Oct 2004 10:17:17 -0500, David

RE: Exposing ActionForm and MVC fields

2004-10-15 Thread David Suarez
How about creating a hash/digest when you send the page down with your read-only fields and save it to session/hidden (you know the +/-), then compare it on the re-submit to see if any of the values have changed. If so, throw SecurityException or something similar? Would that work for you...djsuar

RE: timeouts

2004-09-30 Thread David Suarez
Web.xml has a timeout value you may want to make sure is not there. I believe the webapp takes precedence over the server settings if they are set. Regards...djsuarez -Original Message- From: Lucero, Dennis M [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 12:26 PM To: [E

RE: How to handle multiploe unknown form fields

2004-09-30 Thread David Suarez
I didn't realize that Struts could actually pass a pre-filled ArrayList. That's pretty cool.The way that I've done index properties in Struts call this method in my version: Myproperty(int index, String value); In that method, you can recreate whatever you want however you prefer. This is a g

RE: Indexed Properties and Lazy List behaviour

2004-10-01 Thread David Suarez
Your other solutions are awesome. I use the "hand crank..." one since I didn't know of the lazylist at the time. The code looks right. Thanks for posting the other "lazy" solutions, I'll try them in the future. Regards...djsuarez -Original Message- From: Niall Pemberton [mailto:[EMAIL

RE: Java edit method - design pattern? (O/T)

2004-10-04 Thread David Suarez
Not sure if I agree with your definition of exception or see how it conflicts. There are 2 java exception types, runtime and checked. These can be loosely translated as "unhandleable" and "handleable" (sort of)... Couldn't think of a better word right now... Anyway, in terms of a business functi

textbox format date & i18n date handling

2004-10-05 Thread David Suarez
Multiple related questions: 1) I have a java.util.Date field that needs to be displayed in a textbox. In bean:write there are formatting methods to have the date display using a MM/dd/ for example. however I don't see the same for html:text. I'm sure there's a way I'm not seeing... I trie

RE: textbox format date & i18n date handling

2004-10-05 Thread David Suarez
I guess this got kicked back for some reason. Please see below: Multiple related questions: 1) I have a java.util.Date field that needs to be displayed in a textbox. In bean:write there are formatting methods to have the date display using a MM/dd/ for example. however I don't see the sam

RE: textbox format date & i18n date handling

2004-10-05 Thread David Suarez
Thanks for the quick responses! Is there anything more generic that can be done? Till now I have been setting the fields directly into the "real" bean classes so to do the below I would need to replicate the properties on the form and then move them over to the real bean classes afterwards (wh

Internationalize Submit Button

2004-10-05 Thread David Suarez
Nesting the tag works for submit. I was hoping this would work for html:text as well but it doesn't unfortunately. This is a sample of what it looks like for i18n submit: Regards...djsuarez Date: Tue, 05 Oct

RE: textbox format date & i18n date handling

2004-10-05 Thread David Suarez
EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 05, 2004 1:59 PM To: Struts Users Mailing List Subject: RE: textbox format date & i18n date handling I don't have time for a long response but have you considered the fmt:formatDate tag of JSTL?

Enhancement requests

2004-10-05 Thread David Suarez
How does one go about requesting an enhancement to Struts? For my particular problem today it seems like Struts could handle all the dirty work for me if it used a version of bean utils that could be registered "per request". Struts could then set the Locale and then populate all of the fields

RE: Enhancement requests

2004-10-06 Thread David Suarez
pulation but I could be wrong. Please advise. Last but not least, I think i18n out of the box would be a good goal for Struts for some future version. From this list it seems like everyone who has the requirement is doing pretty much the same thing from what I've read so far. Thanks!...d

RE: Localization

2004-10-08 Thread David Suarez
Hello, I've been through the same recently with dates formatting. Sounds like we did exactly the same thing, seen on the web where others have also done the same. Do you remember the reasoning for not handling it within struts? I wanted to see if maybe there was a good reason for this that I ma

RE: BeanUtils.populate error

2005-06-15 Thread David Suarez
Turn "debug" on for BeanUtils, your log file will show exactly the property that was trying to be converted when it failed and you can update it accordingly. Regards...djsuarez -Original Message- From: Jan Ziniewicz [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 15, 2005 8:07 AM To: use

RE: J2EE vs .Net (was Struts vs .NET???)

2005-07-05 Thread David Suarez
Can you guys start marking this topic "OT"? Seems like someone from PR is getting paid to hijack this mail group. Can some of the seasoned guys step in here so they'll pay attention? Regards...djsuarez -Original Message- From: Dakota Jack [mailto:[EMAIL PROTECTED] Sent: Sunday, July

RE: One last ATTACHMENT issue

2005-03-02 Thread David Suarez
In addition to not needing the ampersand, the first and second href seem to point differently. The first points to: /physrcrtadmin/AttachmentAction.do The second to: AttachmentAction.do Which may be the same place already if whatever page you got this from is in the same directory tree but it's

RE: direction of effort request please?

2005-03-03 Thread David Suarez
I don't know how global exceptions work in struts-config, do they add a key value to the "Message". If so, what would it be? Sounds like an exception/message is there but there is no matching description in the resource files. If you can figure out the key that is added in that case (put in a de

RE: [OT] i18n: fmt:message versus bean:message

2005-03-25 Thread David Suarez
I haven't been using JSTL for i18n yet, just struts taglibs so I found the below very interesting when considering a move... I found this on the web: http://www.junlu.com/msg/30187.html The link suggests if you have a preferred approach, you can change the jstl resources configured to be used s

RE: AJAX: Whoa, Nellie!

2005-04-20 Thread David Suarez
Saw the flood of these AJAX messages and was interested so I did a quick test using a plain html page to see how easy it is to create a generic javascript to handle the ajax call-back pieces in question. My test showed it is easily possible so I'm not sure how much value you'll get from creating a

RE: AJAX: Whoa, Nellie!

2005-04-20 Thread David Suarez
ould be on the page: http://xxx.yyy.zzz?a=b&c=d";)"/> Same caveats as below apply...djsuarez -----Original Message- From: David Suarez Sent: Wednesday, April 20, 2005 3:26 PM To: '[EMAIL PROTECTED]'; Struts Users Mailing List Subject: RE: AJAX: Whoa, Nellie! Saw th

RE: AJAX: Whoa, Nellie!

2005-04-21 Thread David Suarez
ds...djsuarez -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 20, 2005 4:31 PM To: David Suarez Cc: Struts Users Mailing List Subject: Re: AJAX: Whoa, Nellie! David Suarez wrote: > Saw the flood of these AJAX messages and was interested so I

RE: Populating growing List

2005-05-23 Thread David Suarez
On the surface it looks like the code is wrong. Index 0 represents a size of 1 (zero-based array). Once you account for that, your array should grow as you desire. Regards...djsuarez -Original Message- From: Nils Liebelt [mailto:[EMAIL PROTECTED] Sent: Monday, May 23, 2005 6:50 AM To:

RE: Dynamically adding an ActionMapping

2004-12-20 Thread David Suarez
One benefit of allowing this flexibility may be the ability to re-use your IoC container so that more configuration information is in one place. I haven't kept up with jdk1.5 but I am guessing the problem mentioned below on double-locking has been resolved for that release. I'm not sure what perf

[OT] Approach to validation across browser versions

2005-01-05 Thread David Suarez
I may be working on a small privileged applet soon and the requirement is to ensure that it will work across various browsers/platforms (Mac/IE, PC/IE, Opera, etc. etc...). Since Java is pretty standardized I don't foresee any big issues with the testing if I use 1.3 and set the appropriate apple

[OT] RE: Welcome to sportslovers.net which is powered by Struts!

2005-01-20 Thread David Suarez
Is the "Powered By Struts" logo an official Struts logo or something that you created? Curious if there is some branding that I should be using when there are no requirements against something like that. Please advise...djsuarez -Original Message- From: t t [mailto:[EMAIL PROTECTED] Sen

RE: PlugIn and the base URL

2005-01-26 Thread David Suarez
Is your plug-in a 3rd party type component? What is the purpose of obtaining the URL? Maybe there's a suitable alternative depending on your requirements (ie. A Filter that would instantiate the objects you need to populate on the first request? A base action that lazy loads your config stuff?)

RE: PlugIn and the base URL

2005-01-26 Thread David Suarez
he URL before the SOAP service is open for business. Thanks. --Marty --- David Suarez <[EMAIL PROTECTED]> wrote: > Is your plug-in a 3rd party type component? What is the purpose of > obtaining the URL? Maybe there's a suitable alternative depending on > your requirement

RE: PlugIn and the base URL

2005-01-27 Thread David Suarez
> > > initializes the call dispatcher for the SOAP service. This > dispatcher > > > needs to know the URL of itself. This is a requirement of the > semantics > > > of the SOAP service (outside of my control). So a Listener or a > Plug In > > >

RE: PlugIn and the base URL

2005-01-27 Thread David Suarez
ssage----- From: David Suarez Sent: Thursday, January 27, 2005 8:12 AM To: 'Martin Wegner'; Struts Users Mailing List; Dakota Jack Subject: RE: PlugIn and the base URL The light came on when "the ip address is sufficient" came up. I had context paths and ports in my head.

RE: Popup window submitting to action

2005-01-27 Thread David Suarez
FYI.. I had a need for something similar to this in the past and later the same popup page ended up needing to allow handling of user errors/validation errors. What I ended up doing was submitting within the popup instead of directly to the parent as below. This allows you to be able to handle v

RE: PlugIn and the base URL

2005-01-28 Thread David Suarez
Hello, Looks like there's more than 1 David on this list. I'm the one who originally asked the question that you gave responses to. I guess all David's think alike and ask the same startup questions... ;-) Anyway, from the fogginess so far this is what I can conjure up as a make pretend example

RE: PlugIn and the base URL

2005-01-28 Thread David Suarez
- From: Dakota Jack [mailto:[EMAIL PROTECTED] Sent: Friday, January 28, 2005 9:49 AM To: Struts Users Mailing List Cc: Martin Wegner Subject: Re: PlugIn and the base URL On Fri, 28 Jan 2005 08:02:46 -0600, David Suarez <[EMAIL PROTECTED]> wrote: > Just the same, it's > likely not a