Re: banned

2005-07-07 Thread Dakota Jack
Few mature individuals who are well-grounded in a spiritual sense have any fear of what newcomers and troublemakers can do to reputation or to effectiveness. Those who yell, those who take up space, those who talk strange and even with evil in their hearts, those who are burdened with mental twist

How to access ACL

2005-07-07 Thread Senthilrajan VS
Hi, I am using ACL authentication, how can I get the user name from the ACL inside my action class Regards, Senthil

Re: How to access ACL

2005-07-07 Thread Vijay K Anand
Senthilrajan VS wrote: Hi, I am using ACL authentication, how can I get the user name from the ACL inside my action class Regards, Senthil request.getRemoteuser() - To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: RE: Question re html:select on the client

2005-07-07 Thread Avjit Singh Jhajj
You can use the following code to dynamically generate the action where the submit is to happen. function linkEditClick() { document.formName.action="/editAction?id=" + document.formName.comboName.value; document.formName.submit(); }   function linkAddClick() { document.formName.action="/ad

ot: Struts 1.3

2005-07-07 Thread netsql
so... when? .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

logic iterate

2005-07-07 Thread Vijay K Anand
Hi All I have a problem in logic iterate .. I would like to dispaly checkbox in each row of the iteration like instead of Any help brothers?? Here goes the code      name="user"/>

Accessing Cookie information

2005-07-07 Thread Richard Reyes
Hello Guys, 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 . I tried this <%= pageContext.getAttribute("username") %> but its not wo

Vignette V6 Struts-based web application

2005-07-07 Thread Kareem Hassan
Hello every one, I am new to Vignette CMS and was wandering that if someone could help me out how a Struts-based web application can fit into Vignette CM model ? I'm working on a Strut-based project and am told that I have to let Vignette JSP controller to handle all JSPs rendering/forwarding an

Re: [OT] banned

2005-07-07 Thread Adam Hardy
Well, despite Mark's apparent bigotry (intended or not), I hope he doesn't get prosecuted as he mentioned he might. As for Niall, wow. Extreme. Glad you admitted it though. I in my unavoidably racist subconcious was blaming someone with a non-English name. Adam [EMAIL PROTECTED] on 07/07/05

[OT] Re: Struts and .NET?

2005-07-07 Thread Ted Husted
On 6/30/05, Rafael Taboada <[EMAIL PROTECTED]> wrote: > Hi folks I've been reading all mails about VS.NET . > I have a question. Is it true that software in ASP.NET is > faster than in Struts???.. HOw true is this opinion? > I heard about a tool that it can convert

Re: ot: Struts 1.3

2005-07-07 Thread Ted Husted
On 7/7/05, netsql <[EMAIL PROTECTED]> wrote: > so... when? At this point, there is not so much as a Release Plan for 1.3.x * http://wiki.apache.org/struts/StrutsReleasePlans so it's not possile to say. Personally, I'll be working in ASP.NET until at least November, so my own voulnteer hours ar

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

2005-07-07 Thread Martin Gainty
Good Morning Brian: In a global economy keep in mind that a business can locate anywhere.. Tying up resources in a situation such as what you described could be interpreted (in a rather loose sense) as 'anti-business' and *might* force the company to look at other locations which provide more '

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

2005-07-07 Thread Emmanouil Batsis
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 million line codes I realized how insane to write something machine can produce perfectly to you. The choice of a methodology like Model Driven devel

Re: Struts Books Recommendations

2005-07-07 Thread Ted Husted
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 already working in St

Re: [OT] Re: Struts and .NET?

2005-07-07 Thread Larry Meadors
I could not agree more with Ted on this comparison. In my experience with asp.net, this is incredibly accurate. Cranking out a page is pretty quick, but modifying it later can be a PITA. Larry On 7/7/05, Ted Husted <[EMAIL PROTECTED]> wrote: > On 6/30/05, Rafael Taboada <[EMAIL PROTECTED]> wro

[OT] FYI Ugly Tomcat Bug

2005-07-07 Thread Leon Rosenberg
Hi, after 3 hours of searching and debuging I just discovered an ugly tomcat bug and wanted to provide this information in case someone else is suffering from a similar behaviour too. trimSpaces true This parameter in the definition of the JSPServlet in the web.xml can have a

RE: [OT] M Galbreath

2005-07-07 Thread Derek Broughton
Fogleson, Allen wrote: > Actually there would not have to be an ethics clause. Maryland is a > right to work state so the employer can fire you at any time for any > reason. Aren't most states this way? No, only 22 according to http://www.nrtw.org/rtws.org - however, they don't include Maryland,

Struts Tiles Question

2005-07-07 Thread BHansard
All, I am using Struts Tiles to layout my site. I have a vboxmenu design which contains 4 menu levels: I am wanting to control when the Authenticated menu and the Admin Menu are displayed. For example, only display the admin menu if the user is in the Admin Role.

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]

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

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: 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

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: 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

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

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

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

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

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";>

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 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

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-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: 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: 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: 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 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: 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

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: 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

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 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: 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 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: 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: 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: [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: 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: 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: 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 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: 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: 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: 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: 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: 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: 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 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: 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: 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, 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: 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/

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 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

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: 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

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

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

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

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: 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: 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: 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: 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: 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 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: 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

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, 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 >

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: 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" >

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: 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

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: 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

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: 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: 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: 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: 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: 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: [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: 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: 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

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: 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

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: 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

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

  1   2   >