You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mick Knutson <mi...@hotmail.com> on 2003/05/30 11:59:23 UTC
Removing a value from DynaForm?
I can't seem to figure out how to remove one of the attributes in a DynaForm
I get fro a form submission.
I have a String in there, but I want to remove the String and replace with a
Date instead.
Anyone can help?
---
Thanks...
Mick Knutson
---
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Removing a value from DynaForm?
Posted by Richard Raquepo <rr...@primeorion.com>.
i hope i understand your question.
in your action class typecast the form variable to your dynaform name
then access it as a regular javabean.
ex:
....
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
MyDynaForm newform = (MyDynaForm) form;
newform.setMyField("new value");
//save the modified ActionForm
session.setAttribute(mapping.getAttribute(),newform); //if session scope
//if request scope
//request.setAttribute(mapping.getAttribute(),newform);
....
}
HTH
-richard
----- Original Message -----
From: "Mick Knutson" <mi...@hotmail.com>
To: <st...@jakarta.apache.org>
Sent: Friday, May 30, 2003 5:59 PM
Subject: Removing a value from DynaForm?
> I can't seem to figure out how to remove one of the attributes in a
DynaForm
> I get fro a form submission.
> I have a String in there, but I want to remove the String and replace with
a
> Date instead.
> Anyone can help?
>
>
> ---
> Thanks...
> Mick Knutson
> ---
>
> _________________________________________________________________
> Tired of spam? Get advanced junk mail protection with MSN 8.
> http://join.msn.com/?page=features/junkmail
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Struts Diagrams and Documentation
Posted by Tarun Dewan <ta...@nucleussoftware.com>.
Hi Vijay,
I belive you have missed the attachment.
Tarun
-----Original Message-----
From: Vijay Pawar [mailto:vspawar@orgltd.com]
Sent: Friday, May 30, 2003 3:48 PM
To: Struts Users Mailing List
Cc: Ritesh.Patel@oracle.com; harsh@wwquote.com;
Amitkumar_J_Malhotra@ril.com
Subject: Struts Diagrams and Documentation
Hi Friends,
Based on struts-documentation, I have prepared the General Outline Diagram
of Struts. This diagram represents the various building blocks of the
basic struts framework.
I welcome all patrons/experts to have a glance at it and add more building
blocks like DynaBeans, FormBeans to it.
Hope we will soon have the complete Struts in Diagram from on our desk
boards
:0)~
PS: Attachment- My Understanding of Struts.doc
Thanks and Cheers !
Vijay
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Struts Diagrams and Documentation
Posted by Vijay Pawar <vs...@orgltd.com>.
Hi Friends,
Based on struts-documentation, I have prepared the General Outline Diagram
of Struts. This diagram represents the various building blocks of the
basic struts framework.
I welcome all patrons/experts to have a glance at it and add more building
blocks like DynaBeans, FormBeans to it.
Hope we will soon have the complete Struts in Diagram from on our desk boards
:0)~
PS: Attachment- My Understanding of Struts.doc
Thanks and Cheers !
Vijay
RE: Removing a value from DynaForm?
Posted by Mark Galbreath <ma...@qat.com>.
RU saying you want to convert a String representing a date into a Calendar
object?
Mark
-----Original Message-----
From: Mick Knutson [mailto:mickknutson@hotmail.com]
Sent: Friday, May 30, 2003 5:59 AM
I can't seem to figure out how to remove one of the attributes in a DynaForm
I get fro a form submission.
I have a String in there, but I want to remove the String and replace with a
Date instead.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org