[OT] Calling WebService from web application not working...

2004-09-24 Thread Viral_Thakkar
Hi all, I am using https://webservices.sabre.com/websvc web service. This web service is invoked by a SoapClient class. If I call SoapClient through main method of my java class then its working fine. If I call method of SoapClient through web application (using JDeveloper) then it's gi

BeanUtil Exception when File Upload

2004-09-24 Thread Sebastian Ho
Hi Once I add in a , i encountered a BeanUtil exception. I have attached all relevant information. I noticed that the validate method in ActionForm is not called. The exception occurred during the bean population. Hope someone can help. Sebastian Ho -- excepti

Re: Storing User in Session

2004-09-24 Thread Emmanouil Batsis
Sean Schofield wrote: 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 cons

RE: BeanUtil Exception when File Upload

2004-09-24 Thread David G. Friedman
Sebastian, I am playing around with this right now. I had to change my to be: Between this and keeping my bean simple, it worked fine. Also, don't forget this test to see if your uploaded file(s) exceeded the max limit: Boolean b = (Boolean) request.getAttribute(MultipartRequestHandler.ATTRI

Html-el disabled property error

2004-09-24 Thread Zoran Avtarovski
Hi all, I'm building my first webapp using srtuts-el and I've come across a strange error. When creating a form using the tag and I set the disabled parameter to true as follows: <%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html" %> I get the following error from jrun4: jrunx.comp

RE: File Upload Limits

2004-09-24 Thread David G. Friedman
Zoran, I'm on Struts v1.2.4 and it works as specified. Here is an outline of the key points I followed: 1) Made sure my includes enctype="multipart/form-data" 2) Make sure my ActionForm subClass contains a private property of the type org.apache.struts.upload.FormFile with the appropriate get/

RE: Tiles performance under Weblogic Server 6.1

2004-09-24 Thread Allistair Crossley
Have you tried your application under something like Tomcat? It's very easy to say that you application is slow because of a particular API but what substantiates this? How do you know it is Struts? I am not saying that it is _not_ Struts, but it would first help understand what brings you to th

RE: BeanUtil Exception when File Upload

2004-09-24 Thread Sebastian Ho
Thanks David. The problem was resolved. I missed out the encoding type. Thanks On Fri, 2004-09-24 at 15:32, David G. Friedman wrote: > Sebastian, > > I am playing around with this right now. I had to change my .../> to be: > > > Between this and keeping my bean simple, it worked fine. Als

How read action before show page and with the validate check

2004-09-24 Thread BOU Hou
hello all, I am making two pagee, one is List page which show the datas,another is a Edit page which create the new datas. the struts-config.xml: I want to add the validate check in MatterEditForm, how to set the input tag and redirect tag , path tag which i

RE: Html-el disabled property error

2004-09-24 Thread David G. Friedman
Zoran, The error says it wants a boolean but claims you gave it a string. I tested your syntax in my Tomcat 5.0.28 and it comes out as a String. I think you want to use ${true} for the boolean "true" instead of {true} which seems to return the String "true". If I'm wrong, hey, what's what I get

Struts with CVS??

2004-09-24 Thread struts Dude
Hi Has anyone written a project management web application using Struts with CVS server?? I am thinking of writing 1 and wud be most interested to hear from someone who has done this already to stop reinventing wheel. Thanks

Re: File Upload Limits [SOLVED]

2004-09-24 Thread Zoran Avtarovski
I was using the FileUpload example as a starting point and I left the inputForward="true" in my struts-config controller element. When I removed it all worked file, but for now I'm happy it's working. I'll have to have a look later at what exactly the inputForward="true" attribute does. But thank

validation rules for differnt locale giving exception No form found under 'FormSelectCountry' in locale 'en_PK'

2004-09-24 Thread Muhammad Momin Rashid
Hello All, I didn't get any reply to my previous post, so I am reposting it. I have defined two formsets in my validation.xml file. One is the default (with no country and language) and the other one is for the country PK & language en. I have defined validations for my form FormSelectCountry

Re: best practice

2004-09-24 Thread andy wix
Hi, Both these solutions come close but I don't always wish to have 'select' as the default, just as a 'nothing selected' option. If I modify an existing message then I wish to use the id of the sound from the ActionForm (i.e., a sound may already be selected for this message): So the issue

Project management web application with CVS?

2004-09-24 Thread struts Dude
Hi Has anyone written a project management web application using Struts with CVS server?? I am thinking of writing 1 and wud most interested to hear from someone who has done this already to stop reinventing wheel. Thanks Duuude where is my car ... ---

