Re: (Newbie question) tiles:getAsString error attribute not found

2005-04-05 Thread brenmcguire
In Tiles, you can put attributes only into layout pages. In short terms you should modify your tiles-defs.xml this way: Ciao Antonio Petrelli Neil Aggarwal wrote: >Hello: > >I am a newbie to struts and am trying to get a handle on >tiles:getAsString

request processing problems

2005-04-05 Thread Pavel Jbanov
Hello, (Version: 1.2.4) Situation: I have a Form public class SomeForm extends ValidatorForm { private HashMap quantity = new HashMap(); public String getQuantity(String key) { return (String) quantity.get(key); } public void setQuantity(String key, String val) {

Re: Obtaining size of java.util.Collection through Struts/JSTL

2005-04-05 Thread Matt Raible
Greg Pelly wrote: What is the prefered way to obtain the size of elements that implement the Collection interface, such as a Vector? I would like something like: elements exist in this Vector! But since the method is called "size()" and not "getSize()," Struts can't handle it. Right now I am usi

Re: Reloading ApplicationResources

2005-04-05 Thread James Mitchell
Actually, it's not quite that simple. Struts internals caches the formatted results from your overridden method, and if it already has that one it doesn't bother calling your method. Trust me, I've been around that block. The best you can do (at least to maintain the same performance) is to fl

Re: Obtaining size of java.util.Collection through Struts/JSTL

2005-04-05 Thread Robert Taylor
Make sure you include: <%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %> /robert Greg Pelly wrote: What is the prefered way to obtain the size of elements that implement the Collection interface, such as a Vector? I would like something like: elements exist in this Vector!

Re: Obtaining size of java.util.Collection through Struts/JSTL

2005-04-05 Thread Erik Weber
I use bean:size. I don't know if there is a JSTL equivalent. Seems odd that there wouldn't be one, but I can't find one in my JSTL reference. Erik Greg Pelly wrote: What is the prefered way to obtain the size of elements that implement the Collection interface, such as a Vector? I would like som

Re: Struts Unit Tests / Alternative getUserPrincipleCall

2005-04-05 Thread Tim Christopher
Just in case anyone else experiences the same problem this is how I solved it: TestPrincipal user = new TestPrincipal("tim"); ServletContext context = getActionServlet().getServletContext(); HttpServletRequestSimulator hsrs = new HttpServletRequestSimulator(context); hsrs.setUserPrincipal(

Re: How to assign value to variable from property?

2005-04-05 Thread Daniel PC Leung
I want to extract a value from a bean property so that it can be a variable xx inside sql:query. Can I do that? SELECT first_name, middle_name, last_name, chi_name FROM user_profile WHERE usernm = xxx On Apr 5, 2005 11:46 PM, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > property="pr

RE: Session Idle

2005-04-05 Thread Fogleson, Allen
That is exactly how the session timeout works. If the user is idle (i.e has not submitted a request in X time) then it is timed out (assuming X is the timeout) otherwise a request acts sort of as a "renew this session for X more minutes" Al -Original Message- From: Eain Mat [mailto:[EMAI

Re: Session Idle

2005-04-05 Thread Eain Mat
if i invalidate the session, everything will be destory in the session. I still want the session to keep alive when user is in the middle of their processing operation even the session-timeout is passed. I only want to timeout their session, if they are not doing anything. Eain mat Martin G

Obtaining size of java.util.Collection through Struts/JSTL

2005-04-05 Thread Greg Pelly
What is the prefered way to obtain the size of elements that implement the Collection interface, such as a Vector? I would like something like: elements exist in this Vector! But since the method is called "size()" and not "getSize()," Struts can't handle it. Right now I am using scriptlets: <

Re: Html:messages vs html:errors

2005-04-05 Thread Niall Pemberton
One cause of this is if it can't find the message key in your application resources and you have your message resources configured with null="true". If you change your message resources config to null="false" in your struts-config.xml Then if it can't find the message for some reason, you s

RE: Popup Windows with Struts Actions

2005-04-05 Thread Smith, Thad
The window.open javascript method takes an optional target which is the named frame/window that you want to be the destination output. There are a few built in names such as _parent, _blank, _self that serve special purposes. If the browser is unable to find a frame called "dontCareThatName", it a

Re: Session Idle

2005-04-05 Thread Martin Gainty
--web.xml contents-- 5 then trap on the invalidate method for your HttpSession object Makes sense??? Martin- - Original Message - From: "Eain Mat" <[EMAIL PROTECTED]> To: Sent: Tuesday, April 05, 2005 7:44 PM Subject: Session Idle > What is the simplest way to track the session idle

Session Idle

2005-04-05 Thread Eain Mat
What is the simplest way to track the session idle? We cannot use session-timeout in web.xml because there may be leftover operation that is needed to process. Eain Mat

RE: New to Struts

2005-04-05 Thread Ruben Cepeda
Balajj, I would go to the struts home page and start looking thru the documentation and tutorial. Here is a link: http://struts.apache.org/userGuide/index.html to the user guide it come in handy. * Ruben Cepeda [EMAIL PROTECTED]

RE: Html:messages vs html:errors

2005-04-05 Thread Michael Oliver
I tried the example from the HelpTagsErrorsAndMessages.html in my jsp near the top of the body. Messages: The action that forwards to that jsp has: ActionErrors errors = new ActionErrors(); errors.add(ActionEr

Re: Popup Windows with Struts Actions

2005-04-05 Thread Dakota Jack
This looks cool to me as well. What is with the target="dontCareThatName"? Is this necessary, and, if so, what should "dontCareThatName" be? Thanks, On Apr 5, 2005 2:29 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Dakota Jack wrote: > > >Anyone have some code on using JavaScript to open

RES: RES: [OT] RE: AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Paulo Alvim
Our first tests mixed JSP pages and Laszlo: - flash sometimes call jsp pages for "export CSV/XML", "print preview", and a few other "utilities" - struts based "portal" JSP pages embedeed Laszlo sub-apps - a few cache - form-bean "firewall" - ...abd we'd like to keep an architecture that could deli

Re: 'value' attribute behavior change 1.2.0 to 1.2.6

2005-04-05 Thread Niall Pemberton
Apologies, this was my fault - I added a trim() to the value when I re-factored this tag :-( I'll change this back. Niall - Original Message - From: "Wendy Smoak" <[EMAIL PROTECTED]> Sent: Tuesday, April 05, 2005 11:28 PM > I'm getting the following HTML rendered from the JSP below: >

RE: RES: [OT] RE: AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Smith, Thad
I evaluated Laszlo a few months ago and it is a very impressive (at least visually). It's a good RIA framework and no one can thumb their nose at the fact that it's now open source. Not sure if I can say to definitely use Laszlo over JSF. My question is how are you planning on using Struts as t

'value' attribute behavior change 1.2.0 to 1.2.6

2005-04-05 Thread Wendy Smoak
I'm getting the following HTML rendered from the JSP below: This is supposed to be a submit button with an image and no text (just spaces). It worked in 1.2.0, but 1.2.6 is ignoring the 'value' attribute and I'm getting the word 'Submit' plastered over the image. Before I open a bug, can any

RE: Html:messages vs html:errors

2005-04-05 Thread Michael Oliver
This seems to be one of the biggest problems for Struts users, I am still on 1.1 but had so much trouble with that I am sure moving to html:messages will be better, I too want to do that, but not finding what to do. Michael Oliver CTO Alarius Systems LLC 3325 N. Nellis Blvd, #1 Las Vegas, NV 8911

Re: Popup Windows with Struts Actions

2005-04-05 Thread [EMAIL PROTECTED]
Dakota Jack wrote: Anyone have some code on using JavaScript to open and close popup windows with a Struts Action? Thanks. Jack I like very much: The output of yourAction will be shown in the popup, and all your form fields are brought the normal way to yourAction with no need to put them

RE: [OT] RE: AW: JSF (the same old stuff?). We prefer Laszlo+Struts

2005-04-05 Thread Fogleson, Allen
Jack, Oh yeah, that has always been my argument... ok Im using spring. Its just a FRAMEWORK for pete's (usually I want to use a more.. ahem appropriate word there) sake. If I write a custom IOP framework I am allowed to use it, but because we are using "external" frameworks we suddenly have to jus

RE: Popup Windows with Struts Actions

2005-04-05 Thread Wiebe de Jong
The onlick="window.open ..." portion is the javascript onclick event. Just use the snippet as presented, changing the two parameters and the link name to suit your needs. Wiebe -Original Message- From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 1:47 PM To:

Re: RES: [OT] RE: AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Paulo Alvim [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 5. April 2005 23:08 > An: Struts Users Mailing List > Betreff: RES: RES: [OT] RE: AW: JSF (the same old stuff?). We > prefer Laszlo + Struts > > you're welcome, Rick... > > I believe that t

Re: RES: [OT] RE: AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Paulo Alvim [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 5. April 2005 23:08 > An: Struts Users Mailing List > Betreff: RES: RES: [OT] RE: AW: JSF (the same old stuff?). We > prefer Laszlo + Struts > > you're welcome, Rick... > > I believe that t

RES: RES: [OT] RE: AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Paulo Alvim
you're welcome, Rick... I believe that the Open-Source community have to let the "Darwin law" works. Without commercial pressure and - yes - sometimes against a few 'not so good or necessary' conventions. That guys provided us great results - so we want to share it and help them! -Mensagem o

Re: why complicate? was: Eliminate Setup Actions

2005-04-05 Thread Dakota Jack
Heck, Tapestry is way ahead of JSF, etc. I have no idea why JSF is seen as new when Tapestry is ahead of the game. On Mar 11, 2005 8:34 PM, Tak Yoshida <[EMAIL PROTECTED]> wrote: > Rick, > > I really appreciated that you have looked at my small idea. > Please write or see the sample code. > You

RE: Popup Windows with Struts Actions

2005-04-05 Thread Barnett, Brian W.
Sorry, I'm a javascript beginner. Can you provide a sample javascript onclick event? Thanks... -Original Message- From: Wiebe de Jong [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 11:54 AM To: 'Struts Users Mailing List' Subject: RE: Popup Windows with Struts Actions Like th

Re: [OT] RE: AW: JSF (the same old stuff?). We prefer Laszlo +Struts

2005-04-05 Thread Dakota Jack
What is odd about this is that using something like Lazlo, if you know what you are doing, is just using code. Why would you tell a client if you wanted to use some code? What if you coded it yourself? Then could you use it? Do you understand what I am wondering? Jack On Apr 5, 2005 1:39 PM,

Re: Popup Windows with Struts Actions

2005-04-05 Thread Dakota Jack
THANX, Wiebe On Apr 5, 2005 10:53 AM, Wiebe de Jong <[EMAIL PROTECTED]> wrote: > > Like this: > > onclick="window.open('findAccountCSV.do','csv')">CSV > > Add the javascript to the onclick event. The first parameter is the action > and the second is the window name. There are some additional o

Re: RES: [OT] RE: AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Rick Reumann
I'm going to have to take a real good look at laszlo. Thanks for bringing it up. I'm so tired of the front end limitations of HTML. Paulo Alvim wrote the following on 4/5/2005 4:37 PM: Please check carefully all these Laszlo demos, Al, and you'll see that it's a real killer MVC-View approach that

RE: [OT] RE: AW: JSF (the same old stuff?). We prefer Laszlo +Struts

2005-04-05 Thread Fogleson, Allen
Ohh I agree that Laszlo is pure view stuff. My contention is that because it is it doesn't belong in struts core really at all, but it is possible that a contrib module that integrates Laszlo into struts is possible. Al - To uns

RES: [OT] RE: AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Paulo Alvim
Please check carefully all these Laszlo demos, Al, and you'll see that it's a real killer MVC-View approach that deliver great value for customers (in its segment - of course): http://www.laszlosystems.com/demos/ And please note that you don't have "MVC-Control" in Laszlo - it's focused in the Vi

Re: Locale-specific ActionForm population

2005-04-05 Thread Bernd Hofner
Hello Hubert, thanks for your reply, I'll have a look at your link. >possible solutions to your problem using the approach you're following Is there another approach? Do people specify there ActionForm fields as string and do the locale specific parsing when copying the ActionForm fields to their m

Re: questions concerning Lists and indexes and lazy lists, oh my

2005-04-05 Thread Rick Reumann
Wendy Smoak wrote the following on 4/5/2005 3:50 PM: In light of that, I would bet the BeanUtils code always uses the getWhatever() method, and then gets/sets the requested index directly on the List or array. Seems logical to me, but I have not run it in a debugger or looked at the code to be cer

[OT] RE: AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Fogleson, Allen
Paulo, I can certainly agree that value to the customer is the prime ingredient in any solution. However the problem I have seen, at least here in the US (I can't speak to the west coast but I have had clients up and down the east coast, most of the Midwest, and very little on the west coast) is t

Re: RES: AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Dave Newton
Frank W. Zammetti wrote: Did you provide a link for Laszlo? I might have missed it. I've frankly never heard of it, I'd like to take a look. Uhhh. Yeah. Thank goodness for necks and all that. http://www.laszlosystems.com/ Dave ---

Re: RES: AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Dave Newton
Frank W. Zammetti wrote: Did you provide a link for Laszlo? I might have missed it. I've frankly never heard of it, I'd like to take a look. I just ran across it, coincidentally, two days ago: it's basically a Flash-generated-via-servlet technology. I'm evaluating it for use almost nearly as we

Re: questions concerning Lists and indexes and lazy lists, oh my

2005-04-05 Thread Wendy Smoak
From: "Rick Reumann" <[EMAIL PROTECTED]> > > My question is how does Struts/BeanUtils handle two get methods that > have different signatures but the same method name, and what exactly is > going on? > See section 7.2 of the JavaBeans Specification for info on indexed properties. The indexed get/

Re: RES: AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Van
On Apr 5, 2005 12:15 PM, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Did you provide a link for Laszlo? I might have missed it. > > I've frankly never heard of it, I'd like to take a look. Google "Laszlo" and it could be your lucky day. :-) http://www.laszlosystems.com/ > -- > Frank W. Zamm

Re: Shale And Spring: Using Spring Dependency Injection With Shale

2005-04-05 Thread Duong BaTien
Thanks. I will find time to do it. BaTien DBGROUPS Craig McClanahan wrote: Please try out the latest nightly version of the "use cases" sample app. It uses Spring to provide the business logic object (and associated DAO) for the login use case. Craig On Apr 5, 2005 10:13 AM, Duong BaTien <[EMAIL P

(Newbie question) tiles:getAsString error attribute not found

2005-04-05 Thread Neil Aggarwal
Hello: I am a newbie to struts and am trying to get a handle on tiles:getAsString tag. I am having a problem in that is complains that the attribute I am trying to get does not exist. Here is what I have in my tiles-defs.xml: I have an index.jsp th

Re: Html:messages vs html:errors

2005-04-05 Thread Niall Pemberton
>From this and other messages I think you've got the wrong end of the stick regarding the tag. You can use either or with ActionMessage, its just down to personal preference. I've added a page comparing and here: http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html You can u

Re: RES: AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Frank W. Zammetti
Did you provide a link for Laszlo? I might have missed it. I've frankly never heard of it, I'd like to take a look. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Tue, April 5, 2005 2:52 pm, Paulo Alvim said: > Thanks for your help, Fra

Re: Shale And Spring: Using Spring Dependency Injection With Shale

2005-04-05 Thread Craig McClanahan
Please try out the latest nightly version of the "use cases" sample app. It uses Spring to provide the business logic object (and associated DAO) for the login use case. Craig On Apr 5, 2005 10:13 AM, Duong BaTien <[EMAIL PROTECTED]> wrote: > I reply to dev list but the mail was not accepted. >

RES: AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Paulo Alvim
Thanks for your help, Frank... My English is not so good - but that's exactly what I'd like to say. (you know - after 20 years migrating to lots of tools - COBOL, UNIX, RAD C/S, Java App Server, J2EE, Open-Source, we know that, at the end, delivery value to the end customers has to be the main goa

Re: How to submit a variable number of text fields ?

2005-04-05 Thread Rick Reumann
Stéphane Zuckerman wrote the following on 4/5/2005 11:31 AM: because your intial String[] isn't large enough. OK, that explains my problem then. I think if you use a LazyList things will be easier. If you use indexed properties for a String[] things are going to become more tricky (although I t

questions concerning Lists and indexes and lazy lists, oh my

2005-04-05 Thread Rick Reumann
Ok, I thought I had a pretty firm grasp on the use of Lists for form bean properties and everything works fine in my applications that use Lists for properties. (If I need to make sure the List can grow I wrap them in a LazyList in the reset method like.. //reset(..) myList = ListUtils.lazyList

Re: Popup Windows with Struts Actions

2005-04-05 Thread Dakota Jack
LOL -- heck, I should have said the other. On Apr 5, 2005 10:49 AM, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Ah, good, I was going to yell at you if it was the other :) > > myLeft = (screen.width) ? (screen.width - 1180) / 2 : 0; > myTop = (screen.height) ? (screen.height - 924) / 2 : 0; >

RE: Popup Windows with Struts Actions

2005-04-05 Thread Wiebe de Jong
Like this: CSV Add the javascript to the onclick event. The first parameter is the action and the second is the window name. There are some additional optional parameters that you can add to control the window, etc. Wiebe de Jong -Original Message- From: Dakota Jack [mailto:[EMAIL PROT

Re: Popup Windows with Struts Actions

2005-04-05 Thread Frank W. Zammetti
Ah, good, I was going to yell at you if it was the other :) myLeft = (screen.width) ? (screen.width - 1180) / 2 : 0; myTop = (screen.height) ? (screen.height - 924) / 2 : 0; myOpts = "resizable,scrollbars,width=1180,height=924,top=" + myTop + ",left=" + myLeft + ","; window.open('startup.toa', 'TO

Re: Popup Windows with Struts Actions

2005-04-05 Thread Dakota Jack
No, have the popup url from the page be a struts action -- popup.do. Jack On Apr 5, 2005 10:37 AM, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Not sure what you mean... You mean open the popup from WITHIN an Action? > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex T

Re: Popup Windows with Struts Actions

2005-04-05 Thread Frank W. Zammetti
Not sure what you mean... You mean open the popup from WITHIN an Action? -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Tue, April 5, 2005 1:27 pm, Dakota Jack said: > Anyone have some code on using JavaScript to open and close popup > wi

Popup Windows with Struts Actions

2005-04-05 Thread Dakota Jack
Anyone have some code on using JavaScript to open and close popup windows with a Struts Action? Thanks. Jack -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ - To unsubscribe, e-mail:

Shale And Spring: Using Spring Dependency Injection With Shale

2005-04-05 Thread Duong BaTien
I reply to dev list but the mail was not accepted. BaTien Dear Wiki user, You have subscribed to a wiki page or wiki category on "Struts Wiki" for change notification. The following page has been changed by CraigMcClanahan: http://wiki.apache.org/struts/ShaleAndSpring New page: +++-- Shale And

Re: AW: AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Simon Chappell
Not to worry. Just a couple of thousand of your closest friends. :-) On Apr 5, 2005 11:57 AM, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Gee, I kind of wish I had been paying attention and realized this was > headed for the list :) > > -- > Frank W. Zammetti > Founder and Chief Software Archi

Re: AW: AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Frank W. Zammetti
Gee, I kind of wish I had been paying attention and realized this was headed for the list :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Tue, April 5, 2005 12:56 pm, Frank W. Zammetti said: > On Tue, April 5, 2005 12:50 pm, Leon Rosenb

Re: AW: AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Frank W. Zammetti
On Tue, April 5, 2005 12:50 pm, Leon Rosenberg said: > Thanx Frank, got it. > > Some years ago, a bunch of hp managers was trying to sell me (actually it > was red bull, but i was in lead for the project) tons of > man-days arguing, that with _their_ development process, they called RAD, > and whic

AW: AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Leon Rosenberg
Thanx Frank, got it. Some years ago, a bunch of hp managers was trying to sell me (actually it was red bull, but i was in lead for the project) tons of man-days arguing, that with _their_ development process, they called RAD, and which is much better then RUP or XP, they can deliver much better s

AW: AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Leon Rosenberg
Thanx Frank, got it. Some years ago, a bunch of hp managers was trying to sell me (actually it was red bull, but i was in lead for the project) tons of man-days arguing, that with _their_ development process, they called RAD, and which is much better then RUP or XP, they can deliver much better s

Re: AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Frank W. Zammetti
On Tue, April 5, 2005 12:16 pm, Leon Rosenberg said: > Aehm, could you please explain what exactly the "high level RAD+Html > approach" is? > > Regards > Leon > > > P.S. RAD as in Rapid Application Development? I think that is indeed what he is referring to. I could probably just let him answer f

RE: Html:messages vs html:errors

2005-04-05 Thread Fergal O'Shea
We don't seem to have struts-examples.war readily available here at work. Does anyone have an example of overriding an ActionForm's validate() method, but using ActionMessage instead of ActionError (I presume you still have to use a Collection of ActionErrors), and using html:messages instead of

AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Leon Rosenberg
Aehm, could you please explain what exactly the "high level RAD+Html approach" is? Regards Leon P.S. RAD as in Rapid Application Development? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

AW: JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Leon Rosenberg
Aehm, could you please explain what exactly the "high level RAD+Html approach" is? Regards Leon P.S. RAD as in Rapid Application Development? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: jsp error

2005-04-05 Thread Tommy Wareing
On Tue, 5 Apr 2005 18:01:06 +0200, Andreas Solarik <[EMAIL PROTECTED]> wrote: Hi Tom! Do you know about the errorpage directive for jsps? Would that help you? Its something along the lines of <%@ page contentType="text/html" language="java" errorPage="UncaughtJspError.jsp" %> hope that helps.

Re: JSP error trapping?

2005-04-05 Thread Tommy Wareing
On Tue, 5 Apr 2005 10:45:59 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote: There's really not much Struts can do at this point, because control has been transferred to the JSP. Yeah, thought that might be the case. About the best you can do is judicious application of the JSTL c:catch tag. That

Re: JSP error trapping?

2005-04-05 Thread Joe Germuska
At 4:39 PM +0100 4/5/05, Tommy Wareing wrote: I'm using 1.2.4, with Tiles. (I don't know whether Tiles is relevant, but you might as well know!) I've got type="java.lang.Exception" path="/WEB-INF/globalError.jsp"/> in my struts-config.xml, which catches exceptions in my

RE: Tag inside a cell.

2005-04-05 Thread Fogleson, Allen
CSS is probably the easiest solution. An alternate solution would be to subclass the bean:write tag, and add an attribute. Call it "alt" although in html that often means something else (hmm maybe "alttext" but whatever...) alt will be the text returned if the write would return null. In this cas

JSF (the same old stuff?). We prefer Laszlo + Struts

2005-04-05 Thread Paulo Alvim
Hi, We've been used Struts since 2001 and developed lots of extensions - ActionMapping, LookupDispatchAction, ExceptionHandler, RequestProcessor, Validator, DynaFormBean, tag-files, etc. - along these years. Now we have productivity and a quite stable environment...thanks to the community and Crai

re: How to assign value to variable from property?

2005-04-05 Thread Leon Rosenberg
Do you mean this kind of assignment? Regards Leon > -Ursprüngliche Nachricht- > Von: PC Leung [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 5. April 2005 17:43 > An: user@struts.apache.org > Betreff: How to assign value to variable from property? > > Hello all, > > The following c

re: How to assign value to variable from property?

2005-04-05 Thread Leon Rosenberg
Do you mean this kind of assignment? Regards Leon > -Ursprüngliche Nachricht- > Von: PC Leung [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 5. April 2005 17:43 > An: user@struts.apache.org > Betreff: How to assign value to variable from property? > > Hello all, > > The following c

How to assign value to variable from property?

2005-04-05 Thread PC Leung
Hello all, The following can print a value in jsp file. How to assign the value to a variable in jsp from a property? Thanks PC Leung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to submit a variable number of text fields ?

2005-04-05 Thread Tommy Wareing
On Tue, 5 Apr 2005 09:51:07 -0400, Jeff Beal <[EMAIL PROTECTED]> wrote: If all of your controls have the same name, a String[] form property works, also. (This isn't guaranteed to preserve any order, though.) Yes, I thought this too. Which would imply that if you have two controls in your form whi

JSP error trapping?

2005-04-05 Thread Tommy Wareing
I'm using 1.2.4, with Tiles. (I don't know whether Tiles is relevant, but you might as well know!) I've got type="java.lang.Exception" path="/WEB-INF/globalError.jsp"/> in my struts-config.xml, which catches exceptions in my Action classes, and redirects them to an er

Re: How to submit a variable number of text fields ?

2005-04-05 Thread Stéphane Zuckerman
>> What's the error you are getting? I haven't looked at everything but >> the above "name='persons["+i+"]name' />" should be >> "name='persons["+i+"].name' />" Ops. In the original JSP, there is no such mistake ;-) Rick Reumann a écrit : Also you will be getting errors when you submit (probabl

Re: Tag inside a cell.

2005-04-05 Thread Brandon Mercer
Marcelo Epstein wrote: > Thanks Jeff, > > But it is not working. I inserted : > > table { empty-cells: show; } > inside my css file. > > But the cells when the attribute of the bean is null still appears no > border. :-( > > Any sugestion? Or sample code? > You'll have to make sure that the table

Re: How to submit a variable number of text fields ?

2005-04-05 Thread Rick Reumann
Also you will be getting errors when you submit (probably index out of bounds exception) because your intial String[] isn't large enough. I think if you use a LazyList things will be easier. If you use indexed properties for a String[] things are going to become more tricky (although I think th

Re: How to submit a variable number of text fields ?

2005-04-05 Thread Rick Reumann
Stéphane Zuckerman wrote the following on 4/5/2005 11:06 AM: f.innerHMTL += ""; // ... and the same for fname and email ... What's the error you are getting? I haven't looked at everything but the above "name='persons["+i+"]name' />" should be "nam

Re: Tag inside a cell.

2005-04-05 Thread Marcelo Epstein
Thanks Jeff, But it is not working. I inserted : table { empty-cells: show; } inside my css file. But the cells when the attribute of the bean is null still appears no border. :-( Any sugestion? Or sample code? Thanks in advance Marcelo Jeff Beal wrote: In CSS: table { empty-cells: show; } Anot

Re: How to submit a variable number of text fields ?

2005-04-05 Thread Stéphane Zuckerman
Hello again, Let me try to define a simular problem that I have that would most probably answer Stéphane's. But only Stéphane can confirm this. :) Well, I do ! :-) This is the same kind of problem I have encountered. I don't use a list, just an array (although a List would do just fine, of course

Re: Tag inside a cell.

2005-04-05 Thread Jeff Beal
In CSS: table { empty-cells: show; } Another alternative is to include   in empty table cells See http://www.w3.org/TR/REC-CSS2/tables.html#empty-cells -- Jeff On Apr 5, 2005 10:23 AM, Marcelo Epstein <[EMAIL PROTECTED]> wrote: > Hi, > > When the attribute of an object is null, I always lost

Re: PropertyMessageResourcesFactory not found?!

2005-04-05 Thread Hubert Rabago
Hey Brice, haven't seen you around here in a lng while. Sorry, I haven't seen this type of thing before. Perhaps try the tomcat user list? As you've seen, Struts is behaving correctly here. If anyone has seen this type of thing before, it's more likely been reported in the Tomcat list, or t

Re: [OT] Connection time out DB2

2005-04-05 Thread Simon Chappell
A couple of thoughts here: 1. The timeout for DB2 should be configurable. If it isn't then there's nothing you can do anyway. If it is configurable, then work with your DBA to get it set to something that you and they agree is reasonable. 2. Don't test the environment. It sounds like your trying

RE: PropertyMessageResourcesFactory not found?!

2005-04-05 Thread Ruth, Brice
So ... No idea from the list? Anyone seen this type of thing before? -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Friday, April 01, 2005 4:22 PM To: Struts Users Mailing List Subject: PropertyMessageResourcesFactory not found?! I have a strange problem with Prope

Re: How to submit a variable number of text fields ?

2005-04-05 Thread gdeschen
Hello Rick, Let me try to define a simular problem that I have that would most probably answer Stéphane's. But only Stéphane can confirm this. :) I have classes such as: public class Description { private String id; private String Description; ... } public class HistoryItem {

Tag inside a cell.

2005-04-05 Thread Marcelo Epstein
Hi, When the attribute of an object is null, I always lost the border of the table.What is a good way to avoid it? ex: (when y = null, border seems strange!) Thanks in advance. Marcelo - To unsubscribe, e-mail: [EMAIL PROTE

Re: How to submit a variable number of text fields ?

2005-04-05 Thread Rick Reumann
Jeff Beal wrote the following on 4/5/2005 9:51 AM: I created a simple page like this where the dynamically created form properties were just named field0, field1, field2, field3, etc. I'll be willing to bet almost anything, that Stéphane does not need to do this. Stéphane could you explain a

RE: Reloading ApplicationResources

2005-04-05 Thread Fogleson, Allen
Mark, Within struts messageResources are loaded at startup and that's it, they aren't loaded again unless the app is restarted of course. If you wanted this kind of functionality you would have to write a couple classes. 1) Write a MessageResourceFactory class that returns your specific messag

Re: How to submit a variable number of text fields ?

2005-04-05 Thread Tom Ziemer
Hi, have you looked at map backed forms? Basically you have Hashmap, that stores any number of fields. What you need is something like: [your form] ... private HashMap properties = new java.util.HashMap(); ... public void setProperty(String key, Object value) { this.properties.put(key, value)

Re: How to submit a variable number of text fields ?

2005-04-05 Thread Jeff Beal
If all of your controls have the same name, a String[] form property works, also. (This isn't guaranteed to preserve any order, though.) Other than that and indexed properties, I don't know of a really good way. In my very first web application, before I really knew anything at all, I created a

Re: How to submit a variable number of text fields ?

2005-04-05 Thread Rick Reumann
Stéphane Zuckerman wrote the following on 4/5/2005 7:54 AM: I'm trying to submit a form where the user fills a field with a number, making text fields appear (via Javascript). Not sure what you mean? When the user fills in a number, other text boxes get filled in? If so this just acts like a regu

Re: Html:messages vs html:errors

2005-04-05 Thread Hubert Rabago
Here are wiki topics that discuss this: http://wiki.apache.org/struts/StrutsDeprecatedActionErrors http://wiki.apache.org/struts/ActionErrorsAndActionMessages Hubert On Apr 5, 2005 8:18 AM, Fergal O'Shea <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm a Struts newbie. A lot of the books and documen

[OT] Connection time out DB2

2005-04-05 Thread Janarthan Sathiamurthy
Hi Group, My backend database is DB2. I have a junit test to check the time out of a DB2 connection. A snippet of it is as follows - Connection con = DBConnectionManager.getInstance().getConnection(POOL_NAME); try { System.out.println("Thread to sleep.." + new Date()); Thread.slee

Re: Html:messages vs html:errors

2005-04-05 Thread Riyaz Mansoor
> I'm a Struts newbie. A lot of the books and documentation I have on Struts > is pre 1.2 and uses html:errors and ActionErrors. Given ActionErrors is > deprecated, I'd like to use ActionMessages for some new JSPs I'm writing. the usage is the same. actionerrors are dependent on certain keys suc

Html:messages vs html:errors

2005-04-05 Thread Fergal O'Shea
Hi, I'm a Struts newbie. A lot of the books and documentation I have on Struts is pre 1.2 and uses html:errors and ActionErrors. Given ActionErrors is deprecated, I'd like to use ActionMessages for some new JSPs I'm writing. Does anyone know of links to more up-to-date articles or documentatio

Reloading ApplicationResources

2005-04-05 Thread Mark Benussi
Sorry, cant search the archive list as the link seems to have broken. Does anyone know a way I can configure Struts to watch for changes in the application resources? If it is not possible is there a class I can overload to do it manually?

Re: Concatinating 2 strings for a bean:message???

2005-04-05 Thread Lucas Bern
this way?: I wish it helps you Lucas [EMAIL PROTECTED] wrote: I am trying to make the following work without success: "> for a property of... label.owner.section.info.1 = Owner One Details -- Thanks... Mick Knutson Systems Developer Business Direct Services, Wells Fargo Bank 333

  1   2   >