How replace the struts-resources.properties file by a resources.xml file ?

2003-02-14 Thread Heligon Sandra
I would like to place my resources (errors, warning, label) in a XML file and not in a .properties file, is it possible ? How can I do ? If someone has a such example thanks to send it me. Do I have to override a class ? what must I write in the struts-config.xmf

RE: Best tag to display table

2003-02-14 Thread Heligon Sandra
I tried to use a List instead of a Collection: JSP page: I replaced the attribute by the http://www.thomson.net/videochain > attribute In the Action: List list_employees = new ArrayList(); MyObject employee = new MyObject (1,"Developper"); list_employees.add( employee );

RE: How replace the struts-resources.properties file by a resources.xml file ?

2003-02-14 Thread Daniel Joshua
Could you explain why would you want an XML file instead of a property file? Wouldn't that be slower and take more memory? Regards, Daniel -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 4:20 PM To: '[EMAIL PROTECTED]' Subject: How repl

RE: How replace the struts-resources.properties file by a resources.xml file ?

2003-02-14 Thread Heligon Sandra
My Struts Web Application is small part of a big project and the choice for this project is to use XML file. All application of the project must have a config directory with a file resources.xml that contains errors, warning messages and label for GUI applications. For my application all these Stri

RE: Best tag to display table

2003-02-14 Thread Heligon Sandra
Sorry my previous is erroneous, because we have changed e-mail for all the company and an advertising message is now add to all messages. But there is a bug and the message has not been introduced at the end of my mail but in the middle. Thanks to ignore the paragraph "As of February http://w

[OT] RE: validate() method is ActionForm

2003-02-14 Thread Sundar Narasimhan
>Any more personal attacks like this, or the previous response's profanity, >are likely to get you banned -- then you won't have to worry about >questions you think are below your dignity to answer politely. >Craig McClanahan Thank you Craig. I think this list is great, and now that I'm slowly g

RE: bean:message problems with i18n

2003-02-14 Thread Rademacher Tobias
Hi Bernhard, I have the same problems as you. Application.properties (fallback english) Application_de_DE.properties( German translation ) I'm using 1.1b2. If your OS language is German the German property is used. If not the English one. My application does seem to use session saved Locales. D

AW: bean:message problems with i18n

