Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]

2005-07-07 Thread Yan Hu
Last time the price tag I checked on these 2 idiots was 0/hour. Is this your personal playground to make fun of H1Bs or a struts list? Hey, do not hate the players. Hate the game. --- Martin Gainty <[EMAIL PROTECTED]> wrote: > Brandon- > Keeping in mind that No inductive generalisations can qu

Re: Using struts forms as Value Objects: your opinion?

2005-07-07 Thread Laurie Harper
Vincent wrote: I'm currently designing and developping an enterprise J2EE application based on Struts. In this application there's a layer of Data Access Object which abstract the underlying persistent storage. For populating my struts' *Form I've imagined first a transfert between forms and DA

Re: dialog stuff (was) Re: Refresher for newbies...

2005-07-07 Thread Michael Jouravlev
On 7/7/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Michael Jouravlev wrote the following on 7/7/2005 5:13 PM: > > > So, tokens better than nothing, like Yugo comparing to bike. But it is > > still a Yugo. (I am not selling Lexus here, merely a Corolla). > > Yes, it does sound like your approach

check box help

2005-07-07 Thread syed abrar
Hello, Iam new to this Struts framework.I have been assigned a complex GUI coding. The screen has two frames :In one frame we have the family(family name as a link and a checkbox to select) and in the second frame we have the family members corresponding to the fami

access entries in MessageResources.properties from java code

2005-07-07 Thread Tony Smith
How can I access entries in "MessageResources.properties" inside Action or Form code? Thanks, --- Rick Reumann <[EMAIL PROTECTED]> wrote: > Hubert Rabago wrote the following on 7/8/2005 12:24 > AM: > > There are several > > reasons why you shouldn't use VOs as your form > beans and vice versa >

Re: Using struts forms as Value Objects: your opinion?

2005-07-07 Thread Rick Reumann
Hubert Rabago wrote the following on 7/8/2005 12:24 AM: There are several reasons why you shouldn't use VOs as your form beans and vice versa (as other msgs in this thread explain). Actually in this thread so far I haven't heard anyone explain why they are a 'bad' idea. The only way I see i

Re: dialog stuff (was) Re: Refresher for newbies...

2005-07-07 Thread Rick Reumann
Michael Jouravlev wrote the following on 7/7/2005 5:13 PM: So, tokens better than nothing, like Yugo comparing to bike. But it is still a Yugo. (I am not selling Lexus here, merely a Corolla). Yes, it does sound like your approach to the whole 'back' issue problem handles things in a much nic

Re: Using struts forms as Value Objects: your opinion?

2005-07-07 Thread Hubert Rabago
Vincent, Before you go this route, check out FormDef plugin first. http://formdef.dev.java.net It will register Struts forms based on your VOs. There are several reasons why you shouldn't use VOs as your form beans and vice versa (as other msgs in this thread explain). FormDef would allow you t

exceptions during validation

2005-07-07 Thread Daniel Lipofsky
I have my own validator method defined in validator-rules.xml. When an exception is thrown by the validation method, I would expect it to be handled by the global error handling, like what happens when an error is thrown by an action. Instead it proceeds forward just as if validation succeeded with

Re: execute instead of get and post

2005-07-07 Thread Rick Reumann
Michael Jouravlev wrote the following on 7/7/2005 5:26 PM: On 7/7/05, Rick Reumann <[EMAIL PROTECTED]> wrote: klute wrote the following on 7/7/2005 3:07 PM: It seems like it would make sense to have both so that you can use GET to set up a particular form and POST to process that form. Inste

Re: Which request is used in automatic Validation when the requirements aren't met?

2005-07-07 Thread Laurie Harper
Thai Dang Vu wrote: Perhaps I stated it unclearly. I am using automatic validation, not manual validation (which uses validate method of the form bean). If the requirements aren't met, Struts will lead us to the input page (in my case the /WEB-INF/provider/addprovider.jsp) without going to th

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Michael Taylor
Ah, I think I get ya. Why don't you just make one great big form block containing both areas and any other non-form content inside? There's no restrictions on what can go in a "form", so you can put your entire page into form if you want. - M -

