Re: java.lang.IllegalArgumentException calling an Action

2005-04-19 Thread Rodolfo García Esteban/CYII
The problem must be other, because I test submit with numbers, alphanumeric, empty, and the result is ever the same. I will debug struts to obtain more information, thanks Antonio. Rodolfo <[EMAIL PROTECTED]> 19/04/2005 08:36 Por favor, responda a "Struts Users Mail

Re: content management tool

2005-04-19 Thread Simone-dev
I'm developing an open source CMS.. it's in the very alpha stage, still nothing released to the public.. www.jclubhouse.org I'll post more info when something is released.. Simone sudip shrestha wrote: Just curious if there are any struts based content managment tools out there! ---

Re: java.lang.IllegalArgumentException calling an Action

2005-04-19 Thread Rodolfo García Esteban/CYII
Hi, I have changed the server from Tomcat 5.0.28 to Tomcat 4.1.31, and I come back to struts-bean and struts-logic tags, and now the app works well. Its very strange. do Nobody Know the diference Tomcat 5.0 and 4.1 fills the ActionForms, I think here is the difference. Thanks _

RE: AJAX: Whoa, Nellie!

2005-04-19 Thread Jesse Alexander (KBSA 21)
-Original Message- Users that turn off JS are akin, in my mind, to automobile drivers who decide they would rather play Fred Flintstone, cut holes in the floorboards and not bother starting the engine. Oh, you'll get around, but your missing out! While I am certainly not trying to say the

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Emmanouil Batsis
Frank W. Zammetti wrote: On Mon, April 18, 2005 11:12 am, Emmanouil Batsis said: I haven't really studied the samples yet, but it would seem more semantically correct to me if the html:form was used to make this work. I'll try to come up with more concrete suggestions. I thought of that too

requiredif

2005-04-19 Thread tarek.nabil
Hi, I'm stuck with Struts 1.1b2 and I need to do some conditional validation. AFAIK, the way to do this for this version is using the requiredif validator. The problem is, I cannot find any reference information on how to add this validator to the validator-rules.xml configuration file. Please ad

Re: Using validate() and returning to original page dynamically

2005-04-19 Thread Joe Germuska
At 11:06 PM -0700 4/18/05, Michael J. wrote: 2) You can set the params too, it is not a big deal. Do not edit existing ActionForward from findForward, instead create a new one and append query parameters. Note that about two months ago, a class called "ActionRedirect" was added to clean up this pa

Re: requiredif

2005-04-19 Thread Erik Weber
Erik tarek.nabil wrote: Hi, I'm stuck with Struts 1.1b2 and I need to do some conditional validation. AFAIK, the way to do this for this version is using the requiredif validator. The problem is, I cannot find any reference information on how to add this validator to the validator-rules.xml

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Stéphane Zuckerman
Jesse Alexander (KBSA 21) a écrit : Well,... If we look behind the problems that could arise with JavaScript... I am really convinced that JS in a webapp is a really BAD idea. Think about Cross-Scripting. It is not that your web-applicaiton is the culprit, but someoneelse's bad-behaving Javascript

Slightly Off topic: JSTL vs Bean tags w/ message resources

2005-04-19 Thread Brian McGovern
Hi, Got a slightly OT question. I want to put a date format mask in a properties file and format dates with this key in my presentation jsp. I can do this with struts bean tags but seeming have to hard code it into the jstl tags. Both approaches work but i would like to know if anyone has a

Displaying data :: Best practise

2005-04-19 Thread Nils Liebelt
What goes to the front (for viewing purposes)? For capturing data we use ActionForms! But how do you display data (from your model) nicely? Send Businesobjects, Businessobjects stuffed in Beans, ActionForm or something else to the view layer? Regards, Nils

Displaying data :: Best practise

2005-04-19 Thread Nils Liebelt
What goes to the front (for viewing purposes)? For capturing data we use ActionForms! But how do you display data (from your model) nicely? Send Businesobjects, Businessobjects stuffed in Beans, ActionForm or something else to the view layer? Regards, Nils