2003-02-14 Thread Hirschmann, Bernhard
Hi Toby, I solved this problem doing something different: I instantiate now the Locale object only with the language parameter, and *without* the country parameter. new Locale("en",""); This locale object is then stored in the session using the method: org.apache.struts.action.Action.setLocale(

Message resources, as usual

2003-02-14 Thread Albert Moliner
Hello. I know this question has been repeating again and again and again, but I still have not been able to understand what's the difference between what I do and what I should do. Sorry. I've been using struts for nearly two years now, but laziness has made me stuck to old versions, until I can

RE: Cache

2003-02-14 Thread Mohan Radhakrishnan
Hi, If this is true then there is no way make sure that the struts action will be hit ? We show a description page that is just text. But the Generic forward action that forwards to description.jsp also takes a report ID and puts in the session. Sometimes the action wasn't fired because - we thi

Re: Message resources, as usual

2003-02-14 Thread Albert Moliner
Mmm, sorry, I'd better show you a better stack trace, caught "manually" in the jsp by me: --- javax.servlet.jsp.JspException: Missing message for key string1 at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:298) at org.apache.jsp.messagestest_jsp._jspx_meth_bea

Re: Bigdecimal conversion error : urgent

2003-02-14 Thread Brian Lee
I'm glad I was able to help. BAL From: usha <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: Re: Bigdecimal conversion error : urgent Date: Fri, 14 Feb 2003 13:03:37 +0800 Hi Brian i don't want use the nigh

Highlighting fields that failed in validation

2003-02-14 Thread O'Hara, Jean
Hi there A requirement for the application I'm working on is to highlight fields that cause validation errors in red and also display an asterisk after the offending field. This is as well as giving a list of the errors in a box to the side. Listing the errors in the box is fine but does anyone

RE: bean:message problems with i18n

2003-02-14 Thread Rademacher Tobias
Hi Bernhard, This is what i logged with log4j within my action LOGGER.debug("Request Locale " + request.getLocale() ); LOGGER.debug("Current locale: " + getLocale(request)); log file snipplet: 2003-02-14 13:26:16,089 DEBUG [de.grob.portal.action.LoginAction] Request Locale de 2003-02-1

Struts Design (best practices)

2003-02-14 Thread Jason Vinson
Hi Folks, I have been working with Struts for about a week now, and I have a few design questions. I guess the most important is the proper flow of information and processing. When I began to code pages in Struts, I would link to the actual jsp page, then check it's ActionForm, then go t

AW: bean:message problems with i18n

2003-02-14 Thread Hirschmann, Bernhard
Hi Tobby, I guess you're right. I'm working on a bug in our application and was also on exactly the same method: Action.getLocale(request); Sometimes I get the right locale, sometimes not. Maybe it has something to do with a change in the struts sources: The constant "Globals.LOCALE_KEY" has o

RE: Struts Design (best practices)

2003-02-14 Thread Jim Krygowski
Hi Jason- The whole struts cycle starts out when the ActionServlet receives a request. It in turn determines (based on the struts-config.xml action mappings) which action class and action form are responsible for handling the request. The action class processes the request via invoking a business

Re: RowSetDynaClass

2003-02-14 Thread Sundar Narasimhan
Hi, Craig: Just catching up on email, and caught your very good explanation of RowSetDynaClass.. I didn't know it existed, so had written something like it myself, w/ returning two Collections (one for the column names, and another for the data set). But I have a follow up question re. what you sa

RE: Struts Design (best practices)

2003-02-14 Thread Susan Bradeen
Hi Jason, Pick up a copy of Struts in Action. It is a good read, and it will save you a lot of "trial and error" time, figuring out how the framework works. There are a few Struts books out now, and all are extremely helpful. Good luck, and welcome to the Struts group! Susan Bradeen On 02/

RE: Struts Design (best practices)

2003-02-14 Thread Pascal Sourisseau
There's a good book "Struts in action" and some links in http://jakarta.apache.org Pascal -Message d'origine- De : Jason Vinson [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 14 février 2003 13:46 À : [EMAIL PROTECTED] Objet : Struts Design (best practices) Hi Folks, I have been w

[REPOST] [Validator] REQUIREDIF Question

2003-02-14 Thread Jerry Jalenak
I'm reposting this in the hope that someone can tell what I'm doing wrong. I can't seem to figure out why this doesn't work. Any (and all) help is greatly appreciated I have a rather simple form with 4 fields on it. If the first field (patientId) is left blank, then the other three field

RE: Server detection of Javascript enabled?

2003-02-14 Thread Michael Hanisch
On Fri, 2003-02-14 at 03:50, Aaron Oathout wrote: > Take a look at browserhawk. http://www.cyscape.com/ > We used it at the last company I worked for, tells you alot about the > browser. Yeah, but all it does is invoke some Javascript in the user's browser... so we're back where we started :-(

Re: How replace the struts-resources.properties file by a resources.xml file ?

2003-02-14 Thread James Mitchell
I haven't tried it myself, but there is an implementation of this in the commons-sandbox (resources). There are plans to integrate it into Struts by 1.2. http://jakarta.apache.org/commons/sandbox/resources/index.html I'm not sure how flexible the xml layout can be. Let me know if this fits yo

Re: Message resources, as usual

2003-02-14 Thread James Mitchell
Just a quick suggestion, this shouldn't make a difference, but change this: string1 = res1 str1 string2 = res1 str2 to this: string1= res1 str1 string2= res1 str2 Other than that I can't imagine what the problem is. This obviously works in the example app. Good Luck. -- James Mitchell -

RE: How replace the struts-resources.properties file by a resources.xml file ?

2003-02-14 Thread Michael Hanisch
On Fri, 2003-02-14 at 09:47, Heligon Sandra wrote: > My Struts Web Application is small part of a big project and > the choice for this project is to use XML file. > All application of the project must have a config directory with > a file resources.xml that contains errors, warning messages and la

RE: Struts Design (best practices)

2003-02-14 Thread Pfeifer, Craig
I agree that Struts in Action is a good book (heck, I reviewed it: http://books.slashdot.org/article.pl?sid=02/11/25/1731249&mode=thread) But after having a frustrating day yesterday trying to get a handle on client side validation using the 1.1 validator, someone on this list hit me to the fact t

RE: Newbie Question about tiles definitions. I am lost :(

2003-02-14 Thread Jarrod M. Lugo
I changed the action mapping, but I don't think I have an action servlet. How do I map *.do to the action servlet? Thanks, Jarrod Lugo -Original Message- From: John Espey [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 3:56 PM To: Struts Users Mailing List Subject: RE: Newbi

Re: Highlighting fields that failed in validation

2003-02-14 Thread Michael Hanisch
On Fri, 2003-02-14 at 13:37, O'Hara, Jean wrote: > Hi there > > A requirement for the application I'm working on is to highlight fields that > cause validation errors in red and also display an asterisk after the > offending field. This is as well as giving a list of the errors in a box to > the

RE: Newbie Question about tiles definitions. I am lost :(

2003-02-14 Thread Pani, Gourav
in the web.xml file 2 mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 9:06 AM To: Struts Users Mailing List Subject: RE: Newbie Question about tiles definitions. I am lost :( I changed the action mapping, but I don't think I have an act

RE: Server detection of Javascript enabled?

2003-02-14 Thread Alvarado, Juan (c)
There is a getJavaScriptEnabled method in that component that will tell you if javascript is enabled or not. It definetely does have to send some javascript to the browser in order to perform some tests and detect if it is enabled. But the bottom line is it tells you if javascript is enabled or not

Re: Message resources, as usual

2003-02-14 Thread Simon Kelly
Hate to be the one to point this out, but they are both the same ;-) - Original Message - From: "James Mitchell" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, February 14, 2003 2:54 PM Subject: Re: Message resources, as usual > Just a quick suggest

xslt instead of jsp in struts.

2003-02-14 Thread Simon Kelly
Hi all, I'm using xslt intsead of the jsps in struts. Does any one know if there are tag-libs that I can use in xslt? Cheers Simon Institut fuer Prozessdatenverarbeitung und Elektronik, Forschungszentrum Karlsruhe GmbH, Postfach 3640, D-76021 Karlsruhe, Germany. Tel: (+49)/7247 82-4042 E-mail

RE: Highlighting fields that failed in validation

2003-02-14 Thread Jerome Jacobsen
Here's something from the archives you might find useful. - Since this is essentially error text you are talking about, I think the easiest way to handle this is through Struts's error tags: Where there is an error on "username," you add a new ActionError with a

Re: Message resources, as usual

2003-02-14 Thread Albert Moliner
> > Just a quick suggestion, this shouldn't make a difference, but change > this: > > string1 = res1 str1 > > string2 = res1 str2 > > > > > > to this: > > string1= res1 str1 > > string2= res1 str2 As far as I know they are the same, as both halves of the equality are trimmed when parsed, and for

RE: xslt instead of jsp in struts.

2003-02-14 Thread ROSSEL Olivier
> Hi all, > > I'm using xslt intsead of the jsps in struts. Does any one > know if there > are tag-libs that I can use in xslt? What's your XSLT processor? Xalan and Saxon provides enhanced features with the saxon: and xalan: namespaces (at least functions, I do not remember for tags). There is

Re: struts 1.1b3 & weblogic 6.1sp2

2003-02-14 Thread Melissa L Kelley
On Wed, 12 Feb 2003, Pascal Sourisseau wrote: There is a bug in WLS 6.1 sp2 in how it read multiple class-path entries in the manifest file. This issue has been resolved in WLS 6.1 sp4, and Struts 1.1b3 will deploy quite nicely. We are just now in the process of upgrading to sp4 ourselves, so I w

Re: xslt instead of jsp in struts.

2003-02-14 Thread Simon Kelly
Thanks, I'll look into them. Cheers Simon - Original Message - From: "ROSSEL Olivier" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Friday, February 14, 2003 3:19 PM Subject: RE: xslt instead of jsp in struts. > > Hi all, > > > > I'm using xslt intse

RE: Server detection of Javascript enabled?

2003-02-14 Thread John Cavacas
I think the main problem might be one of design. Why do you need to know if a client has JavaScript enabled or not? I'm not sure of your particular requirements, but relying on some sort of application functionality that is dependent on a client side feature like JavaScript, smells of flawed design

RE: xslt instead of jsp in struts.

2003-02-14 Thread ROSSEL Olivier
> Thanks, I'll look into them. Most of the time XSL tags provide all you need to manage your input XML. This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information i

AW: Highlighting fields that failed in validation

2003-02-14 Thread sem . Gottofrey
Hi Michael, here below is the implementation of the custom tag we're using to highlight a field in error: HTH Robert --- import java.util.Iterator; import javax.servlet.jsp.JspException; import org.apache.struts.action.Action;

Re: using

2003-02-14 Thread James Mitchell
In your action class, are you actually populating a List in your form before forwarding to that page? >From the error, it appears that getTableNames() on your form is returning null. -- James Mitchell - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thurs

[Friday][OT] new vocabulary

2003-02-14 Thread Mark Galbreath
Anybody want to contribute? NEW WORDS FOR 2003 - Essential additions for the American workplace vocabulary: BLAMESTORMING: Sitting around in a group, discussing why a deadline was missed or a project failed, and who was responsible. ADMINISPHERE: The rarefied organizational layers beginning jus

[Friday][OT] Famous Quotes

2003-02-14 Thread Mark Galbreath
Contributions? Famous Quotes "Clinton lied. A man might forget where he parks or where he lives, but he never forgets oral sex, no matter how bad it is." - Barbara Bush (Former US First Lady) "Hockey is a sport for white men. Basketball is a sport for black men. Golf is a sport for white

RE: Server detection of Javascript enabled?

2003-02-14 Thread Chen, Gin
You dont have to go thru all that. There's a tag as well. It will get involked (duh) when scripts are not enabled. scriptlet or jsp code to handle scripts scriptlet or jsp code to handle no scripts -Original Message- From: James Childers [mailto:[EMAIL PROTECTED]] Sent: Thur

RE: [REPOST] [Validator] REQUIREDIF Question

2003-02-14 Thread Sri Sankaran
Nothing out of the ordinary jumps out from what you have sent. That being said, following are a few points; a list which you have probably already checked and double-checked: * Have you set the validator plug-in element in the struts-config? * Is the name of the form-bean in the action mappi

Re: Message resources, as usual

2003-02-14 Thread Albert Moliner
Forgive me for my insisting on the subject. Just to be sure nothing is escaping from my attention, when I try and modify the jsp bean:message tag, telling it to use a non-defined RB ("aares1" instead of "res1"), the exception is -- javax.servlet.jsp.JspException: Cannot find message resou

Re: using

2003-02-14 Thread Rajesh . Jayabalan
I definetely am populating the form variable.. here is the action class public class InitMffsAction extends Action { public ActionForward perform(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequ

RE: forwarding to another action ..

2003-02-14 Thread Sri Sankaran
You haven't given enough information below (seems like a continuation of some previous thread). I *think* what you are trying to do is go "forward" from one action to another [*] but before so doing removing a attribute from the request. If so, some obvious checks would be - ensure that the

RE: [REPOST] [Validator] REQUIREDIF Question

2003-02-14 Thread Jerry Jalenak
Sri - thanks for the reply. We have several other validations going on with this form-bean, so I'm confident that your first two items are OK. I've also pulled the 'REQUIREDIF' check out of the validation in question (leaving just the MASK) and everything behaves correctly. I've also been over t

RE: [REPOST] [Validator] REQUIREDIF Question

2003-02-14 Thread Sri Sankaran
> The only thing I can come up with is that the MASK > processing is screwing things up some way > One way to confirm that would be to remove the "mask" test. > Jerry Sri - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

[OT] Screen Scraping tool

2003-02-14 Thread Hoang, Hai
Hi all, I have a project that required extensive screen scraping. I would like to know if there are any tools available (prefer open source) that can help me do this quickly. I know apache has a taglib screen scraping tag but that is tool is too limited. Thanks, HBH _

RE: iterate tag

2003-02-14 Thread Sri Sankaran
Following is based on connecting the dots of information you have provided (remember, not everyone on the list is seeing what you are seeing or is conversant with your business domain; so please introduce your problem more clearly) I *think* what you have is a collection of "gdid"s each of which

Modifying Form Data in Action

2003-02-14 Thread struts
I have defined an action mapping that accepts a session-level form. When this action is invoked, the form data is validated and I do some business-logic pre-processing of the data. I need to set a parameter in the form that represents a transaction id value. This action then forwards to another

RE: using

2003-02-14 Thread James Mitchell
(Sorry if this double posts, getting System Admin messages, not sure if its my SMTP server or some loser on the list sending me that crap) Most likely, your getTables() is returning null. You can check the source for DefineTag if you like. I just finished an exhaustive test suite for that tag,

Struts in Print

2003-02-14 Thread Bradley G Smith
There are 3 (!) articles about Struts in the recent issue of Oracle Magazine (Jan/Feb 2003). The most recent Linux Magazine also has a Struts article (the whole issue has a Java and Linux focus). It always helps to have these references around to convince management that Struts is a good strategic

javax.sql.DataSource

2003-02-14 Thread Chiming Huang
Hi, I am trying to use Struts 1.1-b3 with Java SDK 1.3.1_07. In Eclipse, it complains about javax.sql.DataSource was indirectly referenced. Is javax.sql.DataSource referenced by struts or any commons API? How do I get around with it? Thanks. Chiming - Do

RE: javax.sql.DataSource

2003-02-14 Thread Hajratwala, Nayan (N.)
You have to include the jar file with javax.sql.Datasource on your build classpath. I can't remember offhand which one this is, but it should be downloadable from http://java.sun.com. It is included with Java SDK 1.4.1 by default. --- - Nayan Hajratwala - Chikli Consulting LLC - http://www.c

RE: javax.sql.DataSource

2003-02-14 Thread James Mitchell
It is a compile time dependency. Add jdbc2_0-ext.jar to the classpath. -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org/ "The man who does not read good books has no advantage over the man who cannot read them." - Mark Twain (1835-1910) > -Ori

Re: javax.sql.DataSource

2003-02-14 Thread Chiming Huang
Could you please point out where is the right place to get the jdbc2_0-stdext.jar? Thanks. Chiming - Original Message - From: "James Mitchell" <[EMAIL PROTECTED]>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>Sent: Friday, February 14, 2003 10:57 AMSubject: RE: javax.sql.DataSou

RE: javax.sql.DataSource

2003-02-14 Thread Singh, Sandeep
Here is the attachement javax.jar -Original Message- From: Chiming Huang [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 11:20 AM To: [EMAIL PROTECTED] Subject: Re: javax.sql.DataSource Could you please point out where is the right place to get the jdbc2_0-stdext.jar? Thanks

RE: javax.sql.DataSource

2003-02-14 Thread John Espey
http://ibiblio.org/maven is a good place to find all sorts of libraries. > -Original Message- > From: Chiming Huang [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 14, 2003 10:20 AM > To: [EMAIL PROTECTED] > Subject: Re: javax.sql.DataSource > > > Could you please point out where

Re: When i18n isn't Needed

2003-02-14 Thread David Graham
What's wrong with using: anything.goes={0} if i18n isn't needed? I feel sorry for the person who has to maintain multiple sets of files needlessly. I18N is only one reason to use resource files for messages. What happens when you need to change how a common message reads? You need to go throu

Re: javax.sql.DataSource

2003-02-14 Thread Chiming Huang
Thank you all. It works. Chiming- Original Message - From: "John Espey" <[EMAIL PROTECTED]>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>Sent: Friday, February 14, 2003 11:24 AMSubject: RE: javax.sql.DataSource > http://ibiblio.org/maven is a good place to find all sorts of li

[OT] kludge (was: Server detection of Javascript enabled?)

2003-02-14 Thread Bruce Geerdes
Mark Galbreath wrote: It's "klugey." Your spelling is a British WWII army concoction referring to a field latrine. Huh, m-w.com and dictionary.com has "kludge" and "kluge" meaning the same thing, the latter being a variant of the former. The adjective? Kludgy. Bruce -

RE: [REPOST] [Validator] REQUIREDIF Question

2003-02-14 Thread James Turner
I'll take a look at this later today. There have been a number of people saying that they have had problems with REQUIREDIF, so I want to make sure it's still working. James > -Original Message- > From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 14, 2003 8:38 AM >

No getter method error

2003-02-14 Thread Anand M S
I have all getter and setter methods in UserForm, but still it's giving following error, please can anyone can help me out? here is the JSp code org.apache.jasper.JasperException: No getter method available for property name for bea

Re: RowSetDynaClass

2003-02-14 Thread Craig R. McClanahan
On Fri, 14 Feb 2003, Sundar Narasimhan wrote: > Date: Fri, 14 Feb 2003 08:15:10 -0500 > From: Sundar Narasimhan <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED], [EMAIL PROTECTED] > Subject: Re: RowSetDynaClass > > Hi, Craig: Just catching up on email, and caught your very good > explanation of RowSe

RE: [OT] Screen Scraping tool

2003-02-14 Thread Nail, Evan Burke
SilverStream had a tool called XCommerce that among other things did screen scraping. It could pulled down most mainframe and terminal emulation screens along with html and allow you to map to and from most screens via a gui "recording" type interface using xml. When I last used it a few years

Keep getting bean error

2003-02-14 Thread Sloan Seaman
I was wondering if anyone could help me. I keep getting the error: org.apache.jasper.JasperException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope when I try to access a .jsp page. Any help would be great! (I'm new to struts) Thanks! -- Sloan Here is the source of the page:

Re: RowSetDynaClass

2003-02-14 Thread Luiz-Otavio Zorzella
Craig R. McClanahan wrote: On Fri, 14 Feb 2003, Sundar Narasimhan wrote: I agree that this approach works well for "small" result sets. However, if there are say 10k rows.. it would be nice to have such a class work together with a Pager tag set.. any thoughts re. that? Sounds like a good pro

RE: [REPOST] [Validator] REQUIREDIF Question

2003-02-14 Thread James Turner
The problem, sir, lies not in your requiredif, but in your mask. When you say: ^[A-Za-z -']+$ What you're literally saying is "A to Z, a to z, and space to '". What you want to say is: ^[A-Za-z\ \-\']+$ When I used the correct mask, everything worked correctly. (i.e., if patientId was blank,

RE: Keep getting bean error

2003-02-14 Thread Sri Sankaran
What does your action mapping with path "/mdxQuery" look like? Sri > -Original Message- > From: Sloan Seaman [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 14, 2003 12:42 PM > To: [EMAIL PROTECTED] > Subject: Keep getting bean error > > > I was wondering if anyone could help me.

Re: Keep getting bean error

2003-02-14 Thread Manfred Wolff
org.apache.struts.taglib.html.BEAN in any scope Thats exactly the key where struts saves the bean. This bean has to declared in struts config under the path /mdxQuery.do Manne when I try to access a .jsp page. Any help would be great! (I'm new to struts) Thanks! -- Sloan Here is the source

Re: Keep getting bean error

2003-02-14 Thread Sloan Seaman
I figured it out. If you look at my HTML you will see that I accidentally had the initial html:form tag ending on the same line I started it on. Thanks for the quick responses though! -- Sloan - Original Message - From: "Sri Sankaran" <[EMAIL PROTECTED]> To: "Struts Users Mailing List"

Re:How to put form parameters into a structure to iterate?URGENT!!!

2003-02-14 Thread Jacky Kimmel
I have a master form that contains about 40 input parameters that are passed to the MasterAction. Once there I would like to pull out the attributes to be forwarded onto 4 different actions. (Actually 3, one of the forms will be submitted 2x with different data) Which then invoke ejb's. I

RE: forwarding to another action ..

2003-02-14 Thread Sundar Narasimhan
>From: "Sri Sankaran" <[EMAIL PROTECTED]> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >You haven't given enough information below (seems like a continuation of = >some previous thread). > >I *think* what you are trying to do is go "forward" from one action to = >another [*] but before so

overriding the ActionServlet class

2003-02-14 Thread Jason Vinson
Can anyone point me to a good example of a custom class that extends ActionServlet to do some security checks for session data? TIA, Jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

RE: overriding the ActionServlet class

2003-02-14 Thread John Espey
Jason, Have you considered using a Filter instead? It might be better than extending the ActionServlet. If you can't use Filters, then you will want to write your own RequestProcessor instead of extending the ActionServlet. > -Original Message- > From: Jason Vinson [mailto:[EMAIL PROTEC

Using the html:message tag

2003-02-14 Thread Sloan Seaman
I want to display messages in my html when the action completes successfully (think "Query successfully processed" type messages.) I'm guessing I use the tag but it doesn't seem to be working. In my code I have: ActionMessages messages = new ActionMessages(); messages.add("success", new Acti

Why isn't "DynaActionForm" serializable?

2003-02-14 Thread Hohlen, John
Does anyone know why the "DynaActionForm" does not implement serializable? It looks like all the attributes inside this class are serializable (i.e. HashMap, DynaActionFormClass) so why couldn't this class be as well. Or was this done intentionally to prevent the storing of the form in the session

RE: overriding the ActionServlet class

2003-02-14 Thread Jarnot Voytek Contr AU HQ/SC
It would probably be better to do this by extending RequestProcessor, or by having an Action superclass that all your actions extend, or both... Here's what we do in our BaseAction class (all other actions extend it, and override doAction(...)): String roles[] = mapping.getRoleNames(); if((roles

Field-Specific Permissions on JSP

2003-02-14 Thread Jacob Zwiers
We need to make fields on a JSP either - editable - visible, but not editable - hidden Based on some business logic. The last place we want to do this is on the JSP itself. Is there a set of tags that will take beans with "wrapped" properties (e.g. String + Above Access Right

Display Tag with querystring

2003-02-14 Thread Madhavan Srinivasan
I want to pass querystring parameters in the display tag. Is there any possibility? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

BeanUtils.copyProperties -error

2003-02-14 Thread Jack Zakarian
Hi, I have been trying to use BeanUtils.copyProperties in my Action to copy data from the ValidatorForm to the ServiceInvoiceHdr bean. I keep getting the following error message: "No value specified." I have searched the archives and spent 3 days on trying to solve this. Any help would be ap

RE: forwarding to another action ..

2003-02-14 Thread Sri Sankaran
Disclaimer:Not knowing your application I realize that the following may be prescribing something you are already doing. I wonder if you can avoid some of the problems you are having with re-entrant pages by using lightweight action classes. Say you have business services to - retrieve master

RE: Using the html:message tag

2003-02-14 Thread Jerome Jacobsen
Try this: If you omit message="true" then the tag only looks for error messages under Action.ERROR_KEY. With the message="true" it will look for messages under Action.MESSAGE_KEY. > -Original Message- > From: Sloan Seaman [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 14, 2003 1:26

RE: Using the html:message tag

2003-02-14 Thread Sri Sankaran
You have to set the 'message' attribute of to 'true'. The docs at http://jakarta.apache.org/struts/userGuide/struts-html.html#messages explain it all. Sri > -Original Message- > From: Sloan Seaman [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 14, 2003 1:26 PM > To: Struts User

[Q] Is Struts use of BeanUtils and PropertyUtils inconsistent?

2003-02-14 Thread Jim Krygowski
Hi- I noticed that when a request is processed by RequestUtils and its values are copied into an ActionForm, Struts uses the BeanUtils class. Deep inside BeanUtils, the method for copying (getSimpleProperty) uses ConvertUtils's convert() method before returning the requested value. However, all

RE: Error 500: Cannot retrieve definition for form bean null

2003-02-14 Thread Joe Barefoot
Ignore if you already fixed this, but the tag usage should be: not: The reason for this is so Struts can append the extension that you defined in the servlet mapping (e.g. ".do")--this way you can change the servlet mapping later without changing any of your html:form tags in your jsps. :)

Exception processing struts-html.tld

2003-02-14 Thread John Ruffin
I running tc4.1.18, sdk1.4.0_01, struts1.1.b2 on a w2k machine. > I created a basic struts app (struts-myhello). > > I created files (Hello.jsp, HelloAction.java, HelloForm.java, > HelloModel.java, Constants.java, & struts-config.xml). Using Ant, the app > builds and places the struts-myhello.

RE: blocking unauthorized users

2003-02-14 Thread Pfeifer, Craig
You could also consider a servlet filter, to prevent the user from even getting to the RequestProcessor in the first place: Javadoc: http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/Filter.html -Original Message- From: Jamal Najmi [mailto:[EMAIL PROTECTED]] Sent: Thursday, F

Re: Using the html:message tag

2003-02-14 Thread Sloan Seaman
Jerome, I tried it but it didn't work. Here is what I have in my HTML: And here is what is in my action file: ActionMessages messages = new ActionMessages(); messages.add("success", new ActionMessage("mdxquery.success")); saveMessages(_request, messages); where mxdquery.success in a value in m

RE: Why isn't "DynaActionForm" serializable?

2003-02-14 Thread Hohlen, John
Please disregard this question. I now realize "DynaActionForm" is serializable. John -Original Message- From: Hohlen, John Sent: Friday, February 14, 2003 12:22 PM To: Struts-User (E-mail) Subject: Why isn't "DynaActionForm" serializable? Does anyone know why the "DynaActionForm" does

RE: Using the html:message tag

2003-02-14 Thread Jerome Jacobsen
Sorry. It should be this: > -Original Message- > From: Sloan Seaman [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 14, 2003 2:09 PM > To: Struts Users Mailing List; [EMAIL PROTECTED] > Subject: Re: Using the html:message tag > > > Jerome, > > I tried it but it didn't work. > > Her

RE: Using the html:message tag

2003-02-14 Thread Sri Sankaran
Use the property attribute. Also take a look at the html-messages.jsp file that is part of the struts-exercise-taglib application that ships with Struts. Sri -Original Message- From: Sloan Seaman [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 2:09 PM To: Struts Users Mail

Re: Using the html:message tag

2003-02-14 Thread Sloan Seaman
Jerome, It still didn't work. Here is what I have (you left out the id tag which is required so I tried two seperate things) and Still nothing... Any other ideas? Thanks! -- Sloan - Original Message - From: "Jerome Jacobsen" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMA

RE: [REPOST] [Validator] REQUIREDIF Question

2003-02-14 Thread Jerry Jalenak
James, You, sir, are wy wiser in the use of regular expressions than I hope to ever be. The whole escape this, don't escape that thing continues to confound me. Anyway, I've updated my validator.xml with the changes to the mask, and it appears to be working (i.e. it returns to the original in

Re: Using the html:message tag

2003-02-14 Thread Sloan Seaman
Guys... Thanks for the info but it is still not working (I will work on it on Monday). Here is what I understand (becuase I'm feeling like an idiot right now). The property attribute looks like the right thing because the API docs for ActionMessages say the first parameter is for property. The

DynaValidatorForm extends DynaActionForm implements Serializable?

2003-02-14 Thread Nekkalapudi, Viplava
Can any one explain why we need to explicitly implement Serializable? Thanks, Vip. -Original Message- From: Hohlen, John Sent: Friday, February 14, 2003 1:07 PM To: 'Struts Users Mailing List' Subject: RE: Why isn't "DynaActionForm" serializable? Please disregard this question. I now

RE: Using the html:message tag

2003-02-14 Thread Larry Zappeterrini
html:messages works a bit differently than html:errors in that it does not print out the collection containing your messages for you. You must do it manually between a begin and end tag. Using your example, you would have to do the following: <%-- print out mdxquery, could also use bean:w

  1   2   >