RE: Refresher for newbies (part 2)

2005-07-07 Thread Kent Boogaart
Thanks Rick for the example. It has really helped me as I am certainly a noob. I'd love it if you (or anyone) could clarify something for me. Firstly, some basic info on my system: I have system wide settings including an SMTP server and a list of users that can access the system. These are stored

Fw: Re: Using struts forms as Value Objects: your opinion?

2005-07-07 Thread erikweber
Sorry, Michael, I accidentally sent this directly to you . . . I'm not sure why you say "save a call to the backend" unless by "backend" you mean anything outside of the web tier. In my applications, it would typically save a call to the manager layer, which I consider the middle, not the back

Re: Using struts forms as Value Objects: your opinion?

2005-07-07 Thread Larry Meadors
I usually build my ActionForm classes with the VO on it as a property. The String properties can be just refered to as bean.property on the jsp. Any non-string properties I map to the bean in the action form, with the translation - so if there is a date, for instance, the property on the action

Re: embedding forms

2005-07-07 Thread Aleksandar Matijaca
Hubert, that is EXACTLY what was wrong -- you were 100% correct! I guess, sometimes, it just takes 'another eye' to see things properly.. Cheers, Alex. On 7/7/05, Aleksandar Matijaca <[EMAIL PROTECTED]> wrote: > > Wouldn't that give me a null-pointer exception?? I will give it a try, > and let

Re: Using struts forms as Value Objects: your opinion?

2005-07-07 Thread Michael Jouravlev
On 7/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > An alternative would be to have your form class extend > your value object class. However, this approach doesn't > work for me. My form class fields are always Strings > (because of HTTP), while my value object fields are > whatever types ma

Re: Using struts forms as Value Objects: your opinion?

2005-07-07 Thread erikweber
Also you could "economize" your development by using Struts Dyna-flavored forms (generated from xml) instead of writing your own form classes. Instead, I use a class I wrote that scans a properties file which has a comma-separated list of fields and their types, and some other data such as desi

Re: Using struts forms as Value Objects: your opinion?

2005-07-07 Thread erikweber
An alternative would be to have your form class extend your value object class. However, this approach doesn't work for me. My form class fields are always Strings (because of HTTP), while my value object fields are whatever types make sense (such as Date). I always have value object classes tha

Re: Using struts forms as Value Objects: your opinion?

2005-07-07 Thread Leon Rosenberg
You said it would be an enterprise j2ee application, right? So there is a chance it would be distributed once? In this case using ActionForms as VO is an absolute NO GO ! Besides, if you want a clear architectural separation of layers its a NO GO also! The VO Objects are parts of your busines

Re: Using struts forms as Value Objects: your opinion?

2005-07-07 Thread Leon Rosenberg
You said it would be an enterprise j2ee application, right? So there is a chance it would be distributed once? In this case using ActionForms as VO is an absolute NO GO ! Besides, if you want a clear architectural separation of layers its a NO GO also! The VO Objects are parts of your busines

Using struts forms as Value Objects: your opinion?

2005-07-07 Thread Vincent
Hi, I'm currently designing and developping an enterprise J2EE application based on Struts. In this application there's a layer of Data Access Object which abstract the underlying persistent storage. For populating my struts' *Form I've imagined first a transfert between forms and DAO based on

Re: embedding forms

2005-07-07 Thread Aleksandar Matijaca
Wouldn't that give me a null-pointer exception?? I will give it a try, and let you kow! Thanks for the response, Alex. On 7/7/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > > The problem could be that getDnaForm() is returning null. See if it > makes a difference if getDnaForm() instantiates dn

Paging in DisplayTag

