Re: [shale] Radio buttons in Clay

2006-01-31 Thread Gary VanMatre
>From: Richard Wallace <[EMAIL PROTECTED]> > > Gary VanMatre wrote: > Interesting options. I decided that for this case it's not incredibly > important to have the html mockup so went and created my first ever > component in the clay-config.xml. Cool. You should check out the shale tiger ex

validation.xml - "Attribute 'indexedProperty' used but not declared" ?

2006-01-31 Thread Josh McDonald
I've inherited an application (again) which supposed works, but on deployment I get this error. Google isn't being much help, can anybody shed some light on the subject? Cheers, -Josh -- "His comrades fought beside him, Van Owen and the rest... But of all the thompson gunners- Roland

Re: [shale] subview not talking to a backing bean

2006-01-31 Thread Gary VanMatre
>From: Jason Vincent <[EMAIL PROTECTED]> > > Hey there, > > I have a header.jsp file that is included in all my jsps: > > > > > > or if the including jsp was in a subdirectory... > > > > > > inside the header.jsp I'm trying to call a request scope backing bean > to call a method to

Re: [shale] Outputting formatted numbers

2006-01-31 Thread Gary VanMatre
>I'm trying to format the output of some numbers. Before, the way I >would do this was: > > > > > >I've tried this with the clay-config.xml with: > > > > > > > > > You have a couple options: or: But, I missed

[shale] Outputting formatted numbers

2006-01-31 Thread Richard Wallace
I'm trying to format the output of some numbers. Before, the way I would do this was: I've tried this with the clay-config.xml with: But that gives me a NPE with the message "The component identified by jsfid convertNumber could not be found." Was the f:

[shale] subview not talking to a backing bean

2006-01-31 Thread Jason Vincent
Hey there, I have a header.jsp file that is included in all my jsps: or if the including jsp was in a subdirectory... inside the header.jsp I'm trying to call a request scope backing bean to call a method to dynamically build some javascript.

Re: Leading slash on forward causes problem in proxied environments

2006-01-31 Thread Laurie Harper
J T wrote: We have four environments: dev, int, stg, and prod. Each of these is fronted by an apache server that proxies to our weblogic application server. The URLs to the apps look like this (dev) http://devserver.com/dev/Application (int) http://intserver.com/int/Application (stg) http://stgs

Re: Regarding using HashMap in jsp

2006-01-31 Thread Laurie Harper
Vasumathi wrote: HI Anyone can tell how to write the properties value of HashMap in using This sort of question is best asked on the users list; the dev list is intended for discussion of the development of the Struts projects rather than on how to use them. To answer your question, you

Struts-1.1 Tiles exception error page

2006-01-31 Thread Vladislav Pernin
Hi all, I'm working in an Struts-1.1 tiles environment and I need to be able to redirect user on a JSP error page when an errors occurs. I also need to send an email, that can be done from the JSP error page or from an exception handler. The global-exceptions declared in the struts-config.xm

Re: using requestDispatcher.inlude()

2006-01-31 Thread Michael Jouravlev
On 1/31/06, temp temp <[EMAIL PROTECTED]> wrote: > Can I include ".do"using jsp include ? Of course. But if your ".do" forwards to a JSP, then this combination won't work as you expect ;-) The response will be closed after the forward, so the rest of your main page will not be rendered: http:

Re: [shale] Radio buttons in Clay

2006-01-31 Thread Richard Wallace
Gary VanMatre wrote: From: Richard Wallace <[EMAIL PROTECTED]> Hello, I'm trying to use radio buttons to do a questionnaire with the questions pulled from a backing bean. There are examples of using select menus in the use-cases but I don't see anything about how to use radio buttons.

Re: Merging tile layouts and extending

2006-01-31 Thread Keith Fetterman
Folks, I posted the following post yesterday and unfortunately no one replied. Before giving up, maybe someone knows the answer to a more basic question about extending tiles. When extending a layout that contains tags, do all of the tags have to exist in the base layout? If no, can you

Re: [shale] Radio buttons in Clay

2006-01-31 Thread Gary VanMatre
>From: Richard Wallace <[EMAIL PROTECTED]> > > Hello, > > I'm trying to use radio buttons to do a questionnaire with the questions > pulled from a backing bean. There are examples of using select menus in > the use-cases but I don't see anything about how to use radio buttons. > The radio

Re: using requestDispatcher.inlude()

2006-01-31 Thread temp temp
Can I include ".do"using jsp include ? Thanks & Regards Michael Jouravlev <[EMAIL PROTECTED]> wrote: On 1/31/06, temp temp wrote: > > > > Can I include multiple .do's using request dispathcer include? Sure. Be careful with flushing though. > or can I have > > > <%request.getReq

