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

2004-09-23 Thread David G. Friedman
Caroline, are you by any chance using anything before the 1.1 stable release such as 1.0, a 1.1 beta or release candidate (1.1-b3, 1.1-rc2, etc.) ? I found this note in v1.1-b3 (and in the current 1.2.4 notes): ActionMapping: input property may now refer to an ActionForward rather than a

Validator: Why are double and long missing javascript validations?

2004-09-23 Thread Ryan Dillon
Hi Why is there no javascript for double and long validations in the validator? Obviously i could use float or int, but i really want double and long! I am sure there is a good reason for it, but just cant seem to find it. Thanks Ryan

Re: Struts Tiles with Frames

2004-09-23 Thread brenmcguire
Did you try using the forward attribute? Try making a tile definition in your tiles-defs.xml for each of your frames (attention, not each for your frameset, but every little frame you have in your pages) and then: html:frame forward=my.tile.definition.for.frame.one / Ciao Antonio Petrelli

java.lang.IllegalArgumentException: Cannot find module configuration

2004-09-23 Thread babloosony
Hi All, I am using struts-faces library and when I try to load a jsp which has below code then I am getting an exception in browser saying java.lang.IllegalArgumentException: Cannot find module configuration. I placed all the relevant jar files in the lib folder and other .tld files in WEB-INF

Re: question related to action and tile

