Re: OT Re: Back Button Woes!!!!

2004-10-11 Thread Craig McClanahan
On Tue, 12 Oct 2004 01:48:06 -0400, Rick Reumann <[EMAIL PROTECTED]> wrote: > Andrew Hill wrote the following on 10/12/2004 1:13 AM: > > I dunno mate. I wouldnt rule out client-side Java completely. > > Oh I wouldn't either. I think it'll be used more and more especially in > corporate application

RE: Dispatch Action called Twice

2004-10-11 Thread Rajesh
hai McGrady I just write some System.out.println in the action function to just debug some values of variables... Say I gave System.out.println("1"); ... System.out.println("2"); ... In tomcat console in dos screen it displays 1 2 ... 1 2 ... I don’t know why its coming twice... Am not

RE: Dispatch Action called Twice

2004-10-11 Thread Rajesh
hai McGrady I just write some System.out.println in the action function to just debug some values of variables... Say I gave System.out.println("1"); ... System.out.println("2"); ... In tomcat console in dos screen it displays 1 2 ... 1 2 ... I don’t know why its coming twice... Am not

Re: Dispatch Action called Twice

2004-10-11 Thread Michael McGrady
Don't know about others, Rajesh, but I need more information. Have you debugged it? Rajesh wrote: Hai all, am working in Struts 1.1 some time in my program some DispatchActions are called twice am not sure whats the problem am working in Widnows tomcat5 in log displayed in tomcat console w

Re: OT Re: Back Button Woes!!!!

2004-10-11 Thread Rick Reumann
Andrew Hill wrote the following on 10/12/2004 1:13 AM: I dunno mate. I wouldnt rule out client-side Java completely. Oh I wouldn't either. I think it'll be used more and more especially in corporate applications. I just don't think it'll replace web-based e-commerce sites etc. Is grandma Jones go

Re: OT Re: Back Button Woes!!!!

2004-10-11 Thread Michael McGrady
Really interesting, Frank. Thanks a million. Michael McGrady Frank W. Zammetti wrote: +1. The thing that amazes me is that truly rich web-based clients can be done with nothing more than Javascript and DHTML, which to me is really optimal... you get all the best benefits of a web-delivered sol

Dispatch Action called Twice

2004-10-11 Thread Rajesh
Hai all, am working in Struts 1.1 some time in my program some DispatchActions are called twice am not sure whats the problem am working in Widnows tomcat5 in log displayed in tomcat console when i made a request of a action it displays the system.out command inside those action twic

Dispatch Action called Twice

2004-10-11 Thread Rajesh
Hai all, am working in Struts 1.1 some time in my program some DispatchActions are called twice am not sure whats the problem am working in Widnows tomcat5 in log displayed in tomcat console when i made a request of a action it displays the system.out command inside those action twic

Re: OT Re: Back Button Woes!!!!

2004-10-11 Thread Andrew Hill
I dunno mate. I wouldnt rule out client-side Java completely. Came across a company called Nexaweb who have an interesting solution for the rich client problem which uses a 1.1 compatible applet for the client side, but has its own set of lightweight widgets (ie: not Swing). They have some onlin

Re: OT Re: Back Button Woes!!!!

2004-10-11 Thread Rick Reumann
Frank W. Zammetti wrote the following on 10/12/2004 12:01 AM: I do a whole lot with frames-based designs, especially the idea of one of the frames being "hidden", which allows for caching of data, which allows for a lot of functionality with the server's input (i.e., sorting tables and such).

Re: logic:equal tag always evaluates the body

2004-10-11 Thread Bill Siggelkow
Maybe when "sometimes" occurs, something in the first has modified the value of "returnValue"? If not, get out your handy-dandy debugger and enjoy! - Bill Siggelkow David Alcoba wrote: Hi, We've a very rare problem with our webapp. We've a webapp running under an iplanet 6 (jvm 1.2) and struts

Re: How work DynaValidatorForm and java.sql.date and beanUtils.copyAttribuites?

2004-10-11 Thread Bill Siggelkow
Gabriel, You should always use Strings for date fields on your form. - Bill Siggelkow Gabriel França Campolina wrote: Hi folks, I post in last week a topic iguals this, but i´m not sucess in my aplication, but now i post my code to that all looks and find i solution. Well when I submit my form all

Re: How do I get Chinese & Arabic to/from struts

2004-10-11 Thread Bill Siggelkow
Use Tomcat's SetCharacterEncoding filter. == /* * Copyright 2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.

