Re: dinamically add href into html:link

2003-08-31 Thread Jiri Chaloupka
OK, thanks for your view. Maybe it will be better to rewrite it, until there is not much code... Jiri Mark Lowe wrote: If you've the choice use JSTL.. If you're using the expression language then use that. I like using the standard struts tags but that because there's no el. and after readin

RE: load data from db into form

2003-08-31 Thread David Friedman
Jiri, What action class does your action extend? If it is org.apache.struts.action.Action, then the parameter field, which you appear to have filled in with what seems to be a tiles definition, is ignored. The parameter field does nothing unless it is a subclass of Action, such as ForwardAction,

Re: load data from db into form

2003-08-31 Thread Jiri Chaloupka
Thanks David, it looks bettre, you've right, this was a clear mistake :( this exception is not shown now, but now it is displayed blank page, only Maybe, when action class is finished I must set some forward. now I have LoadDataService service = new LoadDataService(); ComplRegisterDTO register

displaying collections after a validate() error

2003-08-31 Thread Graham Stark
Hi, could someone suggest what I'm doing wrong here? I've got a form with an associated ActionForm, several members of which are collections. I display them like this: [] Whilst single valued fields are displayed like: All seems well, and everything displays fine. However

force caching staticJavascript.jsp

2003-08-31 Thread Adolfo Miguelez
Hi, as validator framework suggest, is possible to avoid downloading static functions for validation for every JSP, by creating the page: <%@ page contentType="application/x-javascript" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> which would hold static functions called from t

Re: J2EE IDE

2003-08-31 Thread Michael Wever
This is nonsense. I use NetBeans 3.5.1 with j2sdk1.4.2, and I rarely restart it (manually or through a crash) more than one a week. Right now it has been running for over three weeks fine. The speed issue is relative, what is slow? NetBeans 3.5.x version was primarily improvements to performance i

Getting IllegalStateException when URL is wrong & struts can't finda mapping

2003-08-31 Thread Adam Hardy
When I type in the URL myself and make a spelling mistake, shouldn't I get a 404 error message saying this resource isn't available? At the moment I am getting the following 500 error java.lang.IllegalStateException at org.apache.coyote.tomcat4.CoyoteResponseFacade.sendError(CoyoteResponseFaca

Re: load data from db into form

2003-08-31 Thread Mark Lowe
Okay forget the beanutils... theForm.set("fullname",registerDTO.getFullname()); ..or theForm.set("mybean", registerDTO); Hope this gets you there.. Mark On Sunday, August 31, 2003, at 05:24 PM, Jiri Chaloupka wrote: Yes, nested tags, I must look at ... so now I have it without nested, fo

RE: load data from db into form

2003-08-31 Thread David Friedman
Jiri, Your error message explains the problem properly: "No destination bean specified". This means that BeanUtils.copyProperties is trying to copy the registerDTO to a bean named 'form', which is null. This makes complete sense since your previous emails never tell us you've fixed your tag to i

Re: dinamically add href into html:link

2003-08-31 Thread Mark Lowe
If you've the choice use JSTL.. If you're using the expression language then use that. I like using the standard struts tags but that because there's no el. and after reading the faces stuff, i'm sold on using jstl. Although I'm not JSTL's biggest fan it does have a certain elegance of its ow

RE: dinamically add href into html:link

2003-08-31 Thread Carlos Sánchez
c:url is a standard tag from JSTL, so I think it's better to follow standards Maybe html:link will be deprecated in a near future. > -Mensaje original- > De: Jiri Chaloupka [mailto:[EMAIL PROTECTED] > Enviado el: domingo, 31 de agosto de 2003 18:36 > Para: Struts Users Mailing List > Asun

Re: load data from db into form

2003-08-31 Thread Adam Hardy
Hi guys, could be many whys, but it looks like your form bean is null. have you configured your struts-config mapping correctly to reference this form? You should also cast the form bean into the type of form class you have specified, since it is passed into the action as the super class ActionF

Re: [OT] sslext java.lang.IllegalStateException: sendError() failed- data has already been sent to client

2003-08-31 Thread Adam Hardy
Hi Robert you seem to be fairly confident of the circumstances so I would suggest, barring any other response on this list (I'm sorry but I don't know enough to help any further), that you log this in bugzilla and / or post it to the struts-dev list. Good luck, Adam On 08/30/2003 07:03 PM Rober

Re: dinamically add href into html:link

2003-08-31 Thread Yann Cébron
> how I can do something as this: > > > ? Use the EL-tags (look in the contrib/struts-el directory of the Struts 1.1 distribution), e.g. .. .. HTH, Yann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Handling Exceptions

2003-08-31 Thread Mohd Amin Mohd Din
Hi, In struts-config, I have defined few global-exceptions such as these I also have created an error page, error.jsp with <%@ page isErrorPage="true" %> and at the top of the jsp template for all the pages a <%@ page errorPage="error.jsp" %>. H

Re: dinamically add href into html:link

2003-08-31 Thread Vic Cekvenich
Are you able to use JSTL? I use JSTL for that. Jiri Chaloupka wrote: Hallo, how I can do something as this: ? I tried page (in manual I read that it canbe created dynamicaly, but it does not), action, href... it is still generated as Home instead of /apl/Index.do I know I can do "> but it does

best practices for ActionForm flow control

2003-08-31 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
When the actionForm validate method returns errors, struts direct the control to the jsp page specified in the input parameter of form mapping. is it possible to direct control to the action class in case of error inside the actionForm validate method without making extra coding effort, or playin

Re: [OT] jstl forEach problem

2003-08-31 Thread Johan
Solved. I added instead of a workDocument the collection workDocuments to my Arraylist. Just a typo Johan Johan wrote: Hi, I have a JSTL question and the answers in the archives don't solve the problem. So maybe one of you run into the problem ones I have an ArrayList containing Objects.

dinamically add href into html:link

2003-08-31 Thread Jiri Chaloupka
Hallo, how I can do something as this: ? I tried page (in manual I read that it canbe created dynamicaly, but it does not), action, href... it is still generated as Home instead of /apl/Index.do I know I can do "> but it does not add application prefix :( Thanks, Jiri

Re: dinamically add href into html:link

2003-08-31 Thread Mark Lowe
The ideal way would be something like this. Cheers Mark On Sunday, August 31, 2003, at 04:27 PM, Yann Cébron wrote: how I can do something as this: ? Use the EL-tags (look in the contrib/struts-el directory of the Struts 1.1 distribution), e.g. .. .. HTH, Yann ---

Re: getting at public static class constant field values in EL script

2003-08-31 Thread Adam Hardy
On 08/30/2003 06:42 PM James Mitchell wrote: You can take advantage of the Unstandard tags. This doesn't directly answer your question, but I'm sure you are smart enough to derive your answer from the following archived post on taglib-users from July: Unsure if JSTL 1.1 will allow this, but using

Re: load data from db into form

2003-08-31 Thread Mark Lowe
Okay assuming the following.. .. Then assuming that fullname, id, and notify are all properties of ComplRegisterDTO. Cheers Mark On Sunday, August 31, 2003, at 03:00 PM, Jiri Chaloupka wrote: Thanks Mark I do not know if I understnad well. No

Re: load data from db into form

2003-08-31 Thread Jiri Chaloupka
Thanks Mark I do not know if I understnad well. No I have in struts config: ... , action definition: path="/Register2" type="cz.chalu.struts.modules.completeregister.LoadDataAction" parameter=".main.registerFin

struts / tiles forward problems

2003-08-31 Thread Johannes Plachy
Hi, I am new to struts & tiles and have several questions/problems That I am currently dealing with: 1) although a page ( say tiles.page ) is defined in my tiles-def.xml and referenced in my struts-config.xml like and a link from a jsp page ... resolves to a link to 'tiles.page'