Re: Displaying data :: Best practise

2005-04-19 Thread Rodolfo García Esteban/CYII
Good Question! I think. When I started to use struts I made the same question, and I doubt a lot between use ActionForm or Beans, at least I decided to use ActionForms, because I can view the contents in the html-struts tags without doing anything, and I want to avoid to have much more classes.

RE: Displaying data :: Best practise

2005-04-19 Thread Marsh-Bourdon, Christopher
Nils I tend to use ActionForms where I can, but I also have a set of wrappers for Collections that handle ordering of the columns within the collection, retrieve individual items by key etc. and adapters for single objects that enable the front-end to pull all the details out of the beans with sim

Editing jsp pages

2005-04-19 Thread Joe_Russo
I wanted to know what is the best way to edit jsp pages that gives you a GUI interface versus using a text editor. If I should post this question to a different group, sorry in advance. - To unsubscribe, e-mail: [EMAIL PROTECTE

RE: Displaying data :: Best practise

2005-04-19 Thread Mark Benussi
Great Question, If I was to use an ActionForm to populate my presentation layer, how would I go about it. Would I use a struts tag, or this jstl I hear people going on about (I know one day I should rtfm). An example of displaying a value as text in my JSP from a form bean (myform) with property f

RE: Editing jsp pages

2005-04-19 Thread Mark Benussi
Joe, this message pops up every once in a while. FCK Editor is popular http://www.fckeditor.net/demo/default.html However I wrote my own, don't groan ;), based on this because I wanted to work with the back end integration more. An editable div is essentially the best way to go. -Original M

Apostrophes in bean:write

2005-04-19 Thread Mulligan, Scott H
Has anyone run into this, and if so do you have a work around? I have a Struts bean:write tag inside a JavaScript onClick command like so: ', '<%= rowIndex.toString() %>','editExternalNote')"/> The problem is the dastardly single quote embedded in the nested:write property, for example (Chris's

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread William Connor
Based on my experience porting the Struts tags to AJAX/SWF (swf.dev.java.net), I would agree with Craig that the existing Struts tags would be sufficient; however, tweaking the event handler attrs, as in SWF, does provide some simplification. For example (in SWF), w/ o the tweak we would nee

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Frank W. Zammetti
On Tue, April 19, 2005 2:47 am, Craig McClanahan said: > This is exactly the area I've been having trouble with this proposal > as well ... tell me again why you can't use Ajax techniques with the > standard Struts HTML tags? No one, at least not me, has made that statement at any point. I frank

[OT] how to reject non-HTTPS instead of redirect?

2005-04-19 Thread Erik Weber
Sorry for the OT but I thought I'd try here since this should be simple and I don't subscribe to tomcat-user. Anyone know how to configure Tomcat (5.0) to simply reject a non-HTTPS request when the transport guarantee is CONFIDENTIAL, rather than to issue a redirect? I can't find anything on t

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Frank W. Zammetti
On Tue, April 19, 2005 12:53 am, Martin Cooper said: > To get beyond doing the grunt work yourself for Ajax, I recommend taking a > look at this: > > http://dojotoolkit.org/intro_to_dojo_io.html > > and downloading the dojo.io package from their site. It does look cool. However, in some ways what

Re: Editing jsp pages

2005-04-19 Thread James Mitchell
I took this thing for a test drive last week. It's an excellent Struts-aware IDE, including the only JSP editor I've seen that does includes correctly (visually too!!). If you are willing to fork over the cash... http://www.m7.com/ -- James Mitchell Software Engineer / Open Source Evangelist C

RE: AJAX: Whoa, Nellie!

2005-04-19 Thread Frank W. Zammetti
On Tue, April 19, 2005 5:30 am, Jesse Alexander (KBSA 21) said: > I also think that a well-designed web-UI does not need JS at all... Then what results is exactly what you say: a WEB UI. This was good enough five years ago, it isn't today. People expect, generally, more robust UIs delivered in a

Re: Apostrophes in bean:write

2005-04-19 Thread Rick Reumann
Mulligan, Scott H wrote the following on 4/19/2005 9:51 AM: ', '<%= rowIndex.toString() %>','editExternalNote')"/> The problem is the dastardly single quote embedded in the nested:write property, for example (Chris's Test Note). Have you tried: onClick='showExtNoteModal("","<%= rowIndex.toStrin

