Re: Reusable/composable Struts components?

2001-09-25 Thread Gabriel Sidler
Gary, Ted, I have a very similar need. I have Struts application components that I'd like to reuse/share with others (e.g. user profile manager, adminisration tools, login, dynamic toolbar, calendar etc.) A reusable component typically consists of: - several Action classes - several ActionForm c

RE: Problem with struts buttons

2001-09-25 Thread Nathan Ward
I used a different name for button. In my Action class, I check to see if any of these are not null before checking for the action field that will be set if an action was specified with the URL. e.g. IN JSP: IN Action.perform: if (request.getParameter("editButton") != nu

RE: Nested properties and HTML custom tags

2001-09-25 Thread Tricia Ong Cheah Yen
Peter, I had the same problem as you. My struts can't the form even though i had my form bean defined in my action mapping and form bean. till now, i'm unable to find a solution +trish -Original Message- From: Peter Pilgrim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 26, 2001 1

Re: pagination?

2001-09-25 Thread David M. Karr
> "Michelle" == Michelle Popovits <[EMAIL PROTECTED]> writes: Michelle> Does struts support pagination of a collection over multiple pages. Michelle> You know, there you have buttons to move from one page of items Michelle> to the next (ie. a list of 100 items, 10 per page, 10

Re: populating a form bean without using a submit button

2001-09-25 Thread David M. Karr
> "chiji" == chiji nwankwo <[EMAIL PROTECTED]> writes: chiji> Hi, chiji> Is it possible to populate a form bean without using the submit button to post the form.  I am using the link tag to forward chiji> the user from one page to another, but at the same time I would like the

pagination?

2001-09-25 Thread Michelle Popovits
Does struts support pagination of a collection over multiple pages. You know, there you have buttons to move from one page of items to the next (ie. a list of 100 items, 10 per page, 10 pages total). I know, so far that I can use the iterate tag to display the collection in a table. Now, I wo

RE: Any suggestions Prob with validation be passing to db

2001-09-25 Thread Lou Farho
One needs to validate the data on the form before submitting to the server. Usually one uses javascript to perform this task. Put the javascript into a file and include it in the page. Once on the server the data should be validated again to prevent attacks from hackers. That's were the Struts

New struts site!

2001-09-25 Thread Jeff Patterson
Check out our new site done totally with struts!   www.vectren.com    

Get rid of Session scope data

2001-09-25 Thread Viplava Nekkalapudi
Hi, we started using struts for our application, and we need to get best of it: 1. Right now we are using Action Forms for the user input on the JSPs. But our JSPs have form elements like drop downs, check boxes, etc. which requires a read only data. Wherever we require read only data we save a

RE: Need explanation: include tag in struts.tld and bean:include tag

2001-09-25 Thread Brett Porter
Title: RE: Need explanation: include tag in struts.tld and bean:include tag The comment at the beginning of struts.tld says that is has been deprecated and is present only for backwards compatibility. You should use instead. Cheers, Brett -Original Message- From: "Paradis, André" [

populating a form bean without using a submit button

2001-09-25 Thread chiji nwankwo
Hi, Is it possible to populate a form bean without using the submit button to post the form.  I am using the link tag to forward the user from one page to another, but at the same time I would like the contents of the form to be sent to the Action form class.  I do not know if what I am trying

Re: Validation Framework: validating field length

2001-09-25 Thread David Winterfeldt
I have plans to add a min and max length for convenience, but haven't had the time (even though they aren't a lot of work). Currently you can use regular expression to limit length. 5 letters ^\w{5}$ 5 numbers ^\d{5}$ At least 2, but not more than 5 letters ^\w{2,5}$ David --- Matt Raibl

Problem with forward tag in struts-config.xml Action Mappings.

2001-09-25 Thread John Bowen
Hi, I just moved my directory structure around for a previously working Struts app and am having problems with the action mapping forward tags. Previously all of my JSPs and struts-config.xml were running in the same webapps directory [/webapps/cowboy]. Now my struts-config.xml is now

dynamic jsp:includes

2001-09-25 Thread peter
Is there a way using Struts to create a dynamic jsp:include? For example I've got a jsp file which needs to include two different jsp files in the same place, but at different times. I know I could just make two copies of the parent jsp file with a diffent include in each, but i would prefer it

Validation Framework: validating field length

2001-09-25 Thread Matt Raible
Our current UI framework does not allow Javascript for UI Validation, so we are using the struts validation framework sans javascript. So far, we have found that we are only able to validate "required" and "data types." We would also like to validate "length" of a string and such, to make sure t

Display JSPs based on language/country/variant

2001-09-25 Thread Jolly, Gautam
Requirement - suppose the servlet-container is asked to present 'abc.jsp', it should serve the very first jsp that meets the following lookup sequence: abc___.jsp abc__.jsp abc_.jsp abc___.jsp abc__.jsp abc_.jsp abc.jsp Is it possible to do it declaratively in tomcat (or any other container), or

Pls comment on template application

2001-09-25 Thread Thinh Doan
I have 3 different templates (tempA.jsp, tempB.jsp and tempC.jsp). Depends on the user profile after they login, a session attribute will be set, e.g. session.setAttribute("user_template", template), to indicate which template to be used. I'd like to get some ideas on how to switch between these

Need explanation: include tag in struts.tld and bean:include tag

2001-09-25 Thread "Paradis, André"
Hi, I'd like to know what is the status of struts.tld. It defines an include tag wich performs the equivalent of a tag. Is it deprecated ? There is also the tag defined in struts-bean.tld. >From the code, I understand that the framework is computing an url, and then retrieve the data using a

RE: initial values to edit .... and then view save

2001-09-25 Thread George, Carl
Victor, Victor, Victor... you have to use the form passed int the action. So you have to do NameZoomFrm frm = (NameZoomFrm)form; Then set the values. You don't do the session.setAttribute. -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 25, 200

initial values to edit .... and then view save

2001-09-25 Thread Vic Cekvenich
I am trying to in my action, retreive data from a DB, and then send it to the page for editing. (The page would then send it back to same action to be saved to DB. Also, I would try to use same page and action for insterts and validtaion later). Only I can't get it to work. (looked in mail

tags inside tags using the template taglib

2001-09-25 Thread Chris Perren
The role instance variable of the Template object get set to which is not my expected behavior. I want to set role variable from the User object role variable (in the session variable). Any help is greatly appreciated... Thanks Chris

RE: Help with Struts and EJBS..

2001-09-25 Thread Hicks, James
I usually use a standard javabean as a proxy into my ejbs. This approach allows you to modify the EJB layer without modifying your action/actionform classes. If you ever decided you didn't want the EJBs you could modify the javabean to use JDBC instead. I use my Action classes to process the re

dynamic forwards

2001-09-25 Thread chiji nwankwo
Thanks alot for the multibox answer, it worked fine.  I have another problem plaguing me at the moment.  I have a JSP application on which you can perform a certain search.  Because I dont know how many search results will be returned I have to make sure that I have page numbers, dynamically crea

RE: Problem with struts buttons

2001-09-25 Thread Matt Raible
on the button put: propert="action" and then in your action class, do MessageResources resources = getResources(); if (action.equals(resources.getMessage("button.text"))) { // do something } --- Hans Gilde <[EMAIL PROTECTED]> wrote: > You could use JavaScript to set a hidden field in the on

Re: [Newbie] Display multiple error messages in a list

2001-09-25 Thread David Winterfeldt
There hasn't been a discussion about deprecating html:errors. I prefer html:messages over it just to get the formatting out of the messages and have a cleaner separation of the view from everything else, but there are a lot of JSP pages that use html:errors so I think it will be around for a whil

Re: [Newbie] Display multiple error messages in a list

2001-09-25 Thread Brian K. Buckley
>Otherwise it works like html:errors. Will html:messages replace and deprecate html:errors?

Re: JSP is not creating and/or populating an action form?

2001-09-25 Thread SUPRIYA MISRA
It seems you do not have a form bean tag in struts-config.xml file that matches your form bean. >From: [EMAIL PROTECTED] >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Re: JSP is not creating and/or populating an action form? >Date: 25 Sep 2001 10:38:00 -0700 > >Have you ensured

Single form made from multiple form objects

2001-09-25 Thread McClung, Brian
I have a form that combines elements from mulitple form elements, some of which are represented as vectors within the main form. When I try to access some of the getters that are nested within the main form struts is not building the get reference correctly. Has anyone tried to do this? Does an

RE: Problem with struts buttons

2001-09-25 Thread Hans Gilde
You could use JavaScript to set a hidden field in the onClick of each button. -Original Message- From: storck [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 25, 2001 4:08 AM To: User Struts (E-Mail) Subject: Problem with struts buttons Hi, for example I have a page with several st

RE: [Newbie] Display multiple error messages in a list

2001-09-25 Thread David Winterfeldt
If you are using a recent nightly build, an html:messages tag has been added. It iterates through errors (and messages) so html formatting can be left out of the messages in the properties file. The header and footer are optional. Otherwise it works like html:errors. David ---

RE: multibox always checked

2001-09-25 Thread Hans Gilde
I don't have a direct solution to our problem but why not submit the checkbox form, targeted to the frame that's supposed to display the total? An action can count the check boxes and display the total page without having to refresh the form every time. The form can also use a JavaScript timer to

Re: JSP is not creating and/or populating an action form?

2001-09-25 Thread steven . valin
Have you ensured that your struts-config.xml is written correctly, in particular the tag parameter and the associated tag? On Tue, 25 September 2001, "Peter Pilgrim" wrote: > > JSP is not creating and/or populating an action form? > > I can associate the with the action form. > I can see t

Re: Validation errors and scope.

2001-09-25 Thread Emmanuel Sciara
But than doesn't it defeat the purpose of the validate() method in the form and complicates the code? Wouldn't it be better to have some sort of or something to allow to show some form fields not as input field but as simple text. This problem must have been discussed already. If you have any r

JSP is not creating and/or populating an action form?

2001-09-25 Thread Peter Pilgrim
JSP is not creating and/or populating an action form? I can associate the with the action form. I can see the bean created by the time the JSP is generated. However when I the form the action.perform() method has a "form" parameter that equals null. I look at the struts-config.xml and it looks

RE: Can you comment on this design idea?

2001-09-25 Thread Hans Gilde
Alex, I wouldn't do it, I'd create a base Action class that does the same thing. -Original Message- From: Alex Colic [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 25, 2001 8:32 AM To: Struts Subject: RE: Can you comment on this design idea? Hi, I have used SOAP in the past but t

RE: Help with Struts and EJBS..

2001-09-25 Thread George, Carl
That's bad. You should have any data-loading in the form. It should be in the action. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 25, 2001 11:47 AM To: [EMAIL PROTECTED] Subject: RE: Help with Struts and EJBS.. Peter, I understand yo

RE: Help with Struts and EJBS..

2001-09-25 Thread Hans Gilde
Peter, In terms of resource usage, if you have 10 properties in a bean, returning an entity handle and calling the accessor methods one at time would result in a 10 times RMI overhead; RMI allocates all kinds of stuff including network resources on each end, for each call and I'd bet that would e

RE: Lost of ActionForm

2001-09-25 Thread bruno . morin
I found my error. In the perform method of the WelcomeAction class, I instanciated a WelcomeForm like this : ... form = new WelcomeForm(); ( ( WelcomeForm ) form ).setLogon( userApp.getLogon() ); ... I don't know why, but the framework don't like it. I suppress the line "

Re: Nested properties and HTML custom tags

2001-09-25 Thread Peter Pilgrim
Then it must be me, then, because my Struts is not finding the form. In the Action.perform() method "form" parameter is a NullPointerException! -- Peter Pilgrim | |++44 (0)207-545-9923 \ \ ___ / / ... . - ( * ) --- --

RE: Help with Struts and EJBS..

2001-09-25 Thread mdougherty
Peter, I understand your approach and it makes sense. I have done similar things in that past. However, this time I took a different approach. I'm not trying to say it's better, just different. I have an innerclass in my Form that populates a Form object. It also accepts a From object and popula

Lost of ActionForm

2001-09-25 Thread bruno . morin
Here is the cinematic of my application /\ /-\ /--\ | /connection.do |->| /welcome.do |->| /welcome.jsp | \/ \-/ \--/ (success)(suc

RE: request.setAttribute("variable", value) bug

2001-09-25 Thread Hans Gilde
Sounds like a logic problem, are you sure that the logic in the action class isn't branching around the part where it adds the questions? Maybe if you send your code... -Original Message- From: Christophe Rikelynck [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 25, 2001 6:19 AM To:

templates

2001-09-25 Thread Horst . PLOCHBERGER
Hi, is it possible to use an template parameter as a parameter of a struts-tag ? for example, something like this: jsp: template.jsp: Name: "/> thanks, horst

Re: Nested properties and HTML custom tags

2001-09-25 Thread Matt Raible
We are doing this successfully - we just put getters/setters in the Form for the VO. Matt --- Peter Pilgrim <[EMAIL PROTECTED]> wrote: > > Can you use nested properties with the Struts HTML custom tags > such that they populate a valueobject nested inside a ActionForm type. > > > > > >

problems in multipage form

2001-09-25 Thread Marc Weber (H2Opilot)
Hi everyody ! In my multipage-form(jsp) I'm triing to get the Values of various inputfields (text, textarea, selects .) by refering to the corresponding bean properties. form:text property="h2okoopvname" maxlength="250" size="40" but in my Actionformclass, where I want to use this values (b

multibox always checked

2001-09-25 Thread Marion Schwarz
Hi folks, after reading a million postings on the subject, I still have a question. When a checkbox is selected, I want to count the selected object in a different bean. The total amount should be displayed immediatly in another frame so I have to submit my form every time a checkbox is selecte

Nested properties and HTML custom tags

2001-09-25 Thread Peter Pilgrim
Can you use nested properties with the Struts HTML custom tags such that they populate a valueobject nested inside a ActionForm type. Username Password I would like my action form populated like so: getEjb().getValueObject().setPassword

Using different select with the same name

2001-09-25 Thread bruno . o . faure
Hello, I have a jsp page presenting a lot of select non multiple boxes (the number of select tags is set dynamically in my page). Rather than using different accessors for each select, I would like to be able to collect all data (actually just strings) from the different select in a String[]. I w

Multiple actions via wildcard

2001-09-25 Thread chiji nwankwo
Hi, Is it possible to map several actions to the same action form by using  a wildcard?  For example in struts config:    type="com.sky.videolounge.lounge.web.control.actions.SearchAction"    name="searchForm"   input="/search.jsp"     scope="session"> > in web.xm

Re: Two questions concerning html:options

2001-09-25 Thread Christoph Conrad
Hello Barry, you wrote: Barry> Collection Use a List now, works! Best regards, Christoph Conrad -- TTi Entwicklungszentrum GmbH, Elisabethstr. 16, D-52062 Aachen Fon: +49 241 47051-0 Fax: +49 241 47051-89 Web: http://www.ttisystems.com Look Ma, this man can twist his fingers as if t

RE: Two questions concerning html:options

2001-09-25 Thread Barry Glasco
Collection -Original Message- From: Christoph Conrad [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 25, 2001 8:04 AM To: [EMAIL PROTECTED] Subject: Two questions concerning html:options Hello, i am new in this group, hello all! I am also a beginner in JSPs, Java, HTML and nearly a

Re: Reusable/composable Struts components?

2001-09-25 Thread Gary Johnston
Thanks for your response, Ted.  Yes, I see that inheritance can be used to capture the common code to validate the user's login status and branch ("goto") accordingly.  But I'm thinking of reuse in terms of components at a higher level than classes and inheritance. I'd like to be able to reuse th

BeanUtils.populate & 'this'

2001-09-25 Thread Mindaugas Idzelis
Just a quick question. Can you use BeanUtils.populate() on the 'this' object? For example: BeanUtils.populate(this, map); Thanks, Mindaugas Idzelis

RE: Struts, VAJ 3.5.3 Websphere Test Environment

2001-09-25 Thread Jhaveri, Harshal
Hi! Start the trace on the test environment and you will some exceptions on the struts applications . I was getting the exact same error.After I started tracing I got an much better picture. Harshal. -Original Message- From: West, Tedie [mailto:[EMAIL PROTECTED]] Sent: Monday, Septemb

Any suggestions Prob with validation be passing to db

2001-09-25 Thread Chuck Amadi
When the Submit.jsp form is complete it is passed to the ProcessForm.jsp (Inserted to db) Thus i have created a UserInfoValid.jsp as below. I now that i should'nt use script albeit i need something to demostrate my keep. jsp:useBean id="planBean" scope="session" class="PlanBean" /> <%! boolea

RE: Can you comment on this design idea?

2001-09-25 Thread Alex Colic
Hi, I have used SOAP in the past but the products I am working on have been developed using this VB back end. It has worked well for us so we are going along with the "if it a'int broke then don't fix" plan. What about my idea of checking application attributes in the actionservlet? Alex

RE: How do you show a html:select's default selection only unti

2001-09-25 Thread Sills, David
Title: Just initialize a form before page display with default values and let the page use it thereafter. It will be updated with the user's entries automatically (well, more or less). Then use the properties of that form as the values of the widgets on the page. Great examples in the examp

Two questions concerning html:options

2001-09-25 Thread Christoph Conrad
Hello, i am new in this group, hello all! I am also a beginner in JSPs, Java, HTML and nearly all techniques used around struts, so forgive me, when the following question is too stupid. I tried to resolve it via reading the docs and studying the examples, but didn't found the solution. I have a

RE: Deployment Problem in iPlanet using Strut Example !!

2001-09-25 Thread Tricia Ong Cheah Yen
Frankie, you got to specify the the path of ur struts.jar in iPlanet's java configuration file. So, in your jvm12.config, add in this line jvm.classpath=C:/iPlanet/Servers/docs/YourWebApp/WEB-INF/lib/struts.jar however, if u are using iPlanet 6 with Service Pac

RE: Help with Struts and EJBS..

2001-09-25 Thread Peter Pilgrim
Yes he value object approach would work if you re-delegated again. If the ejb returns a smaller object class with just accessor and mutator methods. I can see that now class MyEJB { ... String getHello() { return "Hello" } String getWorld() { return "Word" } String getName() {...

Deployment Problem in iPlanet using Strut Example !!

2001-09-25 Thread 李向榮
Hello, all, I have searched the mailing archive for this problem, there are someone post the same issue but no answer. Hope someome have the solution already that would share for me. I have got some problems, here is the problems that I occur : 1. javac couldn't find /WEB-INF/lib/st

RE: [Newbie] Display multiple error messages in a list

2001-09-25 Thread bruno . morin
It would be a great solution to have such attribute in the tag. I don't don't find any good solution to solve this problem but create a new "error" tag. -Message d'origine- De: Brian K. Buckley [mailto:[EMAIL PROTECTED]] Date: mardi 25 septembre 2001 11:26 À: [EMAIL PROTECTED] Objet:

RE: Help with Struts and EJBS..

2001-09-25 Thread Peter Pilgrim
With the delegation model approach, if I understand the Value Object approach correctly I can associate an EJB with a ActionForm using delegation. class MyEJB { ... void setName( String name ) { this.name = name ; } String getHello() { return "Hello" } String getWorld(

RE: [Newbie] Display multiple error messages in a list

2001-09-25 Thread markus.colombo
If you just want a carriage return, add it to the message in the properties file: error.required.firstName=Please enter your firstname -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 25. September 2001 10:57 To: [EMAIL PROTECTED] Subject: [Newbie] Dis

Re: [Newbie] Display multiple error messages in a list

2001-09-25 Thread Brian K. Buckley
The examples I've seen solve this by mixing html formatting right in with the error messages. error.myerror=This is my error message This seems like bad practice to me. If one needs to display errors in a different format, one has to rewrite the errors files. It seems to me html:errors would b

request.setAttribute("variable", value) bug

2001-09-25 Thread Christophe Rikelynck
I have an action class "BeforeSelectQuestionAction.java" where I get all questions from the database and put them to the request with request.setAttribute("questions", questions). When i surf to "BeforeSelectQuestion.do" there is no problem and in the jsp page that follows I see all questions

RE: [Newbie] Display multiple error messages in a list

2001-09-25 Thread Alexander Jesse
I think one of the best practises is: wrap each message within and and provide error-header and -footer that give a - frame. Although I think the html:errors tag should have an option to do this on its on... hope this helps Alexander Jesse -Original Message- From: [EMAIL PROTECTED] [m

[Newbie] Display multiple error messages in a list

2001-09-25 Thread bruno . morin
Several errors messages are store in the ActionErrors instance ( generated in the validate method of a ActionForm ). The tag displays error messages without carriage return between them. What is the solution to display those messages with carriage return between them (in a list by example) ? Th

Re: retrieve data from Collection

2001-09-25 Thread May
Mark Works perfect !! Thank you very much. May - Original Message - From: "Geddes, Mark (ANTS)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 25, 2001 5:29 PM Subject: RE: retrieve data from Collection > Try: > > > > Mark > > -Original Message- > From:

RE: retrieve data from Collection

2001-09-25 Thread Geddes, Mark (ANTS)
Try: Mark -Original Message- From: May [mailto:[EMAIL PROTECTED]] Sent: 25 September 2001 09:22 To: [EMAIL PROTECTED] Subject: retrieve data from Collection My Collection contains Item object. Item class consists of 2 values, Integer itemNo String itemName I use the logic:iterate

retrieve data from Collection

2001-09-25 Thread May
My Collection contains Item object. Item class consists of 2 values, Integer itemNo String itemName I use the logic:iterate tag to retrieve data from my collection. It goes like below... This way, I can retrieve Item Object itself... But what I realy want to retrieve is the itemNo and it

Re: Template Tag

2001-09-25 Thread Cedric Dumoulin
Looks like you got a flush problem. You can try to use flush="true" in . This is a known problem with some web container. Cedric Bryan Mallinson wrote: > I am using template tags. > I place content in another JSP file and insert it in a template file. > When the output is written to the

Problem with struts buttons

2001-09-25 Thread storck
Hi, for example I have a page with several struts-button wich display their name depending on the current local. Now I would like to have an additional property set to specific command - not to the name of the button - to determine in my Action-class wich button was clicked by the user. Any tips

RE: User-messages from Action-Class to JSP

2001-09-25 Thread DUPRAT Alexandre
I don't jnow about your firs question but for the second one : you can write error message if you specify the "input" page in your action mapping. then you use in your formular in front of each field. The validade method of your FormBean must register error for the appropriate property. Hope thi