Re: struts source (newbie)

2003-10-31 Thread Hubert Rabago
You don't need the source to use struts in your application. Some of the classes are meant to be extended and some are meant to be used directly. Check out the user guide http://jakarta.apache.org/struts/userGuide/index.html. -Original Message- From: koen boutsen [mailto:[EMAIL

Re: session time-out in pop-up windows

2003-11-03 Thread Hubert Rabago
Another way might be: 1. user clicks link for pop-up window, window pops-up and initiates the web request 2. Filter intercepts the request and senses that the session has timed out 3. Before redirecting, filter recognizes that the request was sent by a popup, and instead redirects to a different

RE: session time-out in pop-up windows

2003-11-03 Thread Hubert Rabago
/param-value /init-param init-param param-namepopupUrl2/param-name param-value/notice.do/param-value /init-param You can collect these in your filter (all init params that start with 'popupUrl') and respond accordingly. Hubert --- Rabago, Hubert [EMAIL PROTECTED] wrote: You'd have to find

Exception Handling in Action objects

2003-11-03 Thread Hubert Rabago
What's your approach to handling exceptions in your Action objects? Do you have a catch (Exception e) in your actions with special clauses for specific cases? I'm thinking of going this way: public ActionForward execute(...) throws Exception { // get values from parameters //

RE: Exception Handling in Action objects

2003-11-03 Thread Hubert Rabago
- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 12:41 PM To: [EMAIL PROTECTED] Subject: Exception Handling in Action objects What's your approach to handling exceptions in your Action objects? Do you have a catch (Exception e) in your actions

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Hubert Rabago
I got this yesterday. It means Tiles didn't intercept your forward request because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile. If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the tiles it'll recognize when you app starts up. Make sure yours is listed. I'm

Re: ApplicationResources.properties

2003-11-03 Thread Hubert Rabago
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % bean:message key=my.message/ --- Norr, Peter [EMAIL PROTECTED] wrote: Newbie question.. Given the following ApplicationResources.properties file.. my.message=hello world. How do I print out my.message in a jsp page? Peter

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Hubert Rabago
I go about turning on debug for Tiles? Hubert Rabago wrote: I got this yesterday. It means Tiles didn't intercept your forward request because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile. If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the tiles it'll

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Hubert Rabago
, from what I can see. ?!? Hubert Rabago wrote: I got this yesterday. It means Tiles didn't intercept your forward request because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile. If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the tiles

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Hubert Rabago
to parse my tiles-def.xml just fine, from what I can see. ?!? Hubert Rabago wrote: I got this yesterday. It means Tiles didn't intercept your forward request because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile. If you turn debug on for Tiles (org.apache.struts.tiles

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Hubert Rabago
forwards. --- Ruth, Brice [EMAIL PROTECTED] wrote: No difference ... just changed it to /tilestest. Hubert Rabago wrote: I've had success with tile names starting with ., and with ForwardAction. I haven't combined both yet, but can't imagine why a combination would fail. What I haven't tried

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Hubert Rabago
locale=false/ Hubert Rabago wrote: I dunno. Try to find some other possible causes. Do you only have one struts-config.xml? Maybe you have multiple and the different plug-ins are causing problems. Are you using a custom RequestProcessor? If you are, it must extend

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Hubert Rabago
: Where should I be looking for this message? Hubert Rabago wrote: I haven't tried that before, either. AFAIK, having the plug-in takes care of installing the TilesRequestProcessor -- you don't have to specify it. But since a subclass works, having that should work, too. When you run

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Hubert Rabago
, bribing is next :)) Ruth, Brice wrote: OK, I have simplelog set to debug and I don't see any errors - it seems to parse my tiles-def.xml just fine, from what I can see. ?!? Hubert Rabago wrote: I got this yesterday. It means Tiles didn't intercept your forward

Re: Forward attribute vs. ForwardAction

2003-11-05 Thread Hubert Rabago
Phil, ForwardAction allows a response to still go through struts processing. Not all of the Struts features will kick in or perform as expected when you use forward=/login.jsp. I don't have a full list of which ones will still work and which ones won't, and it may depend on the complexity of