Re: Editing jsp pages

2005-04-19 Thread Simone-dev
I think this is not what Joe was looking for... you provided the solution for the question: "How can I edit an HTML text from a JSP?" I think he was looking for a JSP editor, to make JSP pages... unfortunately I cannot help you... I use e text editor, but I'm starting to use Eclipse... anyway ecl

RE: AJAX: Whoa, Nellie!

2005-04-19 Thread Jesse Alexander (KBSA 21)
-Original Message- > I also think that a well-designed web-UI does not need JS at all... Then what results is exactly what you say: a WEB UI. This was good enough five years ago, it isn't today. People expect, generally, more robust UIs delivered in a browser. They expect webapps that l

Validation Problems

2005-04-19 Thread Andrew Thorell
Hey all, I've been trying for some time now to figure out what my problem is with my Validations not displaying error messages back to the page from where the request came from. It's a simple login page which pretty much follows Ted's Struts in Action example. I'm using a Form which extends Valid

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Michael J.
Since this group is more crowded, I took the liberty to crosspost a portion of my message, that I mistakingly sent to dev group. Struts-only or JSP-only solution is not good enough. The more portable is the better, so when I read Frank's proposal I thought, why those input controls are generated w

RE: Validation Problems

2005-04-19 Thread Folashade Adeyosoye
Try using DynaValidatorActionForm... -Original Message- From: Andrew Thorell [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 19, 2005 10:44 AM To: Struts Mailing List Subject: Validation Problems Hey all, I've been trying for some time now to figure out what my problem is with my Valid

RE: AJAX: Whoa, Nellie!

2005-04-19 Thread Frank W. Zammetti
On Tue, April 19, 2005 10:37 am, Jesse Alexander (KBSA 21) said: > Maybe I'm to old (in respect to IT-technology), but for me most of those > highly sophisticated apps (be them client or web) are not very usable... > I prefer a simple processing scheme. No doubt there were (are still are) some ver

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Erik Weber
Frank W. Zammetti wrote: On Tue, April 19, 2005 5:30 am, Jesse Alexander (KBSA 21) said: I also think that a well-designed web-UI does not need JS at all... Then what results is exactly what you say: a WEB UI. This was good enough five years ago, it isn't today. People expect, generally,

Re: Editing jsp pages

2005-04-19 Thread edward griebel
I use My Eclipse, a plugin for Eclipse, http://myeclipseide.org. It works reasonably well and provides syntax coloring and XML validation for JSPs, and if things are set up right, it will provide context completion for standard JSP tags. I haven't had it work for JSTL tags, but that could be a setu

Re: Validation Problems

2005-04-19 Thread Andrew Thorell
Thanks for the speedy reply, My time is limited to solve this particular problem, but I'll definitely look into using DynaValidatorActionForm. I do have another question though, why would not using DynaValidatorActionForm prevent my code from display the error back to the jsp? Is there a limitatio

[ANN] Struts-JSF London Networking BOF VIII / Monday / 9th MAY 2 005 @ 18:30 / Oracle City of London

2005-04-19 Thread Pilgrim, Peter
WHAT: I would like to formally announce that ``The Struts-JSF London Networking'' group is holding the ninth meet-up event on Monday 9th May 2005 at Oracle office in the city of London at ``18:45'' The meeting will take place in a room with Audio/Visual facilities between 6:30-8:00 pm. After

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Frank W. Zammetti
On Tue, April 19, 2005 10:46 am, Michael J. said: > Struts-only or JSP-only solution is not good enough. The more portable > is the better, so when I read Frank's proposal I thought, why those > input controls are generated with custom tags? What if controls were > created with Javascript? Custom t

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Frank W. Zammetti
On Tue, April 19, 2005 10:47 am, Erik Weber said: > I, with respect for the author, disagree with this entirely. > > I am people, and this is not what I expect or desire at all. As a user, > I expect and desire 1) A fast download 2) my bookmarks to work/easy to > remember URLs 3) an organized and w

