Re: Loosely coupled pages and actions

2006-05-04 Thread Rahul Krishnarao Patil
Hi all , I want to Configuring datasource with tomcat for oracle . But i am not able to find any proper document for this configuration. Can anybody help me out . I am using Tomcat 5.5.16 and oracle 9i. Thanks and Regards, Rahul Patil

Re: [shale][clay] commandLink in dataTable not working

2006-05-04 Thread Ryan
I'm experiencing the same behavior, and I've built all my views in Clay as well. Here's an interesting behavior that I see in my Controller (extending the Shale Controller). I have Page A that displays a data table with image links throughout that link to an action, let's call it "edit". This is

Waiting page Conflicts with Validator!

2006-05-04 Thread starki78
Hi I introduced a waiting page as discussed in the days before (http://wiki.apache.org/struts/StrutsPleaseWait?highlight=%28wait%29). It works excellent but not with the use of validator! Can someone tell me how to prevent this? I'm aware that this is a quite tricky problem! It only arises with

Re: What To Do If Users Use the Browser "Back" Button?

2006-05-04 Thread Rob Manthey
Frank W. Zammetti wrote: > Rob, might I suggest the Wiki? That's kind of the point of its > existence :) good call. i'm off for the weekend now, so no more "fun" for me today ;) back for more on monday. cheers Rob - To unsub

Re: What To Do If Users Use the Browser "Back" Button?

2006-05-04 Thread Frank W. Zammetti
Rob, might I suggest the Wiki? That's kind of the point of its existence :) Frank Rob Manthey wrote: Caroline Jen wrote: ...etc... But, we are getting in trouble if users use the browser "Back" button. After several clicks on the browser "Back" button, we get "system errors". What to do to

Help me in configin easystruts plugin in Eclipse 3.1

2006-05-04 Thread Anil Kumar Pippalapalli
hi all, hope you are doing fine. i am unable to configure easystruts plugin in eclipse 3.1, Plz help me out. bye, anil. - Yahoo! India Answers: Share what you know. Learn something new. Click here

Re: Are layers 'that evil'?

2006-05-04 Thread Dakota Jack
Do you have a single example of this so that we can see you are at least talking about something in particular? On 5/3/06, Rob Manthey <[EMAIL PROTECTED]> wrote: I found this recent par on a local JUG resonated for me and had some theme parallels to Rick's current thread ... how much do we over

Re: Two mysteries: ;jsessionid and bad img tag

2006-05-04 Thread Michael Jouravlev
On 5/4/06, Bryce Nesbitt <[EMAIL PROTECTED]> wrote: I've just been gifted with a struts application to maintain. Things are pretty good, but here are two little mysteries I need a little help on. The struts jsp looks like: And the resulting HTML is like this: Why the ";" in the jessionid,

Re: Two mysteries: ;jsessionid and bad img tag

2006-05-04 Thread Craig McClanahan
On 5/4/06, Bryce Nesbitt <[EMAIL PROTECTED]> wrote: I've just been gifted with a struts application to maintain. Things are pretty good, but here are two little mysteries I need a little help on. The struts jsp looks like: And the resulting HTML is like this: Why the ";" in the jessionid,

Re: What To Do If Users Use the Browser "Back" Button?

2006-05-04 Thread Michael Jouravlev
On 5/4/06, Rob Manthey <[EMAIL PROTECTED]> wrote: Caroline Jen wrote: >...etc... But, we are getting in trouble if users use the >browser "Back" button. After several clicks on the >browser "Back" button, we get "system errors". > >What to do to handle the situation? >...etc... > This must be o

Two mysteries: ;jsessionid and bad img tag

2006-05-04 Thread Bryce Nesbitt
I've just been gifted with a struts application to maintain. Things are pretty good, but here are two little mysteries I need a little help on. The struts jsp looks like: And the resulting HTML is like this: Why the ";" in the jessionid, instead of &? And why is there no "/" at the end of

Re: What To Do If Users Use the Browser "Back" Button?

2006-05-04 Thread Rob Manthey
Caroline Jen wrote: >... in trouble if users use the >browser "Back" button. After several clicks on the >browser "Back" button, we get "system errors". > >What to do to handle the situation? > > have a look through some of these ... http://marc.theaimsgroup.com/?l=struts-user&w=2&r=1&s=back+bu

