Re: help to changer a code to Struts

2004-11-19 Thread Peng Tuck
What problems are you facing Luis ? Luis Antonio Martinez Cuevas wrote: hi can some one help me to change this code to Struts pelase :) <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" pr

Re: JerichoFaces ?

2004-11-19 Thread Ted Husted
For the sake of clarity, I'm crossposting this one message, but otherwise only respond to this thread on the dev list. People interested in this sort of thing should subscribe to the dev list. (Please, please, do.) On Thu, 18 Nov 2004 11:52:07 -0800, Dakota Jack wrote: > My discussion of Struts

Validator PlugIn and PDAs

2004-11-19 Thread Julian
Hi all, I am sorry if this has been answered before, but the search functionality on the mailing list is down. So here it goes: Does the validator plugin have support for handheld browsers such as PocketPC or Palm? AFAIK, pocketPC only supports JScript so this may be a problem since all the fil

RE: JerichoFaces ?

2004-11-19 Thread Chappell, Simon P
I've been quiet on this thread until now, but perhaps it's time to chime in. First off, I have great respect for Craig and his opinions, and I think that it's obvious that Jack also has that respect. Secondly, I have greatly appreciated this discussion taking place on the user list rather than

[OT] Personal Firewall

2004-11-19 Thread Paul Summers
I know this is totally off-topic but I wanted to ask people who would probably know. I am looking for an open-source personal firewall for Windows 2000. Please do not tell me not to use Win 2K, I realize there are much more secure OS's out there but this is what I'm going to run for the time being.

noise: document was recived? wtf?

2004-11-19 Thread Vic
noise: document was recived? wtf? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

help to changer a code to Struts

2004-11-19 Thread John Vincent
Return Receipt Your help to changer a code to Struts document :

examples of struts 1.2

2004-11-19 Thread John Vincent
Return Receipt Your examples of struts 1.2 document :

help to changer a code to Struts

2004-11-19 Thread DGraham
Return Receipt Your help to changer a code to Struts document:

hemlp with tags

2004-11-19 Thread William T Hansley
Return Receipt Your hemlp with tags document:

examples of struts 1.2

2004-11-19 Thread William T Hansley
Return Receipt Your examples of struts 1.2 document:

examples of struts 1.2

2004-11-19 Thread Luis Antonio Martinez Cuevas
hi, some one has or know where to get examples of struts 1.2?

hemlp with tags

2004-11-19 Thread Luis Antonio Martinez Cuevas
hi, can i get a value from a select tag?

help to changer a code to Struts

2004-11-19 Thread Luis Antonio Martinez Cuevas
hi can some one help me to change this code to Struts pelase :) <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-template.tld" prefi

Re: OT Remainder Operation

2004-11-19 Thread Jeff Beal
You can't use the == operator with doubles reliably. The values are often imprecise. Due to rounding, you may be comparing 0.001 to 0, and those are not equal. Change if (res == 0) to if (Math.abs(res) <= 0.1) You can probably just declare res as an int, also: int res

Re: Using commons HttpUtils to call an Action, but it doesn't work.

2004-11-19 Thread Morgan
Guillaume Cottenceau bluewin.ch> writes: > > Morgan writes: > ... > This is not a thread-safe HttpClient. Any chance the code is > called by several threads at the same time or something? > It's possible that many people are hitting this Action at the same time, but if even one gets through

Remainder Operation

2004-11-19 Thread Phani
Sorry this is not a struts question..more anlytical.. I have this simple program where I want to check whether the division operation returns a whole number or not...For this purpose I am actually checking whether the remainder is zero..which fails for a particular case.. Here is my program below

Re: Problem with Tomcat 5.5

2004-11-19 Thread Peter Neu
Hello Bryan, this is what I did in the first place. Any chance that my changes didn't have any effect? Peter. unless you download the compat package it will not run under jre less than 1.5/5 --b On Thu, 18 Nov 2004 09:59:01 -0600, Vic <[EMAIL PROTECTED]> wrote: 5.5 needs JDK1.5 Afaik. .V Peter

Re: URL Customization