RE: AJAX: Whoa, Nellie!

2005-04-19 Thread Marsh-Bourdon, Christopher
Hear-hear. My users would brain me if I just provided that amount of interface on a web application. -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: 19 April 2005 16:17 To: Struts Users Mailing List Cc: Struts Users Mailing List Subject: Re: AJAX: Whoa, Nellie

RE: Validation Problems

2005-04-19 Thread Folashade Adeyosoye
Not sure what the limitations might be, but I found out that worked for me. Also if you define your form as a DynaValidatorActionForm, you have to cast them as a DynaValidatorActionForm in our action classes -Original Message- From: Andrew Thorell [mailto:[EMAIL PROTECTED] Sent: Tuesday,

RE: requiredif

2005-04-19 Thread tarek.nabil
Thanks Erik. I was wondering, is there a client side JavaScript part? Also, is it possible to use validwhen with the old versions of struts (1.1b2). Thanks for your help. -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 19, 2005 3:24 PM To: Struts User

RE: AJAX: Whoa, Nellie!

2005-04-19 Thread Scott Piker
I wholeheartedly agree that often times, simplicity is the best way to go for web (and webapp) UIs. However, end-user simplicity does not always imply developer simplicity (i.e. bare-bones HTML). Case in point: Google Maps vs. Mapquest, specifically in the Scroll Map use case. Which one is simp

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Michael J.
> Sometimes it takes more developer effort/technology to create something > that's easier to use. Sometimes it doesn't. But to say that > client-side scripting is completely unnecessary for "well designed" > application UIs is incorrect, IMO. It depends on what your users need > to do. People j

RE: Slightly Off topic: JSTL vs Bean tags w/ message resources

2005-04-19 Thread Karr, David
I'd say there's two approaches to dealing with this. In the scope of just this issue, I think "bean:write" is just a little more convenient, but there may be other considerations. One way would be to read in your properties file in an action and put them into application scope. That's probably o

Editing jsp pages

2005-04-19 Thread Joe_Russo
Thank you all for your responses. They are very helpful and will help in deciding which tool(s) to use. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: requiredif

2005-04-19 Thread tarek.nabil
Hi Erik, I tried it and it didn't work. I checked out the validator and struts jar files and it turned out that the org.apache.struts.validator.FieldChecks class does not exist in either of them. Is it possible that it was introduced after 1.1b2? I'm sure it's in RC1 because I'm using the documen

Re: requiredif

2005-04-19 Thread Erik Weber
Oh, I'm sorry. I pulled that from the last release of 1.1. Zoinks, you are stuck with a pre-1.1 version? Perhaps you could write a custom validator plugin that basically does the same thing? tarek.nabil wrote: Hi Erik, I tried it and it didn't work. I checked out the validator and struts jar fil

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Jason King
We need to agree to disagree on the virtue/detriment of javascript in web pages. Different applications for different audiences with different purposes have different solutions. At my company we've implemented intranet apps where the users do a significant amount of heads-down data entry. They

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Dakota Jack
+1 Frank! Good old agility and Xtreme principles say do it and worry about all this "wah wah wah wah" later. You have a simple and very useful idea which is at the beginning stages but which is well-thought out and which is based on a solid engineering foundation. Go for it as you initially conc

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Dakota Jack
I don't think he said "absolutely everyone, including specifically Erik Weber", Erik. You turn out, in the end, to be just a person: not people. ///;-) Jack On 4/19/05, Erik Weber <[EMAIL PROTECTED]> wrote: > > > Frank W. Zammetti wrote: > > >On Tue, April 19, 2005 5:30 am, Jesse Alexander (

Re: Using validate() and returning to original page dynamically

2005-04-19 Thread Michael J.
On 4/19/05, Joe Germuska <[EMAIL PROTECTED]> wrote: > At 11:06 PM -0700 4/18/05, Michael J. wrote: > >2) You can set the params too, it is not a big deal. Do not edit > >existing ActionForward from findForward, instead create a new one and > >append query parameters. > > Note that about two months

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Vic Cekvenich (netsql)
Michael J. wrote: People just should stop thinking in terms of "client-side scripting" and start thinking in terms of "client-side rendering" :-) (XAML, XUL, Flex, JDNC, DHTML(Ajax, JavaScript)). UI naturaly should be done on "client" side, asking for domain and other services from the

