unknown error message

2004-12-21 Thread Olasoji Ajayi
javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE what does this mean, i am just writing a simple program to display the contents of a table in a database using struts (using it ti learn struts), i am not writing any complicates stuff, no

error in request.getAttribute

2004-12-21 Thread uma.k
Hi, Why do I get this error org.apache.jasper.compiler.ParseException: /upload/display.jsp(23,70) Attribute image_path has no value when I use " /> but this works fine when I use " /> Any ideas? Uma - To unsubscribe, e-ma

Re: Urgent Helppp needed

2004-12-21 Thread mohan.radhakrishnan
Hi, This looks like the business case for Struts modules. You could check out the doc. related to the support for Struts modules. 1. Support for separate resource files. 2. You could use a single page ( for example a common 'Search' JSP ) across modules if you want. This promotes reusab

struts documentation

2004-12-21 Thread Olasoji Ajayi
where can i get do download struts doumentation that is as good as or even better than the one that comes with struts but is in pdf chm or anyformat that i can read offline and i dont need to startup a servelet container like i need to do for the documentation that comes with struts, i also need

Struts TestCase and Cactus

2004-12-21 Thread StrutsMailer
I am looking for documentation and best practices for StrutsTestCase and Cactus and interested in hearing how others are testing their web pages written in Struts. Thanks in advance for your comments and suggestions. Peter

Re: struts documentation

2004-12-21 Thread Hubert Rabago
What I always do is explode the documentation war files, so I never have to run a container to read them. For the packages that come with struts (commons), check their own websites at http://jakarta.apache.org/commons/. Hubert On Tue, 21 Dec 2004 10:43:04 +0100, Olasoji Ajayi <[EMAIL PROTECTED]>

Re: I'm completely lost, please help...

2004-12-21 Thread Bill Siggelkow
Eric, It sounds like you are definitely reaching frustration level. I do not have experience on Mac OS X but I can tell you my WinXP experience. First, I don't use the Sysdeo plug-in; I just start and stop tomcat manually -- I *do* utilize Eclipse's Ant integration to run my builds; this works

Re: unknown error message

2004-12-21 Thread Hubert Rabago
You're probably using a tag to display error messages. You can surround them by a conditional tag that checks for their presence. Check the tag example at the bottom of http://wiki.apache.org/struts/StrutsCatalogErrorTypes Hubert On Tue, 21 Dec 2004 09:17:19 +0100, Olasoji Ajayi <[EMAIL PROTEC

Re: prevent reset of bean after submit

2004-12-21 Thread Hubert Rabago
It's possible that you have your bean in request scope. If so, a new bean is being used for each request. Try putting your bean in session scope. Hubert On Tue, 21 Dec 2004 12:49:55 +0530, sachin <[EMAIL PROTECTED]> wrote: > hi all , > > On submit of a form , struts resets the bean before popu

Re: I'm completely lost, please help...

2004-12-21 Thread fzlists
I too only develop on XP, but one point I wanted to mention... I generally just put j2ee.jar in my classpath for build purposes. That gives you the equivalent of servlet-api.jar and jsp-api.jar, plus just about anything else you might need. There could concievably be version mismatch issues, b

Re: unknown error message

2004-12-21 Thread Bill Siggelkow
Well, it looks like you are using a tag (bean:message) that is trying to pull a value from the message resources property file. -Bill Siggelkow Olasoji Ajayi wrote: javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE what does this mean, i am

Re: I'm completely lost, please help... [Thank you/Update]