Re: using requestDispatcher.inlude()

2006-01-31 Thread Michael Jouravlev
On 1/31/06, temp temp <[EMAIL PROTECTED]> wrote: > > > > Can I include multiple .do's using request dispathcer include? Sure. Be careful with flushing though. > or can I have > > > <%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp

RE: [OT] Re: Waiting for the return value of a JAVA scriptlet

2006-01-31 Thread George.Dinwiddie
Dave Newton pondered: > Andreas B. Thun wrote: > > I wrote a JSP to start a JAVA scriptlet. > > It works fine but now I have the problem > > to evaluate the return value of my scriptlet > > to give the user a feedback if the action > > was successful. > > getErrorCode() delivers the scriplets retur

using requestDispatcher.inlude()

2006-01-31 Thread temp temp
Can I include multiple .do's using request dispathcer include? or can I have <%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp:sf.budget=811").include(request,response);%> multiple times. like

Re: problem struts+tiles+eclipse+tomcat5+j2sdk-sun

2006-01-31 Thread vinicius
i know that is something basic, but i'm working in this problem for days, i'm new in struts an i'm dont have success in just change one line in the MessageResources.properties file! i don't know if i'm exporting correctly the application to the tomcat webapp directory or if i have to do somethi

RE: Valid When Question

2006-01-31 Thread Kalcevich, Daniel
That worked perfectly. Thank you! -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 8:26 AM To: Struts Users Mailing List Subject: Re: Valid When Question Maybe something like the following test ((*this* != null) or

RE: Conditionally checking an html:checkbox field

2006-01-31 Thread kalpesh modi
I never tried with boolean but try making it a String. It should work with a String. - Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.

Re: problem struts+tiles+eclipse+tomcat5+j2sdk-sun

2006-01-31 Thread digant . k . joshi
copy tools.jar from jdk directory to {TomcatBaseDir}/common/lib to make it work. vinicius <[EMAIL PROTECTED]> 01/31/2006 02:13 PM Please respond to "Struts Users Mailing List" To: user@struts.apache.org cc: Subject:problem struts+tiles+eclipse+tomcat5+j2s

RE: Conditionally checking an html:checkbox field

2006-01-31 Thread Greg Dunn
I'll try that, but this property is a boolean so I'm actually not getting a string when the checkbox is submitted, it has no value attribute. I'm getting and working with the boolean in the ultimate form submit Action without any problems. Do I HAVE to set a String value attribute to get it do

RE: Conditionally checking an html:checkbox field

2006-01-31 Thread kalpesh modi
You need to set it to the value that gets submitted when you check a checkbox and submit the form. - Bring words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail.

problem struts+tiles+eclipse+tomcat5+j2sdk-sun

2006-01-31 Thread vinicius
I change the MessageResources.properties, update the servlet context, export the files to the webapp directory in tomcat and when view the page i've got this error: (i don't know if this are the correct steps! i'm using linux and the sysdeo plugin don't start the tomcat for me like many tutorial

RE: Conditionally checking an html:checkbox field

2006-01-31 Thread Greg Dunn
I think that's what I'm doing, but it isn't working. Am I doing this wrong? (from my original post): In my Action: if (checkTheBox.equals("yes")) { //config. option, confirmed working regForm.setShutoff(true); } [Then it immediately forwards to the JSP.] -Original Mes

Re: Getting handle on application property file in Action class.

2006-01-31 Thread Hubert Rabago
getResources(request) is a method of the Action class. > > Is there a way to get handle on Application property file handle in action > > class. Hubert On 1/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Is getResources part of org.apache.struts.util.MessageResources > if it does I don't

Re: Conditionally checking an html:checkbox field

2006-01-31 Thread kalpesh modi
Try the check condition in your action class and set/not set the checkbox and then forward it to the JSP. Hope this helps. - What are the most popular cars? Find out at Yahoo! Autos

Conditionally checking an html:checkbox field

2006-01-31 Thread Greg Dunn
I need to conditionally set a checkbox field when presented to the user depending on application configuration settings. I'm using an Action to load the form and attempt to set the checkbox field. No matter what I do I cannot get the checkbox state to change from its default, whether that be true

Conditionally checking an html:checkbox field

2006-01-31 Thread Greg Dunn
I need to conditionally set a checkbox field when presented to the user depending on application configuration settings. I'm using an Action to load the form and attempt to set the checkbox field. No matter what I do I cannot get the checkbox state to change from its default, whether that be true

[shale] Radio buttons in Clay

2006-01-31 Thread Richard Wallace
Hello, I'm trying to use radio buttons to do a questionnaire with the questions pulled from a backing bean. There are examples of using select menus in the use-cases but I don't see anything about how to use radio buttons. I tried doing something like this: #{question.text}

Re: File "/jsp/struts-html" not found

2006-01-31 Thread Lothar Krenzien
After playing around and removing some cactus definitions from the web.xml file I get now the following error: 2006-01-31 19:07:38,801 [INFO ]Exception initializing TldLocationsCache: XML parsing error on file /WEB-INF/web.xml: (line 3, col 9): Document is invalid: no grammar found. 2006-01-31 1

Re: [Shale] API Stability vs. V1.0

2006-01-31 Thread Craig McClanahan
On 1/31/06, Bernhard Slominski <[EMAIL PROTECTED]> wrote: > > > > -Ursprüngliche Nachricht- > > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag > > von Craig > > McClanahan > > > > Shale follows the same version branding policy that the rest > > of Struts does > > (along with Tomca

Re: Getting handle on application property file in Action class.

2006-01-31 Thread digant . k . joshi
Is getResources part of org.apache.struts.util.MessageResources if it does I don't find getResource in it I find getMessageResources which is expecting config as parameter. What should I supply as config from Action class ? Hubert Rabago <[EMAIL PROTECTED]> 01/31/2006 11:29 AM Please respo

Re: Plug-In sample for creating and keeping DB and Q connection.

2006-01-31 Thread digant . k . joshi
To start with I want to keep in session, Once functionality is tested ! I want to make it better by writing BaseDAO to get connection from DB /Q Dave Newton <[EMAIL PROTECTED]> 01/31/2006 11:27 AM Please respond to "Struts Users Mailing List" To: Struts Users Mailing List

Re: Getting handle on application property file in Action class.

2006-01-31 Thread Hubert Rabago
Try something like: String propertyValue = getResources(request).getMessage("propertyName"); Hubert On 1/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Is there a way to get handle on Application property file handle in action > class. > What I mean is if I specify in struts-config.xml >

File "/jsp/struts-html" not found

2006-01-31 Thread Lothar Krenzien
Hi, I've some really hard trouble with JSP and/or struts and tomcat. Yesterday it worked all fine but after changing a simple jsp (remove a row from a table) I get lots of compile errors when calling a jsp (see my post "can't load any JSP anymore" in users@tomcat.apache.org). Because of that I'

Re: [Tiles] Definition with extends and path attributes

2006-01-31 Thread Antonio Petrelli
David G. Friedman ha scritto: Antonio, Could you use a Controller class to change the path="..." attribute for yourself based upon some criteria or variable you set in scope (request/session). With that method, you could have one base class instead of using the same name twice in two differen

RE: Valid When Question

2006-01-31 Thread Kanuri, Chand
Daniel, use requiredif in your validation.xml this should work field[0] phone1

Re: Plug-In sample for creating and keeping DB and Q connection.

2006-01-31 Thread Dave Newton
[EMAIL PROTECTED] wrote: > Hi! > In our app we need to communicate to our application server using > DB connection and Sonic MQ. > As per one of earlier suggestion I am trying to write Plug-In for > creating DB and Q connection and keep for the session life. > So any reque

Re: Plug-In sample for creating and keeping DB and Q connection.

2006-01-31 Thread Niall Pemberton
http://wiki.apache.org/struts/StrutsPlugins Niall - Original Message - From: <[EMAIL PROTECTED]> Sent: Tuesday, January 31, 2006 4:22 PM > Hi! > In our app we need to communicate to our application server using > DB connection and Sonic MQ. > As per one of earlier sugge

Re: Valid When Question

2006-01-31 Thread Niall Pemberton
Maybe something like the following test ((*this* != null) or ((phone2 == null) and (phone3 == null))) test ((*this* != null) or ((phone1 == null) and (phone3 == null))) test ((*this* != null) or ((phone1 == null) and (phone2 == nul

Plug-In sample for creating and keeping DB and Q connection.

2006-01-31 Thread digant . k . joshi
Hi! In our app we need to communicate to our application server using DB connection and Sonic MQ. As per one of earlier suggestion I am trying to write Plug-In for creating DB and Q connection and keep for the session life. So any request made by user can use same DB and/o

Re: Nested Tags

2006-01-31 Thread Hubert Rabago
On 1/31/06, rama chandrula <[EMAIL PROTECTED]> wrote: > I have a list of objects, and each object inturn has a list of another > object. I want to represent all these objects and the properties of the > inner object in the UI like > > outer[i].inner[j].propertyValue > > How can I use nested tags to

Valid When Question

2006-01-31 Thread Kalcevich, Daniel
Everyone, I have a question regarding the Valid When. I have 3 fields for phone number (declared as phone1, phone2, phone3). Now, the field as a whole is not required, however, if a user enters in some data, I want to make sure they enter in values for all 3. So, on a validWhen I would want

Re: [OT] Re: design question

2006-01-31 Thread fea jabi
thankyou, for all your valuable responces. From: Dave Newton <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: [OT] Re: design question Date: Tue, 31 Jan 2006 10:13:24 -0500 fea jabi wrote: > you have mentioned that > > "You're going to have

RE: [Tiles] Definition with extends and path attributes

2006-01-31 Thread David G. Friedman
Antonio, Could you use a Controller class to change the path="..." attribute for yourself based upon some criteria or variable you set in scope (request/session). With that method, you could have one base class instead of using the same name twice in two different files. If you are interested

Re: Need some advice

2006-01-31 Thread Hubert Rabago
You should name the fields in a way that allows Struts (BeanUtils, actually) to get to the correct property, such as "address.street". Also, make sure your accessor for the nested bean always returns a non-null bean, or else you'll get an NPE when the form is submitted. Hubert On 1/31/06, Sony T

RE: Need some advice

2006-01-31 Thread Garner, Shawn
Why would you need to do this? Seems like a strange design to me. Shawn -Original Message- From: Sony Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 9:42 AM To: user@struts.apache.org Subject: Need some advice Hi Friends, I have an ActionForm and this ActionForm conta

Need some advice

2006-01-31 Thread Sony Thomas
Hi Friends, I have an ActionForm and this ActionForm contains another ActionForm nested in it. Is there is any way to set values to my nested ActionForm when I submit from the JSP. Please give me some suggestions. Thanks in advance Sony Thomas --

Re: [Tiles] Definition with extends and path attributes

2006-01-31 Thread Antonio Petrelli
Greg Reddin ha scritto: On Jan 31, 2006, at 8:09 AM, Antonio Petrelli wrote: Does a definition such as this have sense? I've personally never had a situation like this where I extend a tile and redefine the path at the same time. I've always extended a tile definition and overridden onl

Re: [OT] Re: design question

2006-01-31 Thread Dave Newton
fea jabi wrote: > you have mentioned that > > "You're going to have an object in memory no matter what" > > If we are using Resultset how/when is the Object getting created? I > was under the impression that it will get the data directly from the DB. Uh... a ResultSet is an object. >> You're going

Re: [Tiles] Definition with extends and path attributes

2006-01-31 Thread Greg Reddin
On Jan 31, 2006, at 8:09 AM, Antonio Petrelli wrote: Does a definition such as this have sense? I've personally never had a situation like this where I extend a tile and redefine the path at the same time. I've always extended a tile definition and overridden only the attributes. But

AW: [Shale] API Stability vs. V1.0

2006-01-31 Thread Bernhard Slominski
> -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag > von Craig > McClanahan > > Shale follows the same version branding policy that the rest > of Struts does > (along with Tomcat and some other projects). An "x.y.z" > release is first > issued with

Re: [OT] Re: design question

2006-01-31 Thread fea jabi
you have mentioned that "You're going to have an object in memory no matter what" If we are using Resultset how/when is the Object getting created? I was under the impression that it will get the data directly from the DB. what are these DTO, GC and IMO? I do remember reading somewhere that

[OT] Re: Waiting for the return value of a JAVA scriptlet

2006-01-31 Thread Dave Newton
Andreas B. Thun wrote: > I wrote a JSP to start a JAVA scriptlet. > It works fine but now I have the problem > to evaluate the return value of my scriptlet > to give the user a feedback if the action > was successful. > getErrorCode() delivers the scriplets return > value. > I have to wait until th

Re: [Shale] Error in remoting

2006-01-31 Thread Craig McClanahan
On 1/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi > > It is (at least) Firefox that is doing this. What it is sticking in is a > Norwegian formatted date. Interesting ... that's not what the HTTP spec[1] says to do. Per section 3.1, clients should be using one of the supported date

[Tiles] Definition with extends and path attributes

2006-01-31 Thread Antonio Petrelli
Does a definition such as this have sense? ... This is just because I have a problem with inheritance between multiple files. Say I have two files, where the second extends the first. The first definition file contains: The second file contains: When I

Re: [Shale] API Stability vs. V1.0

2006-01-31 Thread Craig McClanahan
On 1/31/06, Bernhard Slominski <[EMAIL PROTECTED]> wrote: > > Hi all, > > I am a bit confused about the versioning and the API stability. > So the current Version of Shale is 1.0.1 (according to the API > documentation), so a 1.0 version. Shale follows the same version branding policy that the re

RE: design question

2006-01-31 Thread Myatluk Andrey
Hi! >From here: http://displaytag.sourceforge.net/11/tut_sources.html --- cut --- >From a db? Displaytag will never support retrieving data from a db directly. Displaytag is here to help you in displaying data, not to retrieve them. Anyway, there are a couple of easy methods to get records fr

RE: [Shale] Error in remoting

2006-01-31 Thread hermod.opstvedt
Hi It is (at least) Firefox that is doing this. What it is sticking in is a Norwegian formatted date. Tomcat should have understood this, getting the locale from the request prior to doing this. So I thought that may this might have something to do with the remoting support in Shale after all.

Re: Possible Bug in struts-el html tag library

2006-01-31 Thread Niall Pemberton
On 1/31/06, Michael Manley <[EMAIL PROTECTED]> wrote: > Niall Pemberton gmail.com> writes: > > > > > Thanks for taking the time to debug this. Can you open a bug ticket > > for this please. > > > > Logged as bug 38461. Thanks for creating the ticket Mike - its good to reference a bugzilla ticket

RE: [shale] Images and css being rejected

2006-01-31 Thread hermod.opstvedt
Hi Add javascript (\S*\.js) to that also - as I painfully discovered when my Tree2 node toggling stopped working. Hermod -Original Message- From: Opstvedt, Hermod Sent: Tuesday, January 31, 2006 10:24 AM To: user@struts.apache.org Subject: RE: [shale] Images and css being rejected Hi

Re: Possible Bug in struts-el html tag library

2006-01-31 Thread Michael Manley
Paul Benedict yahoo.com> writes: > > Michael, if you get the time, convert your workaround into a patch and contribute it. My original plan was to patch the line in the library and rebuild it to confirm the problem. However, I've never built struts from source before and my initial attempt to b

Re: Possible Bug in struts-el html tag library

2006-01-31 Thread Michael Manley
Niall Pemberton gmail.com> writes: > > Thanks for taking the time to debug this. Can you open a bug ticket > for this please. > Logged as bug 38461. Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

NullPointer in Resources

2006-01-31 Thread Kristian.L.Petersen
I got this in struts-config.xml I also have a lot of other validation that are working fine, but the earlier mentioned keeps failing. Med venlig hilsen / Kind regards Kristian Lind Petersen Konsulent / Consultant TietoEnator A/S Rygaards Alle 131 DK - 2900 Hellerup Telephone: +45 72 30 6

RE: NullPointer in Resources

2006-01-31 Thread Rakesh.Bhat
Check you struts-config.xml Kind regards, Rakesh Bhat PrimeSourcing(tm) The Global IT Services business from i-flex - "Add Value Reduce Risk" www.iflexsolutions.com/services/services.asp i-flex solutions limited - Bangalore Phone : +91(080) 5759-6873 Email : Rakesh.Bhat@ iflexsol

Waiting for the return value of a JAVA scriptlet

2006-01-31 Thread Andreas B. Thun
Hi, I wrote a JSP to start a JAVA scriptlet. It works fine but now I have the problem to evaluate the return value of my scriptlet to give the user a feedback if the action was successful. getErrorCode() delivers the scriplets return value. I have to wait until the scriplet is finished... Do you

NullPointer in Resources

2006-01-31 Thread Kristian.L.Petersen
I am getting this NullPointer Exception : java.lang.NullPointerException at org.apache.struts.validator.Resources.getMessageResources(Resources.java:127) at org.apache.struts.validator.Resources.getActionMessage(Resources.java:349) at org.apache.struts.validator.F

RE: [shale] Images and css being rejected

2006-01-31 Thread hermod.opstvedt
Hi Until it is fixed, you also need to add any mapping for that you might want for images( gifs,jpg,png) etc. -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 8:28 PM To: Struts Users Mailing List Subject: Re: [shale] Images and css being re

[Shale] API Stability vs. V1.0

2006-01-31 Thread Bernhard Slominski
Hi all, I am a bit confused about the versioning and the API stability. So the current Version of Shale is 1.0.1 (according to the API documentation), so a 1.0 version. However the API stability (http://struts.apache.org/struts-shale/api-stability.html) tell a different story, from the 32 package