RE: getting non-struts form elements

2004-05-14 Thread Hubert Rabago
You can use request.getParameter()/getParameterValues() inside an Action to retrieve form values without using an ActionForm. However, without an ActionForm, you won't be able to use the Struts and related tags and form validation. --- None None <[EMAIL PROTECTED]> wrote: > Is it the case that e

Re: [Fwd: Faces Struts Tiles]

2004-05-18 Thread Hubert Rabago
There's an old IBM article illustrating this. http://www-106.ibm.com/developerworks/java/library/j-integrate/ Keep in mind this article was written before the final release of JSF. If you're looking for the nightly build of the struts-faces integration library, there's an open bug report concernin

Re: Setting the locale toa different value thanthe Browser Locale[]

2004-05-19 Thread Hubert Rabago
This was illustrated by None None in this mailing list in the past few days, with some suggestions for improvement from others. Check the archives. Actually, gimme a minute here... (types on keyboard) It's right here: http://marc.theaimsgroup.com/?t=10845587771&r=1&w=2 --- "[EMAIL PROTECTED]"

Re: Problem with number formatting

2004-05-19 Thread Hubert Rabago
The Struts form tags don't handle formatting or i18n. That's up to the Action object (or maybe ActionForm, depending on how you write your app). I believe there are locale-aware BeanUtils converters, though I haven't used them myself. You might wanna take a look at FormDef (http://www.rabago.ne

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

2004-05-25 Thread Hubert Rabago
I've been using 1.2.0 since it's been announced and have had no problems. However, additions to the framework since then have already made me feel like I'm using an obsolete version. :) There's been some obscure (IMO) compatibility issues with some obscure (again IMO) utility method, but then aga

Re: Catch-all ActionMapping?

2004-05-25 Thread Hubert Rabago
--- None None <[EMAIL PROTECTED]> wrote: > First, can anyone explain the settings of the debug and detail init params > of ActionServlet? I haven't been able to dig up any good detail. The best I believe the "debug" setting has been deprecated in favor of log settings for commons-logging (or w

Re: How to avoid File Download Dialog box?

2004-05-25 Thread Hubert Rabago
You should send this to the Struts User list ([EMAIL PROTECTED]) instead of the dev list. When you do, it might help to include the HTML code for the link that causes this. This problem looks like it could be caused by a conflict between your URL extension and an application or browser plugin ins

Re: How long are your struts-config files? Should I worry about performance?

2004-05-26 Thread Hubert Rabago
If your concern is with the physical size of your file, you can break down your struts-config into multiple files with your entries spread among them. What I do is have a main struts-config.xml containing my global values and all plug-ins, then have several struts-config-nnn.xml files for nnn-rel

Re: I need an html:submit to act as html:link

2004-05-28 Thread Hubert Rabago
See if adding style="cursor: hand" works. --- ksitron <[EMAIL PROTECTED]> wrote: > I need the cursor to change when over an html:submit button, similiar in > behavior > to an html:link. > > Possible or Not ?? > > > Thanks in advance. > > > -- > > > __

RE: Frank (was: None)

2004-06-01 Thread Hubert Rabago
"Frank Zammetti" sounds and looks better than "None None". Nice to finally learn your name! Hubert --- Frank Zammetti <[EMAIL PROTECTED]> wrote: > None none, it's funny seeing that there :) Guess I should change my > profile > to have my real name. There we go (I think). > > > >From: Irfa

Re: Removing form bean from where ever it is saved

2004-06-01 Thread Hubert Rabago
Sounds like a better approach for you is to put your form in request scope. Try something like: In any case, the attribute name is usually the same as the bean name, although an action mapping can change this by using the "attribute" attribute. Hubert --- Tim Penhey <[EMAIL PROTECTED]> wrot

Re: Refresh problem

2004-06-01 Thread Hubert Rabago
search the mailing list archive for information on Token Processing. Here's a start: http://marc.theaimsgroup.com/?l=struts-user&w=2&r=1&s=token&q=b Also, consider redirecting to the "list" page after processing a delete, or performing any DB update you don't want repeated by a refresh operation

Re: ServletContext in Action

2004-06-08 Thread Hubert Rabago
There's also getServlet().getServletContext() in case you don't want to go through the HttpSession object. --- Frank Zammetti <[EMAIL PROTECTED]> wrote: > Ah! I knew it would be an obvious answer I didn't see. Thank you! > > Frank > > > >From: [EMAIL PROTECTED] > >Reply-To: "Struts Users Mail

