RE: Hidden Variables

2004-06-05 Thread Joshi, Naveen
Any idea what could be the reason!!! This is causing us lot of trouble. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Friday, June 04, 2004 7:44 AM To: Struts Users Mailing List Subject: RE: Hidden Variables Hmm. I guess that rules out the chance of it being cause

javascript-Multilanguage support

2004-06-05 Thread biswajit . basak
Hi        we are developing an application with Struts+BC4J with multi language support.        if user press SAVE button without entering mandetory fields , i want to place a _javascript_ alert() to the user.      what i am presently doing is submiting the page and in action form's validate meth

[OT] EJB/Struts Design Question

2004-06-05 Thread Navjot Singh
Hi, I have a typical case of Category and Product entity bean established in 1:N relationship. In the client tier, I wish to display the list of products along with their category names. 1. Struts Action make a call to ProductDelegate. 2. ProductDelgate to ProductManager (SessionBean). 3. Produc

Aw: Re: Reload Ressources on the fly

2004-06-05 Thread user_struts
Thanx James, that was the point. I have another question, is there a possibilty to clear the cache with a method call or something? I only need to change the MessageRessources from time to time... - Original Nachricht Von: James Mitchell <[EMAIL PROTECTED]> An: Struts Users Mai

Newbie-Q regarding tiles

2004-06-05 Thread vpsangeetha
Hi, I have a very basic question wrt tiles. I have a tiles-def.xml defined in the /WEB-INF/ directory with 1 of the definitions being I want the first page of my application to use this definition. So in my web.xml, I define the welcome file and all this file has is In the strut

RE: Hidden Variables

2004-06-05 Thread Joshi, Naveen
James, I understand your point. The user has bookmarked the logon page an not the page that is causing this problem. Moreover this does not happen all the time like i said "once in 300 times". -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Friday, June 04, 2004

Problem in Client Side Validation in Struts

2004-06-05 Thread Sandip Mante
Dear Sir, I have a problem in Client Side Validation in Struts 1.1.Actually see what is happening and what i have done: I have written all validdation and validation rules invalidator.xml and valation-rule.xml. I have given path (through plug-in tag) in struts-config file. \ I have called it in

RE: Problem in Client Side Validation in Struts

2004-06-05 Thread David Friedman
The form should have an onSubmit setting to invoke that javascript function. Have you assured that the web page you see in the browser: a) has the onsubmit listing your validation form function b) has the require() javascript function c) has the form named javascript function d) isn't showing any

RE: Newbie-Q regarding tiles

2004-06-05 Thread David Friedman
Sangeetha, Your error suggests a redirect is occurring, not a forward. A tile cannot be seen from the web, only from inside the struts framework, hence that error messager. I recommend you replace the contents of your welcome file with code to pull in and insert the tile, which goes something

Re: Aw: Re: Reload Ressources on the fly

2004-06-05 Thread Mark Lowe
This guy explains and supplies the code on how to reload when a change is made to struts-config.. You could adapt it to deal with properties files (maybe) http://www.brainysoftware.com/ On 4 Jun 2004, at 16:36, [EMAIL PROTECTED] wrote: Thanx James, that was the point. I have another question, is

the difference between struts with JSTL tags and struts-el tags

2004-06-05 Thread vancega
All, I am confused after using struts-el tags. I was previously using standard struts tags with jstl tags as needed. After I switched to use struts-el, some of tags are no more working. for example, readonly="true" attribute in html:text tag is not working in struts-el tags. It is saying that Erro

OT: Is taglib execution between start/end tags need to worry about synchronization?

2004-06-05 Thread Riyad Kalla
I have a situation where my taglib is pretty expensive in that its execution looks something like this: startTag() * get ID passed in as attribute to tag * lookup object in App scope with that ID (Search list) * look at object and get 2 dependency IDs from it (statusID and typeID) * lookup the

clearing an ActionForm from session

2004-06-05 Thread ksitron
I have an action form whose data is needed across several JSP's, for this reason I set the scope to session for this ActionForm in my struts-config.xml. When the transaction is completed I want the form to go away. What is the best practice for this. Thanks in advance. --

Re: Newbie-Q regarding tiles

2004-06-05 Thread Christian Bollmeyer
On Friday 04 June 2004 18:42, vpsangeetha wrote: You can't directly access Tiles definitions from your JSPs, but have to wrap them into Struts actions (in struts-config.xml) like this: Then call login.do, and it will work. HTH, -- Chris. > Hi, > > I have a very basic question wrt tiles. I ha

Taglib: how do you call a method like java.util.List.size() from the property of a tag?

2004-06-05 Thread Riyad Kalla
I'm trying to do something like: but I'm obviously getting an exception on size because it doesn't follow JB naming conventions. How do I call this method? Do I NEED to use EL for this? - To unsubscribe, e-mail: [EMAIL PRO

Re: clearing an ActionForm from session

2004-06-05 Thread Riyad Kalla
You can forcibly remove it as the last step in your last action before sending the user to a success page: request.getSession().setAttribute("formName", null); where "formName" is the same name you gave the bean in your struts-config.xml file in the "form-beans" section of the file. There is no

Re: clearing an ActionForm from session

2004-06-05 Thread ksitron
Thanks Riyad. The problem with having the form hang around is. There could potentially be a very large number of sessions (users) , all with a form to hang on to. So, the memory consumption could end up causing problems. Riyad Kalla wrote: You can forcibly remove it as the last step in your las

RE: the difference between struts with JSTL tags and struts-el tags

2004-06-05 Thread Karr, David
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > I am confused after using struts-el tags. I was previously > using standard struts tags with jstl tags as needed. After I > switched to use struts-el, some of tags are no more working. > for example, readonly=

[Raw newbie] Struts/JSTL - A cople of urgent question (Message resources)

2004-06-05 Thread Johan Wasserman - BCX - Infrastructure Services
As a RAW newbie: How do I buid an ArayList of properties for a menu? for example; I have a resource file containing: DISTANCE_MILE=Mile DISTANCE_KILO=Kilometre DISTANCE_FEET=Feet DISTANCE_METRE=Metre AREA_SQ_FOOT=Sqare Foot AREA_SQ_METRE=Square Metre VOLUME_QUBIC_INCH=q' VOLUME_QUBIC_METRE=m2 now