2004-09-23 Thread Amit Gupta
Can any body guide me how to rewrite URL with JSP and tomcat as it is possible with mode_rewrite with apache? Take care Amit Gupta Mobile:9891062552 Email: [EMAIL PROTECTED] - Original Message - From: Vclavk Radek [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent:

Struts and html:base - hidding implementation

2004-09-23 Thread Java News
Hi, I don't understand one simple thing with html:base / - when I had read about Struts and JSTL help for them, I saw that it helps to hide implementation, so why I got such output: base href=http://localhost:8180/struts_test/pages/Welcome.jsp; form page which was called from browser as:

Re: [OT] GMail invites

2004-09-23 Thread Darryl L. Pierce
Craig McClanahan wrote: For all people who have either invites to give, or want an invite you can go to: http://isnoop.net/gmailomatic.php Here you can give away your invites, and receive an invite. Indeed, it is my belief that GMail invites are too off topic for even a [FRIDAY] or [OT] label

locale in validation.xml

2004-09-23 Thread Muhammad Momin Rashid
Hello All, I have defined two formsets in my validation.xml file. One is the default and the other one is for the country PK language en. I have defined validations for FormSelectCountry in the default formset (and its not redefined in the other formset). Now whenever in my application the

Re: Struts and html:base - hidding implementation

2004-09-23 Thread Mark Lowe
To my knowledge the html:base tag is to help resolve images and other media. If you use the app context to resolve your images and things then there should be no issue. c:set var=contextPath value=${pageContext.request.contextPath} / img src=${contextPath}/images/myimage.gif / or img src=%=

RE: Forward to a file on hard drive

2004-09-23 Thread bmf5
Thanks for the correction. I want be so kludgy with spelling in the future. Durham David R Jr Contr 805

File Upload Limits

2004-09-23 Thread Zoran Avtarovski
I'm trying to find some detailed information on how to use the file size limits using the struts MultipartRequestHandler. In the past I have used a custom servlet, but I thought it was time to bring this into the struts world. Before anybody says anything, I tried to search the list archive but

RE: File Upload Limits

2004-09-23 Thread Geeta Ramani
Hi Zoran, not directly helpful, but here's a link which will enable you to search the archives: http://marc.theaimsgroup.com/?l=struts-user Geeta -Original Message- From: Zoran Avtarovski [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 9:12 AM To: Struts Users Mailing List

Error Deploying

2004-09-23 Thread CCNY
Hi all I'm deploying on Tomcat 4.1, but I developed on Tomcat 5.0.28 I think that shouldnt matter. I get the following error. what am I doing wrong? type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception

Re: Error Deploying

2004-09-23 Thread CCNY
Where, Ideally should the struts.jar live? Is it apart of the APP or the container? On Thu, 23 Sep 2004 19:27:20 +0530, Kailash Vasani [EMAIL PROTECTED] wrote: Check struts version on both the servers. It seems that they are different. -Original Message- From: CCNY [mailto:[EMAIL

Re: Error Deploying

2004-09-23 Thread CCNY
I do see another version of struts.jar. I've renamed it, but the error is still there. Also, the jar is being used by the admin app. It's location is C:\Program Files\Apache Group\Tomcat 4.1\server\webapps\admin\WEB-INF\lib ugh. help On Thu, 23 Sep 2004 19:27:20 +0530, Kailash Vasani [EMAIL

Re: Validator: Why are double and long missing javascript validations?

2004-09-23 Thread Matt Bathje
Ryan Dillon wrote: Hi Why is there no javascript for double and long validations in the validator? Obviously i could use float or int, but i really want double and long! I am sure there is a good reason for it, but just cant seem to find it. Thanks Ryan Ryan - this is a question for the

How to test Struts actions within Maven?

2004-09-23 Thread Paul Spencer
What is the best way to test Struts actions within Maven? My Business logic is tested via Maven's JUnit plugin. Now I need to test the Struct actions, i.e. verify request and session attributes are set. Paul Spencer - To

Re[2]: Error Deploying

2004-09-23 Thread Dirk Markert
Hello CCNY, it should be part of the APP. *** C Where, Ideally should the struts.jar live? Is it apart of the APP or C the container? C On Thu, 23 Sep 2004 19:27:20 +0530, Kailash Vasani [EMAIL PROTECTED] wrote: Check struts

Finding out what version of Struts

2004-09-23 Thread CCNY
How do I figure out which version of Struts a given distribution is? Is there an easy way? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Finding out what version of Struts

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

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

2004-09-23 Thread O. Oke
Please help! I have a class that extends MappingDispatchAction class . This class has, they are below: action path=/getCustomer type=com.fujimitsu.cargo.gen.CustomerAction name=cargoForm scope=request validate=false input=.customerDef.jsp parameter=getCustomer

Struts version 1.2.2 and Tomcat 4.1

2004-09-23 Thread CCNY
All I think I've got a problem. Can anyone tell me definitively if Struts 1.2.2 uses a version of the Servlet or JSP Spec that could make it incompatible with Tomcat 4.1? Is anyone currently using these two together? - To

Re: Struts version 1.2.2 and Tomcat 4.1

2004-09-23 Thread James Mitchell
There were several issues with the 1.2.2 build. Please try it with 1.2.4 -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: CCNY [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent:

Re: Struts version 1.2.2 and Tomcat 4.1

2004-09-23 Thread Sean Schofield
FYI: I was able to run both 1.2.2. and 1.2.4 on Tomcat 4.1 with no problems. I'd take Jame's advice though and upgrade to 1.2.4 just to be safe. sean James Mitchell wrote: There were several issues with the 1.2.2 build. Please try it with 1.2.4 -- James Mitchell Software Engineer / Open

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

2004-09-23 Thread O. Oke
If it is /updateCustomer, it means I will have to a separate jsp for each mapping. This will defeat the purpose of using MappingDispatchAction. It seems to me that your suggestion is only applicable to subclasses of Action, not MappingDispatchAction . I am asking because I am using

Storing User in Session

2004-09-23 Thread Tom Holmes Jr.
I did some research before this before posting, and I apologize if this is a simple stupid question. With my web-site, a user is going to login, when they enter in the username and password, the data from that user will be retrieved from the database so we can validate the username and

Re: success story using Struts in large scale web based system

2004-09-23 Thread Vic Cekvenich
One of the largest you can start clicking here: http://erosennin.1up.com It's friendster like site for gamers, fun to surf. (Fact: Sofware Game industry is bigger than the Movie industry in USA) It has 10MM members, 5 magazines, 100+ pages, a few hundred dynamic tiles, 1 terabyte DB. When a

Re: Storing User in Session

2004-09-23 Thread Vic Cekvenich
This done a lot, and.. its done for you, built into Java, since Servlet 2.2 spec I think: http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/http/HttpServletRequest.html#getUserPrincipal() It's done for you, you just use it, 0 code (0 bugs!) To set up you do something like this:

Repost: Storing User in Session

2004-09-23 Thread Vic Cekvenich
Vic Cekvenich wrote: This done a lot, and.. its done for you, built into Java, since Servlet 2.2 spec I think: http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/http/HttpServletRequest.html#getUserPrincipal() It's done for you, you just use it, 0 code (0 bugs!) To set up you do

Re: Struts version 1.2.2 and Tomcat 4.1

2004-09-23 Thread Sean Schofield
Well, you never really specified what the specific problem you were having was. Have you ever gotten any version of Struts working with Tomcat before or this your first attempt? If you never gotten any version of Struts to work before, then my guess would be there is something wrong with how

Cannot Find Bean in Scope Request

2004-09-23 Thread Caroline Jen
It is so stressful for having problems one after another. And I do not have the ability to see the causes of those problem on my own. The error message that appears in the browser (runtime problem, not compilation problem) is: '[ServletException in:/frame/content/content.jsp] Cannot find bean

Re: Storing User in Session

2004-09-23 Thread Sean Schofield
Tom, I would recommend storing the user information in the session (I use POJO's) as you have suggested. Then you can access it from the session to preopulate the form. Your approach sounds correct. We're storing user information in the session on our project because its constantly being

Re: Cannot Find Bean in Scope Request

2004-09-23 Thread Wendy Smoak
From: Caroline Jen [EMAIL PROTECTED] The error message that appears in the browser (runtime problem, not compilation problem) is: '[ServletException in:/frame/content/content.jsp] Cannot find bean PageBeans in scope request' Partial content.jsp code: bean:define id=pageList

Cannot Find Bean in Scope Request

2004-09-23 Thread Caroline Jen
It is so stressful for having problems one after another. And I do not have the ability to see the causes of those problem on my own. The error message that appears in the browser (runtime problem, not compilation problem) is: '[ServletException in:/frame/content/content.jsp] Cannot find bean

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

2004-09-23 Thread Hubert Rabago
I apologize, but I have no clue as to what you're trying to do. You presented two mappings and said what action do I use in my form? I just made a guess. Maybe if you provide more information, someone (I or someone else) could help you. What are you trying to do? What are the two mappings

Re: Cannot Find Bean in Scope Request

2004-09-23 Thread Jeff Beal
Caroline Jen wrote: The message is confusing because PageBeans (plural) is a Collection of PageBean (singular). Upon successful execution of a servlet, PageBeans (plural) is passed in a request scope to help creating a drop down menu in 'content.jsp'. And the 'content.jsp' with the drop-down

Re: Cannot Find Bean in Scope Request

2004-09-23 Thread Caroline Jen
I tried your suggestion: 1. deleted the bean:define ... tag; and 2. use the html-el: ... tags. The drop-down menu gets displayed without problem. But, when I click on the Submit button to submit that form, I still get the same error message 'cannot find bean PageBeans in scope request'.

Re: Cannot Find Bean in Scope Request

2004-09-23 Thread Caroline Jen
Yeah, thank you for sheding light on the problem I have. My code had worked fine until form validation was added. I was testing if validation worked. Therefore, I intentionally left all text fields blank, menu not selected, and submit the form. Apprarently, the control returned to the

Re: File Upload Limits

2004-09-23 Thread Michael McGrady
Zoran Avtarovski wrote: I'm trying to find some detailed information on how to use the file size limits using the struts MultipartRequestHandler. In the past I have used a custom servlet, but I thought it was time to bring this into the struts world. Before anybody says anything, I tried to search

Re: Storing User in Session

2004-09-23 Thread Tom Holmes Jr.
Thanks for the information Sean, I just wanted to make sure I was heading down the right road for Struts. There is also another school of thought, and using a design pattern (I think it's a design pattern) called Lazy Loading. In some cases, I might make another trip to the database in order

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

2004-09-23 Thread Michael McGrady
If you would like a simpler, and more general, solution that does the same thing, try http://wiki.apache.org/struts/StrutsCatalogFiveMultipleButtonSolutions . However, if you like MappingDispatchAction anyway, which I would find odd but you may find even, you can do whatever you like, but you

Re: Cannot Find Bean in Scope Request

2004-09-23 Thread Jeff Beal
Caroline Jen wrote: Q1. How come I do not see validation warning messages? I have prepared validation.xml and put it together with the validator-rules.xml in the AppName/WEB-INF directory. I have also prepared the warning messages in the AppName/WEB-INF/classes/resources/application.properties

MappingDispatchAction's JSP code

2004-09-23 Thread O. Oke
Please help! Background == I have a class that extends the new MappingDispatchAction class . This class has two methods, namely getCustomer and updateCustomer. The corresponding mapping for each method are below: action path=/getCustomer

Re: Storing User in Session

2004-09-23 Thread Sean Schofield
Sounds good. I don't think you need to worry too much about the overhead of storing the user in the session though. It really shouldn't be that much for the server to handle. You are most likely already experiencing the overhead of maintaining a session (for forms with session level scope,

Struts Action as Welcome File

2004-09-23 Thread Mulligan, Scott H
I am trying to set my application's welcome file to a struts dispatch action (login.do?method=load), but it isn't being found. Is there any reason I can't use a dispatch action as my welcome page? Is there a better way to do this? Scott Mulligan

Re: Struts Action as Welcome File

2004-09-23 Thread Niall Pemberton
I believe you can only do this since version 2.4 of servlet specification. Niall - Original Message - From: Mulligan, Scott H [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, September 23, 2004 8:36 PM Subject: Struts Action as Welcome File I am trying

Re: Storing User in Session

2004-09-23 Thread Mike Elliott
On Thu, 23 Sep 2004 15:31:47 -0400, Sean Schofield [EMAIL PROTECTED] wrote: Of course if you have millions of users that might be another story. Millions of users, each of whom have an active session. Otherwise, who cares how many rows are in the database? Certainly not struts.

Re: Struts Action as Welcome File

2004-09-23 Thread Andre Van Klaveren
I setup index.jsp as my welcome file (in web.xml) and then just have index.jsp forward to the Action of my choice. On Thu, 23 Sep 2004 15:36:42 -0400, Mulligan, Scott H [EMAIL PROTECTED] wrote: I am trying to set my application's welcome file to a struts dispatch action (login.do?method=load),

RE: Struts Action as Welcome File

2004-09-23 Thread Wiebe de Jong
Just have your web.xml point to a jsp. I call mine index.jsp, but you can use whatever. welcome-file-list welcome-file/index.jsp/welcome-file /welcome-file-list The jsp contents would be: html head META HTTP-EQUIV=Refresh CONTENT=0; URL=/myapp/login.do?method=load /head /html Wiebe

Re: Struts Action as Welcome File

2004-09-23 Thread Matt Bathje
If search engine placement is a concern for your app, the home page redirect may be a bad idea. We used this instead: (in index.jsp): %@ taglib uri=/tags/struts-logic prefix=logic % logic:forward name=indexNoRedirect/ (in struts-config): forward name=indexNoRedirect

RE: Struts Action as Welcome File

2004-09-23 Thread Wiebe de Jong
Would that work with Tiles? Wiebe -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 1:51 PM To: Struts Users Mailing List Subject: Re: Struts Action as Welcome File If search engine placement is a concern for your app, the home page

Re: Struts Action as Welcome File

2004-09-23 Thread Matt Bathje
I'm not entirely sure what you mean...but since my entire site uses tiles (other than this index.jsp page) I would have to say yes... Matt Wiebe de Jong wrote: Would that work with Tiles? Wiebe -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23,

Why My Validation Lets All Errors Pass Through?

2004-09-23 Thread Caroline Jen
I intentionally left every single field blank and radio buttons not selected, and then submit the form with validation check. All the errors pass through the validation check and the next page gets displayed. I have commons-validator.jar (6/29/2003) in the AppName/WEB-INF/lib directory. And I

Re: Why My Validation Lets All Errors Pass Through?

2004-09-23 Thread Matt Bathje
[CODE] action path=/message/SendMessage type=org.dhsinfo.message.SendMessage name=messageForm scope=request validate=false input=.message.Form forward name=success path=.message.Confirmation/ /action [/CODE]

Tiles putList and jsp:include of list values

2004-09-23 Thread Mark Benussi
My jsp works great in my development IDE. page: tiles:putList name=right_features tiles:add type=page value=/templates/features/logon.jsp / tiles:add type=page value=/templates/features/basket.jsp / tiles:add type=page value=/templates/features/promotions.jsp /

MappingDispatchAction's JSP code

2004-09-23 Thread O. Oke
Thanks for your response, I have rephrased my question as below: Please help! Background == I have a class that extends the new MappingDispatchAction class . This class has two methods, namely getCustomer and updateCustomer. The corresponding mapping for each method are below:

To use module switching or not....?

2004-09-23 Thread Wylie van den Akker
Hi all, Our team is making some design decisions about a site and we are looking at implementing the struts module switch action as opposed to the way we have done in the past. That being /{modulename}/{actioncall} when we want to switch modules. Am i clear enough? Any thoughts and

Re: Struts Tiles with Frames

2004-09-23 Thread Ratnakar Parakala
Before html:frame ... do I need to write Frameset tag? Ratnakar [EMAIL PROTECTED] wrote:Did you try using the forward attribute? Try making a tile definition in your tiles-defs.xml for each of your frames (attention, not each for your frameset, but every little frame you have in your pages) and

Re: MappingDispatchAction's JSP code

2004-09-23 Thread Michael McGrady
I am not sure what you have in mind at this point. Do you still want to go on with MappingDispatchAction? Michael McGrady O. Oke wrote: Thanks for your response, I have rephrased my question as below: Please help! Background == I have a class that extends the new MappingDispatchAction

RE: Struts Action as Welcome File

2004-09-23 Thread David G. Friedman
Wiebe, If you want any directly-web-accessible JSP to display a tile, you can do that. Directions are in the TilesAdvancedFeatures.pdf: http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf I often make my index.jsp (my web.xml's welcome-file) with code like this: %@ taglib

Re: File Upload Limits

2004-09-23 Thread Zoran Avtarovski
Thanks Michael, But I was under the impression that the Struts Uploader was just an implementation of the commons uploader. I remember reading somewhere that the two are the one and the same. Either way, any help would be appreciated. Zoran Zoran Avtarovski wrote: I'm trying to find some

RE: Tiles performance under Weblogic Server 6.1

2004-09-23 Thread David G. Friedman
Philippe, I was looking up something under bugzilla last night and noticed a note about Struts v1.1 and Tiles possibly taking up significant memory if a HUGE number of tiles were defined. Is this something you have setup? Perhaps this bug report fits your situation:

RE: Struts Action as Welcome File

2004-09-23 Thread Wiebe de Jong
Yup! I like it. Thanks Wiebe -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 4:53 PM To: Struts Users Mailing List Subject: RE: Struts Action as Welcome File Wiebe, If you want any directly-web-accessible JSP to display a tile,

Re: Cannot Find Bean in Scope Request

2004-09-23 Thread Caroline Jen
What about putting the object PageBeans, which is actually a Collection, in an application scope. When the object is no longer in use, code: getComputer().getPlug().pull(); Do you think this approach is going to work? --- Jeff Beal [EMAIL PROTECTED] wrote: Caroline Jen wrote: Q1. How come I

[HOW TO? ImageButtonBeanManager Extension]

2004-09-23 Thread Carlos Cajina - Hotmail
Hi. I'm tryin' to add this Strust extension to my project and from the documentation I understand that what I need to do is create my Action Flow using the SubmitButtonForwardDispatchAction, but after coding my Action Form and Action classes and setting up struts-config.xml I keep getting this

Re: [HOW TO? ImageButtonBeanManager Extension]

2004-09-23 Thread Michael McGrady
Carlos, This solution just adds weight (ImageButtonBean) on top of (DispatchAction) and combines what are the same solutions really. I would suggest you look at what might be improvements to this sort of suggestion at http://wiki.apache.org/struts/StrutsCatalogFiveMultipleButtonSolutions .

Re: File Upload Limits: CODE BLOAT

2004-09-23 Thread Michael McGrady
Zoran Avtarovski wrote: I'm trying to find some detailed information on how to use the file size limits using the struts MultipartRequestHandler. In the past I have used a custom servlet, but I thought it was time to bring this into the struts world. Before anybody says anything, I tried to search

Re: MappingDispatchAction's JSP code

2004-09-23 Thread Rick Reumann
O. Oke wrote the following on 9/23/2004 5:47 PM: Background == I have a class that extends the new MappingDispatchAction class . This class has two methods, namely getCustomer and updateCustomer. The corresponding mapping for each method are below: action path=/getCustomer

RE: Why My Validation Lets All Errors Pass Through?

2004-09-23 Thread ravi.vedala
Did you put html:errors / in your jsp ? -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Friday, September 24, 2004 2:40 AM To: [EMAIL PROTECTED] Subject: Why My Validation Lets All Errors Pass Through? I intentionally left every single field blank and radio