Re: OT Re: Back Button Woes!!!!

2004-10-11 Thread Frank W. Zammetti
+1. The thing that amazes me is that truly rich web-based clients can be done with nothing more than Javascript and DHTML, which to me is really optimal... you get all the best benefits of a web-delivered solution, but can get extremely fat-client-like look, feel and functionality. Not to toot

Re: Struts and Tiles

2004-10-11 Thread PC Leung
How can I incorporate the tiles definition into struts-config.xml? or How to define selectBodyTile.do in struts-config.xml? On Mon, 11 Oct 2004 17:49:55 +0100, Nigel Barrett <[EMAIL PROTECTED]> wrote: > You can also use a controller class/action to do it > > c

Re: OT Re: Back Button Woes!!!!

2004-10-11 Thread Eddie Bush
Here, here, Rick, Not to mention that you have no guarantees as to which JRE the client machines may have installed. Java on the client is an exceptionally poor idea unless you have very explicit control over the machines it is to be deployed to. Regards, Eddie - Original Message - Fr

Re: OT Re: Back Button Woes!!!!

2004-10-11 Thread Rick Reumann
Vic Cekvenich wrote the following on 10/11/2004 7:34 PM: "Walk toward the light" http://theserverside.com/articles/article.tss?l=RiA Vic, I briefly read over the article. I agree that we'll see more and more rich clients, but one of the problems is people aren't going to want to always install st

How do I get Chinese & Arabic to/from struts

2004-10-11 Thread David Thielen
Hi; I have spent several hours googling on this and all the articles point to http://www.anassina.com/struts/i18n/i18n.html which apparently no longer exists. All of my jsp pages are set to be utf-8 using "". All of my input and text I do using html-el. When I get the text from an input

Re: Back button killer

2004-10-11 Thread Andrew Hill
Theres not all that much that you can do. The back button is evil. It exists merely for the sole purpose of making our lives a tormented misery... You will find this article of interest though: http://www.theserverside.com/articles/content/RedirectAfterGet/article.html [EMAIL PROTECTED] wrote: I

Re: Back Button Woes!!!!

2004-10-11 Thread Frank W. Zammetti
Set in struts-config... When the user triess to go back, they'll get a page expiration notice. Not the most user-friendly idea, but it'll stop most data corruption issues. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com Hubert Rabago wrote:

Re: OT Re: Back Button Woes!!!!

2004-10-11 Thread Hubert Rabago
On Mon, 11 Oct 2004 18:56:20 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I can't start using Swing. I need to know why every time I hit the back button, even > when I have and click the back buton, I get the > Page Expired screen? > Because, uhm, you didn't read the archives? :) htt

RE: OT Re: Back Button Woes!!!!

2004-10-11 Thread Mick.Knutson
I can't start using Swing. I need to know why every time I hit the back button, even when I have and click the back buton, I get the Page Expired screen? -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Vic Cekvenich Sent: Monday, October 11, 2004 4:35 PM To: [EMAIL

Re: Back Button Woes!!!!

2004-10-11 Thread Hubert Rabago
This happens when you're trying to go back to a page that was produced by a POSTed form. If you want to avoid this, use GET when submitting a form, or use redirect when displaying the resulting page. Hubert On Mon, 11 Oct 2004 18:11:55 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > How d

OT Re: Back Button Woes!!!!

2004-10-11 Thread Vic Cekvenich
"Walk toward the light" http://theserverside.com/articles/article.tss?l=RiA If people have a choice, above in alternative. Bypass the browser! .V [EMAIL PROTECTED] wrote: How do I get rid of this page being shown every time I click the back button: ==

Re: Help! Problem with "isTokenValid"

2004-10-11 Thread Jason Lea
You need 2 actions. The first saves a token, then displays the form. The 2nd action is called when the form is submitted, and the code below looks ok. I assume you either don't have an action to populate the form (eg the user opens the .jsp form directly), or the action does not save the toke

Back Button Woes!!!!

2004-10-11 Thread Mick.Knutson
How do I get rid of this page being shown every time I click the back button: == Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security

Help! Problem with "isTokenValid"

2004-10-11 Thread t t
Hi, all, I have a Form in my application, when user click the "submit" button, an Action class will be called. There is some code like this in these class. The first time the user click the button, the error "error.transaction.token" was shown while the second time it's ok. Why? Thanks in advance!

Re: Checkboxes with display tag