2004-11-19 Thread Peter Neu
No, couldn't find it there. But I suppose if I put my application.xml there it will serve the same purpose, right ? it's in conf/Catalina/localhost/ROOT.xml but this is probably OT by now :-) -Original Message- From: Peter Neu [mailto:[EMAIL PROTECTED] Sent: 19 November 2004 09:47 To:

RE: Indexed properties

2004-11-19 Thread David McReynolds
Why is struts generating a days[10] when there are only 6 days in my collection? Better still, why is the days index tied to the employeeAppointments index? <%@ page language="java"%> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bea

RE: Conditionally disable form input.

2004-11-19 Thread McDonnell, Colm (MLIM)
I'm sure Paul is correct here however just in case you are content to submit the form when the checkbox is checked . you could then conditionalise the text input field by wrapping it in c:if or logic:equals tags in which you test the value of some form bean property to determine whether to e

Re: Performance issues

2004-11-19 Thread Joe Germuska
At 10:14 AM -0500 11/19/04, [EMAIL PROTECTED] wrote: I've tried this but take javascript errors saying that the static function is undefined. Apparently, the staticJavascript.jsp is not being compiled/seen. All my jsp's are in /WEB-INF/jsp/*. I've tried using every combination I can think of on t

Re: Performance issues

2004-11-19 Thread Matt Bathje
[EMAIL PROTECTED] wrote: I've tried this but take javascript errors saying that the static function is undefined. Apparently, the staticJavascript.jsp is not being compiled/seen. All my jsp's are in /WEB-INF/jsp/*. I've tried using every combination I can think of on the src= of the script tag b

RE: Refreshing a page

2004-11-19 Thread Donie Kelly
Thanks Colm -Original Message- From: McDonnell, Colm (MLIM) [mailto:[EMAIL PROTECTED] Sent: 19 November 2004 16:38 To: Struts Users Mailing List Subject: RE: Refreshing a page So you want this "displayHelp" round trip to be available in all of your action classes with the behaviour in ea

RE: Refreshing a page

2004-11-19 Thread McDonnell, Colm (MLIM)
So you want this "displayHelp" round trip to be available in all of your action classes with the behaviour in each case being identical, namely set a flag and return to a named forward. If this accurately describes your scenario then creating a BaseAction would certainly help. The Struts wiki has a

Re: Performance issues

2004-11-19 Thread bmf5
I've tried this but take javascript errors saying that the static function is undefined. Apparently, the staticJavascript.jsp is not being compiled/seen. All my jsp's are in /WEB-INF/jsp/*. I've tried using every combination I can think of on the src= of the script tag but can't get a resolu

RE: Conditionally disable form input.

2004-11-19 Thread Paul McCulloch
What you are suggesting will only work if the form is submitted after the checkbox is checked - probably not what you or the user would expect to happen. I'd try and use JavaScript to achieve the same functionality on the client - the relevant event on the checkbox field could modify the disabled

Re: [ANNOUNCE] Struts xmoon 0.6.1

2004-11-19 Thread Lixin Chu
Hi, that's something interesting. would like to know the design intent a bit more: beside supporting scripting, what are the other use cases ? dynamically change the functionality of an action class at run time ? li xin On Fri, 19 Nov 2004 12:04:46 +0100, Mario Neè <[EMAIL PROTECTED]> wrote: >

Conditionally disable form input.

2004-11-19 Thread Daffin, Miles (Company IT)
Hi All, I want to disable a text input if a certain checkbox input has been checked (meaning, in the following example, that the name input need not be filled in). My jsp code looks like this: I an using a DynaActionForm as my form bean. Ideally I suppose I would use an expression like: for

RE: Refreshing a page

2004-11-19 Thread Donie Kelly
Hi Colm Yes, this is what I was thinking too but I was hoping add this functionality to every page in our app. Doing this would involve modifing each and every action class. Can this be done any other way? Coudl I subclass the Action class and use that instead of Action in all my forms? Thanks

Re: Can't get modules to work in struts

2004-11-19 Thread Bill Siggelkow
marc, You might want to read http://struts.apache.org/userGuide/configuration.html#module_config-switching marc wrote: Sorry for the late reply, but got sick. But yes that is just what I what to do. And just to get the module admin to work. Can't see admin module at all. I only need to put some

RE: Refreshing a page

2004-11-19 Thread McDonnell, Colm (MLIM)
Your button should submit the form, thereby sending you to its associated action class. In the action class set your flag, in the session (as per your suggestion) or preferably in the form bean, then forward back to where you came from. -Original Message- From: Donie Kelly [mailto:[EMAIL

Refreshing a page

2004-11-19 Thread Donie Kelly
Hi all I'm a struts newbie and I want to add a graphic button on a page (which is done) which, when pressed, will refresh the page and display some help for various items. I know how to add the help uisng logic tags etc but what I need to figure out (I already tried searching the archives)

Re: Can't get modules to work in struts

2004-11-19 Thread Bill Siggelkow
Mark, you can't just forward to a "module"; you have to forward to a specific action(URL) within that module. marc wrote: Sorry for the late reply, but got sick. But yes that is just what I what to do. And just to get the module admin to work. Can't see admin module at all. I only need to put s

Re: Indexed properties

2004-11-19 Thread Niall Pemberton
Anyone can update the wiki. Sounds like it would be good if you documented the grief you had on that page so that others could benefit. Niall - Original Message - From: "Slattery, Tim - BLS" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Friday, November

re: action to action with form

2004-11-19 Thread Raffe Paffe
You shouldn't be calling an Action from an Action. Action chaining is not recommended and is considered poor practice. Action classes are an implementation of Command pattern and as such should delegate to reusable business components. I would refactor your business logic embedded in Action classes

Re: Problem with Tomcat 5.5

2004-11-19 Thread bryan
unless you download the compat package it will not run under jre less than 1.5/5 --b On Thu, 18 Nov 2004 09:59:01 -0600, Vic <[EMAIL PROTECTED]> wrote: > 5.5 needs JDK1.5 Afaik. > .V > > > > Peter Neu wrote: > > Hello everybody, > > > > I just switched to Tomcat 5.5 while still using the old

RE: no web application configured

2004-11-19 Thread Robert Taylor
Need a little more information here... Is this a Struts question? Is this a general web application question? Is this a Tomcat question? Is this an application server question? robert > -Original Message- > From: Nishant [mailto:[EMAIL PROTECTED] > Sent: Friday, November 19, 2004 7:33 AM

RE: Indexed properties

2004-11-19 Thread Slattery, Tim - BLS
> Could not get the wiki's example of > > public class SkillActionForm extends ActionForm { > protected List skills = new ArrayList(); > > public List getSkills() { > return skills; > } > > public void setSkills(List skills) { > this.skills = skills; >

RE: Newbie With Question

2004-11-19 Thread Scott Purcell
Hello David, You are a very observant and helpful man. Your analysis of the problem was exact and consice. I changed the DTD for the struts-config.xml and updated the method call, and all is running as expected. I was circumscribed by a lack of experience with Struts, but have now learned a la

RE: Indexed properties

2004-11-19 Thread David McReynolds
Could not get the wiki's example of public class SkillActionForm extends ActionForm { protected List skills = new ArrayList(); public List getSkills() { return skills; } public void setSkills(List skills) { this.skills = skills; } public S

Re: Can't get modules to work in struts

2004-11-19 Thread marc
Sorry for the late reply, but got sick. But yes that is just what I what to do. And just to get the module admin to work. Can't see admin module at all. I only need to put something in the default modul right?? And what?? Bill Siggelkow wrote: Well, what exactly are you trying to do? I assumed yo

RE: action to action with form

2004-11-19 Thread Robert Taylor
You shouldn't be calling an Action from an Action. Action chaining is not recommended and is considered poor practice. Action classes are an implementation of Command pattern and as such should delegate to reusable business components. I would refactor your business logic embedded in Action class

no web application configured

2004-11-19 Thread Nishant
hi to all, i am getting an errors as " There is no web application configured to service your request" while acessing my index page... with this error index page is also coming... thus i am confused from where this error is coming .. Regards Nishant Patil Software Engineer Cybage Softwares Pvt

action to action with form

2004-11-19 Thread Raffe Paffe
Hi I have a system with some action classes that i need to call from my action class. I do not have the source code of the action classes that needs to be called and I can not change them but I know how the actionform is suppose to look and I want to this serverside. So, I have actioclass A and

[ANNOUNCE] Struts xmoon 0.6.1

2004-11-19 Thread Mario Neè
[ANNOUNCE] Struts xmoon 0.6.1 http://www.xmoon.org Download Now: http://www.xmoon.org/download.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: URL Customization

2004-11-19 Thread Simon Matic Langford
it's in conf/Catalina/localhost/ROOT.xml but this is probably OT by now :-) > -Original Message- > From: Peter Neu [mailto:[EMAIL PROTECTED] > Sent: 19 November 2004 09:47 > To: Struts Users Mailing List > Subject: Re: URL Customization > > > Do you know where to find this entry in T

Re: URL Customization

2004-11-19 Thread Peter Neu
Do you know where to find this entry in Tomcat 5.x ? Could not find it in server.xml. Just looked for it but could no find it... Peter. Richard schrieb: Thanks to all. I think I can go with just transfering my webapp to the ROOT folder. I have asked on the Tomcat User Mailing list just to confi

Re: URL Customization

2004-11-19 Thread Richard
Thanks to all. I think I can go with just transfering my webapp to the ROOT folder. I have asked on the Tomcat User Mailing list just to confirm it. Thanks again. On Fri, 19 Nov 2004 09:25:07 -, Simon Matic Langford <[EMAIL PROTECTED]> wrote: > AFAIK the only way is to change you web contai

RE: URL Customization

2004-11-19 Thread Simon Matic Langford
AFAIK the only way is to change you web container config to ensure your webapp is in the root context, ie in Tomcat 4.1: in the server.xml if you point docBase to the directory your war unpacked to, then it should work fine. I don't know how it works for other containers... simon >

Re: Help with message resource on Struts module

2004-11-19 Thread Radu Badita
Actually you are right - it is a typo, but only in the email (in the real files I have other names, and there are spelled right). At 21:53 18.11.2004, you wrote: Maybe this is just a typo but shouldn't you be using 'bundle="mymodulekey"' instead of 'bundle="mymodule"'? Radu Badita wrote: Hello