2005-07-07 Thread Phani
Hi, Shud my Action form be in session scope if I want to specify pagesize in display tag for paging.. Because I get the following error: Error 500: Cannot find bean storeForm in any scope Thanks, Phani. __ Do you Yahoo!? Yahoo! Mail

Re: execute instead of get and post

2005-07-07 Thread Michael Jouravlev
On 7/7/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > klute wrote the following on 7/7/2005 3:07 PM: > > > It seems like it would make sense to have both so that > > you can use GET to set up a particular form and POST > > to process that form. Instead, I'd have to look at the > > request to see wh

Re: Validating nested, indexed properties

2005-07-07 Thread Hubert Rabago
What do you mean when you say it doesn't work? I compared your code with something I have that's working and they look pretty much the same. I have a form with a list of employees, and each employee has fields such as "birth". The HTML form looks something like this:

Re: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]

2005-07-07 Thread Martin Gainty
Brandon- Keeping in mind that No inductive generalisations can qualify from these premises The last time I checked The price for the aforementioned is pegged at 1c/hour which by my calculations qualifies as 'outsourcing the outsourcers' This is the MSRP ..Your mileage may of course vary dependi

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Michael Jouravlev
On 7/7/05, Abdullah Jibaly <[EMAIL PROTECTED]> wrote: > No, I actually meant that Struts will only process and associate one form > with the action processing that request, and therefore any validation, etc. > So only one html form will get associated with the current ActionForm, even > with ses

Re: embedding forms

2005-07-07 Thread Hubert Rabago
The problem could be that getDnaForm() is returning null. See if it makes a difference if getDnaForm() instantiates dnaForm before returning it if it's currently null. Hubert On 7/7/05, Aleksandar Matijaca <[EMAIL PROTECTED]> wrote: > Hi there, > > I am having a problem, trying to embed one Va

Re: dialog stuff (was) Re: Refresher for newbies...

2005-07-07 Thread Michael Jouravlev
On 7/7/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > (moved to new topic heading, but keeping seem referenceID for those > threading).. > > Michael Jouravlev wrote the following on 7/7/2005 1:40 PM: > > > Ok, Rick, lets pull out and compare :-) But before I go into > > presenting my approach, cou

Re: Struts-config.xml Digester endElement problem

2005-07-07 Thread Hubert Rabago
This is what I think could be causing your problem: > > > > The type of class you pass for the "type" of "form-beans" is different from the one you pass to "type" of an individual "form-bean". You're using the same class for these; that would cause you problems somewhere, a

Re: Which request is used in automatic Validation when therequirements aren't met?

2005-07-07 Thread Martin Gainty
Good Afternoon Thai Here is an example of building ActionErrors object inside execute() method of your Action class http://publib.boulder.ibm.com/infocenter/wsad512/index.jsp?topic=/com.ibm.etools.struts.doc/topics/rstrdoc009.html NOTE: If a message is required, this saves the specified key(s) i

RE: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Abdullah Jibaly
No, I actually meant that Struts will only process and associate one form with the action processing that request, and therefore any validation, etc. So only one html form will get associated with the current ActionForm, even with session scope, although you may have several html forms in that p

Re: Shale Users

2005-07-07 Thread Craig McClanahan
Things in Shale are going pretty well -- with David's checkin of the integration with standalone Tiles (from the Struts sandbox), Shale is now pretty much feature complete with respect to Struts 1.x, while offering some ease of development benefits due to JSF and it's own features. The only functi

Which request is used in automatic Validation when the requirements aren't met?

2005-07-07 Thread Thai Dang Vu
Perhaps I stated it unclearly. I am using automatic validation, not manual validation (which uses validate method of the form bean). If the requirements aren't met, Struts will lead us to the input page (in my case the /WEB-INF/provider/addprovider.jsp) without going to the execute method of th

Re: execute instead of get and post

2005-07-07 Thread Rick Reumann
klute wrote the following on 7/7/2005 3:07 PM: It seems like it would make sense to have both so that you can use GET to set up a particular form and POST to process that form. Instead, I'd have to look at the request to see what was invoked and then conditionally do some processing. No need f