2004-10-11 Thread Jason Lea
I think you need to be using multibox for this to work. I just did something similar recently and this is how I did it: I am using JSP2.0+JSTL+EL. Using id="row" in the display:table gives me a handle to each object in the list so I can get the id for each row. Then I use ${row.id} t

am I able to check null value in List??

2004-10-11 Thread Peng, Meimin
Hi, I want to check a null vale in a list. I try to find all struts-tag libraries for doing it. But, not working yet. is for checking non-null is for checking empty string. Does anyone can tell me how to check a null value in tag library? Thanks. --MM CONFIDENTIALITY NOTICE: The informat

Checkboxes with display tag

2004-10-11 Thread Shabada, Gnaneshwer
Hello All, I have a Struts app that I am working on and am using DisplayTag to display my search results. So far everything works fine. Now, I want to add a checkbox for each row in this Displaytag which I was able to do but unable to capture the checked values in my Action Class. Please verify t

RE: Back Button Implementation

2004-10-11 Thread Mick.Knutson
But this is an additional button right? Not something that will effect the browsers back button...??? -Original Message- From: Phani [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 1:12 PM To: Struts Users Mailing List Subject: Re: Back Button Implementation Roy, You can use s

Re: Back Button Implementation

2004-10-11 Thread Phani
Roy, You can use something like this: --- Sudipto Roy <[EMAIL PROTECTED]> wrote: > > > Hi > > I am working in a J2EE Project in which we are using > Struts. Can anyone tell me whether I can track a > Browser Button Hit as I want to synchronise Browser > Back Button with our Application Bac

Back button killer

2004-10-11 Thread Mick.Knutson
I need help disabling the back button. I used a JavaScript and when I click the back button, I get a "Page Not valid anymore" or something. How can I fix this? I am using all action Forwards, not Redirects --- > Thanks... > Mick Knutson > > 525 Market Street, SF, CA 94103 > (415) 222-1020

Back Button Implementation

2004-10-11 Thread Sudipto Roy
Hi I am working in a J2EE Project in which we are using Struts. Can anyone tell me whether I can track a Browser Button Hit as I want to synchronise Browser Back Button with our Application Back Button. If that is Possible,also let me know that How it is Possible. bye Yahoo! India Ma

Re: c:set tag

2004-10-11 Thread Erik Weber
Looks like it to me, but there may be subtle differences. I haven't used bean:define so I'm not sure. Erik Shabada, Gnaneshwer wrote: I think this one is similar to tag. Right? Gnan -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 3:12 PM To:

RE: c:set tag

2004-10-11 Thread Shabada, Gnaneshwer
I think this one is similar to tag. Right? Gnan -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 3:12 PM To: Struts Users Mailing List Subject: Re: c:set tag Check out the bean tags, rather than the html or logic tags, and see if that hel

Re: c:set tag

2004-10-11 Thread Erik Weber
Check out the bean tags, rather than the html or logic tags, and see if that helps. Erik Shabada, Gnaneshwer wrote: Does Struts have a html or logic tag that is similar to tag that shows how to set a var with a default value?? Thanks Gnan

c:set tag

2004-10-11 Thread Shabada, Gnaneshwer
Does Struts have a html or logic tag that is similar to tag that shows how to set a var with a default value?? Thanks Gnan This email message is for the sole use of the intended recipient (s) and may contain confidential

Re: [OT] Running one web application in another.

2004-10-11 Thread Susan Bradeen
On Fri, 08 Oct 2004 13:35:05 -0700, Michael McGrady <[EMAIL PROTECTED]> wrote: > I am unclear as to what you want to do. I realize you have two web > applications and want in some sense one to port to the other, but beyond > that cannot tell what the requirements are. You could have many > differ

Re: Struts validation issue

2004-10-11 Thread Pedro Salgado
Have you checked if you aren't duplicating configurations on more than 1 file? (configFile1, ..., configFileN... N replaces configurations that are also present (duplicate) in 1). Are you working with modules? Is the forward pointing to a correct action? (try putting validate = false... and

Re: how to setup i18n

2004-10-11 Thread Pedro Salgado
You have to add a line to your struts-config pointing to your message-resources: (be carefull with typos) If your using fmt... for the default bundle to point to the same struts default message bundle, add this to your web.xml: javax.servlet.jsp.jstl.fmt.localizationCont

Re: Struts and Tiles

2004-10-11 Thread Nigel Barrett
You can also use a controller class/action to do it and then in the action class for /selectBodyTile.do you can access the ComponentContext which will allow you to change the attributes before tiles does the insert thus allowing you to programmatically set the inner tile to be a JSP,another tile

Re: Struts and Tiles

2004-10-11 Thread Bj
you can use java to do this. For exemple, if you pass the boby url in request parameter. <% String contentUrl = request.getParameter("contentUrl"); if (contentUrl == null ) contentUrl = "/defaultContentUrl.jsp" %> I hope there's a better way to do this (maybe through ex

Re: Clean way to obtain a property's value...

2004-10-11 Thread Nicolas De Loof
Someone posted on this list a clean way to do this using jakarta-unstandard-taglib and bind tag. Sometinhg like this (not tested) : Nico. > > On 2004-09-27 at 21:50:26 +0100, Adam Hardy wrote: > > Just before this thread dies, on a closely related note, does anybody > > have a nice way to

How work DynaValidatorForm and java.sql.date and beanUtils.copyAttribuites?

2004-10-11 Thread Gabriel França Campolina
Hi folks, I post in last week a topic iguals this, but i´m not sucess in my aplication, but now i post my code to that all looks and find i solution. Well when I submit my form all values are send except the java.sql.date, that send the value null, How i solutions this problem. My struts-config:

Re: Clean way to obtain a property's value...

2004-10-11 Thread Axel Gross
some ideas - get a singleton instance of GargantusLists and call it 'ns' (for namespace) then you just have to use ns.ESURVEY_RESULT_DISPLAY_TYPE_LIST - make a stupid tld in which you define those constants - use jakarta jexl or another expression language which allows more than jsp2.0 EL hth, axe

Struts and Tiles

2004-10-11 Thread PC Leung
I am very new Tiles. I just want the content layout to change and keep header, footer and left menu unchanged. Is it right to change the value programmatically and how? or do it in another way? Thank you very much. - To un

Struts validation issue

2004-10-11 Thread Andy Richards
hi, i have created my own validator class for validating certain fields which are beyond the default validation scope (e.g. telephone, postcode, username already exists etc.) and have linked it to the validator-rules.xml file. when the input field is invalid, i do get the appropriate error msg so

Re: Line Break Question

2004-10-11 Thread Tom Holmes Jr.
Ok, yeah, that will do it ... now I feel like an idiot. ;-) Thanks. Pedro Salgado wrote: How about: Pedro On 11/10/04 2:23 pm, "Tom Holmes Jr." <[EMAIL PROTECTED]> wrote: I have a tag that looks like this: Rather than having these two address lines on one line, I'd like to include a lin