RE: Slightly Off topic: JSTL vs Bean tags w/ message resources

2005-04-19 Thread Brian McGovern
I tried it but got no luck. I think the "pattern" attrib of formatDate only takes in literal strings in form of "mm/dd/" or something like that. Am i doing something wrong there? -B -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 19, 2005 11:51

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Dakota Jack
HUZZAH! +1 This is about AJAX, not about JavaScript. I am with those who say that if you don't like abortion, don't have one. Also, if you don't like JavaScript, don't use it. But, in the middle of an AJAX discussion all this pro and con JavaScript discussion is ridiculous. Jack On 4/19/05, J

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Frank W. Zammetti
That's an interesting comment Vic... are you saying you favor an approach where the entire client view itself is rendered on the client? I ask because that used to be my thinking, and I'm moved away from it to some degree. By way of example: * The little proof of concept thing I mentioned ealier

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Dave Newton
Dakota Jack wrote: I don't think he said "absolutely everyone, including specifically Erik Weber", Erik. You turn out, in the end, to be just a person: not people. ///;-) Not me, though; I'm actually people. I may be schizophrenic, but at least I have each other. I like fast download times, b

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Michael J.
On 4/19/05, Dave Newton <[EMAIL PROTECTED]> wrote: > > I like fast download times, but I hate the web: I want any page that's > more complicated than "Here, download this, you'll be better off" to > have functionality that doesn't make me wait all the time. For a server > round-trip. Sometimes it'

[ANN] Fw: Java DevCon 2005 - May 25

2005-04-19 Thread James Mitchell
Our local Atlanta Java Users Group is hosting a Developer Conference and if you live anywhere in the Southeastern U.S. (or visiting at that time), I would encourage you to attend. This is going to be a great event and I look forward to meeting more of my fellow developers out there in the OSSC

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Frank W. Zammetti
You would, I think, love some of the apps I've put together. The problem though, as far as other developers go, is that they really are a whole different paradigm than what most are used to. Ironically, the very first web app I did for my current employer some five years ago is the best example o

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Dave Newton
Michael J. wrote: Have you tried this one: http://map.search.ch/ Try to magnify ;) Oh, that's neat. If you could drag it it'd be like a real application! Cool! Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Dakota Jack
I have another perspective on this. Rich UIs are good, but what I like about AJAX in addition to that somewhat peripheral concern (to me) is that it cooperates with the serverside and allows the serverside to be more efficient. The relationship between the server and the client in AJAX is what is

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Dave Newton
Frank W. Zammetti wrote: I'm interested in knowing if that's what you are actually saying because, while I have moved away from it a bit as I've said, I still believe that approach has significant advantages, but for a long time I thought I was the only one that thought so! :) I'm not Vic, but I

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Dave Newton
Frank W. Zammetti wrote: Simply put, there isn't the usual HTML rendering happening on the server because the HTML essentially already exists. Just a nitpick; there's never any HTML rendering on the server. Generation, perhaps, but not rendering. Dave

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Dakota Jack
This may be straying a bit from the AJAX discussion? On 4/19/05, Michael J. <[EMAIL PROTECTED]> wrote: > On 4/19/05, Dave Newton <[EMAIL PROTECTED]> wrote: > > > > I like fast download times, but I hate the web: I want any page that's > > more complicated than "Here, download this, you'll be be

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Frank W. Zammetti
You got me :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Tue, April 19, 2005 1:26 pm, Dave Newton said: > Frank W. Zammetti wrote: > >>Simply put, there isn't the usual HTML rendering happening on the server >> because the >>HTML esse

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Frank W. Zammetti
Well, to the extent that AJAX techniques can make a site seem faster, it is actually on-topic. And I don't care if this map thing is on-topic or not, it is cool as hell :) By the way, not sure who said it, but you can in fact scroll around this map, just like Google Maps, by dragging. The zoom i