execute instead of get and post

2005-07-07 Thread klute
Is there a good reason why Struts does not distinguish between GET and POST requests and tunnels both through execute()? It seems like it would make sense to have both so that you can use GET to set up a particular form and POST to process that form. Instead, I'd have to look at the request to se

Re: Which request is used in Validation when the requirements aren't met?

2005-07-07 Thread Jeff Beal
If your input attribute identifies an Action instead of a JSP page, you can do whatever you need to do within that Action. On 7/7/05, Thai Dang Vu <[EMAIL PROTECTED]> wrote: > Hello everybody, > > This is my action declaration in struts-config.xml > > type="AddProviderAction" >

dialog stuff (was) Re: Refresher for newbies...

2005-07-07 Thread Rick Reumann
(moved to new topic heading, but keeping seem referenceID for those threading).. Michael Jouravlev wrote the following on 7/7/2005 1:40 PM: Ok, Rick, lets pull out and compare :-) But before I go into presenting my approach, could you tell me, what happens in your app when a user clicks Refres

Re: Refresher for newbies...

2005-07-07 Thread Michael Jouravlev
On 7/7/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: Just a clarification: > Now, bring up the login form, use guest/guest and log in. Now it shows > "Logged In" form with "Log Out" button. Check the address, it is the > same as for login form. Click Back browser button. You are not brought >

Which request is used in Validation when the requirements aren't met?

2005-07-07 Thread Thai Dang Vu
Hello everybody, This is my action declaration in struts-config.xml In addprovider.jsp page, when I click 'Submit' and the requirements aren't met, the request is forwarded to the input (which is /WEB-INF/provider/addprovider.jsp). How and where can I get the request before the i

Re: Refresher for newbies...

2005-07-07 Thread Michael Jouravlev
On 7/7/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > I understand the PRG pattern. I don't see how it is relevant to the > Action vs. DispatchAction point. > > Perhaps I'm just being dense... Perhaps. Or perhaps I cannot explain my thoughts cleanly enough. Please, reread the email and pay a

Re: Refresher for newbies...

2005-07-07 Thread Frank W. Zammetti
I understand the PRG pattern. I don't see how it is relevant to the Action vs. DispatchAction point. Perhaps I'm just being dense... I am reviewing 3 gigs of server logs today and my eyes feel like they are about to explode, and my brain is about to turn to mush, moreso than usual I mean ;) --

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Michael Taylor
I read this post several times. If I understood it, the key is this line: "...the action responsible for this needs the name attribute set to the Form Bean of the first form..." If I read this to mean you want a post to form A to update form B so that it has access to the state of submission t

Re: Refresher for newbies...

2005-07-07 Thread Michael Jouravlev
This is exactly what I mean. If you recall the definition, Location != URL. Instead, Location == URL + request params. Most browsers build up page history using locations, of the browsers known to me, only Opera uses actual responses. That means, that if you load the same page five times in Opera,

Re: Refresher for newbies...

2005-07-07 Thread Rick Reumann
Rick Reumann wrote the following on 7/7/2005 11:58 AM: // THE SET UP FOR EDIT Ok, this is the one you were asking about. Now you have to think about how you would get here? Typically you'd get to an edit page by clicking on a user record to say "Hey, I want to edit this guy's user informati

RE: Resend : Multiple Struts-config files, multiple properties and validator

2005-07-07 Thread Venkat Reddy Valluri
Use latest validator-rules.xml and use latest tld's use bundle this way -Original Message- From: Sagar Naik [mailto:[EMAIL PROTECTED] Sent: Thu 7/7/2005 1:58 PM To: user@struts.apache.org Cc: Subject:Resend : Multiple

Re: Getter/Setter