Re: What To Do If Users Use the Browser "Back" Button?

2006-05-04 Thread Rob Manthey
Caroline Jen wrote: >...etc... But, we are getting in trouble if users use the >browser "Back" button. After several clicks on the >browser "Back" button, we get "system errors". > >What to do to handle the situation? >...etc... > This must be one of the most frequently asked questions on this

What To Do If Users Use the Browser "Back" Button?

2006-05-04 Thread Caroline Jen
There is a J2EE application I am working on. The application uses the Struts framework. Things are working fine. If users use the "Close" button that is provided by us (developers), the current web page closes and the previous web page is displayed orderly and properly. But, we are getting in t

Re: SAF 1.3.x, chain naming and arbitrary chains

2006-05-04 Thread Joe Germuska
Default command for ControllerConfig seem to be hardcoded - Now the interesting part: these strings are never referenced anywhere. The command is initialized in ControllerConfig class: protected String command = "servlet-standard"; It

Re: How to avoid lots of "if else" in Action class.

2006-05-04 Thread Michael Jouravlev
On 5/4/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: No, sorry, never did get around to reading it... I meant to, but the book is all I've had time for since pretty much January. Yeah, yeah, yeah ;-) I actually really can't wait to be done with it, at least the initial writing. Will it b

Re: SAF 1.3.x, chain naming and arbitrary chains

2006-05-04 Thread Michael Jouravlev
On 5/4/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: On 5/4/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > How exactly can I set the chain for a particular request? Stupid me, "catalog" and "command" attributes of "action", of course. Still, this choice is made declaratively on a mapping

Re: How to avoid lots of "if else" in Action class.

2006-05-04 Thread Frank W. Zammetti
No, sorry, never did get around to reading it... I meant to, but the book is all I've had time for since pretty much January. I actually really can't wait to be done with it, at least the initial writing. There's so many things I'd like to be working on right now! The current project, while b

Re: SAF 1.3.x, chain naming and arbitrary chains

2006-05-04 Thread Michael Jouravlev
On 5/4/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: How exactly can I set the chain for a particular request? Stupid me, "catalog" and "command" attributes of "action", of course. Still, this choice is made declaratively on a mapping level. What if I wanted to make it programmatically? ---

SAF 1.3.x, chain naming and arbitrary chains

2006-05-04 Thread Michael Jouravlev
chain-config.xml is not referenced in config files -- I look at the content of struts-cookbook-1.3.2.war right now. I see chain-config.xml file present, but it is not referenced anywhere in the config files. For ease-of-learning purposes I suggest t

How to manually force the use of ApplicationResources.properties?

2006-05-04 Thread Inandjo Taurel
hi, I'm using struts 1.2.8 along with JSPs in an application. As at now for the internationalization, I'm just using the normal mechanism just by specifying the path to the resources file in my struts config file, and getting . Now, I need to be able to switch from one file to another just by

Re: How to avoid lots of "if else" in Action class.

2006-05-04 Thread Michael Jouravlev
My article is out: http://today.java.net/pub/a/today/2006/05/04/almost-portlets.html I bet you haven't read the draft that I've sent you :-) How's your book going? This [EMAIL PROTECTED] article took me almost a month. I updated it 15 times or so. The book... oh, this should be really tough :)

Re: How to avoid lots of "if else" in Action class.

2006-05-04 Thread Frank W. Zammetti
On Thu, May 4, 2006 3:56 pm, Michael Jouravlev said: > I see the value of a dispatch action primarily as input (post-, > submit, accept) action, not as a render (pre-, setup) action. Your > /showAccont.do mapping is a render action, therefore it will likely > not be covered by dispatch action. > >

Re: How to avoid lots of "if else" in Action class.

2006-05-04 Thread Michael Jouravlev
On 5/4/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: On Thu, May 4, 2006 1:59 pm, Michael Jouravlev said: > Code-wise: > > one action class per one logical web resource seems more natural to > me. Say, Employee. I would have one EmployeeForm, one EmployeeAction > and several JSP pages for diff

