Re: Pass parameter to javascript function

2005-06-13 Thread amitava . basak
Avjit its not working! Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended

Re: Pass parameter to javascript function

2005-06-13 Thread amitava . basak
Thanks martin, its so simpledidn't click in my mind. Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged

Re: Pass parameter to javascript function

2005-06-13 Thread Van
On 6/12/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Avjit its not working! As someone else already pointed out on this thread, you can only use the Java expression syntax for an *entire* attribute. You can't use it the way it was shown in Avjit's suggested example for you. It has to be:

Sending value from popup to parent window

2005-06-13 Thread faisal.shoukat
Hi, I am a bit stuck on implementing the following so all help is appreciated. I open up a search page as a pop up window. The user implements the search options and is returned a number of rows. The user then selects one of these rows using a check box which I have defined as a multibox in my

Possible Bug in Struts Workflow Extension?

2005-06-13 Thread Stefan Langer
Hi! I'am a newbie in STRUTS WORKFLOW EXTENSION. I installed the Demo Application and everything works fine. But the following situation seems to lead to a bug in the workflow extension: a) Start the wizard and insert the first operand b) Click the next-button and go to the second page c) Now

[fully-OT] File replication between webapps

2005-06-13 Thread Nicolas De Loof
Hi all, this mail is totaly of topic, so sory sory sory... ... but there is so much java masters on this list ! I have to replicate some datas between two servers running my app (with a load balancer, but not using a cluster mode). We are going to build a home-made solution, and I wonder if

Re: [fully-OT] File replication between webapps

2005-06-13 Thread delbd
Just my two cents I'll suggest storing the datas on a central database (which could be clustered amongst your servers) Le Lundi 13 Juin 2005 14:06, Nicolas De Loof a écrit : Hi all, this mail is totaly of topic, so sory sory sory... ... but there is so much java masters on this list ! I

Re: Confused

2005-06-13 Thread glenn . deschenes
Pierre, Struts is no longer a sub-project of Jakarta but is now on its own. Struts is alive and kicking: http://struts.apache.org/ You can look at section 6 [this might help]: http://struts.apache.org/userGuide/index.html As for JBoss... the last time I used it (can't exactly remember when)...

Re: [fully-OT] File replication between webapps

2005-06-13 Thread delbd
Le Lundi 13 Juin 2005 14:27, Nicolas De Loof a écrit : Our customer defines architecture restriction for it's applications. One of them is that the (only) usable database is Oracle. As we don't use a database for the app, adding orcale only to get DB replication may be difficult to explain

Re: [fully-OT] File replication between webapps

2005-06-13 Thread Nicolas De Loof
Oracle is the only aproved database (clusterable or not). This is the reason I was looking for a rsync-linke solution. Nico. delbd a écrit : Le Lundi 13 Juin 2005 14:27, Nicolas De Loof a écrit : Our customer defines architecture restriction for it's applications. One of them is that

Re: [fully-OT] File replication between webapps