2005-07-07 Thread Michael Taylor
If you mean writing a single method that handles multiple elements, then the way to handle this is with DynaBeans. Struts uses BeanUtils to populate the forms, and the DynaBean interface provides support for a set of generic set/get methods that can handle normal, indexed, and mapped propertie

Re: Refresher for newbies...

2005-07-07 Thread Michael Jouravlev
Typo: I wrote "DispatchAction and its subclasses accepts input as form submission only (POST)". Must read as "DialogAction and its subclasses accepts input as form submission only (POST)" Also, two other methods for completeness. This one is called when a user submits new/updated item to persist i

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Michael Taylor
You can have multiple forms on the same page. I am using Tiles. I put some forms in the header/footer and they work just fine. I had to use different actions for the two forms, and I had to use session scope for one of them in order to retain state for it. Request scope is the reason for th

embedding forms

2005-07-07 Thread Aleksandar Matijaca
Hi there, I am having a problem, trying to embed one ValidatorForm inside of another --- specifically this is the situation: I have a class InstitutionForm and a class DnaForm -- I am trying to do the following public class InstitutionForm extends ValidatorForm { private DnaForm dnaForm; pri

Resend : Multiple Struts-config files, multiple properties and validator

2005-07-07 Thread Sagar Naik
Hi I m using struts 1.2 mulitple struts-config files multiple properties files and now I have a validation.xml file for input validation of the form Ques 1. How do I get the keys defined in properties files in validation.xml 's field's arg0's key attribute Ques 2. Even if I get all the error mess

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Andrew Tomaka
This is what I've ended up doing for now. I have my one form bean for both forms since the data is related. What if the data isn't related though? Does Struts provide a simple solution or is just an area to hack around? I can accept the latter since it's expected when using a framework. Either

Re: Refresher for newbies...

2005-07-07 Thread Frank W. Zammetti
I don't understand your argument Michael. Can you expand and/or clarify? Specifically, how is multiple Actions not serving from the same location? It's not the same URL, granted, is that what you meant? -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.o

Re: banned

2005-07-07 Thread Ed Griebel
How exactly does dispatching a collection of spite-filled e-mails become "damaging to the Struts community," because I sure don't see it. Will it reduce participation on this mailing list? If people think twice about making bigoted or unprofessional posts it's a positive. People are calling him a

Shale Users

2005-07-07 Thread Brandon Goodin
Hey All, I've been using MyFaces JSF and I have been keeping up with Shale off and on. How are things looking with Shale? Is it in a good state to begin expirementing with? Brandon - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: banned

2005-07-07 Thread Brandon Goodin
Nope. I likely took the same amount of time as you took to spin your "word of the day" insult. :) On 7/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I hope you didn't spend too much time composing this puerile gibberish. > > -Dennis > > > > > Brandon Goodin <[EMAIL PROTECTED]> > 07/07/

Re: Refresher for newbies...