Validator stops when an error is encountered

2006-05-04 Thread Mulligan, Scott H
The validate javascript function that gets generated by the validator stops processing once one of the validation routines finds an error. Is there a way to override the "&&" with "&" so that I can get all errors at once? If so, where would I do this? function validateSignIn(form) { i

Re: Change Input parameter at run time part 2...

2006-05-04 Thread Michael Jouravlev
Oh, and by the way, I suggest that instead of hacking "input" property you abandon it altogether as well as autovalidation. If you turn autovalidation off, your action.execute() method will always be called, so you can call actionform.validate() manually and then make a decision where to forward.

Re: Change Input parameter at run time part 2...

2006-05-04 Thread Michael Jouravlev
It is not possible (at least legally). You should create a new ActionMapping object. On 5/4/06, Troy Bull <[EMAIL PROTECTED]> wrote: I found mapping.setInput but i get an error when i try to change it telling me java.lang.IllegalStateException: Configuration is frozen How do u temporarily unf

Re: Securing DispatchActions

2006-05-04 Thread Frank W. Zammetti
On Thu, May 4, 2006 2:37 pm, Dave Newton said: > Frank W. Zammetti wrote: >> What if you simply are not allowed to include security >> mechanisms in your application? (configuring groups isn't considered "in >> the application"). > > Not allowed? Don't tell 'em ;) I've done plenty of that :) Some

Re: Change Input parameter at run time part 2...

2006-05-04 Thread Troy Bull
I found mapping.setInput but i get an error when i try to change it telling me java.lang.IllegalStateException: Configuration is frozen How do u temporarily unfreeze my configuration so I can change my input ?? thanks troy Troy Bull said the following on 5/4/2006 1:37 PM: Greetings I have

Re: OT: Bespoke

2006-05-04 Thread Adam Hardy
Vinny on 04/05/06 19:31, wrote: bespoke. Wow. Please setlle this bet among our dev team that you _must_ be Brittish. On 5/4/06, Adam Hardy <[EMAIL PROTECTED]> wrote: - you would have a bespoke exception superclass Yes I am British! I get all my bespoke exceptions made on Saville Row, a

Re: Securing DispatchActions

2006-05-04 Thread Dave Newton
Frank W. Zammetti wrote: > What if you simply are not allowed to include security > mechanisms in your application? (configuring groups isn't considered "in > the application"). Not allowed? Don't tell 'em ;) > Well, I can kind of answer my own question... of > course we *are* allowed to see wh

Change Input parameter at run time

2006-05-04 Thread Troy Bull
Greetings I have an application i have inherited. There is a situation where 2 jsp's submit to the same action with the same form bean. In the validation function inside the form bean if there is one type of error I want to set the input parameter to /jsp1.jsp and put an ActionError on the

OT: Bespoke

2006-05-04 Thread Vinny
bespoke. Wow. Please setlle this bet among our dev team that you _must_ be Brittish. On 5/4/06, Adam Hardy <[EMAIL PROTECTED]> wrote: - you would have a bespoke exception superclass -- Ghetto Java: http://www.ghettojava.com -

Re: Conditional validation

2006-05-04 Thread Adam Hardy
Dave Newton on 04/05/06 19:13, wrote: Adam Hardy wrote: In the last couple of days someone said that they separated the two flows using GET and POST - or at least I thought so. It sounded interesting but on looking at the struts-config DTD, there seems no way to do this. I can't find the threa

[OT] Re: How long does it take the message to appear on the list.

2006-05-04 Thread Dave Newton
Vikas Phonsa wrote: > How long does it take the message to appear on the list? > Depends. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How long does it take the message to appear on the list.

2006-05-04 Thread Craig McClanahan
On 5/4/06, Vikas Phonsa <[EMAIL PROTECTED]> wrote: Hi Everybody, How long does it take the message to appear on the list? I posted a message about 2 hrs ago but haven't seen it yet on the list. One possible explanation for this behavior would be if you posted the message from an email addre

Re: Securing DispatchActions (was: How to avoid lots of "if else" in Action class.)

2006-05-04 Thread Frank W. Zammetti
Didn't want to hijack a thread, so... On Thu, May 4, 2006 2:21 pm, Dave Newton said: > Frank W. Zammetti wrote: >> I.e., you want /showAccount.do accessible to the AccountManager and >> Customer roles, but you only want /updateAccount.do accessible to the >> AccountManager role? As I understand i

Re: Make base Action class a dispatch action

2006-05-04 Thread Dave Newton
Michael Jouravlev wrote: > * Stick dispatching features in base Action, thus making all actions > to be dispatch actions. > > Minor drawback: > > * only one dispatching behavior can be chosen. > > Thoughts? Objections? Suggestions? Works for me, with the following commentary (some of which may be

indexed property validation

2006-05-04 Thread Carl Smith
I have an indexed property which is a tipical list of textboxes, I have a requirement to validate that the user need to at least enter values into one text box. How can you configure this using Struts "required" validator? Thanks in advance.

[OT] RE: How long does it take the message to appear on the list.

2006-05-04 Thread DGraham
H...Probably best handled by your local BOFH. But then, he'll probably just blame increase solar flare activity. =) -Dennis "Vikas Phonsa" <[EMAIL PROTECTED]> 05/04/2006 02:14 PM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" cc Subject RE: Ho

Re: How to avoid lots of "if else" in Action class.

2006-05-04 Thread Dave Newton
Frank W. Zammetti wrote: > I.e., you want /showAccount.do accessible to the AccountManager and Customer > roles, but you only want /updateAccount.do accessible to the AccountManager > role? As I understand it, you would have something like /accountResource.do, > and dispatch to a particular met

Re: How to create a Waiting Page for long requests?

2006-05-04 Thread Jakub Milkiewicz
NP 2006/5/4, Ed Griebel <[EMAIL PROTECTED]>: Great link, thanks!! -ed On 5/3/06, Jakub Milkiewicz <[EMAIL PROTECTED]> wrote: > Hi > I think JMS is only valid , i.e. following specification solution. > Take a look at: > http://www.javaranch.com/newsletter/200403/AsynchronousProcessingFromServl

RE: How long does it take the message to appear on the list.

2006-05-04 Thread Vikas Phonsa
Hi Everybody, How long does it take the message to appear on the list? I posted a message about 2 hrs ago but haven't seen it yet on the list. Thanks Vikas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Conditional validation

2006-05-04 Thread Dave Newton
Adam Hardy wrote: > In the last couple of days someone said that they separated the two > flows using GET and POST - or at least I thought so. > > It sounded interesting but on looking at the struts-config DTD, there > seems no way to do this. > > I can't find the thread in the archive now. Did I m

Re: Migration Path

2006-05-04 Thread Don Brown
On 5/4/06, Vinny <[EMAIL PROTECTED]> wrote: This is still a few months down the line, no? Our goal is to have some sort of Action 2 release by JavaOne, a couple weeks away. It might not be GA quality, but it should be at least beta for early adopters to test and start using. I'm aiming for a

Re: How to avoid lots of "if else" in Action class.

2006-05-04 Thread Frank W. Zammetti
On Thu, May 4, 2006 1:59 pm, Michael Jouravlev said: > Code-wise: > > one action class per one logical web resource seems more natural to > me. Say, Employee. I would have one EmployeeForm, one EmployeeAction > and several JSP pages for different modes. All compact and observable > with as little s

Re: How to avoid lots of "if else" in Action class.

2006-05-04 Thread Michael Jouravlev
Code-wise: one action class per one logical web resource seems more natural to me. Say, Employee. I would have one EmployeeForm, one EmployeeAction and several JSP pages for different modes. All compact and observable with as little stuff in config file as possible. But this is just a preference.

Re: Make base Action class a dispatch action

2006-05-04 Thread Don Brown
I like it, although you should probably bring this over to the dev list. :) Don On 5/4/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: What we has been brought from the stone ages: * Base Action class does not dispatch events * DispatchAction and its flavors do, but they do not allow a user t

Make base Action class a dispatch action

2006-05-04 Thread Michael Jouravlev
What we has been brought from the stone ages: * Base Action class does not dispatch events * DispatchAction and its flavors do, but they do not allow a user to derive an action class from some another user's base action What we got now in 1.2.9 and 1.3.1+ : * ActionDispatcher resolves the inher

highligt errors

2006-05-04 Thread Jakub Milkiewicz
Hi I would like to highlight - change style of, labels associated with an html input elements, i.e html:text or html:select. These tags have errorStyle attribute so changing style for a given input is not a big deal, but in addition i would like to change style of label which is situated next to i

Re: How to avoid lots of "if else" in Action class.

2006-05-04 Thread Frank W. Zammetti
And of course the simple option: separate action :) It's absolutely true that a Dispath-type action will get rid of all the if's, and that's good... but you will still be left with a potentially large Action that performs a number of different (hopefully at least related!) functions. Me, I still

Re: How to avoid lots of "if else" in Action class.

2006-05-04 Thread Joey Watson
Thanks Michael. I will study it. On 5/5/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: Dispatching action. Do not use old and crusty DispatchAction. See these links: http://wiki.apache.org/struts/EventActionDispatcher http://wiki.apache.org/struts/DataEntryForm Michael. On 5/4/06, Joey Wats

How to manually force the use of an ApplicationResources.properties??

2006-05-04 Thread Inandjo Taurel
hi, I'm using struts 1.2.8 along with JSPs in an application. As at now for the internationalization, I'm just using the normal mechanism just by specifying the path to the resources file in my struts config file, and getting . Now, I need to be able to switch from one file to another just by

Re: Conditional validation

2006-05-04 Thread Michael Jouravlev
On May 4, 2006, at 11:27 AM, Adam Hardy wrote: > In the last couple of days someone said that they separated the two > flows using GET and POST - or at least I thought so. > > It sounded interesting but on looking at the struts-config DTD, > there seems no way to do this. > > I can't find the thr

Re: Conditional validation

2006-05-04 Thread Jakub Milkiewicz
Hi Can you point it where i can find it Thanks 2006/5/4, James Mitchell <[EMAIL PROTECTED]>: The newest version of the Struts mailreader sample app shows a best practices approach to just what you describe. Take a look at that and see if you might be able to do the same. (Specifically, look at

Re: How to avoid lots of "if else" in Action class.

2006-05-04 Thread Jakub Milkiewicz
THe gold rule use interface to encapsulte behaviour 2006/5/4, Michael Jouravlev <[EMAIL PROTECTED]>: Dispatching action. Do not use old and crusty DispatchAction. See these links: http://wiki.apache.org/struts/EventActionDispatcher http://wiki.apache.org/struts/DataEntryForm Michael. On 5/4/

Re: How to avoid lots of "if else" in Action class.

2006-05-04 Thread Michael Jouravlev
Dispatching action. Do not use old and crusty DispatchAction. See these links: http://wiki.apache.org/struts/EventActionDispatcher http://wiki.apache.org/struts/DataEntryForm Michael. On 5/4/06, Joey Watson <[EMAIL PROTECTED]> wrote: hello everybody. When I was working a big project. I alwa

Re: Conditional validation

2006-05-04 Thread Adam Hardy
Could be easily overlooked, I agree - but is it even possible? I don't think it is possible to configure on the action mapping level. James Mitchell on 04/05/06 17:43, wrote: I don't think that would be the best solution (but that's just my 2c) -- I would opt for the declarative approach, with

How to avoid lots of "if else" in Action class.

2006-05-04 Thread Joey Watson
hello everybody. When I was working a big project. I always met this problem. coz the sometimes there are a lot of event need to be handled in a single jsp page. so programer need to use lots of "if - else" to deal with different event in Action.execute method. of cause. I think those codes is

Re: Migration Path

2006-05-04 Thread Vinny
This is still a few months down the line, no? If I use WW Actions in my struts 1.29 webapps and keep the the respective Views in their own corners, I shouldn't have to worry about a "Clash of Controllers" , right? On 5/4/06, Don Brown <[EMAIL PROTECTED]> wrote: Yes, if you pick up WebWork 2 to

Re: [shale][clay] commandLink in dataTable not working

2006-05-04 Thread Gary VanMatre
>From: "Ian.Priest" <[EMAIL PROTECTED]> > > > This is driving me mad - can anyone see why my command link isn't > working? > I have a table that lists customers and has an action link in each row > to view customer details. I build all my viws using clay. The clay > components are: > [snippe

Re: Migration Path

2006-05-04 Thread Don Brown
Yes, if you pick up WebWork 2 today, you will be much better prepared for Struts Action 2 in the future. Currently, we are working on getting a release out that is pretty much a renamed WebWork 2 with a few minor improvements, but if you are on the dev list, you'll see there is a lot more discuss

Re: Conditional validation

2006-05-04 Thread James Mitchell
I don't think that would be the best solution (but that's just my 2c) -- I would opt for the declarative approach, with wildcards for "verbosely declarative simplicity" -- now there's an oxymoron for ya :) -- James Mitchell On May 4, 2006, at 11:27 AM, Adam Hardy wrote: In the last coupl

Migration Path

2006-05-04 Thread Vinny
Hello, Since it seems pretty much settled that SAF2 == WW2 with different package names. I'm ready to get my head wet now with WW. I know the transition will be easier if I wait ... yadda yadda. I was told that one could actually start using WW inside my existing struts projects and incrementally

Re: How to use

2006-05-04 Thread Joey Watson
Thanks Kjersti. ur code works. but I am just thinking. is it a best way? coz it seems little bit hard to read. On 5/4/06, Kjersti Berg <[EMAIL PROTECTED]> wrote: Try making the entire onchange one scriptlet like this: Kjersti On 03/05/06, Joey Watson <[EMAIL PROTECTED]> wrote: > > u mean

FormBean issue

2006-05-04 Thread Vikas Phonsa
Hi Everybody, My form bean has a BigDecimal field called chargeFee with default value of 0 (new BigDecimal(0)). This field directly maps to an html text field on my web page. The web page looks something like this Client ID = Credit Amount= Charge Fee= Final Credit Amount= (Credit A

RE: ???en_GB. in errors

2006-05-04 Thread Mulligan, Scott H
If your web site needs to be multi-lingual you should place your message in the Resource bundle. If your message isn't predefined, you could set up a general error message in your resource bundle that takes an argument: "error.general={0}". Then you just create an ActionMessage using a key of "erro

Re: ???en_GB. in errors

2006-05-04 Thread Bart Busschots
Hi, You are supposed to pass in a key for an entry in application_resources.properties and you are instead passing in the message you want. Struts is not finding the 'key' you are looking for in the language you are using en_GB and so it is doing what it always does when it can't find a messa

Re: Conditional validation

2006-05-04 Thread Adam Hardy
In the last couple of days someone said that they separated the two flows using GET and POST - or at least I thought so. It sounded interesting but on looking at the struts-config DTD, there seems no way to do this. I can't find the thread in the archive now. Did I misread that previous post

RE: [shale][clay] commandLink in dataTable not working

2006-05-04 Thread Ian.Priest
No-one else got any ideas about this? Does anyone which classes get invoked on an action click - maybe I can debug a handler somewhere to try and see what's happening? -Original Message- From: Ian.Priest [mailto:[EMAIL PROTECTED] Sent: 04 May 2006 09:49 To: Struts Users Mailing List Su

Re: Conditional validation

2006-05-04 Thread James Mitchell
The newest version of the Struts mailreader sample app shows a best practices approach to just what you describe. Take a look at that and see if you might be able to do the same. (Specifically, look at the paths for Edit* and Save*) HTH -- James Mitchell On May 4, 2006, at 9:40 AM, Mu

Re: [OT] calling js function with list backed form value

2006-05-04 Thread vijay venkataraman
Shoukat, Basically you need to understand that you are using a scriptlet code - It is an expression <%= %>. See JSP expression. What ever is the output of it, it will just be written. If you get this point, then you will be able to pass the value. javascript:calculate('<%=((yourObject)benef

RE: [OT] calling js function with list backed form value

2006-05-04 Thread Shoukat, Faisal
Unfortuately as before it just prints out benefits[index.intValue()].value and not the actual value. -Original Message- From: siva sajja [mailto:[EMAIL PROTECTED] Sent: 04 May 2006 15:12 To: Struts Users Mailing List Subject: Re: [OT] calling js function with list backed form value Hi T

Re: [OT] calling js function with list backed form value

2006-05-04 Thread siva sajja
Hi Try replacing the code javascript:calculate('<%="benefits[" + index.intValue() + "].value"%>',...with javascript:calculate('<%= benefits[index.intValue()].value%>',... (removing the string concatenation) Hope this will help Cheers, Siva. On 5/4/06, Shoukat, Faisal <[EMAIL PROTE

RE: Are layers 'that evil'?

2006-05-04 Thread George.Dinwiddie
It seems to me that the problem Paul Reedman describes isn't that of building layers on top of frameworks, but of building frameworks on top of frameworks. I find that I often build an adapter layer around third-party subsystems to create an interface written specifically in the terms of my applic

RE: [OT] calling js function with list backed form value

2006-05-04 Thread Shoukat, Faisal
If I use the html; text property the only diff would be " size="20" onblur="<%=jsFunction%>"/> I still have the same problem. If I put this in then the value becomes [object] Thanks -Original Message- From: vijay venkataraman [mailto:[EMAIL PROTECTED] Sent: 04 May 2006 13:12 To: Struts

Conditional validation

2006-05-04 Thread Mulligan, Scott H
I just started playing with the commons-validator and came across a problem with how I have my Struts application structured. I am using dispatch actions that have "load" and "save" methods. In the "load" I retrieve the reference data needed to build the page and then forward to the jsp page. In th

Re: ???en_GB. in errors

2006-05-04 Thread Emmanouil Batsis
Shoukat, Faisal wrote: Hi, I throw a application exception back to the web layer and catch it in my action class. I then create a errors object with the exception as follows: errors.add("errors", new ActionMessage(e.getCause().getMessage())); You need to add false as a second param to th

???en_GB. in errors

2006-05-04 Thread Shoukat, Faisal
Hi, I throw a application exception back to the web layer and catch it in my action class. I then create a errors object with the exception as follows: errors.add("errors", new ActionMessage(e.getCause().getMessage())); saveErrors(request, errors); When it displays the error on the jsp it displ

Re: [OT] calling js function with list backed form value

2006-05-04 Thread siva sajja
Hi Here you are using a normal input tag from html which has no knowledge of any of the struts functionalities(mapped back properties). Use html:text instead Cheers, Siva. Shoukat, Faisal wrote: >Hi, > >I have a list backed action form and want to call a javascript function with >one of the p

RE: [OT] Re: Please help

2006-05-04 Thread Meenakshi Singh
I am not the one who would be asking for help without trying. Though I would be trying again for it, I asked for that thinking you know any of them. Thanks & Regards, MS. -Original Message- From: Roy, Ansuman [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 5:19 PM To: Struts Users

Re:[OT] calling js function with list backed form value

2006-05-04 Thread vijay venkataraman
In your JS function can you add 'this' as one of the parameter. Then in your js function you can get the value from the element. Like which implies the element on which the event occured. Note: I have never used and don't know much about it. My thoughts. Thanks, Vijay Venkataraman Shoukat

RE: [OT] Re: Please help

2006-05-04 Thread Roy, Ansuman
c'mon dont be lazy why dont you try googling yaar. -Original Message- From: Meenakshi Singh [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 5:16 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Re: Please help Would u suggest any? Thanks & Regards, MS -Original Message-

RE: [OT] Re: Please help

2006-05-04 Thread Meenakshi Singh
Would u suggest any? Thanks & Regards, MS -Original Message- From: Roy, Ansuman [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 5:08 PM To: Struts Users Mailing List Subject: RE: [OT] Re: Please help why not try microsoft pocket pc forums. as this is a microsoft product. you migh

RE: [OT] Re: Please help

2006-05-04 Thread Roy, Ansuman
why not try microsoft pocket pc forums. as this is a microsoft product. you might try Win CE forums also. As Win CE is used to design pocket pc os. regards, Roy -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 12:53 AM To: Struts Users Mailing Li

Re: [OT] Re: Please help

2006-05-04 Thread Emmanouil Batsis
Meenakshi Singh wrote: Would u suggest any other way to meet the requirements mentioned in my mail. This is fully covered by CSS. I'm almost sure mobile profile also supports the pseudo classes for links (visited hover etc). BTW this is irrelevant to struts ;-) hth, Manos --

calling js function with list backed form value

2006-05-04 Thread Shoukat, Faisal
Hi, I have a list backed action form and want to call a javascript function with one of the parameters to the function being a value from the list backed action form. My js function is as such: javascript:calculate('<%="benefits[" + index.intValue() + "].value"%>', '',

masking in dynavalidation

2006-05-04 Thread Shivani Sawhney
Hi, I have some issues using dynavalidations. 1. In masking we give a list of character we want to allow. But is there a way to give the list of characters that I don't want to allow, because are exceptions are less. E.g. : I want the user to not to enter single and double quotes in t

RE: [OT] Re: Please help

2006-05-04 Thread Meenakshi Singh
Would u suggest any other way to meet the requirements mentioned in my mail. Thanks & Regards, MS -Original Message- From: Gareth Evans [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 3:42 PM To: Struts Users Mailing List Subject: Re: [OT] Re: Please help From memory i think the

Re: [OT] Re: Please help

2006-05-04 Thread Gareth Evans
From memory i think the browser on the pocket pc 2003 is IE 4.01 and doesn't support DOM1. That means you can't use the "this" keyword. I don't think this is a javascript issue. Hope that help, Gareth Meenakshi Singh wrote: Thanks Dave, I'll take care for the subject line in future, however

RE: [OT] Re: Please help

2006-05-04 Thread Meenakshi Singh
Thanks Dave, I'll take care for the subject line in future, however, I am unable to find a group r list for windows CE & that is why I posted my query in this knowledgiable group, hoping that sometime might be able to trow some light. or atleast suggest me the right group or list for the same. Reg

Re: How to use

2006-05-04 Thread Kjersti Berg
Try making the entire onchange one scriptlet like this: Kjersti On 03/05/06, Joey Watson <[EMAIL PROTECTED]> wrote: u meant using tag or what? I tried to use the , but it doesn't work. I think the reason is. struts is not allow use java or tag for the paramater's value. like >>

Re: Are throwing RuntimeExceptions in a struts app 'that evil'?

2006-05-04 Thread Adam Hardy
Rick Reumann on 03/05/06 23:40, wrote: > Do I really want to have to wrap that with a try/catch or declare that > it throws WhateverException? What does that really gain me? I guess this is religion/style thing. I would never return SQLwhatever exceptions to business/web layer, I would convert

RE: [shale][clay] commandLink in dataTable not working

2006-05-04 Thread Ian.Priest
Good guess, but unfortunately I have put the form tags in - here's an html snippet that might give everyone more info... ...

Re: [shale][clay] commandLink in dataTable not working

2006-05-04 Thread Alberto Molpeceres
I don't know if this applies since I've never used Clay, but when you have this lind of problem in JSF, 95% of the times if because you forgot to declare the form. CommandLinks doesn't work if not inside of a form. al. On 5/4/06, Ian.Priest <[EMAIL PROTECTED]> wrote: This is driving me mad -

[shale][clay] commandLink in dataTable not working

2006-05-04 Thread Ian.Priest
This is driving me mad - can anyone see why my command link isn't working? I have a table that lists customers and has an action link in each row to view customer details. I build all my viws using clay. The clay components are:

Re: Loosely coupled pages and actions

2006-05-04 Thread Rob Manthey
Michael Jouravlev wrote: > On 5/3/06, Rob Manthey <[EMAIL PROTECTED]> wrote: > >> > If you care about where your action is called from, >> >> Only so much as to have a page for the server to send back to the user - >> ie: the page that they were on - not some other interim page. > > > So we have t

Re: request scope & paging

2006-05-04 Thread Rob Manthey
Dave Newton wrote: >Kyle W. Cartmell wrote: > > >>I understand the concept behind this, but does anyone actually use >>this in production code? Seems more trouble than it's worth since the >>user could simply start multiple sessions. >> >> > >How? Isn't that browser-dependent? > >And no, I w