2004-12-21 Thread Eric D Nielsen
Thank you for your comments. After another few hours last night I got things working using the following sequence of steps: 1. Deployed a new blank application 2. Editted all the configuration files, with a text editor (NOTE: there appears to be a name mismatch between the Tiles TLD and th

ActionMessage replacement "keys" ?

2004-12-21 Thread Woodchuck
hihi all, is everyone rolling their own helper function to use other message keys as replacement values when creating ActionMessage or ActionError objects? i'm wondering if there's a better way to do this other than getting the MessageResources object and calling the getMessage() function then pu

NullPointerException in ActionServlet.java:854

2004-12-21 Thread Raju GVRRG
Hi, I am getting a NullPointerException from ActionServlet's getRequestProcessor() method. This happened while my app is up and running. My application served the requests fine for sometime and suddenly this error message is getting poped up for all the subsequent requests. I couldn't able to fig

RE: Urgent Helppp needed

2004-12-21 Thread Jim Barrows
> -Original Message- > From: Meenakshi S [mailto:[EMAIL PROTECTED] > Sent: Monday, December 20, 2004 10:53 PM > To: 'Struts Users Mailing List'; [EMAIL PROTECTED] > Subject: Urgent Helppp needed > > > > Hi all, > > I am newbie in struts. > I need help from u all in designing my applic

RE: ActionMessage replacement "keys" ?

2004-12-21 Thread Jim Barrows
> -Original Message- > From: Woodchuck [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 21, 2004 8:23 AM > To: struts > Subject: ActionMessage replacement "keys" ? > > > hihi all, > > is everyone rolling their own helper function to use other > message keys > as replacement values

RE: Struts TestCase and Cactus

2004-12-21 Thread Danilo Gurovich
These practices are well documented in Struts Recipes, published by Manning Publications. --- Danilo From: StrutsMailer [mailto:[EMAIL PROTECTED] Sent: Tue 12/21/2004 5:16 AM To: Struts Users Mailing List Subject: Struts TestCase and Cactus I am looking for d

Strange exception..

2004-12-21 Thread Ilja Smoli
Hi In my Action class I put in request scope a List: request.setAttribute("statuses", allStatuses(getAllGroups(),asm)); Then on my jsp page im iteratig over it: ... ... Everething is fine and iterating, but tomcat's console always give an exception: org.apache.jasper.JasperException: Cann

RE: ActionMessage replacement "keys" ?

2004-12-21 Thread Radu Badita
For the 99.9% of the situations I agree with you Jim, but when you do some kind of generic subsystem to reuse across applications it's very possible to need such behavior. Here might be arguable that such situations can be avoided, but still... you might end up presenting messages that are much

Re: Struts converters

2004-12-21 Thread Joe Germuska
I only briefly skimmed the chapter. I think that struts isn't proposing the use of property editors because no one has identified this as such a serious shortcoming of the current system. Maybe the author speaks for more people than I realize, but personally, I don't find the current model te

Re: Workaround for IE not sending "value" on input image tag?

2004-12-21 Thread Dakota Jack
Hello, David, You might as well forget about the wonders of firefox and learn to live for the moment with browsers that merely give you coordinates. Struts has many solutions to this problem which are in the code, such as LookupDispatchAction, ImageButtonBean (or something like that) and so on.

RE: ActionMessage replacement "keys" ?

2004-12-21 Thread Jim Barrows
> -Original Message- > From: Radu Badita [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 21, 2004 9:12 AM > To: Struts Users Mailing List > Subject: RE: ActionMessage replacement "keys" ? > > > > For the 99.9% of the situations I agree with you Jim, but > when you do some > kind

RE: ActionMessage replacement "keys" ?

2004-12-21 Thread Joe Germuska
In some cases you may be able to use the "choice" formatter. It won't work in every case, but if say you are looking up a day-of-the-week name to use in a sentence, you might be able to pull it off: shipdate.warning=Your thing will ship on {0,choice,1#Sunday|2#Monday|3#Tuesday|4#Wednesday|5#

Re: JNDI with tiles controller

2004-12-21 Thread Jim Douglas
I appreciate your response. DAO with JDNI retrieving data from a through a tiles controller ended up working and for those who may go down this path setting up a context on Tomcat 5.5.4 is very different so beware. Jim From: Eddie Bush <[EMAIL PROTECTED]> Reply-To: Eddie Bush <[EMAIL PROTECTED

RE: ActionMessage replacement "keys" ?

2004-12-21 Thread Woodchuck
hi Jim! but i think most of the time when there needs to be a replacement value, that value is in the form of a noun (at least that's how my messages are). so given a message with replacement placeholders, wouldn't the only issue be the placement (position) of these placeholders within the contex

RE: ActionMessage replacement "keys" ?

2004-12-21 Thread Joe Germuska
At 9:43 AM -0800 12/21/04, Woodchuck wrote: doesn't it seem odd that ActionMessage doesn't already have the ability to use other keys as replacement values... i can't think of any reason for this other than it was simply forgotten Well, it's more complicated than that - is it safe to assume that t

RE: ActionMessage replacement "keys" ?

2004-12-21 Thread Jim Barrows
> -Original Message- > From: Woodchuck [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 21, 2004 10:43 AM > To: Struts Users Mailing List > Subject: RE: ActionMessage replacement "keys" ? > > > hi Jim! > > but i think most of the time when there needs to be a replacement > value, th

[Tiles] Action class to retrieve list and send to tile

2004-12-21 Thread Ritchie Warsito
Hi I'm new to all of this. I'll try to keep it clear. I've playing around with tiles in a struts application that does mostly getters. My tiles-defs.xml looks like: This setup is to reduce the amount of jsp pages, the ones that only

OT: RE: ActionMessage replacement "keys" ?

2004-12-21 Thread Woodchuck
that reminds me, you have to check this site out, it is hilarious: http://www.engrish.com have fun! :D woodchuck --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > "Somebody set up us the bomb! All your base are belong to us!" > now > > that would be a major translation problem. no argum

RE: ActionMessage replacement "keys" ?

2004-12-21 Thread Joe Germuska
> but i also see your point. just having one unique message for each unique situation is simple and does the job. the only negative thing is that it takes up more memory when the message bundle is cached in application scope since there will be a lot of duplication in the bundle. i was hopi

RE: ActionMessage replacement "keys" ?

2004-12-21 Thread Woodchuck
that's true. i wouldn't like to have the code assume which bundle either. but now in hindsight, perhaps one bundle per language would be better than having the ability to specify many different bundles (per language). because in the end, all of the message keys would work just as well if they we

[ot]Excluding BeanUtils from Log4J? How do I do this?

2004-12-21 Thread Mick.Knutson
[ot]Excluding BeanUtils from Log4J? How do I do this? I am using the log4j.xml descriptor and really need to exclude this class. Can anyone help please? Mick Knutson Wells Fargo Business Direct Information Systems (415) 222-1020 "This message may contain confidential and/or

RE: Workaround for IE not sending "value" on input image tag?

2004-12-21 Thread Karr, David
I dealt with this with the following strategy: On any page that uses at least one image submit button (even if there are also normal submit buttons on the page), add a hidden form parameter named "submitMethod" (the parameter normally set by the submit button). Change all the submit buttons (not j

Re: [ot]Excluding BeanUtils from Log4J? How do I do this?

2004-12-21 Thread Hubert Rabago
For the BeanUtils class itself, try something like: If you want the same priority to apply to all classes under the beanutils package, don't include the BeanUtils class name. Hubert On Tue, 21 Dec 2004 13:10:48 -0600, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >

Re: Struts TestCase and Cactus

2004-12-21 Thread Bill Siggelkow
StrutsMailer wrote: I am looking for documentation and best practices for StrutsTestCase and Cactus and interested in hearing how others are testing their web pages written in Struts. Thanks in advance for your comments and suggestions. Peter Peter, There was a recent article on OnJava that discu

RE: ActionMessage replacement "keys" ?

2004-12-21 Thread Joe Germuska
At 10:55 AM -0800 12/21/04, Woodchuck wrote: that's true. i wouldn't like to have the code assume which bundle either. but now in hindsight, perhaps one bundle per language would be better than having the ability to specify many different bundles (per language). because in the end, all of the mes

RE: [ot]Excluding BeanUtils from Log4J? How do I do this?

2004-12-21 Thread Mick.Knutson
It didn't work. What am I doing wrong here: http://jakarta.apache.org/log4j/";>

Re: [ot]Excluding BeanUtils from Log4J? How do I do this?

2004-12-21 Thread Hubert Rabago
How did it not work? Are you seeing info-, warn-, or debug-level logs from BeanUtils? Or are you seeing error-level logs and you want to suppress even those? Or are the logs coming from other classes from the beanutils package, but not necessarily the BeanUtils class itself? Hubert On Tue, 21

RE: [ot]Excluding BeanUtils from Log4J? How do I do this?

2004-12-21 Thread Daniel Lipofsky
You can also set "additivity" to false for the class or package, which prevents it from inheriting appenders. You will have to look up the syntax yourself, since I do not use the XML style. - Dan > -Original Message- > From: Hubert Rabago [mailto:[EMAIL PROTECTED] > Sent: Tuesday, Decemb

RE: [ot]Excluding BeanUtils from Log4J? How do I do this?

2004-12-21 Thread Mick.Knutson
Sorry. I am still getting debug from BeanUtils which is my whole issue. I want debug from everything BUT BeanUtils. Mick Knutson Wells Fargo Business Direct (415) 222-1020 "This message may contain confidential and/or privileged information. If you are not the addressee or

RE: [ot]Excluding BeanUtils from Log4J? How do I do this?

2004-12-21 Thread Jim Barrows
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 21, 2004 1:05 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [ot]Excluding BeanUtils from Log4J? How do I do this? > > > Sorry. I am still getting debug from BeanUtils which

MVC business separation design

2004-12-21 Thread icon911
I am using struts with tiles. Now, I have a questioner that is being displayed on a page that calls UrlController. Before it is displayed I need to get the values out of the database. The question is since I cannot use another action with the urlController to populate the actionform bean, should I

Re: [ot]Excluding BeanUtils from Log4J? How do I do this?

2004-12-21 Thread Hubert Rabago
This OT thread could grow a bit more, then, cause it looks like something else is the matter. First of all, your root priority is already set to info, so you shouldn't be getting debug messages. Are you sure the correct config file is being loaded? Hubert On Tue, 21 Dec 2004 14:05:23 -0600, [E

RE: bean:message and escaping

2004-12-21 Thread Daniel Lipofsky
Can you just escape it in your .properties file or whereever the message is defined? I think that would be best practice unless you need to only escape it some of the time. - Dan > -Original Message- > From: Edgar Poce [mailto:[EMAIL PROTECTED] > Sent: Saturday, December 18, 2004 2:42 PM

RE: [ot] Excluding BeanUtils from Log4J? How do I do this?

2004-12-21 Thread Mick.Knutson
Opps, I am running 2 machines. My WIN has info as root, but Linux has debug, and that is what is having the issue. So root is set to debug. Mick Knutson Wells Fargo Business Direct (415) 222-1020 "This message may contain confidential and/or privileged information. If you a

Validator Framework

2004-12-21 Thread Carolina Serrano
I'm using the validator framework , doing validations that depends on others. for example: dateafterthat depends on date. the dependations in the server run ok, but it failed when it has to validate in the client both: 1st date and 2nd dateafterthan. According the documentation: "if 1st(dat

RE: Validator Framework

2004-12-21 Thread Jim Barrows
> -Original Message- > From: Carolina Serrano [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 21, 2004 1:35 PM > To: [EMAIL PROTECTED] > Subject: Validator Framework > > > > I'm using the validator framework , doing validations that depends on > others. > > for example: dateaftert

RE: Validator Framework

2004-12-21 Thread Carolina Serrano
Yes, you are right, but the thing is that we have to validate in both sides. I ´ll try to be more specific. We have this situation: date: 21/12/2004 dateGreaterEqualThan: 21/12/1--> this is an error because it is not a DATE. I got the following message: the "dateGreaterEqualThan" is minor

RE: Validator Framework

2004-12-21 Thread Jim Barrows
> -Original Message- > From: Carolina Serrano [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 21, 2004 2:00 PM > To: 'Struts Users Mailing List' > Subject: RE: Validator Framework > > > Yes, you are right, but the thing is that we have to validate > in both sides. > I ´ll try to be m

problems with html:javascript

2004-12-21 Thread Nadia Maclaren
Hi, I have a a html:javascript on the jsp pages. It is throwing a null exception, and I can't work out why. It was working quite happily a few months ago. But we have just revisited it and it doesn't want to work any more. Its happening on all our pages that have client-side validation. Any id

Struts and JDK 1.4.2_06

2004-12-21 Thread Mike Darretta
Has anyone else experienced any issues with Struts (current release) and JDK 1.4.2_06? I have found my second 'oddity' with JDK release 06. My previous post showed that a form property named "currentView" caused the infamous "no getter method for property ..." error. When I changed the property

How to compile the java file with ActionForm / ActionMapping ?

2004-12-21 Thread Manisha Sathe
Just started using struts: I got following code from Web - but when i tried to compile it i am getting error - import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; public class EmployeeForm extends ActionForm { p

RE: How to compile the java file with ActionForm / ActionMapping ?

2004-12-21 Thread David G. Friedman
Manisha, How are you compiling? Are you using Ant? Have you added the "lib" directory to the CLASSPATH? Are you using Eclipse or another IDE? Have you set the IDE to include the jar files when it builds/compiles the application? Regards, David -Original Message- From: Manisha Sathe [

Re: Struts and JDK 1.4.2_06

2004-12-21 Thread Andrew Hill
Ive not seen your code so Ive no idea if this is what you are doing (probably not from the sound of it), but its been my experience that when I dont quite follow the bean specs for my getters and setters it still sometimes works... until I change something else like my JVM version or add some o

Re: Struts Tiles : Image instead of text

2004-12-21 Thread PC Leung
A simple tile layout: pages1 pages 2 -+--- url1 | url2 | url3 | url4 | For the vertical box layout or tab pages, user can click on the labels of words. But it is more user friendly to click on images. Can I replace words with images in Til

Passing information to Action class

2004-12-21 Thread uma.k
Hi, How to pass information to Action class directly? i.e. I don't want to write a ActionForm class. Edit And my struts-config.xml will look like this in my .java execute method, I am writing String theFile = request.getParameter("fileAbsPath"); Any ideas? Uma --

Re: Struts Tiles : Image instead of text

2004-12-21 Thread Dakota Jack
Yes. The uploading of the image is after the html/response is sent anyway. Jack On Wed, 22 Dec 2004 12:12:21 +0800, PC Leung <[EMAIL PROTECTED]> wrote: > A simple tile layout: > > pages1 pages 2 > -+--- > url1 | > url2 | > url3 | > url4

Re: Passing information to Action class

2004-12-21 Thread Dakota Jack
Don't use a form and check the request object for what happens to be in the critter, just as you suggested. What is the problem? Jack -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ "You can't wake a person who is pretending to be asleep." ~Native P

Re: Passing information to Action class

2004-12-21 Thread Shiva Narayana
try with DynaActionForm it solves ur problem. No noeed to write FormBean On Tue, 21 Dec 2004 19:16:50 +0530, uma.k <[EMAIL PROTECTED]> wrote: > Hi, > How to pass information to Action class directly? i.e. I don't want to write > a ActionForm class. > > > > Edit > > > And my struts-config

Re: html:file value

2004-12-21 Thread Dakota Jack
Hi, Uma, Let's start over. Forget about anything but telling me from a user's point of view what you want to do. You have a user using a browser and wanting to do something with files. If the file is on the server, then we are talking about a download. If the file is on the client (user machin

Re: Passing information to Action class

2004-12-21 Thread Dakota Jack
I may be wrong, Shiva, but I think she wants to avoid the use of action forms in this case rather than avoid writing classes. If you use forms in a file upload, then you are trapped into using the Struts file upload implementation. She may, I don't know, want to avoid that. Jack -- "You can

Re: html:file value

2004-12-21 Thread Eddie Bush
Uma, When your user submits the form that they've used to select the file they want to upload, you'll have to upload it - right then. AFAIK, there's not a way to, at some later point in time, poke a value into a html:file input field -- per the HTML spec, I believe. You have to upload the file w

Re: Can we inherit form bean definitions

2004-12-21 Thread Eddie Bush
Nope - can't do that. There is no mechanism to facilitate it ... On Wed, 22 Dec 2004 11:36:47 +0530, Amit Gupta <[EMAIL PROTECTED]> wrote: > Hi, > > I have several pages with forms with 15-20 fields. Out of these 15-20 fields, > 12 fields are common to all pages. I am defining form beans using

Re: How to implement torque?

2004-12-21 Thread Jay Chandran
Thanks Eddie I will do that. Have u tried implementing the same? :) Jay Chandran. - Original Message - From: "Eddie Bush" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Jay Chandran" <[EMAIL PROTECTED]> Sent: Wednesday, December 22, 2004 11:32 AM Subject: Re:

RE: Can we inherit form bean definitions

2004-12-21 Thread Amit Gupta
Thanks my dear. -Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 22, 2004 11:43 AM To: Struts Users Mailing List Subject: Re: Can we inherit form bean definitions Nope - can't do that. There is no mechanism to facilitate it ... On Wed, 22 Dec 2004

Re: html:file value

2004-12-21 Thread Dakota Jack
There actually are a lot of things you can do with this that are not obvious and are consistent with what seems to be impossible. You can actually get around almost all of the restrictions on without breaking security. You just create GUI facades with span styles. This can allow you to actually

RE: How to compile the java file with ActionForm / ActionMapping ?

2004-12-21 Thread Manisha Sathe
After lots of trial errors i found some very weired workaround. javac -classpath and finally got compiled, but for each file i must do something like above. I do not know how to set -classpath to javac permanently. Also why i need to give the individual jar file names? Why i can not just g

RE: Passing information to Action class

2004-12-21 Thread uma.k
Yes Jack, You are right. I have ActionForm but do not want to use it. -Original Message- From: Dakota Jack [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 22, 2004 10:56 AM To: Struts Users Mailing List; Shiva Narayana Subject: Re: Passing information to Action class I may be wrong,

Re: How to compile the java file with ActionForm / ActionMapping ?

2004-12-21 Thread Dakota Jack
What I would suggest, if you are using $soft, is that you create a batch file with all the dependencies you need for compiling, then call that batch file prior to compiling, which will give you the appropriate contents/references/etc. in your classpath. You do something similar with sh files if yo

Re: How to compile the java file with ActionForm / ActionMapping ?

2004-12-21 Thread Manisha Sathe
Thanks, but what's $soft ? I am not too sure about it. I am on WinXP. Where i can i find it ? Pls can u let me know more details ? Thanks and regards manisha Dakota Jack <[EMAIL PROTECTED]> wrote: What I would suggest, if you are using $soft, is that you create a batch file with all the depende

RE: html:file value

2004-12-21 Thread uma.k
Hi Jack, I finally got it to work. html:file doesn't get filled with a default value (thats a security concern), so I have passed the filename from display.jsp (preview) to my action and in my action class I am checking if the file exists, then I am renaming to another name for Submission and for E

Re: unknown error message

2004-12-21 Thread Olasoji Ajayi
here is the jsp file that gave the error, you will see that i did not use any such tags. the rowSet bean is a requst attribute of type RowSetDynaClass set by an Action class before forwarding to this jsp. this page is supposed to display the table captured in the RowSetDynaClass. Data Base

RE: How to compile the java file with ActionForm / ActionMapping ?

2004-12-21 Thread David G. Friedman
You set the wrong variable in Windows. You need to set CLASSPATH to include the lib directory, various tomcat directories, and %JAVA_HOME%, if I recall correctly. I say "recall" because I've been using Eclipse for sometime but I'm pulling the classpath stuff from memory. Regards, David -Ori