2005-06-13 Thread Leon Rosenberg
Do you hold the data inmemory or in a file system? In later case you'll be just fine with mounting a common share, like NFS or SMB. In first case you'd need a software synchronization inbetween, which is typically solved by a publisher/subscriber pattern. You can use MDB (message-driven beans,

Can struts-1.1 support multiple configurations and multiple resources

2005-06-13 Thread Venkat Reddy Valluri
Hi Can struts-1.1 support multiple configurations and multiple resources. Can some body please throw some light on this. I need it very urgent Thanks in advance --Venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Can struts-1.1 support multiple configurations and multiple resources

2005-06-13 Thread Manfred Wolff
Yes it can with multiple module support. http://struts.apache.org/userGuide/configuration.html#dd_config_modules Manfred Venkat Reddy Valluri wrote: Hi Can struts-1.1 support multiple configurations and multiple resources. Can some body please throw some light on this. I need it very

Re: Having ttruble with actions and buttons

2005-06-13 Thread Frank W. Zammetti
On Mon, June 13, 2005 12:54 am, Paul Goepfert said: Well I just created a test jsp file to see if I got to the page. I didn't. I just want to be sure about one thing. I am soppose to have multiple actions in my struts config? One for each page? Right? How your app is configured is

Re: Possible Bug in Struts Workflow Extension?

2005-06-13 Thread Michael Jouravlev
Struts Workflow Extension is not part of Struts. You need to consult its author. Also, there are alternatives to it, like Struts Flow http://struts.sourceforge.net/struts-flow or Easy Wizard http://www.superinterface.com/easywizard.htm. The last project is written by me, and is in the process of

Iterating Hashtable collection in ActionForm

2005-06-13 Thread Mark Benussi
I wish to write out some values of a Hashtable using the nested tags. I have read the documentation and know I have to refer to either the key or the value property to access the underlying data but get the following message when accessing the JSP/Form bean combination detailed below. Error 500:

form field is not populating immediately

2005-06-13 Thread Ramkumar Krishnan
Hi All, I have a form which has two fields.One is a string array and another field which determines the size of the first field. i have indexed methods to populate the string array. i need to initialize the string[] based on the size(another form field) when the indexed method gets

struts and sessions

2005-06-13 Thread marc
How do I easy and smart make a bean and put it in the client's session, when the client logs on. So no mather where the client is, I can access the bean. Like a bean that holes name, adr, age and so on. I use jaas, jboss and the servelt sercurity when I logon.

Re: How do I use JAAS(JbossSX) in Struts?

2005-06-13 Thread marc
Thank you for all your help. I finnaly solved it. I had misundestod the servlet login method. Once read 5 times more I got. But again thank you for all your help. Best regards - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: struts and sessions

2005-06-13 Thread Michael Jouravlev
HttpSession is the same everywhere: in plain servlet/JSP, in Struts or in JBoss. On 6/13/05, marc [EMAIL PROTECTED] wrote: How do I easy and smart make a bean and put it in the client's session, when the client logs on. So no mather where the client is, I can access the bean. Like a bean that

urlencoding

2005-06-13 Thread Franck
Hi, in my webapp, I have the following tag : html:link action=folder paramName=folder paramId=folder paramProperty=fullNamefolder/html:link In some case, fullName has special chars In the result source I can see : a href=folder.do?folder=Courrier+ind%C%A9sirablefolder/a The URL seems to

RE: urlencoding

2005-06-13 Thread Deb, Sujan
Hi there, Try to use the following before you write anything to response: response.setContentType(text/html; charset=UTF-8); Make sure you use this before any call - response.getWriter(); Cheers Sujan -Original Message- From: Franck [mailto:[EMAIL PROTECTED] Sent: Monday, June 13,

RE: Test whether an application resource is empty

2005-06-13 Thread Chris Loschen
As I understand it, this would return the error only if there are no messages at all in the application resource, which is not at all likely in this context. We're testing whether a particular application resource (that is, a particular key-value pair in the application resource file) is empty,

Re: urlencoding

2005-06-13 Thread Leon Rosenberg
aehm... dont trust what you see in the system.out. What you see depends on what encoding your console actually drives, and that would be probably something different from what java does (typically iso-8589-1) regards leon On Mon, 2005-06-13 at 11:44 -0400, Franck wrote: Hi, in my webapp, I

i8n of File Upload tag

2005-06-13 Thread Kat Luna
Hi all, I found a rather lengthy discussion of how to modify the default Browse button that comes with the html:file tag on another struts list, but the discussion ended with no solution posted. I am currently trying to implement File Upload on a multi-lingual application (based on User profile,

[OT]Templates of various documents

2005-06-13 Thread Ashish Kulkarni
Hi I remmember having a website which had templates of various documents, like project requirement document, or project proposal or design specifications etc does any one know this website or similar kind of website I have to do some project proposals and need some standar template documents

html:errors does not display

2005-06-13 Thread Song Wang
Hello everyone, I cannot display html:errors property=blah/, but if I add % ActionErrors ae = ( ActionErrors) request.getAttribute( Action.ERROR_KEY); boolean err = false; if( ae != null) { Iterator iter = ae.properties(); while(iter.hasNext()){

Re: Having ttruble with actions and buttons

2005-06-13 Thread Paul Goepfert
Here is my MenuAction.java package actions; import org.apache.struts.action.*; import javax.servlet.*; import javax.servlet.http.*; import java.util.Arrays.*; import java.io.*; import forms.*; import beans.InfoBean; import logic.DB; public class MenuAction extends Action { public

Re: html:errors does not display

2005-06-13 Thread Andrew Tomaka
Song, I was having a similar problem using WSAD 5.0.0. Client side validation using the Validator component worked, but server side validation did not. Since WSAD included Struts 1.1(beta 2), I decided to update struts to the newest version. This seemed to correct the problem. If you need

Re: Having ttruble with actions and buttons

2005-06-13 Thread Martin Gainty
This is straight from BEA doc An object of this type is returned from an action methods in a PageFlowController to determine the next URI to be displayed. It is constructed on the name of a forward defined by the @jpf:forward tag, and resolves to the URI specified in that forward The name of

RE: Sending value from popup to parent window

2005-06-13 Thread Greg Pelly
Fez, Perhaps I am missing something simple, but couldn't your sendValue() function just get the .selectedIndex of the multiBox, then you can iterate through the select's options and get the one your need? This seems to be more a question of some JS engineering, at least that is the simplest

Re: Having ttruble with actions and buttons

2005-06-13 Thread Dave Newton
Paul Goepfert wrote: [...] try { session = request.getSession(); action = request.getParameter(action); if(action.equals(enterInfo)) { return (mapping.findForward(enter)); } else

Re: Having ttruble with actions and buttons

2005-06-13 Thread Dave Newton
You don't need to have forwards named success or failure; I'm not sure how this part of the thread got started. If they don't make sense for your app obviously you can call them whatever you want. Although I'd shy away from 'Fred' ;) Dave Martin Gainty wrote: This is straight from BEA doc

AW: [OT]Templates of various documents

2005-06-13 Thread Leon Rosenberg
Try http://www-306.ibm.com/software/rational/ and search / try for RUP. Regards Leon -Ursprüngliche Nachricht- Von: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Gesendet: Montag, 13. Juni 2005 20:08 An: user@struts.apache.org Betreff: [OT]Templates of various documents Hi I

AW: [OT]Templates of various documents

2005-06-13 Thread Leon Rosenberg
Try http://www-306.ibm.com/software/rational/ and search / try for RUP. Regards Leon -Ursprüngliche Nachricht- Von: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Gesendet: Montag, 13. Juni 2005 20:08 An: user@struts.apache.org Betreff: [OT]Templates of various documents Hi I

Re: AW: [OT]Templates of various documents- got the site

2005-06-13 Thread Ashish Kulkarni
Hi found this site http://readyset.tigris.org/ very good site for templates ashish --- Leon Rosenberg [EMAIL PROTECTED] wrote: Try http://www-306.ibm.com/software/rational/ and search / try for RUP. Regards Leon -Ursprüngliche Nachricht- Von: Ashish Kulkarni

RE: Can struts-1.1 support multiple configurations and multiple resources

2005-06-13 Thread Venkat Reddy Valluri
Hi Manfred, I have given null=false for my main module struts config file and still the error message is not displayed instead it is just dipaying like below en.us.error.user.user_name.required. (It is just displaying property but not value) Thank you very much --Venkat

Re: Having ttruble with actions and buttons

2005-06-13 Thread Frank W. Zammetti
On Mon, June 13, 2005 2:41 pm, Dave Newton said: Have you put in logging statements to make sure that the action parameter is what you expect it to be when you hit your action? Dave is right... throw some println's in that Action and make sure your getting there in the first place. The code

Test, please ignore

2005-06-13 Thread Frank W. Zammetti
Sorry for the disturbance... trying to troubleshoot a posting issue... this will be the only such post to this list from me. Sorry again! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Switching between http and https in struts-config

2005-06-13 Thread Dan Tenenbaum
Hi, I'm new to the list. I'm working on a webapp where some of the pages should be accessed through HTTPS and others through HTTP. For example, login and registration need to be secure, but once the registration is done and we go to the user home page, we can go back to the nonsecure site. All

ensuring valid forwards

2005-06-13 Thread Dan Tenenbaum
My codebase has a lot of lines like this in struts actions: return mapping.findForward(foo); If I make a typo and it turns out that foo is not a valid forward according to the struts config file, when I hit the action in the browser, I get a blank page. Not my designated error page. Is there

RE: Switching between http and https in struts-config

2005-06-13 Thread Mark Benussi
Yep you need to use http://sslext.sourceforge.net/ -Original Message- From: Dan Tenenbaum [mailto:[EMAIL PROTECTED] Sent: 13 June 2005 20:45 To: user@struts.apache.org Subject: Switching between http and https in struts-config Hi, I'm new to the list. I'm working on a webapp where some

Re: Having ttruble with actions and buttons

2005-06-13 Thread Paul Goepfert
I figured it out. It was a stupid mistake, the mappings didn't match between my struts-config and my Action Class. By the way, the Dispacher looks like a better way to handle actions. I don't suppose anyone would know where I would call the reset method to clear out the form onn a reload?

Re: ensuring valid forwards

2005-06-13 Thread Frank W. Zammetti
You can configure a global exception handler, although I'm not 100% sure it will catch this type of problem. You can find the documentation online in the usual place, but it basically amounts to this in struts-config: global-exceptions exception

Re: ensuring valid forwards

2005-06-13 Thread Hubert Rabago
I recently checked in a change that would log a warning if mapping.findForward was called with a forward name that wasn't recognized. This change didn't make it to the 1.2.7 release, but is available from nightly builds. Apart from that, it wouldn't be too hard to customize/extend your Struts

Re: Confused

2005-06-13 Thread Pierre Thibault
Le 13 juin 2005 à 08:00, [EMAIL PROTECTED] a écrit : Pierre, Struts is no longer a sub-project of Jakarta but is now on its own. Struts is alive and kicking: http://struts.apache.org/ Happy to hear that. You can look at section 6 [this might help]:

Re: Confused

2005-06-13 Thread Dave Newton
Pierre Thibault wrote: There are talking about Tomcat but not about JBoss. I'll continue with JBoss because I want to access J2EE. I think you might be confused about what J2EE is. If you need EJBs, then yeah, JBoss would be one way to go. If you don't, there's a lot of other parts of

Re: Having ttruble with actions and buttons

2005-06-13 Thread Michael Jouravlev
What do you mean clear out and what do you mean by reload? If you need a stateful component to obtain user data, and to be able to to redisplay the page with error messages, and to store intermediate data, and to correctly process Refresh and Back buttons, you might want to take a look at the

Re: ensuring valid forwards

2005-06-13 Thread Dan Tenenbaum
On 6/13/05, Frank W. Zammetti [EMAIL PROTECTED] wrote: But again, I'm not certain this type of problem will be caught because I'm not even sure an exception is thrown in such a case. If it isn't that strikes me as a bug. Anyone else know for sure? I don't think it does throw an exception.

Re: Having ttruble with actions and buttons

2005-06-13 Thread Paul Goepfert
ok here is what I am talking about. I have a form that takes in first name, last name, street address, city, state and zipcode. When I press on the button to enter that information into a database. I want the page to reload with clear input fields. -Paul Michael Jouravlev wrote: What

Re: html:errors does not display

2005-06-13 Thread Vincent
Hi, Does simple html:errors/ with no property specified works for you ? Cause I get a similar problem - using same Java code in JSP display the fields with errors, but html:errors/ does nothing. Thanks. Vincent. Song Wang wrote: Hello everyone, I cannot display html:errors property=blah/,

Re: Having ttruble with actions and buttons

2005-06-13 Thread Michael Jouravlev
On 6/13/05, Paul Goepfert [EMAIL PROTECTED] wrote: ok here is what I am talking about. I have a form that takes in first name, last name, street address, city, state and zipcode. When I press on the button to enter that information into a database. I want the page to reload with clear

Re: html:text and html:textarea same width

2005-06-13 Thread Dave Newton
Tony Smith wrote: html:form... html:text ... size=20 html:textarea... cols=20 /html:form I want the text and textarea have the same widths. But it is not true with the above code when displayed in the browser. How can I fix it? CSS? This isn't a Struts issue, but HTML. Dave

ActionMessages not being displayed!!!

2005-06-13 Thread Harland, David
I am using the following code in an Action ActionMessages messages = new ActionMessages(); messages.add(ActionMessages.GLOBAL_MESSAGE,new ActionMessage(errors.maxbookingsreached)); saveMessages(request,messages); And the following in the page this is forwarding to, but

Re: Switching between http and https in struts-config

2005-06-13 Thread Frank W. Zammetti
You can, I believe, have fully-qualified URLs in forward paths... One thing you might be able to do is have mappings something like: forward name=non_secured_forward path=/whatever/jsp/page1.jsp / forward name=secured_forward path=/whatever/jsp/page2.jsp / Then, in your Action, do something

Re: ensuring valid forwards

2005-06-13 Thread Michael Jouravlev
It was discussed, but I could not find a bug in Bugzilla. Yep, choosing between an exception and blank screen, I would prefer an exception with forward name. Michael. On 6/13/05, Frank W. Zammetti [EMAIL PROTECTED] wrote: Yeah, that seemed a little too easy :) I would think it should throw

Re: [fully-OT] File replication between webapps

2005-06-13 Thread Nicolas De Loof
Thanks a lot, I'll take a loot at this ORB. Nico. Leon Rosenberg a écrit : Do you hold the data inmemory or in a file system? In later case you'll be just fine with mounting a common share, like NFS or SMB. In first case you'd need a software synchronization inbetween, which is typically

RE: Date UI

2005-06-13 Thread Martin Ravell
Yes, I agree Javascript is at times a necessary evil. My current strategy is to rely on it as little as possible and only in situations where is does not form a structural part of the app. If someone is using a browser without Javascript support or with it turned off I need to have the app still

Re: Test whether an application resource is empty

2005-06-13 Thread Laurie Harper
Chris Loschen wrote: As I understand it, this would return the error only if there are no messages at all in the application resource, which is not at all likely in this context. We're testing whether a particular application resource (that is, a particular key-value pair in the application

Re: Test whether an application resource is empty

2005-06-13 Thread Laurie Harper
What you're missing is the next line of code which performs the test. The define just makes the resource bundle available. As long as you have at least one message resource bundle defined in struts-config.xml the line you quote won't fail. L. Nitish Kumar wrote: bean:define id=messages

Wildcard action paths

2005-06-13 Thread Laurie Harper
I didn't get any response to this last time so I'm asking again... :-) I'd like to replace URLs like this: /Sections/Subsections/?section=Section1subsection=SubSection1 with URLs like this: /Sections/Section1/Subsections/Subsection1 An action mapping like this will match that URL:

Re: Wildcard action paths

2005-06-13 Thread Van
Sorry about the typo, I was referring to HttpServletRequest below. -Van On 6/13/05, Van [EMAIL PROTECTED] wrote: On 6/13/05, Laurie Harper [EMAIL PROTECTED] wrote: I'd like to replace URLs like this: /Sections/Subsections/?section=Section1subsection=SubSection1 with URLs like this:

Re: Wildcard action paths

2005-06-13 Thread Van
On 6/13/05, Laurie Harper [EMAIL PROTECTED] wrote: I'd like to replace URLs like this: /Sections/Subsections/?section=Section1subsection=SubSection1 with URLs like this: /Sections/Section1/Subsections/Subsection1 An action mapping like this will match that URL: action

Re: Confused

2005-06-13 Thread Pierre Thibault
Yes, I want to use Beans. Do you mean that I can use servlets, JSP and taglibs without J2EE? Le 13 juin 2005 à 16:42, Dave Newton a écrit : Pierre Thibault wrote: There are talking about Tomcat but not about JBoss. I'll continue with JBoss because I want to access J2EE. I think you

RE: Themes

2005-06-13 Thread David G. Friedman
Martin, Have you looked at any of these? a) Tiles http://struts.apache.org b) SiteMesh: http://www.opensymphony.com/sitemesh c) XKins: http://xkins.sourceforge.net/ Regards, David -Original Message- From: Martin Ravell [mailto:[EMAIL PROTECTED] Sent: Monday,

Re: Can struts-1.1 support multiple configurations and multiple resources

2005-06-13 Thread Manfred Wolff
--Venkat Thats the trick. If you set null to false, than *if* a error message is not found, the struts framework prints the language and the key, that is not found. So it says: You have an error here. So you have an other mistake. It is good practice to set null to false in all ressurce