RE: [ANN] Fw: Java DevCon 2005 - May 25

2005-04-19 Thread Fogleson, Allen
Dang, What's really bad is I live in Atlanta (well ok, north of Atlanta on the I-75 corridor) but I work in Chicago M-Thurs so I won't be able to make it. :( Al -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 19, 2005 12:20 PM To: Struts Users Ma

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Frank W. Zammetti
That's actually a good point... We've all heard about JSF and ASP.Net, how they handle client-side events server-side, which is a concept I've never been especially enamored with. But, when you see some actual examples of this in things like what Google is doing, you start to reconsider that posit

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Dakota Jack
I may be nuts, many have said I am on this list, unfairly, but isn't "rendering HTML" capable of being understood either as "rendering the HTML" meaning creating the HTML or "rendering the HTML" meaning creating the view from the HTML? At least people like David Geary talk about serverside renderi

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Dave Newton
Dakota Jack wrote: This may be straying a bit from the AJAX discussion? ...which is straying a bit from Struts? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Dakota Jack
I think this AJAX discussion was about integrating AJAX and Struts. Not complaining about your asides, Dave. Just trying to maintain some focus. ///;-) On 4/19/05, Dave Newton <[EMAIL PROTECTED]> wrote: > Dakota Jack wrote: > > >This may be straying a bit from the AJAX discussion? > > > > > ..

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Dave Newton
Dakota Jack wrote: I may be nuts, many have said I am on this list, unfairly, but isn't "rendering HTML" capable of being understood either as "rendering the HTML" meaning creating the HTML or "rendering the HTML" meaning creating the view from the HTML? At least people like David Geary talk about

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Frank W. Zammetti
Not if I complete my project! ;) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Tue, April 19, 2005 1:37 pm, Dave Newton said: > Dakota Jack wrote: > >>This may be straying a bit from the AJAX discussion? >> >> > ...which is straying a bi

RE: requiredif

2005-04-19 Thread tarek.nabil
Hi Erik, Actually after some reasoning about the application I came to a conclusion that I will not use the integration between Struts and the Validator framework. I might still use the ready made validators, but I will call them explicitly. The reason is, the pages in the application are designe

Token question

