You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Raj Atchutuni <ra...@yahoo.com> on 2004/01/28 17:43:46 UTC

Re: xdoclet + Dynaforms

Since i am using Dynaforms, i dont code formbeans in java.
 Right now i have the following settings hand coded for 
"pbGettinghereForm".
 
 My question is where do i code web-doclet tags when i am not coding 
form beans ?
 and is there any ways to auto generate the attributes in 
ApplicationResources.properties also ?
 
 Please let me know.
 
 Thanks
 Raj
 
 struts-config.xml
 ----------    
 <form-bean name="pbGettinghereForm" 
type="org.apache.struts.validator.DynaValidatorForm">
        <form-property name="addressStart" type="java.lang.String" />
        <form-property name="cityStart" type="java.lang.String" />
        <form-property name="stateStart" type="java.lang.String" />
        <form-property name="zipStart" type="java.lang.String" />
</form-bean>
 validation.xml
 --------------
 <form name="pbGettinghereForm">
      <field property="addressStart" depends="required">
             <arg0 key="pbGettinghereForm.startAr.displayname"/>
            </field>
            <field property="cityStart" depends="required">
             <arg0 key="pbGettinghereForm.startCt.displayname"/>
            </field>
            <field property="stateStart" depends="required">
             <arg0 key="pbGettinghereForm.startSt.displayname"/>
            </field>
            <field property="zipStart" depends="required,integer">
             <arg0 key="pbGettinghereForm.startZp.displayname"/>
      </field>
</form> 
    
    
ApplicationResources.properties
-------------------------------
pbGettinghereForm.startAr.displayname=Address
pbGettinghereForm.startCt.displayname=City
pbGettinghereForm.startSt.displayname=State
pbGettinghereForm.startZp.displayname=Zip    



---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

Re: request scope vs. session scope

Posted by James Mitchell <jm...@apache.org>.
Sorry, but there could be any number of reasons why your page isn't working.
We'll need more information to help you.

Check out the struts-example.war that ships with the distribution.  That
shows the most basic ways to send data to your jsp (in request scope).



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: jmitchell@apache.org



----- Original Message -----
From: "struts fox" <st...@yahoo.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Wednesday, January 28, 2004 4:39 PM
Subject: Re: request scope vs. session scope


> I never specified, but adding it doesn't effect anything.  Same results,
it just doesn't like the request scope.  Other example code does work with
request, just not the one I'm trying to do myself.
>
>
>
>
>
>
>
> James Mitchell <jm...@apache.org> wrote:Does your action-mapping use
redirect="true"?
>
>
> --
> James Mitchell
> Software Engineer / Struts Evangelist
> http://www.struts-atlanta.org
> 678.910.8017 (cell)
> AIM: jmitchtx
> MSN: jmitchell@apache.org
>
>
>
> ----- Original Message -----
> From: "struts fox"
> To: "Struts Users Mailing List"
> Sent: Wednesday, January 28, 2004 2:38 PM
> Subject: request scope vs. session scope
>
>
> >
> > I have the following weird problem.
> >
> > I start off with a web page, that has a hyperlink, not a submit button.
> > When the hyperlink is selected the page goes to Tomcat/Struts.
> > Two actions are executed and the page is forwarded to a jsp page and
> displayed.
> >
> > The second action executed, as stated above, sets a bean up in the
> session before it is forwarded. The problem is in the jsp if I declare the
> bean via 'session' scope it sees the attribute and displays the value
> properly, but if I declare it as 'request' scope it doesn't and just
prints
> null. Request scope should work here but it doesn't.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free web site building tool. Try it!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. Try it!


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Parameter ???

Posted by Otávio Augusto <ot...@bol.com.br>.
Don't use the "ção" expression. Is that possible?

HTH
Otávio Augusto

On Thu, 29 Jan 2004 19:42:51 -0200
"Mauricio T. Ferraz" <ma...@cilix.com.br> wrote:

> How can I compare a parameter in my URL (someAction.do?type=Alteração) with
> the tag <logic:equal name="type" value="Alteração"> do something
> </logic:equal>
> 
> The problem is the "ção" . How can I sove this ???
> 
> thanks
> 
> 
> ---------------------------------------------------------------------
> 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


Parameter ???

Posted by "Mauricio T. Ferraz" <ma...@cilix.com.br>.
How can I compare a parameter in my URL (someAction.do?type=Alteração) with
the tag <logic:equal name="type" value="Alteração"> do something
</logic:equal>

The problem is the "ção" . How can I sove this ???

thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: request scope vs. session scope

Posted by struts fox <st...@yahoo.com>.
 I never specified, but adding it doesn't effect anything.  Same results, it just doesn't like the request scope.  Other example code does work with request, just not the one I'm trying to do myself.
 
 
 
 
 


James Mitchell <jm...@apache.org> wrote:Does your action-mapping use redirect="true"?


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: jmitchell@apache.org



----- Original Message -----
From: "struts fox" 
To: "Struts Users Mailing List" 
Sent: Wednesday, January 28, 2004 2:38 PM
Subject: request scope vs. session scope


>
> I have the following weird problem.
>
> I start off with a web page, that has a hyperlink, not a submit button.
> When the hyperlink is selected the page goes to Tomcat/Struts.
> Two actions are executed and the page is forwarded to a jsp page and
displayed.
>
> The second action executed, as stated above, sets a bean up in the
session before it is forwarded. The problem is in the jsp if I declare the
bean via 'session' scope it sees the attribute and displays the value
properly, but if I declare it as 'request' scope it doesn't and just prints
null. Request scope should work here but it doesn't.
>
>
>
>
>
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. Try it!


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

Re: request scope vs. session scope

Posted by James Mitchell <jm...@apache.org>.
Does your action-mapping use redirect="true"?


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: jmitchell@apache.org



----- Original Message -----
From: "struts fox" <st...@yahoo.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Wednesday, January 28, 2004 2:38 PM
Subject: request scope vs. session scope


>
>   I have the following weird problem.
>
> I start off with a web page, that has a hyperlink, not a submit button.
> When the hyperlink is selected the page goes to Tomcat/Struts.
> Two actions are executed and the page is forwarded to a jsp page and
displayed.
>
>   The second action executed, as stated above, sets a bean up in the
session before it is forwarded.  The problem is in the jsp if I declare the
bean via 'session' scope it sees the attribute and displays the value
properly, but if I declare it as 'request' scope it doesn't and just prints
null.  Request scope should work here but it doesn't.
>
>
>
>
>
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. Try it!


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


request scope vs. session scope

Posted by struts fox <st...@yahoo.com>.
  I have the following weird problem.

I start off with a web page, that has a hyperlink, not a submit button.
When the hyperlink is selected the page goes to Tomcat/Struts.
Two actions are executed and the page is forwarded to a jsp page and displayed.

  The second action executed, as stated above, sets a bean up in the session before it is forwarded.  The problem is in the jsp if I declare the bean via 'session' scope it sees the attribute and displays the value properly, but if I declare it as 'request' scope it doesn't and just prints null.  Request scope should work here but it doesn't. 

 

 


 


---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!