[OT] Poolman problem

2002-02-14 Thread Mikkel Bruun
it seems like there's a bunch of people in here using poolman therefore this mail I oaccasionally get this exception when running my system: NullPointerException at java.util.Hashtable.containsKey(Hashtable.java:299) at com.codestudio.util.JDBCPool.returnPooledStatement(Unknown

Re: How do I leverage the struts approach within an EJB environment?

2002-02-14 Thread Jonathan Gibbons
You action classes perform function should do a jndi lookup of a session bean (stateless or not, I prefer stateless), passing a value object holding the relevant data. Do not be tempted to use the form bean, create a value object with no struts stuff in.The session bean should then do

Re: Extra Path Info Problem!!! HELP!!!

2002-02-14 Thread Ted Husted
Not supported, though I wish it were :o( http://www.mail-archive.com/struts-user@jakarta.apache.org/msg11714.html http://www.mail-archive.com/struts-user@jakarta.apache.org/msg11709.html Problem is, an Action URI is not a path, but a string identifier that is make to look like a path. So,

Re: [OT] Poolman problem

2002-02-14 Thread Ted Husted
You probably should bring this up to the Poolman team. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Mikkel Bruun wrote: it seems like there's a bunch of people in here using poolman

Re: Multiple struts-config.xml files?

2002-02-14 Thread Jin Bal
I asked a similar question re potential problems with multiple action servlet instances(no reply). I think the issues may have something to do with the actionservlet resources but I'm not sure and would be **very** interested in finding out as I'm using this approach using struts 1.0. Jin

Re: Why no indexed attribute defined in struts-html.tld?

2002-02-14 Thread geert
I'm having the same problem ... No one to help ??? On Wed, 13 Feb 2002 16:13:31 -0800 Liu, Xin [EMAIL PROTECTED] wrote: Hi, I downloaded Struts 1.01 binary file last month. From Struts on-line doc, I saw the new attribute indexed is added to some html tags. So I tried to use it with

Re: Confused over check boxes

2002-02-14 Thread Nick Thomson
Try thinking of it this way. For every JSP page 2 actions take place. The first action is used to populate the form bean and then control is passed to the JSP page. During this phase you can ignore reset and set your properties as you need them. The 2nd action is used to process the user's

RE: URGENT: Null Strings in Websphere

2002-02-14 Thread Andre Beskrowni
how are you storing your data? is it stored in a database using jdbc? and if so, are you constructing your insert statements as strings and directly appending the values onto the string rather than using bind values? i've seen this problem come up before, and it's always been the case that

Using Struts with a Database hangs?

2002-02-14 Thread Sam Cheung
Hi, I am using Struts 1.0 with Pointbase Database in Tomcat4.0.2. When I comment out the datasource in my struts-config.xml, I am able to start TomCat. When I add the following lines back in my struts-config.xml, Tomcat hangs during initialization (i.e. I can never see the line Starting

Re: Mapping in Struts-config.xml for a servlet

2002-02-14 Thread geert
To be able to call a com.somecompany.servlet.MySimpleServlet through the name SimpleServlet add the following to your web.xml servlet servlet-nameSimpleServlet/servlet-name servlet-classcom.somecompany.servlet.MySimpleServlet/servlet-class /servlet On Thu, 14 Feb 2002 08:54:38 +0530

SV: Using Struts with a Database hangs?

2002-02-14 Thread Mikkel Bruun
could be a bug in your jdbc driver??? try using another connection pool...poolman www.codestudio.com is easy to set up and use...see if you get the same errors using that... Mikkel -Oprindelig meddelelse- Fra: Sam Cheung [mailto:[EMAIL PROTECTED]] Sendt: 14. februar 2002 05:19 Til:

Re: Using Struts with a Database hangs?

2002-02-14 Thread Ted Husted
Can you try it with another database system, like Hypersonic or MySQL, just to help identify the exact problem. I'm guessing PointBase can't find something it needs, perhaps related to the crypto* packages. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. --

SV: [OT] Poolman problem

2002-02-14 Thread Mikkel Bruun
i know... i send them a mail yesterday...no response yet... just wanted to check as it seems there's alot of guys using poolman on the list... Mikkel -Oprindelig meddelelse- Fra: Ted Husted [mailto:[EMAIL PROTECTED]] Sendt: 14. februar 2002 10:13 Til: Struts Users Mailing List

Re: Mapping in Struts-config.xml for a servlet

2002-02-14 Thread Arun_Kumar_N
Hello, I have to make use of struts-config.xml. I should avoid using web.xml. Regards Arun [EMAIL PROTECTED] on 2002.02.14 14:53:29 Please respond to Struts Users Mailing List [EMAIL PROTECTED]

Re: Multiple struts-config.xml files?

2002-02-14 Thread Ted Husted
The Struts 1.0 ActionServlet stores a number of elements in Application scope. // Publish our internal collections as necessary getServletContext().setAttribute(Action.FORM_BEANS_KEY, formBeans); getServletContext().setAttribute(Action.FORWARDS_KEY, forwards);

Re: Mapping in Struts-config.xml for a servlet

2002-02-14 Thread geert
Why would you want to avoid the web.xml ? On Thu, 14 Feb 2002 14:57:32 +0530 [EMAIL PROTECTED] wrote: Hello, I have to make use of struts-config.xml. I should avoid using web.xml. Regards Arun [EMAIL PROTECTED] on 2002.02.14 14:53:29 Please respond to Struts Users

Re: Mapping in Struts-config.xml for a servlet

2002-02-14 Thread Arun_Kumar_N
Hello, From one action class i have to move to another Servlet,instead of moving to JSP page. Regards Arun -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Form bean - null

2002-02-14 Thread geert
you declare an action 'editStream' which you tell to use a form called 'MyForm' but afterwards you call an action called 'details'. Is the 'name=MyForm ' line in the declaration of 'details'action ?? On Thu, 14 Feb 2002 11:36:14 +0200 Konstantina Stamopoulou [EMAIL PROTECTED] wrote:

Re: Mapping in Struts-config.xml for a servlet

2002-02-14 Thread Ted Husted
Any URI will do. Struts doesn't handle the JSPs, another service does. You can forward to any URI in the application, regardless of what service or servlets handles it. [EMAIL PROTECTED] wrote: Hello, From one action class i have to move to another Servlet,instead of moving to JSP

Struts deploying on Weblogic SunOS 5.8

2002-02-14 Thread Ivan Siviero
i'm always trying to deploy my struts application on Weblogic 5.1sp9 SunOS 5.8. Evrerytime i access a jsp page the following error occurs: Compilation of 'pathTOMyJSP.java' failed: _ pathToMyJSP.java:39: Superclass

RE: Form bean - null

2002-02-14 Thread Andres Marcel (KASO 211)
Hi Konstantina, How do you call your page? If you first call is not like .do, then the action will not be invoked, therefore the form bean is not initialized. Marcel -Original Message- From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 10:36 AM

Re: help populating an array before perform action

2002-02-14 Thread Ivan Siviero
- Original Message - From: Ronald Haring [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 14, 2002 11:07 AM Subject: help populating an array before perform action Hi all, request.setAttribute(formBean, formBean); maybe it's something you don't like:

Re: No getter method for property... but present

2002-02-14 Thread Philippe Hodapp / 1genia
i had the same message. Add a beanInfo == - Original Message - From: João Paulo G. Batistella [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 05, 2002 4:01 PM Subject: Re: No getter method for property... but present You are using

RE: help populating an array before perform action

2002-02-14 Thread Ronald Haring
Hi all, request.setAttribute(formBean, formBean); maybe it's something you don't like: request.getSession().setAttribute((formBean, formBean); Ouch, well if thats the only way to do it, then thats the way to do it thx Ivan Furore B.V. Rijswijkstraat 175-8 Postbus 9204 1006 AE

ActionServlet return a pdf document

2002-02-14 Thread Arun_Kumar_N
Hello, I am trying to generate a PDF document on the fly based on dynamic jsp generation comming from BroadVision. I am making use of an struts action class,which genreates the required PDf file.When i try to open the PDF file I get the error as There was an error opening this

RE: Character Encoding wrong just for ApplicationResources!

2002-02-14 Thread Chris Birch
Hertzel, The property files get loaded using ISO-8859-1 Encoding but they understand unicode escapes. Convert your file using the java tool (jdk/bin) 'native2ascii' and that should load the strings into the JVM correctly. The only other possible problem occurs in some Containers (see Tagunov's

Re: Form bean - null

2002-02-14 Thread Konstantina Stamopoulou
Well, Actually my error was that I was associating MyForm with the wrong action. Thank U for pointing that out. Konstantina On Thu, 14 Feb 2002 11:36:14 +0200 Konstantina Stamopoulou [EMAIL PROTECTED] wrote: Hello, I need to use a form bean in struts and this is the first time I'm doing

logic:iterate question

2002-02-14 Thread Oliver Kiessler
hello, i have a problem on one of my views with a logic:iterate tag. i have an action that fetches news headlines from a database (headline,headlineID) and stores them in a bean (headlines-Arraylist,headlinedID-Vector) which is appended to request/session. On the view i want to iterate through

Re: isTokenValid(request) is always returning false

2002-02-14 Thread Keith
Wild guess here. Can you look at what's in your request parameters? Maybe - you call saveToken twice without calling isTokenValid between. So when you test isTokenValid there are 2 tokens in the request parms struts checks against the 1st one? As I say a wild guess. --- Antony Stace [EMAIL

Re: logic:iterate question

2002-02-14 Thread Konstantina Stamopoulou
Hi , From what I understand you want to create links for each headline and pass the head line as a parameter. So inside the logic:iterate tag U should put : logic:iterate. jsp:useBean id=info class=java.util.HashMap/ %info.put(HeadLineID, X); % html:link page=/details.do

Re: logic:iterate question

2002-02-14 Thread Ivan Siviero
links like this: a href=ViewHeadlineAction.do?headlineID=XXYZ/a supposing the logic:iterate id paramenter is set to element It should be something like this html:link page=ViewHeadlineAction.do paramName=element paramId=headlineID paramPropery=getterMethodWhoReturnsX instead of the static a/a

Re: logic:iterate question

2002-02-14 Thread geert
This should work ... ( use bean:write to set the value of the parameter ... ) logic:iterate id=headline name=headlines scope=session a href=ViewHeadLineAction.do?headLineId=bean:write name=headline property=headlineID/ View Headline /a /logic:iterate On 14 Feb 2002 11:58:39 +0100

Re: logic:iterate question

2002-02-14 Thread Oliver Kiessler
thanks! thats it. now it works... ;) oli Am Don, 2002-02-14 um 12.13 schrieb Ivan Siviero: links like this: a href=ViewHeadlineAction.do?headlineID=XXYZ/a supposing the logic:iterate id paramenter is set to element It should be something like this html:link page=ViewHeadlineAction.do

Multiple file upload not possible due to MultiPartRequestHandler limitation?

2002-02-14 Thread Marcel Maré
File upload of a single file with Struts 1.0.2 seems to work OK. But it fails for multiple files. Note: I mean 1 INPUT TYPE=FILE tag where the user selects *multiple* files (Opera and IE allow this), not multiple INPUT TYPE=FILE tags! The MultipartRequestHandler doesn't seem to support this,

File upload example in nightly build is broken

2002-02-14 Thread Marcel Maré
The struts file upload example (struts-upload.war) in the nightly build gives the following exception om TC 4.0.1 on Win2K SP2: javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE Does anybody know what's wrong? Somebody suggested that

Netscape6.1 not displaying text field

2002-02-14 Thread Robert Taylor
Let me preface this email by saying that I don't think this problem is Struts related, although I am using Struts for this project. I have searched the archives and have spent the last 12 hours working on this problem. I feel kind of crappy for posting this especially with the recent Traffic

RE: logic:iterate question

2002-02-14 Thread Ronald Haring
I have a similiar question, but this time with a button Every row will have a show action. With a link there is no problem (using the method described) but with a button I have a problem since I cant replace the onclick event with a parameter. html:button onclick=go('show',bean:write

RE: logic:iterate question

2002-02-14 Thread geert
can't you create a form around each button ?? On Thu, 14 Feb 2002 12:29:34 +0100 Ronald Haring [EMAIL PROTECTED] wrote: I have a similiar question, but this time with a button Every row will have a show action. With a link there is no problem (using the method described) but with a button

RE: logic:iterate question

2002-02-14 Thread Ronald Haring
can't you create a form around each button ?? I can do that I suppose, but not sure whether old netscape users like multiple forms. Other problem is that if you define forms within a table the table row will become larger, but thx for that solution Gr Ronald Furore B.V. Rijswijkstraat 175-8

Re: changing Built in Validation Error Message

2002-02-14 Thread Keith
You can just set them to a blank string in ApplicationResources.properties. But But you must want to change them at run time. 1 - make a special version of the errors tag that gets the overridden strings from the request. 2 - Use the new messages tag to display them logic tags to control

RE: How do I leverage the struts approach within an EJB environment?

2002-02-14 Thread Galbreath, Mark
LOL! Thanks for the chuckle this early in the morning! Mark -Original Message- From: Jonathan Gibbons [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 3:43 AM Why do all this? Basically you are using an industry standard RPC mechanism to a middle tier (ie the EJB remote

RE: Confused over check boxes

2002-02-14 Thread Galbreath, Mark
Why not monitor the checkbox(es) with a JavaScript onClick() method and set a hidden variable that would be passed to your ActionForm? Cheers! Mark -- Try before you cry: http://www.mail-archive.com/struts-user%40jakarta.apache.org/ -Original Message- From: Nick Thomson [mailto:[EMAIL

Why no indexed attribute defined in struts-html.tld?

2002-02-14 Thread geert
I think I need the indexed attribute but it is'nt there ... So that's a problem ... On Thu, 14 Feb 2002 07:07:22 -0500 Galbreath, Mark [EMAIL PROTECTED] wrote: How could it be a problem if it never worked? Sounds like a documentation error. Cheers! Mark -- Try before you cry:

RE: ActionServlet return a pdf document

2002-02-14 Thread Galbreath, Mark
Where did PdfWriter() come from? Cheers! Mark -- Try before you cry: http://www.mail-archive.com/struts-user%40jakarta.apache.org/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 5:26 AM file.When i try to open the PDF file I

RE: ActionServlet return a pdf document

2002-02-14 Thread Arun_Kumar_N
Hello, Here I use Itext tool to create pdf files. Its a Java library. I use iText.jar to generate the PDF files. Galbreath, Mark [EMAIL PROTECTED] on 2002.02.14 17:52:38 Please respond to Struts Users Mailing List [EMAIL PROTECTED]

RE: Why no indexed attribute defined in struts-html.tld?

2002-02-14 Thread Galbreath, Mark
Well, perhaps Ted will address this issue sometime today. In the meantime, you can always write your own custom tag based on the HTML tags' source code that you need (the beauty of open-source). Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday,

RE: Want to check user is logged in every page server]

2002-02-14 Thread jeff
Sridhar, You are absolutely correct. Sorry about that. I had a old version of my code at home. Sorry Jeff -Original Message- From: Sridhar Kumanduri [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 10:57 PM To: Struts Users Mailing List; [EMAIL PROTECTED]

RE: ActionServlet return a pdf document

2002-02-14 Thread Galbreath, Mark
Then I suspect that therein your problem lies. Cheers! Mark -- Try before you cry: http://www.mail-archive.com/struts-user%40jakarta.apache.org/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 7:31 AM Here I use Itext tool to

Help forwarding from one site to another.

2002-02-14 Thread Stephen . Thompson
Hello all, Upon a successful response from an action class I would like to forward to a different site. I have tried adding forward name=success path=http://www.slashdot.org/; / to my struts-config.xml, but it fails. Is there a nice way of achieving this? Thanks. Stephen.

AW: Help forwarding from one site to another.

2002-02-14 Thread Oliver Reflé
i would insert in the action code response.sendRedirect(www.slashdot.org); cause struts takes all addresses in the struts-config.xml as they are in the same context. This would be the easiest way to implement it. Maybe you can also achieve it with the RequestUtils of Struts, but that i don*t

RE: Help forwarding from one site to another.

2002-02-14 Thread Stephen . Thompson
Thanks for that, but the issue is that it is hard coded and doesn't allow the flexibility the forward tag allows. This flexibility would be advantageous for a pluggable corporate network. Stephen. -Original Message- From: Oliver Reflé [mailto:[EMAIL PROTECTED]] Sent: 14 February 2002

RE: A good database pool?

2002-02-14 Thread Alex Colic
Hi, is this part of the expresso package. IE do I download the whole expresso package or is this a separate add on that can be used without expresso. I went to the site and all I can find is the whole package. Thanks Alex -Original Message- From: Sandra Cann [mailto:[EMAIL PROTECTED]]

href:link ?

2002-02-14 Thread ulrika
Hello, I am new to Struts and I hope someone can help with this problem: I am using the iterate tag to disply some obejects (like this logic:iterate id=mybean name=MyForm property=mybeans and I can write the data like bean:write name=mybean property=x/ etc. ) For each iteration i

RE: Help forwarding from one site to another.

2002-02-14 Thread Keith
it's not hard coded if you use a variable instead of a literal. response.sendRedirect(aVariableThatIsSetFromSomeResourcesFileOrDatabase); --- [EMAIL PROTECTED] wrote: Thanks for that, but the issue is that it is hard coded and doesn't allow the flexibility the forward tag allows. This

Re: Help forwarding from one site to another.

2002-02-14 Thread geert
This works : use forward name=success path=/Go.jsp / Go.jsp contains nothing but a redirect. %response.sendRedirect(http://www.slashdot.org/;);% On Thu, 14 Feb 2002 13:32:31 - [EMAIL PROTECTED] wrote: Hello all, Upon a successful response from an action class I would

Indexed Tag and JavaScript Problem

2002-02-14 Thread SUPRIYA MISRA
Since I am using Indexed tag, my form gets the the following structure form name=currentForm method=POST action=/FALS/displaylog.do td align=leftinput type=text name=actHour[1].faHrsDay1 maxlength=4 size=6 value=0.0 onchange=update(1,1,3) form the update function is in JavaScript where I

RE: Help forwarding from one site to another.

2002-02-14 Thread Stephen . Thompson
Thanks for that. A simple but effective idea. I am wondering if there are any plans to add, for example, an external tag to the forward statement so that this would be unnecessary? Stephen. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 14 February 2002

Re: Indexed Tag and JavaScript Problem

2002-02-14 Thread Adam Grohs
Your syntax is causing the browser's js interpreter is looking for actHour1 as an array object in the JavaScript code, it will return object expected errors because the form elements name is actually actHour[1].faHrsDay1 and there is likely no such array object elsewhere in your JavaScript on the

Re: Indexed Tag and JavaScript Problem

2002-02-14 Thread SUPRIYA MISRA
Thank you so much Adams. It works. From: Adam Grohs [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Indexed Tag and JavaScript Problem Date: Mon, 16 Jul 2001 09:02:32 -0400 Your syntax is causing the

Re: Help forwarding from one site to another.

2002-02-14 Thread Joel Barnum
[EMAIL PROTECTED] wrote: Thanks for that. A simple but effective idea. I am wondering if there are any plans to add, for example, an external tag to the forward statement so that this would be unnecessary? Did you try: forward name=success redirect=true

RE: Help forwarding from one site to another.

2002-02-14 Thread Keith
MessageResources resources = getServlet().getResources(); resources.getMessage(aURLOrSomething); This is what struts supplies to get any literal from ApplicationResources.properties. That's all we need I think. --- [EMAIL PROTECTED] wrote: Thanks for that. A simple but effective idea. I am

RE: Multiple struts-config.xml files?

2002-02-14 Thread Press, Michael
For the record, to create multiple ActionServlets, I just extended ActionServlet with an empty class body - basically creating an identical servlet with a different name, for each role. This is working fine with each ActionServlet reading a different struts-config file. Could there be some

RE: Help forwarding from one site to another.

2002-02-14 Thread Stephen . Thompson
This works wonderfully. Thanks everyone. Stephen. -Original Message- From: Joel Barnum [mailto:[EMAIL PROTECTED]] Sent: 14 February 2002 14:10 To: Struts Users Mailing List Subject: Re: Help forwarding from one site to another. [EMAIL PROTECTED] wrote: Thanks for that. A simple

Transaction Token check required before form populate

2002-02-14 Thread Duncan Harris
I need my transaction token checking before my form is populated. Problem here is that I have indexed properties and the valid index range may be different at different times. When all is well, the form bean and the HTML form correspond, but if the user goes back and re-submits then they may

RES: Writing Complex Reports and PDF

2002-02-14 Thread Régis Melo
Hello Ted, JasperReport is a great open source tool. But, Java really need a professional tool to generate reports. There is some limitations to use JasperReports - doesn't exists a visual report tool to create the reports, doesn't permit subreports... There are promesses to

session beans

2002-02-14 Thread Henry Lu
How to set/get session beans in a formaction program? Could you show me an example with a code? Thanks, --- Henry Lu MCITphone: (734) 936-2063 University of Michigan Medical

commons valiador

2002-02-14 Thread neil
Hi I decided to try one of the recent nightly builds of struts since I wanted to become familiar with the commons validator. I am having some problems understanding what changes are needed (if any) in my source code for my formbeans etc. Is there an example app which uses the commons validator? I

Status of 1.1

2002-02-14 Thread Jürgen Albertsen
Hi, we currently consider using Struts for un upcoming project and will most definetley use Struts. However, I would like to use the 1.1 version because of sveral features that appeal to us - mainly the DynaForm and the updated validation cpapbilities. From personal evaluation I learned that

Re: Indexed Tag and JavaScript Problem

2002-02-14 Thread SUPRIYA MISRA
Now I have another problem. In JavaScirpt I have; var total=0.0; var x; for loop x=document.currentForm.elements[actHour[+loop+].faHrsDay1].value; alert(x); total=total+x; alert(total); end loop x gets the correct values like 1,2,3 but total=0.0 then 0.01, then 0.012 and so on. It is doing

Re: Transaction Token check required before form populate

2002-02-14 Thread Duncan Harris
The other thing that seems to be an annoyance is that the org.apache.struts.taglib.html.TOKEN parameter gets added for all forms on the page if it is set. I don't want this to happen. There appears to be no way to easily avoid this without overriding and replicating the whole of the

RE: isTokenValid(request) is always returning false

2002-02-14 Thread Pritchard, Sean
IsTokenValid() is a tricky thing. I recommend you look at the source code of this method (from Action) to better understand it. I've included the relevant source below. The tricky part is, the token needs to exist in two different places under two different keys for the call to return true.

Re: Indexed Tag and JavaScript Problem

2002-02-14 Thread Duncan Harris
[EMAIL PROTECTED] (SUPRIYA MISRA) wrote: Now I have another problem. In JavaScirpt I have; var total=0.0; var x; for loop x=document.currentForm.elements[actHour[+loop+].faHrsDay1].value; alert(x); total=total+x; alert(total); end loop x gets the correct values like 1,2,3 but

Question taglib TEI function

2002-02-14 Thread Ronald Haring
Hi all, back again with a question. (btw thx for help so far) In the logic iterate tag you can say how many lines you like to display. Now I would like to have a previous/next button if there are still objects in the list available. To enable this, I added a next and previous boolean var in the

Re: session beans

2002-02-14 Thread Sid Stuart
FilterBean filter = (FilterBean) session.getAttribute (FilterBean.FILTERBEAN_KEY); if (filter == null) { log.info (Creating Filter); session.setAttribute (FilterBean.FILTERBEAN_KEY, new FilterBean ()); } Henry Lu wrote: How to

Re: href:link ?

2002-02-14 Thread Keith
Did u search the archives? - you should be able to find examples there. http://www.mail-archive.com/struts-user@jakarta.apache.org/ Here's how I do links - people say don't use scriptlets but this can handle 1 or more parms easily is quite readable. % String linkMaintURL =

RE: Indexed Tag and JavaScript Problem

2002-02-14 Thread Ronald Haring
long time ago, but try this x=eval(document.curentForm.elements[actHour[+loop+].faHrsDay1].value); Gr Ronald -Original Message- From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 4:00 PM To: [EMAIL PROTECTED] Subject: Re: Indexed Tag and JavaScript

RE: Indexed Tag and JavaScript Problem

2002-02-14 Thread Ronald Haring
oops skip that didnt look well enough at your code try this: var x = parseInt(...,10) Gr Ronald -Original Message- From: Ronald Haring [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 4:20 PM To: 'Struts Users Mailing List' Subject: RE: Indexed Tag and JavaScript

Re: Transaction Token check required before form populate

2002-02-14 Thread Ted Husted
The usual workflow is to visit an Action before displaying the page. This gives you the opportunity to any number of things, including setting up the tokens. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. -- Tel +1 585 737-3463. -- Web

digest

2002-02-14 Thread cody.burleson
digest The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking

Re: Transaction Token check required before form populate

2002-02-14 Thread Ted Husted
One solution would be to write the GET form youself, using bean:write to populate the the HTML controls. If someone submitted a patch to bugzilla that allowed the generation of the token to be switched off on a form by form basis, I'm sure it would be considered. -- Ted Husted, Husted dot

RE: isTokenValid(request) is always returning false

2002-02-14 Thread Keith
This (IMHO) is the primary use of tokens, to make sure the user navigates your site as intended and does not use the back button, or a bookmark get out of sequence. (IMHO) your humble opinion is absolutely right except it's the only use of tokens. Note that data entry forms don't always need

Re: Indexed Tag and JavaScript Problem

2002-02-14 Thread SUPRIYA MISRA
Thanks.I used parseFloat() to do that and it works. From: [EMAIL PROTECTED] (Duncan Harris) Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Indexed Tag and JavaScript Problem Date: Thu, 14 Feb 2002 15:12 + (GMT Standard Time) [EMAIL PROTECTED] (SUPRIYA MISRA) wrote: Now I

Re: digest

2002-02-14 Thread Keith
How did you know I'd just eaten lunch? --- [EMAIL PROTECTED] wrote: digest __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com --

Re: digest

2002-02-14 Thread Ted Husted
Thanks for bringing this up. I just realized the Digest subscription information is not on the mailing list page. The address you are looking for is [EMAIL PROTECTED] -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. -- Tel +1 585 737-3463. -- Web

RE: Transaction Token check required before form populate

2002-02-14 Thread Galbreath, Mark
If you simply need to prevent resubmits, set a token as a session variable, check its value on any submit, and change its value on the first submit. Cheers! Mark -- Try before you cry: http://www.mail-archive.com/struts-user%40jakarta.apache.org/ -Original Message- From: [EMAIL

Internationalization issues

2002-02-14 Thread bwillner
Hi all :) I have to questions concerning initialization. In the user's guide I saw an example with a bean:message and an html:message tag being used for retrieving strings from a properties file from the struts-bean taglib and the struts:html taglib. What's the difference? I saw that in web.xml

RE: Indexed Tag and JavaScript Problem

2002-02-14 Thread Galbreath, Mark
total =+ total + parseInt( x); Cheers! Mark -- Try before you cry: http://www.mail-archive.com/struts-user%40jakarta.apache.org/ -Original Message- From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 10:00 AM To: [EMAIL PROTECTED] Subject: Re: Indexed Tag

RE: Showing a result after a long running query

2002-02-14 Thread Chris Birch
Jim, These comments are really guesses about how to do this rather than knowledge... None of it relies on Struts in particular. You have three pages: Form, Working and Results. On the form page, you submit the data to the Working page which will store the query request somewhere (possibly in

RE: Indexed Tag and JavaScript Problem

2002-02-14 Thread Galbreath, Mark
Oops. That should be total =+ parseFloat( x); Mark -Original Message- From: Galbreath, Mark Sent: Thursday, February 14, 2002 10:49 AM To: 'Struts Users Mailing List' Subject: RE: Indexed Tag and JavaScript Problem total =+ total + parseInt( x); Cheers! Mark -- Try before you

RE: SQL in Logic Bean or Action class

2002-02-14 Thread Phase Communcations
Hey sean, The following is some dialog I had with a couple of guys on the message board about sql placement. I thought you might find it interesting. Ultimately, just read Ted Husted. Also, I have some thoughts I would like to pass by you when you have a few moments. I have to make some changes

BIG DUMMY: SQL in Logic Bean or Action class

2002-02-14 Thread Phase Communcations
SORRY I FORGOT TO TO CHANGE THE RECIPIENT. -Original Message- From: Phase Communcations [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 9:03 AM To: Struts Users Mailing List Subject: RE: SQL in Logic Bean or Action class Hey sean, The following is some dialog I had with a

RE: Showing a result after a long running query

2002-02-14 Thread Keith
Chris's idea seems good. But I think users might find such a screen rather irritating. Some thoughts:- 1 - I've heard of something called 'push' technology. Servers push data out to the client when it suits them. Search web for that. 2 - Alternative. Store on your DB that a request for this

RE: Indexed Tag and JavaScript Problem

2002-02-14 Thread Wilson, Les J SI-FSIA
Hi, try this total += parseFloat(x); Les -Original Message- From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]] Sent: 14 February 2002 15:00 To: [EMAIL PROTECTED] Subject: Re: Indexed Tag and JavaScript Problem Now I have another problem. In JavaScirpt I have; var total=0.0; var x; for

RE: Showing a result after a long running query

2002-02-14 Thread Tim Sawyer
A solution that was written before we used Struts, but it works for us. We have a process that generates some figures for bank loans. It takes interest rate and loan amount, and works out repayments etc, taking into account lots of other variables. This process can take minutes to complete. In

Re: commons valiador

2002-02-14 Thread David Winterfeldt
There is an example in the nightly source in contrib/validator (contrib/validator/src/example and contrib/validator/web/example). It is also posted at http://home.earthlink.net/~dwinterfeldt/ and there is a compiled jar of the Commons Validator in the build directory (no nightly build of it

Re: error running tile: Cannot find message resources

2002-02-14 Thread Cedric Dumoulin
The example run on my development version. What about the others links in examples ? Maybe a problem with your configuration ? Cedric c tang wrote: I am running the app as as is. I used the trick you suggested and it solved the resource problem. Another problem occured when

Re: Passing Action Errors from one perform() method to another perfor m() method - Expert help?

2002-02-14 Thread David M. Karr
John == John Mattos Mattos writes: John Hi all. John I'm trying to do the following. John In an Action.perform() method, I'm adding an ActionErrors object to the John request as follows John // Snippet from an Action.perform() method John ActionErrors errors = new

RE: Nightly Builds

2002-02-14 Thread Thompson, Darryl
Can any one tell me which nightly build is stable enough to actually develop with? Often I encounter problems with missing tag handlers or conflicting method definitions between the TLD and tag classes making the build pretty much unusable... Thanks -Original Message- From: Sid

Struts-config initialization

2002-02-14 Thread Phase Communcations
When the struts-config file is initialized, does it place the ActionMappings into a bean or are the ActionMappings checked against the struts-config file each time a */do/* url is accessed? My reason for asking is that I plan to create a config file that will define the content available to a

Bean tag and substrings

2002-02-14 Thread Dave J Dandeneau
Is there any way to use the bean tag to display a substring of a property? Thanks, dave -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

  1   2   >