Re: Line Break Question

2004-10-11 Thread Pedro Salgado
How about: Pedro On 11/10/04 2:23 pm, "Tom Holmes Jr." <[EMAIL PROTECTED]> wrote: > I have a tag that looks like this: > > > Rather than having these two address lines on one line, I'd like to > include a line break so that I get two lines. I've tried a few things > and can't seem

Line Break Question

2004-10-11 Thread Tom Holmes Jr.
I have a tag that looks like this: Rather than having these two address lines on one line, I'd like to include a line break so that I get two lines. I've tried a few things and can't seem to get it to work. I've included and '\n' and it's not working. If you know how to make this work, I'd

Re: [OT] beanutils convert empty string to 0 vs null for Integer?

2004-10-11 Thread Rick Reumann
Dmitrii CRETU wrote the following on 10/11/2004 8:05 AM: --- action org.apache.struts.action.ActionServlet convertNull true Wow, I never saw that before. Thanks. So Beanutils w

Re: help : submit with javascript problem

2004-10-11 Thread calandraca
Try this: function callSubmit() { frm = document.getElementById("myFrm"); frm.submit(); } Note that styleId attribute in html:form tag will be rendered as an id html attribute (see Struts documentation). So you will have a way for locating the form from

Re: [OT] beanutils convert empty string to 0 vs null for Integer?

2004-10-11 Thread Dmitrii CRETU
Hello, try to add following parameter for "action" servlet (web.xml file): --- action org.apache.struts.action.ActionServlet convertNull true --

RE: Need Help:Generating XML File from database records --- User Defined Data Types(UDT)

2004-10-11 Thread Marco Mistroni
Hello, If you don't want to write too much code, go for castor (http://castor.exolab.org), It has a JDO API and an XML api, so that you could retrieve your record and get them automatically in XML format.. Regards marco -Original Message- From: Kranti Parisa [mailto:[EMAIL