Re: html:select question

2002-11-11 Thread Andreas Langmann
> 
> Struts-el is a good solution for this.
> 
>labelProperty="value"/> 
> 

Hmm... thats great! Thanks for advice!

Andreas

-- 
Dipl. Ing. (BA) Andreas Langmann
Software Developer

ISB AG 
Karlstr. 52-54   
76133 Karlsruhe

Telefon: +49 (0)721/82800-0
Telefax: +49 (0)721/82800-82

Email: [EMAIL PROTECTED]
Internet: http://www.isb-ag.de

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html:select question

2002-11-11 Thread edgar
Struts-el is a good solution for this.  

   

-Original Message-
From: Andreas Langmann [mailto:andreas.langmann@;isb-ag.de] 
Sent: Monday, November 11, 2002 4:15 AM
To: 'Struts Users Mailing List'
Subject: html:select question


Hello,

i use a selectbox... the variables sb_lx and sb_l are inside the
formbean. 
With the attached jsp-code i need to put the object sb_l from formbean
into context

request.setAttribute("sb_l", myform.getSb_l());


  

So it works fine... but is there a way to do it without the
setAttribute?

Tnx,

Andreas

-- 
Dipl. Ing. (BA) Andreas Langmann
Software Developer

ISB AG 
Karlstr. 52-54   
76133 Karlsruhe

Telefon: +49 (0)721/82800-0
Telefax: +49 (0)721/82800-82

Email: [EMAIL PROTECTED]
Internet: http://www.isb-ag.de

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Html:select question

2001-10-02 Thread Trever M. Shick

It does this because it needs to pull the value as a property from the bean
in order to determine what value to make "selected" in the list box.

If you don't want this to be pulled from the bean, then just use regular
HTML tags.

Trever

- Original Message -
From: "Kilmer, Erich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 02, 2001 1:04 PM
Subject: Html:select question


> In the struts example struts-select.jsp there is this code:
>   
> Single 0
> Single 1
> ...
> Single 9
>   
>
> When I try this code:
> 
>Enabled
>Disabled
> 
>
> I get:
> 500 Internal Server Error
> javax.servlet.jsp.JspException: No getter method available for property
> status for bean under name org.apache.struts.taglib.html.BEAN
> at org.apache.struts.taglib.html.SelectTag.doStartTag(SelectTag.java:304)
> at /input.jsp._jspService(/input.jsp.java:322) (JSP page line 98)
> at com.orionserver[Orion/1.5.2 (build
> 10460)].http.OrionHttpJspPage.service(Unknown Source)
>
> Why? I want status to be the name of the request parameter that is sent
> back. Why does Struts think this is a bean property?
>
> Should I use something other than property?
> TIA,
>
> Erich Kilmer
> Bell+Howell
> RTP, NC
>




RE: Html:select question

2001-10-02 Thread Kilmer, Erich

In html:text the property field is the name part of the name=value in the
query string. In other word its the name in the request parameter. 

In the struts-select.jsp there are two examples. One sets up a select with a
list (called multipleValues). I can see how it works.

The other, single select has all of the text in the html:option. Is there a
bean called singleSelect stuck in the request or session?

TIA,
Erich

-Original Message-
From: Peter Alfors [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 3:16 PM
To: [EMAIL PROTECTED]
Subject: Re: Html:select question


I haven't actually used the html:select tag, but it looks as though is
expects to retrieve data from a bean.
The name attribute specifies which bean to use (in the pageContext) and the
property attribute specifies which
property of the bean to use.

HTH,
Pete

"Kilmer, Erich" wrote:

> In the struts example struts-select.jsp there is this code:
>   
> Single 0
> Single 1
> ...
> Single 9
>   
>
> When I try this code:
> 
>Enabled
>Disabled
> 
>
> I get:
> 500 Internal Server Error
> javax.servlet.jsp.JspException: No getter method available for property
> status for bean under name org.apache.struts.taglib.html.BEAN
> at org.apache.struts.taglib.html.SelectTag.doStartTag(SelectTag.java:304)
> at /input.jsp._jspService(/input.jsp.java:322) (JSP page line 98)
> at com.orionserver[Orion/1.5.2 (build
> 10460)].http.OrionHttpJspPage.service(Unknown Source)
>
> Why? I want status to be the name of the request parameter that is sent
> back. Why does Struts think this is a bean property?
>
> Should I use something other than property?
> TIA,
>
> Erich Kilmer
> Bell+Howell
> RTP, NC



Re: Html:select question

2001-10-02 Thread Peter Alfors

I haven't actually used the html:select tag, but it looks as though is
expects to retrieve data from a bean.
The name attribute specifies which bean to use (in the pageContext) and the
property attribute specifies which
property of the bean to use.

HTH,
Pete

"Kilmer, Erich" wrote:

> In the struts example struts-select.jsp there is this code:
>   
> Single 0
> Single 1
> ...
> Single 9
>   
>
> When I try this code:
> 
>Enabled
>Disabled
> 
>
> I get:
> 500 Internal Server Error
> javax.servlet.jsp.JspException: No getter method available for property
> status for bean under name org.apache.struts.taglib.html.BEAN
> at org.apache.struts.taglib.html.SelectTag.doStartTag(SelectTag.java:304)
> at /input.jsp._jspService(/input.jsp.java:322) (JSP page line 98)
> at com.orionserver[Orion/1.5.2 (build
> 10460)].http.OrionHttpJspPage.service(Unknown Source)
>
> Why? I want status to be the name of the request parameter that is sent
> back. Why does Struts think this is a bean property?
>
> Should I use something other than property?
> TIA,
>
> Erich Kilmer
> Bell+Howell
> RTP, NC