2005-07-07 Thread Michael Jouravlev
On 7/7/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > (For any newbies reading this, the difference that matters is that with a > DispatchAction, you have a single entry in struts-config, but you have to > pass a parameter with each request. With plain Actions, you would have > multiple mappin

Re: Refresher for newbies...

2005-07-07 Thread klute
Rick, Can you clarify how you give the dispatch action default "add" value? Is it meber attribute of "add" on the action itself? Thanks, James --- Rick Reumann <[EMAIL PROTECTED]> wrote: > Rick Reumann wrote the following on 7/7/2005 11:58 > AM: > > >This will have the following methods: >

Re: Refresher for newbies...

2005-07-07 Thread Michael Jouravlev
On 7/7/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > I posted this in reply to Tony's post, but figured this stuff comes up > all the time and to those new to Struts, this below might help > > You can accomplish 99% of what you want with this simple design Ok, Rick, lets pull out and compare

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Frank W. Zammetti
You could use frames for the bottom portion. Then you really *could* treat them as two separate pages because, well, they are! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Thu, July 7, 2005 1:32 pm, Andrew Tomaka said: > Using a nested

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Andrew Tomaka
Using a nested form bean may actually be a viable solution that I'll have to look in to. Ideally though, I'd be able to treat the two different forms as two separate pages that just happen to share the same screen space. I guess that's the downside to using a framework: you can't always get what y

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Rick Reumann
Andrew Tomaka wrote the following on 7/7/2005 12:00 PM: I imagine I've over complicated the problem, Yes, I think you are:) My problem is that I have a "PreAction" to do the processing on the form. This requires the page to have the form bean assigned to it. Since I have two different forms

Re: Refresher for newbies...

2005-07-07 Thread Rick Reumann
klute wrote the following on 7/7/2005 12:56 PM: UserActionForm userForm = (UserActionForm)form; //userID is set in this form when the user clicked on the link So, even though the jsp containing the list of users and the links to edit each of them doesnot contain a form tag, your userForm

Re: Refresher for newbies...

2005-07-07 Thread Rick Reumann
Frank W. Zammetti wrote the following on 7/7/2005 12:43 PM: Any reason in getUsers() that you are going directly to request to get the companyID parameter, as opposed to getting it from the form? For a full blown app, I'd probably have a "CompanyActionForm" which would hold companyID and I'd u

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Adam Hardy
Andrew, if the data being edited in the two forms are related, then for the child data you could use a nested bean as an attribute on the form. The parent data would remain as usual directly in the form. Adam Andrew Tomaka on 07/07/05 17:46, wrote: I did consider using a single form bean fo

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Frank W. Zammetti
Does the ActionForm for the bottom form only come into play when a selection is made in the upper form? If so, you could always instantiate the ActionForm yourself, populate it as appropriate in the Action that fires when that selection is made, shove it in request and deal with it manually. One

Re: banned

2005-07-07 Thread DGraham
I hope you didn't spend too much time composing this puerile gibberish. -Dennis Brandon Goodin <[EMAIL PROTECTED]> 07/07/2005 12:52 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject Re: banned See Mark post stupid comments Seen Mark get fired

Re: Refresher for newbies...

2005-07-07 Thread klute
Thanks Rick, I'd like to clarify something here. >UserActionForm userForm = (UserActionForm)form; >//userID is set in this form when the user > clicked on the link So, even though the jsp containing the list of users and the links to edit each of them doesnot contain a form tag, your u

Re: banned

2005-07-07 Thread Brandon Goodin
See Mark post stupid comments Seen Mark get fired Don't be a Mark. [End of Story] On 7/7/05, Brian Lee <[EMAIL PROTECTED]> wrote: > Good point, assuming that what Mark says is true, that he was fired, this is > all bad. > > I recognize your need to ban people and if it helps improve the signal t

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Andrew Tomaka
I did consider using a single form bean for both forms, but it didn't really sit well with me from a design stand point. We have two different forms doing two different things so there should be two different beans. Heck, if I had it my way, the two forms would be on separate pages (wizard style)

Re: [OT] Using connection pools - security

2005-07-07 Thread Michael Rasmussen
You could also just use one pool per user role and look up the db user and the role that user is in, then pull the connection from the pool that you have for that role. If your DB doesn't support roles for users you could create a user/role table. I think it might be overkill to create an actual

Re: Refresher for newbies...

2005-07-07 Thread Frank W. Zammetti
Any reason in getUsers() that you are going directly to request to get the companyID parameter, as opposed to getting it from the form? It might be worth noting that some people dislike the use of DispatchAction in most cases, me included. This is a fairly minor point as the actual code you wrote

Re: Refresher for newbies (part 2)

2005-07-07 Thread Rick Reumann
After reading the initial newbie post, you then might come across a situation where you need to have some things like "lists" on the page that aren't related to your ActionForm. For example, in the User example just given, imagine you need the person using the form to select a "Department" that

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Wendy Smoak
From: "Andrew Tomaka" <[EMAIL PROTECTED]> > My problem is that I have a "PreAction" to do the processing on the > form. This requires the page to have the form bean assigned to it. > Since I have two different forms doing two different things, I should > have two different form beans, but I don't

Re: prepopulating the form again

2005-07-07 Thread Michael Jouravlev
On 7/7/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Tony Dahbura wrote the following on 7/6/2005 11:09 PM: > > > So I have a setup action. How do I in this setup action setup my > > ActionForm values so when I forward control to the form they are there > > and present for display. This form is

RE: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Goswami, Raj
I had a similar situation and I used only one form, with the bottom part(result) inside a div, which is only visible depending on the action you took on the top part(search param part), otherwise it's invisible. It worked for me, even though it might not be the best solution. Thanks, -Ori

Re: Refresher for newbies...

2005-07-07 Thread Rick Reumann
Rick Reumann wrote the following on 7/7/2005 11:58 AM: This will have the following methods: (all with signature public ActionForward methodName (ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) setUpForEdit(..) setUpForAdd(..) S

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Andrew Tomaka
I imagine I've over complicated the problem, so I've taken a step back and am looking at it from the beginning again. The following are my basic requirements: When the user makes the first request, they are taken to a page with a drop down menu. This drop down menu is built from information stor

Refresher for newbies...

2005-07-07 Thread Rick Reumann
I posted this in reply to Tony's post, but figured this stuff comes up all the time and to those new to Struts, this below might help You can accomplish 99% of what you want with this simple design For the sake of this discussion I'm going to assume you are using a DispatchAction. In case

Re: prepopulating the form again

2005-07-07 Thread Rick Reumann
Tony Dahbura wrote the following on 7/6/2005 11:09 PM: So I have a setup action. How do I in this setup action setup my ActionForm values so when I forward control to the form they are there and present for display. This form is being used to allow updating data and I want to prepopulate the

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Michael Jouravlev
On 7/7/05, Andrew Tomaka <[EMAIL PROTECTED]> wrote: > Hey all, > > I'm attempting to create a JSP that is made up of two forms. Each > form needs a different form bean and is processed by a different > action. The catch is that the first form returns back to the JSP and > the action responsible

Re: Accessing Cookie information

2005-07-07 Thread Wendy Smoak
From: "Richard Reyes" <[EMAIL PROTECTED]> > I have this code... > > down the line i need to access the bean and set it to an input field. > > > previously i was using EL but the webapp was deployed in an older > version of tomcat where EL is not working . What version are you on now? I assume y

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Rick Reumann
Andrew Tomaka wrote the following on 7/7/2005 10:26 AM: I'm attempting to create a JSP that is made up of two forms. Each form needs a different form bean and is processed by a different action. The catch is that the first form returns back to the JSP and the action responsible for this needs

RE: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Abdullah Jibaly
To simplify your code, I would have one ActionForm, and one processing action. Depending on which submit button or whatever is pressed I'd redirect to the correct page. By the way you can only have one struts action form per action and per jsp page. Regards, Abdullah -Original Message-

RE: Struts-config.xml Digester endElement problem

2005-07-07 Thread Marco Mistroni
Hello, Haven't used struts 1.2, just 1.1 & 1.3(in dev), but as far as I know You should have a 'type' attribute associated with each element... And I bet that hasn't been changed between different versions of struts... Regards marco -Original Message- From: Sher, Allen

Re: banned

2005-07-07 Thread Brian Lee
Good point, assuming that what Mark says is true, that he was fired, this is all bad. I recognize your need to ban people and if it helps improve the signal to noise ratio on this list, I'm all for it. I also recognize that we are all responsible for what we say here. Both the first time aroun

Re: Struts Books Recommendations

2005-07-07 Thread gvanmatre
> On 6/30/05, John Henry Xu <[EMAIL PROTECTED]> wrote: > > I would say > > Jakarta Struts Cookbook > > Struts Recipes > > as the books. > > Yes, both of these have great coverage of 1.2.x, and the best part is > that they don't overlap. > > These two are also excellent choices for anyone who is a

Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Andrew Tomaka
Hey all, I'm attempting to create a JSP that is made up of two forms. Each form needs a different form bean and is processed by a different action. The catch is that the first form returns back to the JSP and the action responsible for this needs the name attribute set to the Form Bean of the fi

RE: Struts-config.xml Digester endElement problem

2005-07-07 Thread Sher, Allen - BLS CTR
Here is the struts-config.xml http://struts.apache.org/dtds/struts-config_1_2.dtd";>

Re: (OT) Re: Struts vs .NET???

2005-07-07 Thread PC Leung
very good article on this topic. http://java.oreilly.com/news/farley_0800.html On 7/7/05, Emmanouil Batsis <[EMAIL PROTECTED]> wrote: > > John Henry Xu wrote: > > >Now I can focus on my job and be more productive by not having to write > getters and setters manually. > > > >Only when I wrote

IE Globe issue

2005-07-07 Thread Abhinav Bhatnagar
Hi All, I have a strange issue in my struts application. When I go from one page to the second page by clicking over a link, the IE globe (on the top right hand corner) moves for a moment, then stops rotating (user still on page1) and after a few seconds the second page loads. This leads the

Using the common validator with velocity and tiles

2005-07-07 Thread marc
Im using the jakarta common validator in my struts project combined with velocity and tiles. But have a little problem. I have maked a form, this form is being call from a action. In the action I put two arrays in the request. The arrays I use to populate some fields in the form. Here comes m

AW: Tomcat5.exe Holds Onto Struts.jar

2005-07-07 Thread Peter . Zoche
Are you using Windows? Than this it no tomcat specific problem. yout struts.jar is not deleted because windows locks this file. i had the same problem. the solution is to add the directory META-INF to your project. put a file named context.xml into it with the following lines: when the attribu

RE: Struts-config.xml Digester endElement problem

2005-07-07 Thread Marco Mistroni
Hello, Could you post struts-config.xml? Regards marco -Original Message- From: Sher, Allen - BLS CTR [mailto:[EMAIL PROTECTED] Sent: 07 July 2005 14:35 To: 'Struts Users Mailing List' Subject: Struts-config.xml Digester endElement problem Got this stack trace while de

Tomcat5.exe Holds Onto Struts.jar

2005-07-07 Thread Robert Nicholls
Hi: Perhaps this is a Tomcat question but it applies only to Struts. I have Tomcat 5.5 running under Windows 2000 with Eclipse as the IDE. Ant is used to assemble, compile and deploy the applications. However, the process Tomcat5.exe accesses the struts.jar at /WEB-INF/lib/struts.jar. The result i

RE: Getter/Setter

2005-07-07 Thread Jesse Alexander (KBSA 21)
Open the source in Eclipse; right-click on a variable; -source- -generate getter/setter-; choose the attributes you want, set the options and submit... hth Alexander -Original Message- From: Vijay K Anand [mailto:[EMAIL PROTECTED] Sent: Thursday, July 07, 2005 3:23 PM To: Struts Users

Struts-config.xml Digester endElement problem

2005-07-07 Thread Sher, Allen - BLS CTR
Got this stack trace while deploying my struts 1.2.7 app into WebLogic 8.1.4. It seems to relate to Digester complaining something about struts-config.xml. Adding Xerces 2.5 into the WAR file does not help. Can someone point a direction of where to look? Thanks. Jul 7, 2005 9:11:26 AM org.apache.

Re: [offlist] Re: Newbie Help

2005-07-07 Thread Rahul Akolkar
On 7/6/05, Frasso, Anthony <[EMAIL PROTECTED]> wrote: > Thanks for your help, Rahul. My current web.xml file looks like this: > > > > "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd";> > > >... > > According to the w

Getter/Setter

2005-07-07 Thread Vijay K Anand
hi All Any idea how to write setter / getter methods for multiple form elements ? Regards Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

  1   2   >