Re: Conditionally show values in Tile (c:when?)

2005-08-11 Thread Troy Bull
Greg Reddin wrote: On Aug 11, 2005, at 9:30 AM, Albrecht Leiprecht wrote: Just did the following: <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %> <% int errmsglength = 5; %> Further down: ... One would expect to see the 3 dots ... but nada ... And yes ...the taglib is loaded in the firs

Welcome Page Not Working

2006-03-09 Thread Troy Bull
Greetings I have a struts app called "bus" and I have an action kicker.do. How do I tell my app to start kicker.do if no other info on the url is given. for example http://myserver.com/bus should run http://myserver.com/bus/kicker.do I put /kicker.do this in my web.xml and that did

Re: Welcome Page Not Working

2006-03-09 Thread Troy Bull
atter, may be zero-lenght, but the specification requires that what you specify in welcome-file-list must be physical files. The request will be handled correctly by struts. -Mensaje original- De: Troy Bull [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 09 de Marzo de 2006 14:32 p.m.

Change Input parameter at run time

2006-05-04 Thread Troy Bull
Greetings I have an application i have inherited. There is a situation where 2 jsp's submit to the same action with the same form bean. In the validation function inside the form bean if there is one type of error I want to set the input parameter to /jsp1.jsp and put an ActionError on the

Re: Change Input parameter at run time part 2...

2006-05-04 Thread Troy Bull
I found mapping.setInput but i get an error when i try to change it telling me java.lang.IllegalStateException: Configuration is frozen How do u temporarily unfreeze my configuration so I can change my input ?? thanks troy Troy Bull said the following on 5/4/2006 1:37 PM: Greetings I

Tiles Question

2006-05-05 Thread Troy Bull
Greetings I am new to tiles and so far I like it. I have a question though. Seems like it should be easy to do but I haven't seen how yet. I will try to describe the situation as concisely as I can. This can be reproduced with just 2 jsp files. layout.jsp (interesting lines only)

Re: Tiles Question

2006-05-08 Thread Troy Bull
6 3:01 PM: Have you tried the instructions in the tiles documentation? http://struts.apache.org/struts-action/struts-tiles/ I think it describes your use case. Are you trying this and getting some kind of error you can send us? Thanks, Greg On May 5, 2006, at 1:33 PM, Troy Bull wrote:

Another Tiles Question

2006-05-09 Thread Troy Bull
I have another tiles question. I have an application with a header, footer leftmenu and body. My question is should i have 1 form layed out in my layout.jsp that surrounds all these tiles, or should i have a different form on each tile. For example if you edit a form in the body section and

Session Question

2005-09-28 Thread Troy Bull
Hi all I have an action that puts a string in to session named variable. Then returns success which loads a jsp page. On that page I have the following 2 lines. I thought it would print out the message 2 times but it does not it only prints it once. The second line is the one that prints

Re: Session Question

2005-09-28 Thread Troy Bull
Thanks a ton. Sometimes I miss the dumbest stuff... Ronald Holshausen wrote: change it to On 28/09/05, Troy Bull <[EMAIL PROTECTED]> wrote: Hi all I have an action that puts a string in to session named variable. Then returns success which loads a jsp page. On that page I ha

Form Bean Question

2005-09-29 Thread Troy Bull
Hello: I have a question about how to setup a "situation" I have. I want to have a jsp page that has a variable number of text fields on it, named qty1, qty2, ... qtyN where N is some unknown number. I tried to set it up and use no form bean at all so I could just pull them from the reque

Print out Bean value

2005-10-12 Thread Troy Bull
Hello I have a form bean that is changed in an action. I set one attribute "secret" then on the next jsp I want to display this. If I do a text box appears with the correct value in it. My problem is i dont want it in a text box I just want to display the text. I am sure this should be

problem with html:select / html:options

2005-10-13 Thread Troy Bull
Hi I am trying to use the struts taglibs as much as I can and I have the following situation. I have a collection object filled with DTO beans stored in session. The following prints out the list as I would expect: and if I try this on the same page what I can't figure

trouble with dispatching on a paramter

2005-10-18 Thread Troy Bull
Hello I am trying to get my form to dispatch to different functions inside my action handler class. I followed this tip exactly : http://www.husted.com/struts/tips/002.html (except i fixed a couple type o's). The problem is my dispatch parameter is not being recognized. I have the followi

Re: trouble with dispatching on a paramter

2005-10-18 Thread Troy Bull
se response) throws IOException, ServletException { System.out.println("Hello from save defaults"); return mapping.findForward("confirm_save_defaults"); } } Any ideas? Wendy Smoak wrote: From: "Troy Bull" <[EMAIL PROTECTED]> The problem is my dispatch par

Re: trouble with dispatching on a paramter

2005-10-18 Thread Troy Bull
Thank you so much, as soon as I removed the execute method it worked perfectly Wendy Smoak wrote: From: "Troy Bull" <[EMAIL PROTECTED]> public ActionForward execute( ... ) { SearchForm s = (SearchForm) form; String dispatchString = s.getDispatch(); System.o

Problems with Iterator tag Please Help

2005-10-20 Thread Troy Bull
Hello I have a situation here. I have an ArrayList of DTO objects in session. <% ArrayList rows = (ArrayList) session.getAttribute("rows"); if (rows != null) { Iterator i = rows.iterator(); while (i.hasNext()) { NibuSrchVLocalDTO debug = (NibuSrchVLocalDTO)i.next();

problems with struts html tag lib

2005-10-29 Thread Troy Bull
I am trying to include a <%= variable %> type thing in an html:submit tag and it doesn't evaluate the <%= variable %> is there a way to make it evaluate this? Or is there a way to include dynamic contect in this tag. In this case it is inside a loop and "variable" changes each time through th

Validation Question how to echo back users input in error message?

2005-11-04 Thread Troy Bull
I am using the struts validator and it works almost exactly the way I want. Say I have a field tf and the value is "ABC" I want to do a validation requiring it to be an integer and return the following error message: "tf must be an integer". I can do all this pretty easily here is the code t

Form Bean Array / Check box how to

2005-11-18 Thread Troy Bull
I have a form with multiple "rows" on it say it has columns a b c chk hid I have javascript to set hid to Y or N based on someone clicking chk Then in my form bean I have String[] a; String[] b; String[] c; String[] hid; My question is how can I make my check box set the correct hid (if I ha