RE: Struts with CVS??

2004-09-24 Thread Jesse Alexander (KXT)
Codebeamer is a super set of project management tool and is written using Struts. -> And it has a hook into CVS too... hth Alexander -Original Message- From: struts Dude [mailto:[EMAIL PROTECTED] Sent: Friday, September 24, 2004 10:30 AM

MappingDispatchAction's JSP code

2004-09-24 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:

RE: Tiles performance under Weblogic Server 6.1

2004-09-24 Thread philippelonchampt
You're right, excuse me, I should have explain : I'm a struts developper on Tomcat, and I had no problem with it. I'm talking about another project, which is a specific "house made" framework based on Struts for a part ; since this frawework uses EJB and JMS and so on, Tomcat was not possible (and

Error Message

2004-09-24 Thread Priya Jotwani
Hi, I am getting the following error message. What could be the reason ? "No input attribute for mapping path /ReportAttribute " TIA, Priya

Re: Error Message

2004-09-24 Thread Jitender K Chukkavenkata
Hi Priya, Check your struts-config.xml whether you have given an appropriate value for input attribute in the action tag. This becomes mandatory when you set the validation to true. Jitender Kumar C.V. IBM Global Services India (Pvt.) Ltd., O2 Companion UK, Desk No.SA2-*1-215, No.12, Phase II, S

RE: Error Message

2004-09-24 Thread Priya Jotwani
Hi , But I have set validate='false' in my Struts-config.xml. The input attribute is only reqd when its 'true'. Right ?? Am I missing on something else ? -Original Message- From: Jitender K Chukkavenkata [mailto:[EMAIL PROTECTED] Sent: Friday, September 24, 2004 4:14 PM To: Struts Users

Re: Struts Tiles with Frames

2004-09-24 Thread Ratnakar Parakala
Even I put Frameset, the page is not rendering. In view source, I'm seeing the frameset and frame tags, but, I don't see the frames on my screen. I'm getting blank page. Do you have any code to reference? Thanx Ratnakar [EMAIL PROTECTED] wrote: >Before do I need to write Frameset tag? Ratn

Getting subset from collection

2004-09-24 Thread Dave Bender
Is there a utility somewhere in Struts or the Commons that pulls subset of objects from a collection based on a String array of values? Here's what I mean: I have a collection of objects that have label and value fields so I can use them in the Struts multibox tag. Struts returns a String array

JSF not usable?

2004-09-24 Thread Mato Mira, Fernando
I just started reading the Core JSF book, and apparently there's nothing like Struts' multibox? I think I'll just drop it for now. Does anybody know which other frameworks have support for dynamic checkbox sets? Thanks -- Fernando Mato Mira [EMAIL PROTECTED] Thomson Dia

RE: customized webs and advanced localization

2004-09-24 Thread Mato Mira, Fernando
I think you have the same problem with struts-cocoon as with Struts alone, namely that the forwards are simple and cannot perform a computation to build a customized URI. > -Original Message- > From: Greg Ludington [mailto:[EMAIL PROTECTED] > Sent: Friday, September 17, 2004 1:53 AM > To:

newbie: logic:iter and radio button value extracted from DB

2004-09-24 Thread Nadia Kunkov
Hi, I have gone through hundreds of postings on the e-mail list and sort of found the answer to my question but can't get it to work. I have a Collection (ArrayList) called countryList stored in my session that contains several DTO objects with data from the Database. I have DTO named CountryDTO

Re: JSF not usable?

2004-09-24 Thread Vic Cekvenich
Why would you post on a Struts list? Try this: http://forum.java.sun.com/forum.jsp?forum=427 .V Mato Mira, Fernando wrote: I just started reading the Core JSF book, and apparently there's nothing like Struts' multibox? I think I'll just drop it for now. Does anybody know which other frameworks have

Re: [OT] GMail invites

2004-09-24 Thread Vic Cekvenich
People were asked not to post this here any more, not even w/ OT or FRIDAY .V Ivan Pechorin wrote: I have 5 invites available. Please, send me requests off list. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

How I extends a DynaValidator

2004-09-24 Thread Gabriel França Campolina
Hi, I have a problem, I'd like extends a DynaValidator but I can't. Look the form-beans in my struts-config.xml: ... ... ... ... ... ... What is wrong? When I start the tomcat this alert about: The attribuite extends require a form-bean. -- Gabriel França C

Re: How I extends a DynaValidator

2004-09-24 Thread Niall Pemberton
Theres no feature in struts currently to do this. There are bugzilla requests relating to this type of request here... http://issues.apache.org/bugzilla/show_bug.cgi?id=22600 http://issues.apache.org/bugzilla/show_bug.cgi?id=10551 http://issues.apache.org/bugzilla/show_bug.cgi?id=31023 Niall --

Re: MappingDispatchAction's JSP code

2004-09-24 Thread Rick Reumann
O. Oke wrote the following on 9/24/2004 6:22 AM: 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: type="com.fujimitsu.cargo.gen.CustomerAction" name

Re: Why My Validation Lets All Errors Pass Through?

2004-09-24 Thread Caroline Jen
I appreciate your pair of sharp eyes. You are right again. --- Matt Bathje <[EMAIL PROTECTED]> wrote: > > > > [CODE] > > > path="/message/SendMessage" > > type="org.dhsinfo.message.SendMessage" > > name="messageForm" > > scope="request" > > validate="

Re: Error Message

2004-09-24 Thread Bill Siggelkow
Priya, Please post your struts-config.xml; are you using Struts exception handling? If you are and you are handling an exception that does not specify a path, then it will try 'mapping.getInputForward()' which would result in the error you received. Priya Jotwani wrote: Hi , But I have set vali

file upload problem

2004-09-24 Thread Bj
Hi, I'm using tag to upload image files. Everything works fine but I want to filter the type of file that the user may upload. And also limit the file size. How can I handle this with Struts ? I didn't manage to do this in simple html code (apparently because most of browsers do not respect htm

bean:write String vs Integer

2004-09-24 Thread Nadia Kunkov
Hi, I'm sort of repeating my previous posting but I narrowed down my problem. I apologize if it's trivial, I've just started with struts. The following line works perfectly when countryName is a String attribute of a bean stored in a session This line gives me an error: "Cannot find message res

Map Backed Forms and String array values

2004-09-24 Thread Nigel Barrett
Hi, (Struts 1.1) (BeanUtils 1.7.0) I want to use a map-backed form for a form which contains a multiple select listbox. When I submit the form with more than one item selected the values seem to get extracted from the request properly into a string array, however BeanUtils seems to morph it back

How To Show the Content of the Selected Page in a Textarea Dynamically?

2004-09-24 Thread Caroline Jen
I have a web page that displays a drop-down menu, a textarea, and a submit button. The drop-down menu is for users to select "one" from a list of pages. Once the page is selected, the content of that page is supposed to show up in the textarea and the user can start editing that page. Upon fin

Re: Html-el disabled property error

2004-09-24 Thread Zoran Avtarovski
Thanks David, I came to the same conclusion but no joy. $[true} gives the same error as does trying 1 or ${1}. I've got a feeling it may be an error in the html-el library or that somebody with more experience in the el world may have some words of wisdom. Z. > Zoran, > > The error says it want

Re: How To Show the Content of the Selected Page in a Textarea Dynamically?

2004-09-24 Thread Bill Siggelkow
One way is to use an onChange JavaScript listener on the drop-down that submits to an Action -- that Action retrieves the data for the textarea and forwards back to the original form. Here's a recent thread that will help: http://marc.theaimsgroup.com/?l=struts-user&m=109414235004080&w=2 Caroli

Re: validation rules for differnt locale giving exception No form found under 'FormSelectCountry' in locale 'en_PK'

2004-09-24 Thread Bill Siggelkow
No, you don't need to duplicate the entire validation set for the form in the localised formset -- however, I am not sure what the problem -- the error is being thrown by the tag -- why don't you try removing this tag (thereby, just using server-side validation) and see your validations work c

Checkbox Implementation for Multiple Record Delete

2004-09-24 Thread Adedokun, Bisi
I have a question on how to implement a checkbox using Struts html:checkbox tag. The scenario is as follows: I have a result page that is populated from the database. I used the to iterate through the transfer object to get results matching a search criteria. However, I want the ability to do a m

Re: Html-el disabled property error

2004-09-24 Thread Bill Siggelkow
Zoran Avtarovski wrote: Maybe I am missing something but is there some reason that you can't use: <%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html" %> -Bill Siggelkow Hi all, I'm building my first webapp using srtuts-el and I've come across a strange error. When creating a form using the

Re: file upload problem

2004-09-24 Thread erikweber
FormFile has a "getFileSize" or similar method that you can use to check the size in your processing Action (server side). There, you can also determine the file name and check the extension (probably that will be good enough for "type" checking). In addition, this is one area where I think clie

Re: [HOW TO? ImageButtonBeanManager Extension]

2004-09-24 Thread Carlos Cajina - Hotmail
Good morning. Thanks to Mr. McGrady for his suggestion. I think the persistent nature of the need to handle multiple (image) buttons in web applications is precisely what makes this problem so recurrent ;^) I've moved from the 'ImageButtonBeanManager Extension' approach and decided to try to get S

Re: [HOW TO? ImageButtonBeanManager Extension]

2004-09-24 Thread Michael McGrady
Good morning, Carlos, I have been busy trying to put this page together, so there are undoubtedly some of these problems. You are right. The name of this class was SimpleDispatchAction. Since this page is rather under construction, some things like logging and so on have not been carefully e

Re: [HOW TO? ImageButtonBeanManager Extension]

2004-09-24 Thread Michael McGrady
Answers to your other questions to follow in a bit, Carlos. Carlos Cajina - Hotmail wrote: Good morning. Thanks to Mr. McGrady for his suggestion. I think the persistent nature of the need to handle multiple (image) buttons in web applications is precisely what makes this problem so recurrent ;^) I

Re: [HOW TO? ImageButtonBeanManager Extension]

2004-09-24 Thread James Mitchell
I just wanted to reply so I could have the last word ;) -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "Michael McGrady" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Frida

Re: [HOW TO? ImageButtonBeanManager Extension]

2004-09-24 Thread Carlos Cajina - Hotmail
I'll sure be waiting for them Mr. McGrady :^) Thanks for your time! By the way, I'll be glad to help out with "polishing" the page, if there's anything I can do please let me know; the solutions proposed are worth the effort of a good documentation... - Original Message - From: "Michael

Re: [HOW TO? ImageButtonBeanManager Extension]

2004-09-24 Thread Michael McGrady
Hi, Carlos, Answers within. Please note that if you use the DispatchUtil solution, they you don't need the DispatchAction solution. I.e. you don't need to subclass DispatchAction if you use DispatchUtil. The different solutions on this page should be used independently. They are not complem

Re: [HOW TO? ImageButtonBeanManager Extension]

2004-09-24 Thread Michael McGrady
Thanks, Carlos, The difficulty in getting the page up had rather overshadowed any discussion of what they say. I have quite a lot yet to add to the page. I would indeed appreciate any efforts to assist. Be my guest. Michael McGrady Carlos Cajina - Hotmail wrote: I'll sure be waiting for them

Re: Checkbox Implementation for Multiple Record Delete

2004-09-24 Thread Wendy Smoak
From: "Adedokun, Bisi" <[EMAIL PROTECTED]> > I have a result page that is populated from the database. I used the > to iterate through the transfer object to get results > matching a search criteria. However, I want the ability to do a multiple > delete by using a checkbox to check those records t

Presentation of the Validation Warning Messages

2004-09-24 Thread Caroline Jen
I have two problems with the validation messages: First, "The first time" that the form is displayed (a blank form), all the validation warning messages are on the top of the web page. Can anybody tell what went wrong? Because validation warning messages are supposed to be shown "after" the form

and pre selecting values

2004-09-24 Thread Anand M S
hi all I have drop downbox with multiple=true, but i'm not able to pre select the values (default values), do you guys have any idea? The datatype in form is String[], in i'm initializing the property in action class with string[] to pre select the default values. Thanks, Anand

RE: Presentation of the Validation Warning Messages

2004-09-24 Thread Joe Hertz
Youre probably validating the action each time in. Guessing that the validations flunk because fields werent filled in (how could they be? it's a new screen!). I have an action that goes to the screen specifically that doesn't do validation. The Submit action for it does the validation. You can l

Re: Presentation of the Validation Warning Messages

2004-09-24 Thread Wendy Smoak
From: "Caroline Jen" <[EMAIL PROTECTED]> > I have two problems with the validation messages: > First, "The first time" that the form is displayed (a > blank form), all the validation warning messages are > on the top of the web page. This comes up repeatedly, please search the archives. You eithe

Re: and pre selecting values

2004-09-24 Thread James Mitchell
Run your page, and view source, and send that result so we can see it. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "Anand M S" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 24, 20

Re: Presentation of the Validation Warning Messages

2004-09-24 Thread Caroline Jen
Where am I supposed to insert the code that you give? I use the DynaValidatorForm with plug-in by the end of the struts-config.xml file. And I have validation.xml and validator-rules.xml file in the AppName/WEB-INF directory. Why all my validation warning messages line up? I hope that each warn

Re: [HOW TO? ImageButtonBeanManager Extension]

2004-09-24 Thread Carlos Cajina - Hotmail
I think I got it Mr. McGrady! I went for the DispatchUtil approach and as far as I've tested it with a simple-no-validations-yet-three-step wizard things look promising. I can even "feel" a boost in the page navigation performance using your solution instead of the ones the Struts Framework offers

Re: and pre selecting values

2004-09-24 Thread Anand M S
Here is the piece of code, i have "race" as a property in form and the data type is String[], before coming to this page i'm setting the this value as- String race[] = {"G"} form.set("race", race); American Indian or Alaskan Asian Black or Afric

Re: [HOW TO? ImageButtonBeanManager Extension]

2004-09-24 Thread Michael McGrady
My tests indicate a five fold performance increase. My tests were hurried and are not reliable. But, visually they were obvious. I am looking forward to your assistance. I could use it. Michael McGrady P.S. Carlos, please just call me "Mike". We all come from the same eggshell. Carlos C

Re: Presentation of the Validation Warning Messages

2004-09-24 Thread Wendy Smoak
From: "Caroline Jen" <[EMAIL PROTECTED]> > Where am I supposed to insert the code that you give? > I use the DynaValidatorForm with plug-in by the end of > the struts-config.xml file. And I have validation.xml > and validator-rules.xml file in the AppName/WEB-INF > directory. Me, too. You will n

RE: [HOW TO? ImageButtonBeanManager Extension]

2004-09-24 Thread Steve Raeburn
Michael, Could you expand on your performance tests? What kind of response time improvements (seconds, milliseconds?) were you seeing? In my experience, the performance impact of the existing dispatch actions is not readily visible so I'm not sure how optimizing them would help in a real-world si

Re: Presentation of the Validation Warning Messages

2004-09-24 Thread Caroline Jen
Where (in which directory) do you put this action class? In the directory where all classes that processes the account information reside? For example: AppName\WEB-INF\classes\org\ProjName\account\ ? public final class AccountForm extends DynaValidatorActionForm implements Serializable {

Re: [HOW TO? ImageButtonBeanManager Extension]

2004-09-24 Thread Michael McGrady
Steve Raeburn wrote: Can you support your assertions with some figures and (ideally) the test code so that others could try it out for themselves? Steve Thanks for your interest, Steve. I assume you are talking about my notes to Carlos, who "saw" the same difference, Steve. I can tell you that

Re: Presentation of the Validation Warning Messages

2004-09-24 Thread Wendy Smoak
From: "Caroline Jen" <[EMAIL PROTECTED]> > Where (in which directory) do you put this action > class? In the directory where all classes that > processes the account information reside? For > example: AppName\WEB-INF\classes\org\ProjName\account\ > ? This is not an action class, it is a *form*

Dynamic forwards?

2004-09-24 Thread Tom McCobb
I have a scrollable div section on a page displaying detail records. If certain fields on the record are manipulated, I call an update action. When the screen refreshes after the update, the display always repositions on the first record in the div section. If someone is working at the bottom of

Re: Dynamic forwards?

2004-09-24 Thread Wendy Smoak
From: "Tom McCobb" <[EMAIL PROTECTED]> > I would like to be able to re-position on the record last worked on. I was > thinking that appending a bookmark (keyed on the index number of the detail > item in the list) to the forward would work nicely, but I do not know how to > pass the index to the f

Re: Dynamic forwards?

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

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

2004-09-24 Thread Caroline Jen
It seems to me that it can be done. Would you please just take a look at https://www.swern.gov/forms/enrollmeform.php and scroll down a little below half way. There is a drop-down menu for the 'Select Program Group'. And there is a textarea right below that drop-down menu. Simply select a gro

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

2004-09-24 Thread Lucas Gonzalez Pearson
Easy... everything has already been fetched before... take a look at the source ( no copyrights violation intended ): var programSelectionTable; var programDescription; var programSubProgramSelect; var programHigestLevel; function showOtherFields(n){ var selectedProgramName = document

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

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

Re: error in strutsel-exercise-taglib

2004-09-24 Thread John C Cartwright
Thanks for your reply, David. I'm not sure that I understand though. I am using tomcat 5.0.x and JSP2.0. However, when I change the taglib directive to: <%@ taglib prefix="html" uri="http://jakarta.apache.org/struts/tags-html"%> and try something like: (where images is a HashMap in request sc