Re: ServletContext in Action

2004-06-08 Thread Hubert Rabago
ion, works fine. I would in fact prefer > > to not go through session if possible though... > > Frank > > > >From: Hubert Rabago <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >To: Struts Users Mailing Li

RE: How to convert tag to a submit button

2004-06-11 Thread Hubert Rabago
I think your problem is that the link itself goes somewhere instead of just calling the JS function. Why don't you try something like attName or even just a regular, non-struts tag, link? --- "PADALA, SANDHYA (SBCSI)" <[EMAIL PROTECTED]> wrote: > > > Hello Wendy, > > Thank you for replying t

RE: How to convert tag to a submit button

2004-06-11 Thread Hubert Rabago
So it's the 'return false' statement that makes your links different from Sandhya's. --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > > From: Hubert Rabago [mailto:[EMAIL PROTECTED] > > I think your problem is that the link itself goes somewhere > > inste

RE: Theoretical debate

2004-06-17 Thread Hubert Rabago
> From: Frank Zammetti [mailto:[EMAIL PROTECTED] > Most likely you would have a ShoppingCart class with a number of methods in it, > things like addItem(), removeItem(), totalPrice(), etc. I follow this design on my applications, on the *business logic* tier. On that tier (whether I imple

RE: Theoretical debate

2004-06-18 Thread Hubert Rabago
--- Frank Zammetti <[EMAIL PROTECTED]> wrote: > I know what your saying, it's the way I do things as well, doing very > little work in the Actions aside from tossing values around and calling > subordinate classes to do the real work. > > But doesn't that in a sense support the idea of an applicat

RE: [OT] Session facade

2004-07-07 Thread Hubert Rabago
--- "Zhang, Larry (L.)" <[EMAIL PROTECTED]> wrote: > Thanks all. I especially like " Firstly, just in case that EJBs will be > introduced in subsequent phases." > > However, before the discussion goes far from what I initially wanted, let > me ask you this: is your Facade the same as my Session Fa

Re: [OT] Struts limerick

2004-07-09 Thread Hubert Rabago
Another entry for the StrutsHaiku page. http://wiki.apache.org/struts/StrutsHaiku --- Bill Siggelkow <[EMAIL PROTECTED]> wrote: > There once was a web application > That used Struts for its implementation > The Boss said "Go Code It!" > Now the developer who wrote it, > Spends all of his time on v

Re: [FRIDAY] [OT] Struts limerick

2004-07-09 Thread Hubert Rabago
So... does this mean the limericks on the StrutsHaiku page should be moved? (Separation of concerns?) --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Bill Siggelkow" <[EMAIL PROTECTED]> > > There once was a web application > > That used Struts for its implementation > > The Boss said "Go Code

Re: Prepopulating forms & validation

2004-07-12 Thread Hubert Rabago
I wanted to ask about this. The javadoc of Validator's Form.inherit field ( http://jakarta.apache.org/commons/validator/apidocs/org/apache/commons/validator/Form.html#inherit ) has it marked as "Since Validator 1.2.0", so I was thinking the inheritance feature wasn't included yet. Do you know if

Re: Browser's refresh problem

2004-07-12 Thread Hubert Rabago
This is really how it's designed to work. For a form to be resubmitted, the user will have to regenerate the form, maybe by going back two pages, to the page that was shown *before* the form. As you might already know, this protects against accidental double submits. If you're looking for an alte

Re: Browser's refresh problem

2004-07-13 Thread Hubert Rabago
--- Ding Lei <[EMAIL PROTECTED]> wrote: > > Hi Hubert, > Thanks for your reply first .. but: > > On Mon, Jul 12, 2004 at 09:32:45PM -0700, Hubert Rabago wrote: > > This is really how it's designed to work. For a form to be resubmitted, > the > > user w

Re: Declarative Exception handling question

2004-07-13 Thread Hubert Rabago
For validation errors, do the usual, using the saveErrors to pass them to the JSP: // validation error ActionMessages actionMessages = new ActionMessages(); actionMessages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("illegal.username", username)); saveErrors(request, actionMessages)

Re: Browser's refresh problem

2004-07-13 Thread Hubert Rabago
Any chance that you just forget the resetToken() call? http://husted.com/struts/catalog.html (search for "resetToken") --- Ding Lei <[EMAIL PROTECTED]> wrote: > On Tue, Jul 13, 2004 at 08:12:23AM -0700, Hubert Rabago wrote: > > --- Ding Lei <[EMAIL PROTECTED]>

Re: Declarative Exception handling question

2004-07-13 Thread Hubert Rabago
s instances -- I am trying to let Struts do this for me, > and stick with declarative programming! > > Perhaps people will have opinions on these two ways of solving the same > problem. > > Erik > > > Hubert Rabago wrote: > > >For validation er

Re: examples of struts??

2004-07-14 Thread Hubert Rabago
Take a look at these: http://nagoya.apache.org/wiki/apachewiki.cgi?StrutsWebLinks http://wiki.apache.org/struts/PoweredBy --- Lykins Don H Contr AFSAC/ITS <[EMAIL PROTECTED]> wrote: > What real-world web sites are using struts? > > Can someone point me to some sites and do you know which packag

RE: examples of struts??

2004-07-14 Thread Hubert Rabago
by TODAY's standards. However, you would > not know that just from looking at the site, or looking at the URL's, or > the page or anything else your web browser might show you. > > > > > > > -Original Message- > > From: Hubert Rabago [mailto:[EMAIL

RE: Access to message properties from within application

2004-07-14 Thread Hubert Rabago
See if this works: getResources(request).getMessage(request.getLocale(),"test.me"); getResources(request) is a method of Action. Hubert --- Jan Behrens <[EMAIL PROTECTED]> wrote: > Thanks Jim, > > RTFM I did (yoda would say ;) What I want to do though, is access the > localized messages from w

Re: Struts Tag Lib VS JSTL Tag Lib

2004-07-14 Thread Hubert Rabago
AFAIK, the Struts tags aren't competing with JSTL tags. I believe the recommended approach is to use JSTL tags when you can, and use the Struts tags when you need functionality not provided by the JSTL tags. In short, if you're looking at writing a block of code and you can go either way, use JST

Re: Question concerning struts-config and app constants

2004-07-14 Thread Hubert Rabago
This is one of the enhancements Ted Husted (Struts Committer) is proposing. Personally, I wouldn't know if this is possible in the current version of Struts. If anybody knows how to do this on the current version, do share the how. Hubert --- Erik Weber <[EMAIL PROTECTED]> wrote: > I am parame

Re: Struts Sample / Best Practices for Database access

2004-07-15 Thread Hubert Rabago
The mailreader app is included with the 1.2.1 distribution. http://cvs.apache.org/dist/struts/v1.2.1/ --- Richard Reyes <[EMAIL PROTECTED]> wrote: > Thanks Ted. Where can i get the mailreader webapp again? > > Ted Husted wrote: > > >This is kind of a trick question, or at least a trick subject.

Re: How to use roles with Struts

2004-07-15 Thread Hubert Rabago
Ron, You can associate roles with each action mapping so that only users with certain roles can access that action. Hubert --- ron1 <[EMAIL PROTECTED]> wrote: > Thanx Jim :-) > Am I wrong on that one canonly configure web.xml roles on a servlet > base? which will mean, I set roles for a serv

Re: Submitting form does nothing

2004-07-23 Thread Hubert Rabago
I'm surprised it's working for some of them. Probably just coincidence. AFAIK, when you specify an action, you should include the "/" that comes before the action name. > > should be > > Hubert --- Claire Suttle <[EMAIL PROTECTED]> wrote: > I've been looking into my problem some more, an

Re: Submitting form does nothing

2004-07-23 Thread Hubert Rabago
t5 system. > > Either way, on tomcat3/java1.3: > and > > > expands to > > > and on tomcat5/java1.4 > and > > > expands to > > > Claire > > - Original Message - > From: "Hubert Rabago" <[EMAIL PROTECTED]> >

Re: pulling dynamic data out of a form...

2004-07-30 Thread Hubert Rabago
The problem is that Struts tries to populate your form, it starts with an empty collection. Take a look at LazyList (search the mailing list archives), or pre-initialize your form and put it in session scope. For more info, read http://struts.apache.org/faqs/indexedprops.html and http://www.deve

Re: pulling dynamic data out of a form...

2004-07-30 Thread Hubert Rabago
of data? i'd prefer not to use DynaActionForms as the > article suggests because they got me into trouble once before. :) > > i'd look through the mailing list archives if they were searchable. > but as i noted in my previous post i keep getting the message 'Text &

Re: struts help

2004-08-03 Thread Hubert Rabago
Manning Publications also provides a sample chapter from Struts In Action that covers the validator. http://www.manning.com/catalog/view.php?book=husted Most of the material should still apply to the current version. --- Niall Pemberton <[EMAIL PROTECTED]> wrote: > http://struts.apache.org/user

Re: ActionForm vs Hibernate POJO

2004-08-03 Thread Hubert Rabago
Take a look at FormDef (http://www.rabago.net/struts/formdef). It can define your form beans for you using your POJOs. I know at least one developer who's combined FormDef and Hibernate and was pleased with the results. Hubert --- [EMAIL PROTECTED] wrote: > I want to reuse the Hibernate pojo,

Re: missing reload method on ActionServlet

2004-08-10 Thread Hubert Rabago
Reload is no longer supported. http://struts.apache.org/faqs/newbie.html#reload --- Andy Dailey <[EMAIL PROTECTED]> wrote: > I am currently in process of upgrading to version 1.1, an application > that was build on version 1.0.2. Right now it seems that I am stuck. I > have extended the ActionS

RE: Problem depoying struts-blank.war

2004-08-11 Thread Hubert Rabago
- Resend: Not sure why the first one didn't show; apologies if this becomes the second one - It could be just what the error says -- needs a . Since you don't have any yet, you can comment out the validator plugin for now by opening struts-config.xml and commenting out the last very last entry

RE: Problem depoying struts-blank.war

2004-08-11 Thread Hubert Rabago
It could be just what the error says -- needs a . Since you don't have any yet, you can comment out the validator plugin for now by opening struts-config.xml and commenting out the last very last entry there, which starts with: With that uncommented, the app should deploy. If it doesn't, send

RE:

2004-08-11 Thread Hubert Rabago
--- Tom Kane <[EMAIL PROTECTED]> wrote: > My questions are: > > 1) Do I need to put "errors" in the session so that it survives the > redirection long enough to be displayed? That's one way to do it. In support of this, Struts 1.2.x has what's called "Session-scoped ActionMessages". See the re

Re: xdoclet and struts forms

2004-08-12 Thread Hubert Rabago
I'm not saying you should switch the whole team over now, but it might help you to be aware that you can break down your struts-config.xml into several files, each containing its own set of form beans and action declarations. I usually break it down by functionality, so it's easier for me to find

RE: Loosing request attributes

2004-08-13 Thread Hubert Rabago
This is because when the user submits the form, that already starts a different request, so the request attributes are no longer there. In your mapping for the action where the form gets submitted to, where does the input attribute point to? Hubert --- Leandro Melo <[EMAIL PROTECTED]> wrote: > A

RE: Losing request attributes

2004-08-13 Thread Hubert Rabago
You can point the "input" to an action which will populate the request with the attribute(s) you need, and then forwards to your form. --- Hubert Rabago <[EMAIL PROTECTED]> wrote: > This is because when the user submits the form, that already starts a > different r

Re: Who calls the validate method ???

2004-08-13 Thread Hubert Rabago
It's actually the RequestProcessor. There's a processValidate() there where the form's validate() method is called. --- Leandro Melo <[EMAIL PROTECTED]> wrote: > Hi, > could anyone tell me who calls the validate method of > the ActionForms? > > I thought it was ActionServlet, but it seems not be

Re: Specifying HTML form names

2004-08-14 Thread Hubert Rabago
Just sharing a simple test I just did. It looks that you can't have two forms with the same name on one document. I created a page with two forms with the same name, then checked how the browser sees them with a quick javascript: var result = "Forms in this document:\n\n"; for (var i=0; i < docu

Re: Specifying HTML form names

2004-08-14 Thread Hubert Rabago
IIRC, the form tag used to have an attribute so you can specify the form name, though I never used it because I never needed to. It was deprecated and eventually removed. Hubert --- Jacob Weber <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > Hubert Rabago

Re: Overwritting RequestProcessor, how to???

2004-08-15 Thread Hubert Rabago
The Tiles plugin automatically changes your request processor to use the one that comes with Tiles. If you need to override the RequestProcessor, make sure you extend TilesRequestProcessor like Niall said. --- Leandro Melo <[EMAIL PROTECTED]> wrote: > Niall, > i actually use tiles, but does it m

Re: Mapping ActionPath to a method in DispatchAction

2004-08-15 Thread Hubert Rabago
If you're using Struts 1.2.x or the nightly builds, take a look at the MappingDispatchAction. It does exactly what you're looking for. http://struts.apache.org/api/org/apache/struts/actions/MappingDispatchAction.html hth, Hubert --- Kunal Parikh <[EMAIL PROTECTED]> wrote: > Hi! > > I was wond

Re: variable number of parameters in DynaValidatorActionForm

2004-08-18 Thread Hubert Rabago
Take a look at Dyna ActionForms: http://www.niallp.pwp.blueyonder.co.uk/ --- "Hevia_Vega,_Andrés" <[EMAIL PROTECTED]> wrote: > Hi: > We are developing an application with struts using > DynaValidatorActionForm. > The attributes of the forms must be declared in struts-config file. Can I > have dy

Re: errors get lost on redirect

2004-08-20 Thread Hubert Rabago
On Fri, 20 Aug 2004 17:19:24 +0200, Axel Seinsche <[EMAIL PROTECTED]> wrote: > Bill Siggelkow schrieb: > > > I don't understand exactly why you are doing the redirect? Why not > > just set the input attribute to be the page you are redirecting to ... > > then Struts will forward to it when validat

Re: Question about Scaffold

2004-08-20 Thread Hubert Rabago
Since scaffold is a struts subproject, I think this is the "official" user list for it. There's also a commons-scaffold, though, so may also want to try the commons lists. I believe Ted Husted is the lead developer for the scaffold extensions; not sure if there are other developers now working on

Re: Question about Scaffold

2004-08-20 Thread Hubert Rabago
Before somebody flags me, I'll correct myself. IIUC, Apache projects don't have a concept of "lead" developers, at least officially. So saying Mr. X is the lead developer for an Apache project/subproject would be officially inaccurate. On Fri, 20 Aug 2004 13:41:37 -0500, H

Re: ActionForm.validate() to dynamic input?

2004-08-25 Thread Hubert Rabago
See http://marc.theaimsgroup.com/?l=struts-user&m=109302108205069&w=2 On Wed, 25 Aug 2004 09:56:01 -0700 (PDT), Woodchuck <[EMAIL PROTECTED]> wrote: > hihi, > > i'm using Struts' built-in ActionForm validation mechanism, and it > works fine. If the ActionErrors container is not empty, it will >

Re: Instance variable is not recommended to be used in Action class

2004-08-26 Thread Hubert Rabago
As far as instances go, you should treat an Action the way you would a servlet. The same instance is reused by Struts in responding to multiple requests. Because of this, you can easily get conflicting data when you use an Action instance variable for purposes specific to a certain request. For e

Re: Back Button

2004-08-26 Thread Hubert Rabago
The browser tells you the page has expired because you're trying to get to a page that was produced by doing a POST. The browser won't re-POST form information as a security precaution. If you want to be able to get around this, use GET in your search. On Thu, 26 Aug 2004 12:14:12 -0700 (PDT), s

Re: Reseting one field on a DynaActionForm to it's initial value?

2004-08-27 Thread Hubert Rabago
Well, it ain't that easy: // code taken from DynaActionFormClass DynaActionForm formBean = (DynaActionForm) form; FormBeanConfig config = ModuleUtils.getInstance().getModuleConfig(request).findFormBeanConfig("myFormName"); FormPropertyConfig props[] = config.findFor

Re: Reseting one field on a DynaActionForm to it's initial value?

2004-08-27 Thread Hubert Rabago
By the way, this code works in 1.2. In 1.1, I think you'll only have to change the ModuleUtils.getInstance() with RequestUtils. On Fri, 27 Aug 2004 10:21:32 -0500, Hubert Rabago <[EMAIL PROTECTED]> wrote: > Well, it ain't that easy: > >// code taken

Re: Reseting one field on a DynaActionForm to it's initial value?

2004-08-27 Thread Hubert Rabago
e of the form? > > Paul Spencer > > > > > Hubert Rabago wrote: > > > Well, it ain't that easy: > > > > // code taken from DynaActionFormClass > > DynaActionForm formBean = (DynaActionForm) form; > > FormBeanConfig con

Re: Reseting one field on a DynaActionForm to it's initial value?

2004-08-27 Thread Hubert Rabago
form. > > As an example: > I have 2 Actions, EmployeeAction and TruckAction. > Valid values for "SortOrder" in EmployeeAction are "id, name, hireDate". > Valid values for "SortOrder" in TruckAction are "id, purchaseDate, and > mileage". >

Re: Not happy with approaches.. looking for better/other suggestions

2004-09-02 Thread Hubert Rabago
Have you tried using ListUtils.lazyList() for this? I just tried it on a sample app and it works in cases like this. - Hubert On Thu, 02 Sep 2004 14:27:32 -0400, Rick Reumann <[EMAIL PROTECTED]> wrote: > One of the most frustrating things I run into when developing Struts > applications is the p

Re: Not happy with approaches.. looking for better/other suggestions

2004-09-02 Thread Hubert Rabago
ed in CollForm.reset(), you won't have to call reset() in your Action, just call ListUtils.lazyList() directly. hth, Hubert On Thu, 02 Sep 2004 15:52:20 -0400, Rick Reumann <[EMAIL PROTECTED]> wrote: > Hubert Rabago wrote: > > > Have you tried using ListUtils.lazyList()

Re: Action Mapping From a JSP to Another JSP

2004-09-07 Thread Hubert Rabago
I think Jim meant to say "ForwardAction". http://struts.apache.org/api/org/apache/struts/actions/ForwardAction.html On Tue, 7 Sep 2004 12:49:49 -0700, Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, S

Re: Database Mapping

2004-09-08 Thread Hubert Rabago
You can combine Hibernate and FormDef to get this mapping. Create your transfer objects and map them to your database using Hibernate, then use FormDef to map formbeans to your transfer objects. Hubert On Wed, 8 Sep 2004 08:20:08 -0400, James Mitchell <[EMAIL PROTECTED]> wrote: > I'm not exactl

Re: Proper place for validation

2004-09-08 Thread Hubert Rabago
Maybe there weren't a lot of comments because people agreed with Robert. :) For your followup, the reason you get one of (a) and (b) is because you're thinking that the error message should come from the business tier. I like to think that it shouldn't. Error messages are a presentation tier re

Re: How to resolve label in ActionMessage?

2004-09-08 Thread Hubert Rabago
The first parameter of the ActionMessage constructor is the message key. The rest (which are optional), are the actual parameters to the message. If your parameter is itself in need of evaluation, you'll need to do that yourself before you pass that on to ActionMessage. For that, you can call ge

Re: How to resolve label in ActionMessage?

2004-09-08 Thread Hubert Rabago
AIL PROTECTED]> wrote: > Hubert, > > Are you unable to do this from an ActionForms validate method? > > Joshua > > > > > -Original Message- > From: Hubert Rabago [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 9:50 AM > To: St

Re: How can I know the version of common-validator.jar included in struts 1.1

2004-09-14 Thread Hubert Rabago
It's in the manifest.mf of the jar file. It's version 1.0.2. Hubert On Tue, 14 Sep 2004 18:25:32 +0800, Chris <[EMAIL PROTECTED]> wrote: > Howdy, > > I want to download and the common-validator.jar 's source code , > so I want to know the common-validator 's version to download > the right so

Re: Validation for Two Levels of Indexed Properties (was: Off Topic Post Air Time vs. Struts Answers)

2004-09-14 Thread Hubert Rabago
Terry, I share your concern about OT messages drowning out valid Struts questions. However, in this particular case, it could be a matter of not a whole lot of people having experience with the problem. For the situation you have, I have to say I just avoided it when I encountered it. At the ti

Re: Validation for Two Levels of Indexed Properties

2004-09-14 Thread Hubert Rabago
t to try to get things done and/or > find information increases exponentially. I was hoping this mailing > list might be the port in the storm I was seeking. I'm still hoping and > hopeful... > > Thanks again, > > TR > > Hubert Rabago wrote: > > Terry, > &

Re: Mail Archive Access

2004-09-14 Thread Hubert Rabago
Which archive are you using? Try http://marc.theaimsgroup.com/?l=struts-user&r=1&w=2 Hubert On Tue, 14 Sep 2004 19:08:40 -0700, Josh Holtzman <[EMAIL PROTECTED]> wrote: > Can someone please provide me with the location of a mirror of the mailing > list archive? > > The search feature seems to be

Re: Browser Back Button (IE) Problem in Struts Land

2004-09-15 Thread Hubert Rabago
You are getting a "Page Expired" because the page you're trying to go back to was produced by a POSTed form. The browser won't rePOST data to the server unless the user explicitly allows it to (as a "security precaution"). If you want to redisplay form results without the Page Expired message, ei

Re: and modules

2004-09-15 Thread Hubert Rabago
I don't think submitting a form to a separate module is allowed by the Struts tags. Actions are specific to each module. IIRC, You can define the same path in different modules and they will be treated as different mappings. You can even define forms with the same form name in different modules

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

2004-09-15 Thread Hubert Rabago
Wow. You're using the tags for this form, right? I haven't tried this yet, but there's a chance you might be able to define a form with a field that matches FooBar: class MyForm { FooBarForm fooBar; // then you'll have your accessors, of course class FooBarForm { Integer id;

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

2004-09-15 Thread Hubert Rabago
Oops. Just to clarify, it should be class MyForm extends ActionForm On Wed, 15 Sep 2004 20:25:30 -0500, Hubert Rabago <[EMAIL PROTECTED]> wrote: > Wow. You're using the tags for this form, right? > > I haven't tried this yet, but there's a chance you might b

Re: Validation problem - form still submits after client-side validat ion fails.

2004-09-20 Thread Hubert Rabago
I could be wrong, and i don't have the time to verify this with code right now, but it's possible that the reason the form still gets submitted is because you're calling form.submit() directly. That might be bypassing the onsubmit="return validateMyForm(this)". You *do* have that, right? I don't

Re: Forward to a file on hard drive

2004-09-22 Thread Hubert Rabago
If you need to forward to a resource outside the current web context, you can try using a redirect. http://gmail.google.com"; redirect="true"/> Now, whether it'll work when you point it to a local resource... I think what you'll get is the user's browser will try to look for that file on the use

Re: Forward to a file on hard drive

2004-09-22 Thread Hubert Rabago
;t know what > other choices there are. > > Hubert Rabago <[EMAIL PROTECTED]> wrote on 09/22/2004 12:00:00 PM: > > > > > If you need to forward to a resource outside the current web context, > > you can try using a redirect. > > > > http://gmail.googl

Re: Forward to a file on hard drive

2004-09-22 Thread Hubert Rabago
t; > Founder and Chief Software Architect > > Omnytex Technologies > > http://www.omnytex.com > > > > On Wed, September 22, 2004 1:23 pm, [EMAIL PROTECTED] said: > > > > > > > > > > > > > > > This doesn't work either. I

Re: Forward to a file on hard drive

2004-09-22 Thread Hubert Rabago
from the description given, that this wasn't the case. > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > > > > On Wed, September 22, 2004 2:03 pm, Hubert Rabago said: > > In that case, try s

Re: Forward to a file on hard drive

2004-09-22 Thread Hubert Rabago
ay. > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > > > > On Wed, September 22, 2004 2:08 pm, Hubert Rabago said: > > Hmm... and my understanding was that the file is installed on the > > user&#x

Re: Path .frame.content Does Not Start With a "/" Character

2004-09-22 Thread Hubert Rabago
These tile errors are usually typo-related. Your struts-config has both frame.content and frame.Content. Maybe only one of these are valid? If both are really valid, make sure they're both in your tiles config file. Hubert On Wed, 22 Sep 2004 14:54:37 -0700 (PDT), Caroline Jen <[EMAIL PROTECTE

Re: Finding out what version of Struts

2004-09-23 Thread Hubert Rabago
You can check the version number in the manifest.mf of the struts.jar. Take note, though, that the 1.2.1 distribution had "1.2.0" in the manifest. Also, I don't know if the 1.0x jars had this information, but the 1.1 jar did. Hubert On Thu, 23 Sep 2004 10:19:58 -0400, CCNY <[EMAIL PROTECTED]> wro

Re: MappingDispatchAction ...what what should be the value of the action attribute of html:form

2004-09-23 Thread Hubert Rabago
1. The action attribute of the form tag should point to the action that will process the form upon submission. In your case, it looks like it would be "/updateCustomer", but I'm just guessing. 2. I usually just put or "Save" or something similar there because I usually have only one submit butt

Re: MappingDispatchAction ...what what should be the value of the action attribute of html:form

2004-09-23 Thread Hubert Rabago
DispatchAction . > > I am asking because I am using MappingDispatchAction > for my project. > > Thank you. > > > > --- Hubert Rabago <[EMAIL PROTECTED]> wrote: > > 1. The action attribute of the form tag should > > point to the action >

Re: Dynamic forwards?

2004-09-24 Thread Hubert Rabago
Aside from the JS solution, you can also return an action forward with a modified path: // in 1.2.x ActionForward result = new ActionForward(mapping.findForward("masterJsp")); result.setPath(result.getPath() + "#XX"); return result; - Hubert On Fri, 24 Sep 2004 14:28:01 -0700, Wendy Smoak <[EMAI

Re: Dynamically Display in the Textarea Based on Menu Selection Made by Users

2004-09-24 Thread Hubert Rabago
It seems what you want is to run server side code and update the value of a control on the browser on the client without submitting/updating the entire page. See this article for an example of how this can be done: http://developer.apple.com/internet/webcontent/iframe.html hth, Hubert On Fri,

Re: Back Button Woes!!!!

2004-10-11 Thread Hubert Rabago
This happens when you're trying to go back to a page that was produced by a POSTed form. If you want to avoid this, use GET when submitting a form, or use redirect when displaying the resulting page. Hubert On Mon, 11 Oct 2004 18:11:55 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > How d

Re: OT Re: Back Button Woes!!!!

2004-10-11 Thread Hubert Rabago
On Mon, 11 Oct 2004 18:56:20 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I can't start using Swing. I need to know why every time I hit the back button, even > when I have and click the back buton, I get the > Page Expired screen? > Because, uhm, you didn't read the archives? :) htt

Re: OT Re: Back Button Woes!!!!

2004-10-12 Thread Hubert Rabago
On Mon, 11 Oct 2004 23:28:10 -0400, Rick Reumann <[EMAIL PROTECTED]> wrote: > Vic, I briefly read over the article. I agree that we'll see more and > more rich clients, but one of the problems is people aren't going to > want to always install stuff on their desktop in order to run an > application

Re: Iterating through nested sets of objects

2004-10-12 Thread Hubert Rabago
Just based on your working example, shouldn't you be using: with id="element2" instead of name="element2"? On Tue, 12 Oct 2004 19:49:28 +1000, Langdon Stevenson <[EMAIL PROTECTED]> wrote: > Hi > > I am trying to output the contents of a set of nested Objects in a JSP > page using the tagli

Re: iterate indexId (was: iterate paging)

2004-10-12 Thread Hubert Rabago
See http://struts.apache.org/faqs/indexedprops.html#dynamicindexes On 12 Oct 2004 16:13:43 +0800, Sebastian Ho <[EMAIL PROTECTED]> wrote: > Does anyone has an example using struts iterate? How does indexId works? > > Sebastian > > > > > On Sat, 2004-10-09 at 01:05, Bill Siggelkow wrote: > >

Re: JSF and Struts Integration

2004-10-12 Thread Hubert Rabago
Lots of people more qualified than me to respond to your questions, but I know a little bit about the theory and can give you a preview of what they'll likely say. On Tue, 12 Oct 2004 11:29:56 -0400, Sean Schofield <[EMAIL PROTECTED]> wrote: > I have been doing some reading recently on JSF and I

Re: JSF and Struts Integration

2004-10-12 Thread Hubert Rabago
Geez, my writing can be very confusing. > Whose focus? Struts users miss out on lots of developments outside > Struts, but they miss out on Struts progress as well. I meant, those not using Struts would miss out on Struts developments as well. Maybe it's time for me to get some lunch. Hubert

Re: DynaActionForm FUD (was: DynaValidateForms: how to reset() or initialize())

2004-10-13 Thread Hubert Rabago
On Wed, 13 Oct 2004 14:08:34 +0200, Ing. Stefano Peruzzi > Thanks in advance, > S.Peruzzi > > PS: If you're in early stages of development, try to AVOID DynaActionForms, read > this: http://jroller.com/page/javajoe/20040325?catname=Java Some of his points are just plain wrong. See Niall's res

Re: How to read MessageResources.

2004-10-13 Thread Hubert Rabago
Put this in a util class and call evaluateMessage(): /** * Evaluate the given message resource key. * * @param messageKey the name of the resource entry to retrieve * @param bundle The key specified in the * element for the * resource bundle

Re: The old 'please wait' issue

2004-10-13 Thread Hubert Rabago
It's common to see "please wait" messages that look different from the rest of the app. You may be able to get away with using a totally different page/layout for this page. If not, you can consider using javascript to do the automatic submission. On Wed, 13 Oct 2004 15:29:31 +, andy wix <[

  1   2   3   4   5   6   >