Re: Trouble redirecting

2003-11-05 Thread Hubert Rabago
What does your action mapping look like and what are your returning to struts from within your Action? You can use redirect=true to redirect to yahoo: action path=... forward name=redirectToYahoo path=http://www.yahoo.com; redirect=true/ /action and in your Action: return

Re: Trouble redirecting

2003-11-05 Thread Hubert Rabago
If you want to do the redirect from within your Action, you can still use response.sendRedirect(http://www.yahoo.com;); and then return null to Struts instead of an ActionForward. --- Hubert Rabago [EMAIL PROTECTED] wrote: What does your action mapping look like and what are your returning

Re: Trouble redirecting

2003-11-05 Thread Hubert Rabago
is in. Thanks again, Marcella From: Hubert Rabago [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Trouble redirecting Date: Wed, 5 Nov 2003 08:49:41 -0800 (PST) If you want to do the redirect from within your

Re: Forward attribute vs. ForwardAction

2003-11-05 Thread Hubert Rabago
operations they need to work right are done before the forward attribute is processed. But maybe i didnt examine the source code right. If you know a case in which a feature does not work with the forward attribute this would be very helpful to me. Phil - Original Message - From: Hubert

Re: Trouble redirecting

2003-11-05 Thread Hubert Rabago
It looks like you're not the first to have redirect=true backfire on you when trying to redirect to an absolute path. I wonder why that is. You can try response.sendRedirect() within your action class and just return null. --- Marcella Turner [EMAIL PROTECTED] wrote: Hi Rick and Hubert,

Re: Trouble redirecting

2003-11-05 Thread Hubert Rabago
://www.yahoo.com;); How/where am I returning a NULL? Thanks, Marcella From: Hubert Rabago [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Trouble redirecting Date: Wed, 5 Nov 2003 10:56:31 -0800 (PST

Re: [OT] Security Filter - Active Authentication (Better)

2003-11-06 Thread Hubert Rabago
Hi Brandon, I would be very interested in your implementation. If you don't have it up somewhere already and you don't mind, can you send it to me? thanks, Hubert --- Brandon Goodin [EMAIL PROTECTED] wrote: I wrote an implementation of the Active Authentication idea introduced in Java

Re: Dynamic Image from DB to JSP

2003-11-06 Thread Hubert Rabago
When the browser encounters the IMG src=some.ext tag, it sends another request for the some.ext resource. You have to serve this through another servlet or action. --- Marc AMIR-TAHMASSEB [EMAIL PROTECTED] wrote: Hi, I have an image in my Database and I want to display it. Before creating

RE: Dynamic Image from DB to JSP

2003-11-06 Thread Hubert Rabago
You can also specify a default filename for the image through response.setHeader(Content-Disposition,filename= + imageFilename); so when the user attempts to save the image, he/she doesn't get images.do as the default. --- David Friedman [EMAIL PROTECTED] wrote: Marc, That's a tricky one

Re: Repost: getting property value through Struts plugin?

2003-11-06 Thread Hubert Rabago
Have you tried looking at the TilesPlugin source? There's a method named findStrutsPlugInConfigProperties which sounds like it's what you're looking for. --- mobile q [EMAIL PROTECTED] wrote: Hi, guys: I should have made it clearer. Once I declare plugin in my struts-config file as below,

Re: [OT] [ANNOUNCE] JUnit in Action now available

2003-11-10 Thread Hubert Rabago
The amazon.com developers need to read this book and find a port for the language they use. Two days ago the listing for this book said ships in 2-3 months. :) --- Brice Ruth [EMAIL PROTECTED] wrote: Sweet! Just what I was lookin' for ... :) JUnit rocks, we mere mortals simply need some

Re: Can't see my ActionForm in Action or any Context

2003-11-11 Thread Hubert Rabago
Peter - that's is how it's supposed to run. The form is available to the Action it was submitted to, carrying with it the values typed in by the user. --- Peter Klassen [EMAIL PROTECTED] wrote: Hi all, can't see my ActionForm in my Action, which triggers the Forward to the Page with the

Re: Can't see my ActionForm in Action or any Context

2003-11-12 Thread Hubert Rabago
: First, Thanks for your reply, Hubert! To the Question: I understood the theme very similar, like you described. But i got to init the form with data and it would be more easy to do it in a action before and not on a page. That's my problem. :o) Greetings, Peter Hubert Rabago schrieb im

RE: [OT] Handling database connection exceptions

2003-11-17 Thread Hubert Rabago
understood where I'm coming from! As I said, the database connection is accessed from a Data Access class (read model), which is called from my DispatchAction class. Since the exception is not caught in my DispatchAction class (the methods throw Since the connection is being accessed from a

Re: Including multiple servlets from a jsp page.

2003-11-17 Thread Hubert Rabago
Tiles is one way to do it. Take a look at the Tiles Controller. http://jakarta.apache.org/struts/api/org/apache/struts/tiles/Controller.html Check out http://www.theserverside.com/resources/article.jsp?l=Tiles101 for some explanation on it. --- Chris Blackburn [EMAIL PROTECTED] wrote: I am

RE: Using Tiles Definitions In Standard Links?

2003-11-18 Thread Hubert Rabago
I don't know if you can directly link to a tile, because the web container will still need a way to get to your tile from a URL. You might still need an action, but at least if you use the ForwardAction that comes with struts, you won't need to write one. -Original Message- From: [EMAIL

Re: Form data vs request attributes

2003-11-18 Thread Hubert Rabago
ActionForm objects are representation of a form and the data in the form. It holds the values of your INPUT, SELECT, TEXTAREA and other form controls. The options of a SELECT control are only used to help the user choose a value; its only purpose is to give the SELECT control a value and isn't

RE: IDE

2003-11-19 Thread Hubert Rabago
Sergio, If you're looking for an IDE with good Struts support, I'd suggest you look at WSAD. It's based on Eclipse. It's got decent knowledge of what struts is and what your config.xml is supposed to have in it. However, I'm pretty convinced it's also one of those IDEs that give IDEs a bad

Re: ForwardAction with Redirect

2003-11-20 Thread Hubert Rabago
It doesn't. ForwardAction generates ActionForward objects specifying only the path and the contextRelative properties. Juan, the good news is its easy to write your own. Just copy the ForwardAction code and add retVal.setRedirect(true); in the execute() method, then point your action mapping to

Re: ForwardAction with Redirect

2003-11-20 Thread Hubert Rabago
don't add this to the distribution. It seems like a simple enough thing. Take care --- Hubert Rabago [EMAIL PROTECTED] wrote: It doesn't. ForwardAction generates ActionForward objects specifying only the path and the contextRelative properties. Juan, the good news is its easy

Re: forward vs redirect ?

2003-12-01 Thread Hubert Rabago
Anthony, I use redirect to separate actions which do work and actions which display information. Let's say I have 2 pages/Action objects: DisplayItem, ProcessBid. The user sees an item he likes (say displayItem.do?id=123) and enters a bid. The bid will get submitted to processBid.do. Once

Re: forward vs redirect ?

2003-12-01 Thread Hubert Rabago
Hi Caroline, I sent you a struts war file ready to deploy. It includes all source files. Call up the displayItem.do, enter a bid amount, submit the form, then refresh on the resulting page. Both action objects do a System.out.println when they're called. When you refresh the page after

Re: forward vs redirect ?

2003-12-01 Thread Hubert Rabago
If you define double submissions as the user clicking submit twice, then no, redirect doesn't save you from that. You should use transactional tokens (assuming your app design/specs allow you to). If your mappings are like this: action path=/displayItem type=MyDisplayAction forward

Re: Trouble With Multiple Message Resources Bundles

2003-12-01 Thread Hubert Rabago
I haven't used the multi bundles before, but I remember recently someone saying the order by which s/he declared the resources solved the problem: message-resources key=approvals parameter=com.myapp.one / message-resources key=org.apache.struts.action.MESSAGE parameter=com.myapp.two / instead

Re: indexed properties mini(est) HOWTO

2003-12-15 Thread Hubert Rabago
The wiki might be a good place for this: http://nagoya.apache.org/wiki/apachewiki.cgi?StrutsNewFaqs --- Rajat Pandit [EMAIL PROTECTED] wrote: hello, am positng a quick HOWTO to get started with using indexed properties, as i guess almost everyone has had to deal with it atleast once. pls

RE: [OT] I didn't know Struts was an antipattern

2003-12-15 Thread Hubert Rabago
It isn't practical to apply all suggested features/patches anyway, especially those which may not be needed by a lot of users. There's the struts project in sf.net, too, but not all features may be big enough to merit a listing there. Maybe after the command chain is implemented in Struts, we

Re: Login Security

2003-12-16 Thread Hubert Rabago
Several organizations expose the same IP address for most or all users. You'd be blocking entire organizations because of one bad login. --- Janusz_Dziadoñ [EMAIL PROTECTED] wrote: I think, that you should register blocked IP anyway in database. It helps to explain situations like below.

Re: Can't upload file?!

2003-12-23 Thread Hubert Rabago
Check if the file you're uploading exceeds the limit set in the struts-config file. I think a blank page is what I got when I did that on my tests. Hubert --- Brice Ruth [EMAIL PROTECTED] wrote: I'm trying to follow the example provided by the struts-upload app, but for some reason, the

Re: Summary - server hangs after finite number of requests

2004-01-08 Thread Hubert Rabago
Wow, I hope most other people conclude with a summary like this after a problem is resolved. This surely makes it easier for people who do the right thing by scouring the archives before posting to the mailing list. --- Heather Marie Buch [EMAIL PROTECTED] wrote: I solved the problem, thanks to

RE: Multiple file uploads (was: Uploading in Struts !!!)

2004-01-08 Thread Hubert Rabago
Karikalan, there has been several discussions about uploading files on the user list, some I think even from the past couple of days. The example Andrew mentioned is struts-upload.war in the webapps directory of the Struts distribution. It comes with source code. This may not apply to you, but

Re: html:text and converter

2004-01-08 Thread Hubert Rabago
You'll have to format the data that you're passing to your ActionForm. If you're extending from ActionForm (but not using a Dyna form), perhaps you can format the data in your setField() method, or before returning from a getField() method. --- Giovani Salvador [EMAIL PROTECTED] wrote: Hi

Re: html:text and converter

2004-01-08 Thread Hubert Rabago
- Original Message - From: Hubert Rabago [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, January 08, 2004 3:14 PM Subject: Re: html:text and converter You'll have to format the data that you're passing to your ActionForm. If you're extending from

Re: html:text and converter

2004-01-08 Thread Hubert Rabago
Yes, that last msg wasn't much help. Maybe if you provide a bigger picture of the situation, other folks can give you alternatives. Or at least help convince you of the advantages to using AFs. --- Hubert Rabago [EMAIL PROTECTED] wrote: Perhaps it's time to consider using AFs

Re: html:text and converter

2004-01-08 Thread Hubert Rabago
it I have seen in the archives many questions and no real answer. Thanks Giovani Salvador - Original Message - From: Hubert Rabago [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, January 08, 2004 4:27 PM Subject: Re: html:text

Re: configuration is frozen

2004-01-08 Thread Hubert Rabago
You can try something like: ActionForward basis = mapping.findForward(success); ActionForward success = new ActionForward(); success.setPath(basis.getPath()); // also copy other relevant properties from basis success.setRedirect(true); return success; hth, Hubert --- Lucas Halim [EMAIL

RE: configuration is frozen

2004-01-08 Thread Hubert Rabago
in all requests, and you probably don't want that. --- Lucas Halim [EMAIL PROTECTED] wrote: Thanks Hubert. Anybody knows why is it frozen at the first place? Is that just another mod in Struts 1.1? Lucas -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent

Re: html:text and converter

2004-01-09 Thread Hubert Rabago
finished, what about sending your component? Thanks Giovani Salvador - Original Message - From: Hubert Rabago [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, January 08, 2004 6:01 PM Subject: Re: html:text and converter I'm working

Re: EJB Tier

2004-01-09 Thread Hubert Rabago
Ideally, you should call your EJBs in your Action objects in response to requests. Struts doesn't have anything about EJBs because you are free to decide how to perform your business logic, although the recommendation is to not do them inside an Action object, but rather in another conceptual

Re: Problem displaying ActionMessages in JSP

2004-01-09 Thread Hubert Rabago
try calling saveMessages(request,messages) in your action class. --- Ciaran Hanley [EMAIL PROTECTED] wrote: Hello Can anybody help me? I am trying to display messages on my JSP based on whether an insertion to the DB was successful or not. Properties file: dbsuccess.add = Database

RE: Problem displaying ActionMessages in JSP

2004-01-09 Thread Hubert Rabago
: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: 09 January 2004 16:56 To: Struts Users Mailing List Subject: Re: Problem displaying ActionMessages in JSP try calling saveMessages(request,messages) in your action class. --- Ciaran Hanley [EMAIL PROTECTED] wrote: Hello Can anybody help

RE: Displaying same page after submiting a form

2004-01-12 Thread Hubert Rabago
Showing your JSP directly results in missing images because the relative path to your images have changed. Try using absolute path to your images. If you want to avoid using the absolute path to your images, make sure that the browser requests your JSP in a way that the relative paths to the

Re: Multiple config files under single application

2004-01-14 Thread Hubert Rabago
An alternative would be to just provide multiple struts config files without using modules. In some cases, that might be preferable. http://www.mail-archive.com/[EMAIL PROTECTED]/msg90132.html --- e-denton Java Programmer [EMAIL PROTECTED] wrote: Yep, they are called application modules. You

Re: Autofill form page

2004-01-14 Thread Hubert Rabago
You can also check out examples on using ActionForm objects. That is what they're for. --- Peter Verhoye [EMAIL PROTECTED] wrote: Hi all, I'm just starting with struts and stumbled upon a problem. I have a page called page1. This page shows a list of records in a table (the list is

Re: Struts Validator overriding cache-control?

2004-01-14 Thread Hubert Rabago
The sequence you described is the expected behavior. Comments below. --- Brown, James [EMAIL PROTECTED] wrote: We have encountered a situation wherein it appears that the server-side validation provided by the struts-validator and that of ValidatorForm.validate(...) appears to be overriding

Re: Problem - Trying to hide javascript files in WEB-INF

2004-01-20 Thread Hubert Rabago
What are you trying to do and why are you trying to do it? When you hide your JSPs under the WEB-INF, it's usually because you don't want the user to access them directly. With your script src=xyz.js, you're telling the browser to access that file. If you then put it under WEB-INF, you're

RE: Problem - Trying to hide javascript files in WEB-INF

2004-01-20 Thread Hubert Rabago
You can try using the %@ include file=somefile.ext % which will directly embed the contents of that file into your compiled jsp. --- Colin Foulkes [EMAIL PROTECTED] wrote: Yes, I understand what's happening, but I'm not sure whether there is an alternative approach to placing the .js

RE: Struts, Search Page, Help!!!

2004-01-21 Thread Hubert Rabago
Your input points to search.do/SearchAction. It's possible that SearchAction is resetting the values of the form. Does it know when to leave the form values alone because it's only being called due to a redisplay of a poppulated input form? --- Matthew J. Vincent [EMAIL PROTECTED] wrote: I

RE: Struts, Search Page, Help!!!

2004-01-21 Thread Hubert Rabago
Are you using struts html tags to write the rest of your form? --- Matthew J. Vincent [EMAIL PROTECTED] wrote: I'm sorry I am so lost today! Now...here is the problem I am having. When a user goes to http://localhost:/search.do From my understanding this will call my SearchAction

RE: Struts, Search Page, Help!!!

2004-01-21 Thread Hubert Rabago
Can you send your entire html form? --- Matthew J. Vincent [EMAIL PROTECTED] wrote: Yes. html-el:text property=strainName/ etc. -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 2:05 PM To: Struts Users Mailing List

Re: Forwarding to an external Website

2004-01-22 Thread Hubert Rabago
try forward name=connectToSiteBuilder path=http://www.google.co.uk; redirect=true/ There's been discussion about this on this list already, so you can search the archives if you need more info. --- Giles Parnell [EMAIL PROTECTED] wrote: Hi guys Any idea how i can forward to an external

Re: Call ActionClass from Javascript

2004-01-22 Thread Hubert Rabago
There isn't enough info to determine what's causing your problem, but it looks like it's probably related to an ActionForm that your Action class is associated with. --- Manuel Lenz [EMAIL PROTECTED] wrote: Hi to all, I´d like to call an ActionClass from a javascript-link which opens

Re: obtaining ActionMapping object

2004-01-22 Thread Hubert Rabago
You need the path to specify which mapping you want. From the RequestProcessor class, you can use: ActionMapping mapping = (ActionMapping) moduleConfig.findActionConfig(path); You can use RequestUtils to get your ModuleConfig. Why not call the formbean's validate() method?

RE: Struts, Search Page, Help!!!

2004-01-23 Thread Hubert Rabago
Section /td /tr /table /body /html -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 2:15 PM To: Struts Users Mailing List Subject: RE: Struts, Search Page, Help

Re: Struts workflow problem.Request for enhancement to struts.

2004-01-23 Thread Hubert Rabago
Here's part of a thread on struts-dev related to your question: http://www.mail-archive.com/[EMAIL PROTECTED]/msg20449.html --- [EMAIL PROTECTED] wrote: I have used the workflow extension for struts (http://www.livinglogic.de/Struts/introduction.html) and found it very useful. My question is

Re: Strust Search/Results/Display HELP!

2004-01-23 Thread Hubert Rabago
For your steps 2 to 4: in your struts-config: form-bean name=myForm type=com.my.form.MyForm/ ... action path=/pageWithForm type=com.my.action.PreparePageAction forward name=showForm path=/form.jsp /action action path=/formDestination type=com.my.action.PreparePageAction name=myForm

Re: Struts Search/Results/Display

2004-01-23 Thread Hubert Rabago
--- Matthew J. Vincent [EMAIL PROTECTED] wrote: Re: Strust Search/Results/Display HELP! Thanks for the help. Be gentle and explain slowly. :) Also, people will help you even if your question is gentle and doesn't shout. :) __ Do you Yahoo!? Yahoo!

Re: Struts Search/Results/Display Help (includes link to Example to help me with)

2004-01-23 Thread Hubert Rabago
that handles both the search form and the search results? If so, how do I set this up? Thanks for your help! Matt -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Friday, January 23, 2004 11:31 AM To: Struts Users Mailing List Subject: Re: Strust Search

RE: Struts Search/Results/Display Help (includes link to Example to help me with)

2004-01-23 Thread Hubert Rabago
the scope to session, but that didn't help. Is there a trick to the reset method in the form that I should use? Matt -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Friday, January 23, 2004 2:52 PM To: Struts Users Mailing List Subject: Re: Struts Search

Re: Manually placing errors for display

2004-01-27 Thread Hubert Rabago
Isn't it still logic:messagesPresent message=true html:messages id=message message=true bean:write name=message/br /html:messages /logic:messagesPresent - for messages, and logic:messagesPresent html:messages id=error bean:write name=error/br /html:messages

RE: Problems Redirecting To Input Page After Vaildation Fails

2004-01-27 Thread Hubert Rabago
- resending: hope this doesn't end up as a duplicate - Another option would be to call the validate() method yourself and return the appropriate forward. add validate=false to your mapping, plus your forms as forwards so you can still configure them in your struts-config: action

Re: entity includes in tiles-defs.xml (again)

2004-01-28 Thread Hubert Rabago
Hi Matt, I ran into the same problem (with the same error message) when I tried using my own DTDs for XML files that Digester was processing. I found that the solution is to put my DTD in the apps' class path, and then register my dtd with the Digester instance which parses my config file.

Re: redirect=true ActionErrors

2004-01-29 Thread Hubert Rabago
There's no built-in support for this in the current version of Struts. I'm currently working on a patch which would support this (http://issues.apache.org/bugzilla/show_bug.cgi?id=866), but of course there's no guarantee that the patch (or something like it) will make it to a struts release. In

Re: request attributes and failed validation

2004-01-31 Thread Hubert Rabago
This is the reasons I sometimes have an action in my input action attribute. What I mean is: action path=/showForm.do type=com.actions.ShowFormAction forward name=form path=myForm.jsp/ /action action path=/submitForm.do type=com.actions.SubmitFormAction name=myFormBean

Re: Problems when not using html:form

2004-02-02 Thread Hubert Rabago
Wouldn't /Login.do make the server look for a Login.do resource at the root of the server? You need to provide the path to your action relative to how the browser found your input form. If your input form is /jsp/Login.jsp and this is what shows in the URL when requested (meaning, it didn't go

RE: Problems when not using html:form

2004-02-02 Thread Hubert Rabago
Yes, but the server would have to find an app with the web.xml first, right? If my URL is at http://my.domain.com/mywebapp1/jsp/Login.jsp; and the form is submitted to form action=/Login.do, it would map to http://my.domain.com/Login.do;. Of course if the web app was deployed as the root

RE: redirect=true ActionErrors

2004-02-02 Thread Hubert Rabago
- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 1:33 PM To: Struts Users Mailing List Subject: Re: redirect=true ActionErrors There's no built-in support for this in the current version of Struts. I'm currently working on a patch which would support

Re: Is there an INCLUDE feature that works with struts-config?

2004-02-02 Thread Hubert Rabago
Probably not in the way you're thinking. Struts allows you to specify more multiple config files for the same app, so you can probably specify the app-specific config and the shared config for each app. However, each of your apps will need to have copies of the same shared XML. If you're

Re: small trouble with the validator

2004-02-02 Thread Hubert Rabago
From http://jakarta.apache.org/struts/userGuide/building_controller.html#dyna_action_form_classes : And, of course, while the DynaActionForm may support various binary types, properties used with the html:text tag should still be String properties. Yes, use java.lang.String then try your form

Re: Why doesn't ActionForm's constructor have access to HttpServletRequest?

2004-02-02 Thread Hubert Rabago
Not sure how your app is configured, but perhaps you could call an Action to prepopulate your ActionForm, or help it by passing it the request object. --- Jeff Skubick [EMAIL PROTECTED] wrote: Is the absence of a reference to the HttpServletRequest object that triggered the creation of a new

Re: Accessing ActionForm from Servlet (was: Pajes + Struts)

2004-02-03 Thread Hubert Rabago
I definitely haven't used Pajes, but if the servlet is on the same web app, perhaps your servlet can access the form in the request attribute. More comments below --- Villalba Arias, Fredy [BILBOMATICA] [EMAIL PROTECTED] wrote: HOWEVER, I have not solved yet the data access method part. I MUST

RE: Accessing ActionForm from Servlet (was: Pajes + Struts)

2004-02-04 Thread Hubert Rabago
Hi Fred(d)y, (3) Despite 1 and 2, there must be a method to obtain the ActionForm(s) associated to an Action (during an specific request / post). Right? I think this question has been answered twice in this very thread, once by me, and again (and with code) by Andrew Hill. From Andrew's

Re: question about wildcard support in Struts

2004-02-04 Thread Hubert Rabago
AFAIK, as of now, this is only available from the nightly builds. http://cvs.apache.org/builds/jakarta-struts/nightly/ --- Emily Gu [EMAIL PROTECTED] wrote: Hi All, The user guide shows the Struts is supporting wildcard in action mapping.. I have tried it in Struts 1.1, it seems

Re: question about wildcard support in Struts

2004-02-04 Thread Hubert Rabago
2/4/2004 -0800, Hubert Rabago wrote: AFAIK, as of now, this is only available from the nightly builds. http://cvs.apache.org/builds/jakarta-struts/nightly/ --- Emily Gu [EMAIL PROTECTED] wrote: Hi All, The user guide shows the Struts is supporting wildcard in action mapping

Re: Action without ActionForm

2004-02-04 Thread Hubert Rabago
You can also declare a dummy form. struts-config form-beans form-bean name=currentTimeForm type=org.apache.struts.action.DynaActionForm / /form-beans action-mappings action path=/currenttime type=com.somecompany.CurrentTimeAction

Re: Array of text fields generated dynamically

2004-02-05 Thread Hubert Rabago
http://jakarta.apache.org/struts/faqs/indexedprops.html http://www.developer.com/java/other/article.php/2233591 Also, http://marc.theaimsgroup.com/?l=struts-users=LazyList - Hubert --- Shyam A [EMAIL PROTECTED] wrote: Hi, I have a scenario in my Struts application, where I have an array

Re: R: repost: validator retrieving data

2004-02-05 Thread Hubert Rabago
The values that you read from the DB need to come from somewhere. Perhaps you can store them in a session attribute (then clear it once the form passes validation). Oh, yeah, an action has to prepare them, so maybe you can use the same action, except that before it reads from the DB, it checks if

RE: Need to modify the URL path of the forward dynamically

2004-02-09 Thread Hubert Rabago
Actually, the conversation on the thread redirect=true ActionErrors has moved to direct email communication. If anybody's interested, I can post an update to this list. About two emails should cover it. --- Manjunath Bhat [EMAIL PROTECTED] wrote: Hi, You may look into this URL,

Re: ActionErrors deprecated?

2004-02-09 Thread Hubert Rabago
Yes, we're supposed to use ActionMessage and ActionMessages now. The one place where we can't escape ActionError/s yet is ActionForm's validate method. --- Slattery, Tim - BLS [EMAIL PROTECTED] wrote: While refreshing my memory on the ActionErrors class, I noticed that the metho: void add

RE: ActionErrors deprecated?

2004-02-09 Thread Hubert Rabago
There's one thing I forgot to mention. That statement I made is for the nightly build/Struts 1.2. ActionError isn't marked as deprecated in 1.1. Are you talking about the ActionForm.validate() method? For the nightly build, yes, that looks about right. The html:errors/ tag in the nightly

RE: ActionErrors deprecated?

2004-02-09 Thread Hubert Rabago
It's the new and improved way to display messages on your pages. html:errors/ sometimes needed html markup on the message resources file to format the messages properly. The new html:messages tag gives the JSP full control over formatting, which is where it should be. --- Slattery, Tim - BLS

Re: how to specify HTML attribute when HTML Tag does not have corrosp onding attribute

2004-02-09 Thread Hubert Rabago
If you need an attribute that isn't supported, you have to subclass the tag class and add that support. And sorry, but no, I haven't tried it yet. --- Nimmons, Buster [EMAIL PROTECTED] wrote: I'm using the textarea tag in a page, however I need to specify the wrap attribute as hard so

RE: how to specify HTML attribute when HTML Tag does not have corresponding attribute

2004-02-09 Thread Hubert Rabago
/) that way I don't have to go through this every time I need to use a new attribute. -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Monday, February 09, 2004 2:41 PM To: Struts Users Mailing List Subject: Re: how to specify HTML attribute when HTML Tag does

Re: Persisting Messages/Errors when redirect=true

2004-02-09 Thread Hubert Rabago
There's no built-in support for this at the moment. I add code to my projects to add that support. I can share the code with you if you want. - Hubert --- David Erickson [EMAIL PROTECTED] wrote: Is it possible to persist Messages/Errors around your site through the request when setting

Re: Setting nocache

2004-02-09 Thread Hubert Rabago
Take a look at Struts transaction tokens. That will help provide your Action with a flag to ignore successive transactions (in this case, logins), even when the user hits ok on the resend prompt. If you don't want the user to even see the resend prompt, you can redirect to the view after the

Re: Array of text fields generated dynamically

2004-02-09 Thread Hubert Rabago
will be greatly appreciated. Thanks, Shyam --- Hubert Rabago [EMAIL PROTECTED] wrote: Sorry, but I haven't tried anything with mapped properties yet. All I've done are indexed properties. Ask this on the user list. I'm sure someone who's tried it will respond. Hubert --- Shyam

  1   2   >