2 listboxes with buttons t move from on list to other

2006-10-11 Thread Andy.de
Hi, knows anyone a sample code for a page with 2 listboxes and 2 buttons to move objects from left list to right list and vice versa? Regads, Andy -- View this message in context: http://www.nabble.com/2-listboxes-with-buttons-t-move-from-on-list-to-other-tf2422483.html#a6753787 Sent from the St

Re: bean:write with property="address.postal"

2006-10-07 Thread Andy.de
Uday Karrothi wrote: > > Can u use > > > > > I am not sure if the property bean allows "." > > Hi Uday no i can't because address is an object with the attribute postal. Documetation and examples say i can use '.' to navigate to an attribute of objects. Regards Andy -- View this message

bean:write with property="address.postal"

2006-10-06 Thread Andy.de
Hi folks, i get a javax.servlet.ServletException: Invalid argument looking up property: "address.postal" of bean: "institut" at following scenario: jsp: ... institusliste is a list of objects, type institut Class institut has a getter for address public adress getAddress() { return this.m

Re: Forward to action without jsp

2006-09-29 Thread Andy.de
Frank W. Zammetti wrote: > > Just do: > > Frank > Hi Frank, that was the hint i needed, thx Regards, Andy -- View this message in context: http://www.nabble.com/Forward-to-action-without-jsp-tf2350751.html#a6562710 Sent from the Struts - User mailing list archive at Nabble.com. -

RE: Forward to action without jsp

2006-09-28 Thread Andy.de
kes the > action from #1 > >public ActionForward execute( ) throws ... >{ > String userId = request.getParameter("userId"); > UserProfile up = service.getProfile( userId ); > BeanUtils.copyProperties( form, up ); > return "s

Re: Forward to action without jsp

2006-09-28 Thread Andy.de
Wendy Smoak-3 wrote: > > On 9/28/06, Andy.de <[EMAIL PROTECTED]> wrote: > >> how can i forward to an action without input (jsp) ? > > I'm not sure what you're asking. What do you want the user to be able to > do? > > In general, any URL

Forward to action without jsp

2006-09-28 Thread Andy.de
Hi all, how can i forward to an action without input (jsp) ? The path attribute of action tag in struts-config must point to jsp's. To prepopulate a form bean i must use an action, read data from database to fill the form bean and forward to the jsp to display the formular already filled out. But

RE: global exceptions, key?

2006-09-28 Thread Andy.de
Givler, Eric wrote: > > I'm pretty sure the error.message1 key which is looked up in the resource > file can be displayed in the resulting jsp with: > > > Hi Eric, thats what i tried but it don't work Regards, Andy -- View this message in context: http://www.nabble.com/global-exceptions%2

global exceptions, key?

2006-09-27 Thread Andy.de
Hi struts experts, i have a global exception at my struts-config like this: How can i display the text specified by the key attribute on my jsp? How can i display myException.getMessage() and/or myException.getStackTrace() on my jsp? Regard, Andy -- View this message in context: http://www.n

Re: Init of forms

2006-09-27 Thread Andy.de
t is shipped > with Struts 1.1 has the code for doing what you want. I believe that you > want to look at the editRegistration action in the example. > You can get struts 1.1 from > http://archive.apache.org/dist/struts/struts-1.1/ > Yamir > - Original Message > From:

Re: Init of forms

2006-09-26 Thread Andy.de
Hi Antonio, i do not understand. The action is executed if the form is submitted, this is after the jsp has been displayed. I want to fill the form with values from database before the jsp is displayed. I need the typical 'edit' function, not create. Regards, Andy apetrelli wrote: > > Ilja S. h

Re: Init of forms

2006-09-26 Thread Andy.de
stance and forward request to your jsp page with form. > Struts will do the rest. That is all. > > Andy.de wrote: >> Hi folks, >> i init my form beans at reset(...) of ActionForm from database but i >> think >> this is not correct because >> if a

Init of forms

2006-09-26 Thread Andy.de
Hi folks, i init my form beans at reset(...) of ActionForm from database but i think this is not correct because if an error occurs i have no chance to forward to an error page or to save ActionErrors. I think the controller must read objects from database and init the form. All samples are very s