Re: load data from db into form

2003-08-31 Thread Mark Lowe
Your from bean definition is the most useful thing you can provide to answer this.. if in your formBean definition or in the actionForm class you've got type Then you're on the right lines.. But you're nesting so you jsp needs to be more like ComplRegisterDTO myObj = whatever... theForm.se

page field on DynaValidatorForm class

2003-08-31 Thread Erez Efrati
Hi, Do I need to include the declaration of a in a form of type DynaValidatorForm in the struts-config.xml? Thanks in advance, Erez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: dinamically add href into html:link

2003-08-31 Thread Mark Lowe
opps... is better On Sunday, August 31, 2003, at 05:02 PM, Mark Lowe wrote: The ideal way would be something like this. Cheers Mark On Sunday, August 31, 2003, at 04:27 PM, Yann Cébron wrote: how I can do something as this: ? Use the EL-tags (look in the contrib/struts

Re: dinamically add href into html:link

2003-08-31 Thread Jiri Chaloupka
Thanks, I used html-el and it works. what is the better to use, use c:url or html-el:link? Or it is equivalent here? And one more queestion: I have object with application persistency (over all sessions), and for session I call some method to set some parameter and get another object (array lis

Re: Handling Exceptions

2003-08-31 Thread Yann Cébron
> However, when a > ServletException occurs, it does not go to the path defined in > struts-config.xml. Somehow, the error is still showing in the > application page and not in any one of the error pages defined. My guess is, the ServletException is happening someplace where Struts' ExceptionHandl

Re: load data from db into form

2003-08-31 Thread Jiri Chaloupka
Yes, nested tags, I must look at ... so now I have it without nested, form definition is now without it. but still I got java.lang.IllegalArgumentException: No destination bean specified at org.apache.commons.beanutils.BeanUtils.copyProperties(BeanUtils.java:220) at cz.chalu.strut

load data from db into form

2003-08-31 Thread Jiri Chaloupka
Hallo, what is the correct way to load data from db into form? I have some form: : : etc... , action class as: public class LoadDataAction extends Action { public ActionForward execute(ActionMapping mapping,