2005-04-19 Thread Derrick Koes
if (null == request.getParameter(Constants.TOKEN_KEY)) { saveToken(request); } else { if (!isTokenValid(request, true)) { response.sendError(HttpServletResponse.SC_CONFLICT, "The request received was out of sequence, perhaps due to a second submit, refresh

RE: Token question

2005-04-19 Thread Stunger, Kevin J
I typically save the token in the action responsible for forwarding to the page that displays the form. Then the action that reads the form data can check the token and re-save (and forward to the input page) if the user needs to retry a failed request (not validation related). -Original Mes

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Vic Cekvenich (netsql)
Frank W. Zammetti wrote: Not if I complete my project! ;) I hope you do! See if you can put some version on struts.sf.net, this is how some committers got in. I am no JavaScript guru, but something similar to XUL and new W3 XForms, were it's even possible to just send XML-RPC style XML to the s

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Frank W. Zammetti
On Tue, April 19, 2005 2:33 pm, Vic Cekvenich (netsql) said: > Frank W. Zammetti wrote: >> Not if I complete my project! ;) >> > > > I hope you do! > See if you can put some version on struts.sf.net, this is how some > committers got in. That's my plan at the moment. There frankly isn't a ton lef

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Vic Cekvenich (netsql)
Frank W. Zammetti wrote: The problem arose, initially, because we were allowing for something like 300 records max at a time. Such a request was taking like 5 seconds on a P3 550. As it turns out, the response from the server was sub-second (VERY low, better than anything we see even today in cur

Re: Token question

2005-04-19 Thread Michael J.
On 4/19/05, Derrick Koes <[EMAIL PROTECTED]> wrote: > > if (null == request.getParameter(Constants.TOKEN_KEY)) { > saveToken(request); > } > else { > if (!isTokenValid(request, true)) { > response.sendError(HttpServletResponse.SC_CONFLICT, "The request > received was out >

Using checkbox value in Validator validwhen test

2005-04-19 Thread Dornback, Ken
Problem: I don't know how to test a checkbox setting in the validwhen test var-value. I have a checkbox and a text field. I only need to validate the text field when the checkbox is checked. I cannot get this to work using validwhen (other validwhens do work that use different types of tests).

RE: JSF vs Struts

2005-04-19 Thread Murali
Hi, I was trying to find which would be best choice for a website development. JSF or Struts. JSF looks similar to Struts. does any one know any articles on which framework should go for. Thanks - Do you Yahoo!? Yahoo! Small Business - Try

Re: Using checkbox value in Validator validwhen test

2005-04-19 Thread Michael J.
It is a classic. Look on Ted Husted's website for tip. Basically, you need to clear checkbox value each time in the reset() method of a form bean, because cleared value is not sent to server. So you think that you cleared it, but it is still set (do you use session-scoped form bean?) Michael Jou

i18n best practices

2005-04-19 Thread Daniel Lipofsky
I am wondering about best practices in struts for internationalization of dates and numbers. Formatting is not too hard, but parsing and validation is trickier. We must simultaneously handle different formats for different users, so any validation or parsing has to take into account the user's loc

Re: JSF vs Struts

2005-04-19 Thread Hubert Rabago
Take a look at http://www.jsfcentral.com/reading/index.html . There are several links there to articles or blogs that attempt to help you compare the two. Hubert On 4/19/05, Murali <[EMAIL PROTECTED]> wrote: > > Hi, > > I was trying to find which would be best choice for a website development

showing data

2005-04-19 Thread Rafael Taboada
Hi folks. I have a problem. i don't really know how to do that.. i have a jsp it shows a list of customers. but for each costumer there is a link to another jsp called detail. my problem is i don't know how to connect both jsp. i populate the list jsp with my actionform. that's ok. but if the use

Re: showing data

2005-04-19 Thread Michael J.
On 4/19/05, Rafael Taboada <[EMAIL PROTECTED]> wrote: > Hi folks. I have a problem. i don't really know how to do that.. > > i have a jsp it shows a list of customers. but for each costumer there > is a link to another jsp called detail. > > my problem is i don't know how to connect both jsp. i p

Inheritance using multiple validator.xml

2005-04-19 Thread Narayan, Anand
Here's what I am trying to do: I need to use a "default" validator.xml file to configure validations for fields on forms. I also want to be able to specify another "custom" validator xml file, say "validator-custom.xml" which contain changes to the validations of some fields. When I do this using

Re: JSF vs Struts

2005-04-19 Thread Frank W. Zammetti
Well, that's just about the most dangerous question to ask around these parts lately :) But in the end, the answer is what it should be for any vs. choice... examine them both, play with them, understand them, and then make the decision that fits your needs the best. Neither is going away any

Re: JSF vs Struts

2005-04-19 Thread Michael J.
On 4/19/05, Murali <[EMAIL PROTECTED]> wrote: > > Hi, > > I was trying to find which would be best choice for a website development. > JSF or Struts. JSF looks similar to Struts. does any one know any articles on > which framework should go for. If you don't have experience with either, than o

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Martin Cooper
Perhaps I'm missing the simplicity of your proposal. Let's take the example from your original RFC. Here it is, for convenience: In the JSP page: In the Ajax config file: button1 onClick queryString buttonValue=button1,textValue=text1 http://www.om

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Martin Cooper
"Frank W. Zammetti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > On Tue, April 19, 2005 2:47 am, Craig McClanahan said: > > This is exactly the area I've been having trouble with this proposal > > as well ... tell me again why you can't use Ajax techniques with the > > standard

Re: showing data

2005-04-19 Thread Rafael Taboada
yeap. i have that... But i want to know what i have to do in the detail jsp. I mean, how can i populate in the detail jsp using that id. i have an lstCustomer object in my actionform. when i'm in detail jsp, is it still populated? or it depends on the scope?. thanks -- Rafael Taboada ---

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Frank W. Zammetti
Martin Cooper wrote: Perhaps I'm missing the simplicity of your proposal. Let's take the example from your original RFC. Here it is, for convenience: Now let's look at the equivalent if I use the existing Struts HTML tags and Dojo. In the JSP page: Elsewhere in the JSP page, or maybe somewhere

Re: showing data

2005-04-19 Thread Michael J.
On 4/19/05, Rafael Taboada <[EMAIL PROTECTED]> wrote: > yeap. i have that... But i want to know what i have to do in the > detail jsp. I mean, how can i populate in the detail jsp using that > id. > > i have an lstCustomer object in my actionform. when i'm in detail jsp, > is it still populated? o

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Frank W. Zammetti
Martin Cooper wrote: * Provide a client side JavaScript library that does the grunt work of making the back-end XmlHttpRequest call, and updating the corresponding portion of your DOM. Martin likes DOJO for this; there are also a bunch of other libraries that do the same sort of thing that sho

Dispatch Action "Whitespace In Label Text" and Missing Parameters

2005-04-19 Thread Nick Heudecker
I've run into a strange problem with DispatchAction occasionally failing to find the parameter used to lookup the method to process the request. I get the following familiar error: "Request[myAction] does not contain handler parameter named 'method'. This may be caused by whitespace in the label

Re: Dispatch Action "Whitespace In Label Text" and Missing Parameters

2005-04-19 Thread Michael J.
1) You checked that button value does not contain whitespaces? By the way, cannot action strip whitespaces itself? It even generates error message about this! Stupido. A method cannot contain spaces anyway. 2) Get HTTP sniffer or use Firefox and Live HTTP Header plugin. Oh, you say it is IE-specif

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Martin Cooper
"Frank W. Zammetti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Martin Cooper wrote: > > Perhaps I'm missing the simplicity of your proposal. Let's take the example > > from your original RFC. Here it is, for convenience: > > > > > > > Now let's look at the equivalent if I use t

RE: Using checkbox value in Validator validwhen test

2005-04-19 Thread Dornback, Ken
Yes, it is cleared in the reset method of the session-scoped bean. I'm pretty methodical about that. Is my syntax ok? Ken -Original Message- From: Michael J. [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 19, 2005 4:33 PM To: Struts Users Mailing List Subject: Re: Using checkbox value i

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Martin Cooper
"Frank W. Zammetti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Martin Cooper wrote: > >>>* Provide a client side JavaScript library that does the grunt work > >>> of making the back-end XmlHttpRequest call, and updating the > >>> corresponding portion of your DOM. Martin like

  1   2   >