html:select default value problem

2003-12-18 Thread Keith C. Klopfer
Hi, I know this has been talked about before, and I'm pretty sure I understand the concept, but I don't know why this is not working. The default option for an html:select is not being displayed. I have an ActionForm in request scope called BusinessForm that is populated. The status property

RE: html:select default value problem

2003-12-18 Thread Robert Taylor
. Klopfer [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 6:12 AM To: [EMAIL PROTECTED] Subject: html:select default value problem Hi, I know this has been talked about before, and I'm pretty sure I understand the concept, but I don't know why this is not working

optionsCollection with another default value

2003-11-24 Thread Frank Schaare
Hallo, i´ve made a select from an optionsCollection Tag. The values are read from a hashmap like value1 = one value2 = two value3 = three Now i´d like to set a default value for this select, which is NOT PART of my HashMap, f.e please select... The rendered select should look like

RE: optionsCollection with another default value

2003-11-24 Thread Daniel Lipofsky
a hashmap like value1 = one value2 = two value3 = three Now i´d like to set a default value for this select, which is NOT PART of my HashMap, f.e please select... The rendered select should look like this: option selectedplease select.../option optionone/option optiontwo/option optionthree

Re: Problem with Greek alphabet (How to Set default value for 'filter' in bean:write to FALSE

2003-11-07 Thread alvin antony
this charset or interprets differently :-/ . I have to set 'filter' to false, in order to work. If any anybody know where I have to set that DEFAULT value for 'filter' in bean:write is FALSE instead of TRUE? I tried set in the struts-bean.tld's found in /WEB-INF folder and in the Struts.jar

select default value

2003-10-23 Thread koen boutsen
Hi I'm using a html:select. When an option is selected, I put the selected value in the session. When come back on the page with this select, I want the previously selected option to be selected. Can anyone tell me how I can do that ? thanks Koen

AW: select default value

2003-10-23 Thread Otto, Frank
:43 An: Struts Users Mailing List Betreff: select default value Hi I'm using a html:select. When an option is selected, I put the selected value in the session. When come back on the page with this select, I want the previously selected option to be selected. Can anyone tell me how I can do

Re: select default value

2003-10-23 Thread Ted Husted
The HTML tags are designed to work with an ActionForm, which describes all the properties on the form, including the one you would use with the select tag. http://jakarta.apache.org/struts/userGuide/building_model.html#actionform The name you give the form in the struts-config is also its

Default Value Question

2003-03-20 Thread Weber, Jeremy
From the below code, I know that the gid() method gets called because the System.out line executes, however the ownerGroup string never gets set. Am I doing something wrong? import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.*; import java.io.File; import

htm:checkbox default value

2003-03-13 Thread Johan Kumps
value is checked. Using the code above the default value is false. Any ideas what I'm doing wrong? Please help me as soon. Kind regards, --- This mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02

Re: Use of Bean Default Value in Struts

2003-02-19 Thread Affan Qureshi
in the options list. Affan - Original Message - From: shashi [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 12:08 PM Subject: Use of Bean Default Value in Struts Hi In my form in the select i want a default bean value will be selected. Ex

Use of Bean Default Value in Struts

2003-02-18 Thread shashi
Hi In my form in the select i want a default bean value will be selected. Ex: public class A extends ActionForm{ private String val=A; public void setVal(String val){ this.val=val; } public String getVal(){ return val; } In Jsp I want this A value comes as a default value in select. help me

blank default value in html:select tag

2003-02-12 Thread Arunachalam Jaisankar
I'm using html:select tag for all drop down boxes. The default selected value in the drop down box is always first record of the table. I require that should be blank initially i.e before selection. I set value attribute as blank. But it doesn't work. How to do this? Can any one help me in this

Re: blank default value in html:select tag

2003-02-12 Thread Claude Betancourt
PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 12, 2003 5:50 PM Subject: blank default value in html:select tag I'm using html:select tag for all drop down boxes. The default selected value in the drop down box is always first record of the table. I require

Populating with a default value

2003-01-24 Thread Fred Lamuette
Strut1.1 Commons.BeanUtils1.6 My form bean (ORIG) : private String year public String getYear() public void setYear(String year) My business logic bean (DEST): private Integer year// Wrapper to manage null value public Integer getYear() public void setYear(Integer year) When I use

RE: OptionsCollection and default value

2002-12-23 Thread John Menke
Actually first just to appease me/us do a bean:write property=taskCodeType right before you do the select options portion in your jsp. Then also view source of the page and see what you have listed as the values of the options (maybe your values aren't matching what is displayed, assuming

OptionsCollection and default value

2002-12-22 Thread John Menke
I have searched the archives and can't find a direct answer to this: I am using html:optionsCollection within an html:select tag. My form bean has a method getTaskCodeTypeOptions that returns a collection of beans with name and value properties and my JSP is coded as follows: html:select

Re: OptionsCollection and default value

2002-12-22 Thread David M. Karr
John == John Menke [EMAIL PROTECTED] writes: John I have searched the archives and can't find a direct answer to this: John I am using html:optionsCollection within an html:select tag. John My form bean has a method getTaskCodeTypeOptions that returns a collection John of beans

Re: OptionsCollection and default value

2002-12-22 Thread Rick Reumann
On Sun, 22 Dec 2002 15:01:42 -0500 John Menke [EMAIL PROTECTED] wrote: html:select property=taskCodeTypehtml:optionsCollection property=taskCodeTypeOptions //html:select MY JSP WILL RUN AND POPULATE THE SELECT TAG CORRECTLY, BUT IT DOESN'T CHOOSE THE CORRECT INITIAL VALUE. IE. THE

RE: OptionsCollection and default value

2002-12-22 Thread John Menke
Are you sure that taskCodeType in your form bean is being set to the appropriate value before being directed to the jsp? I'm positive this works as I had the formbean working with html:text tags to test and the taskCodeType variable displays fine. When I change from html:text to html:select

Re: OptionsCollection and default value

2002-12-22 Thread David M. Karr
John == John Menke [EMAIL PROTECTED] writes: Are you sure that taskCodeType in your form bean is being set to the appropriate value before being directed to the jsp? John I'm positive this works as I had the formbean working with html:text tags to John test and the

RE: OptionsCollection and default value

2002-12-22 Thread John Menke
At this point, I would be executing this in the debugger, and tracing through the SelectTag code, and your form bean code. I have to get JSP debugging setup to do that. Do you know if eclipse supports JSP debugging with Tomcat? -jm -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For

Re: OptionsCollection and default value

2002-12-22 Thread Rick Reumann
On Sun, 22 Dec 2002 18:39:05 -0500 John Menke [EMAIL PROTECTED] wrote: I have to get JSP debugging setup to do that. Do you know if eclipse supports JSP debugging with Tomcat? Actually first just to appease me/us do a bean:write property=taskCodeType right before you do the select

Re: OptionsCollection and default value

2002-12-22 Thread David M. Karr
John == John Menke [EMAIL PROTECTED] writes: At this point, I would be executing this in the debugger, and tracing through the SelectTag code, and your form bean code. John I have to get JSP debugging setup to do that. Do you know if eclipse John supports John JSP

RE: LookupDispatchAction default value?

2002-10-31 Thread Wendy Smoak
Danny Mui wrote: I extended the dispatch action to do something like that: in execute() { ActionForward forward = null; if (mapping.getParameter() == null || .equals(mapping.getParameter())) { forward = executeAction(mapping, form, request, response); } else {

Re: LookupDispatchAction default value?

2002-10-31 Thread Danny Mui
Sorry to have muddled the waters too much, I assumed too much...Having looked at the LookupDispatchAction code, I can now make a slightly more educated reply ;). Yeah I think you're going to have to workaround the parent method. public class DefaultLookup extends LookupDispatchAction {

LookupDispatchAction default value?

2002-10-30 Thread Wendy Smoak
I'm using LookupDispatchAction, which uses the 'action' request parameter to call the appropriate method. However, when the 'action' parameter is missing from the request, it dies as expected: javax.servlet.ServletException: Request[/processContact] does not contain handler parameter named

Re: LookupDispatchAction default value?

2002-10-30 Thread Danny Mui
I extended the dispatch action to do something like that: in execute() { ActionForward forward = null; if (mapping.getParameter() == null || .equals(mapping.getParameter())) { forward = executeAction(mapping, form, request, response); } else {

RE: nested:select default value

2002-10-18 Thread Karr, David
: nested:select default value Hello, I need to pre-set the value displayed in a drop-down via the nested:select tag. Although the property used in the nested select tag has a value (I wrote it out in the column next to the dropdown column to verify this), the dropdown is not being

nested:select default value

2002-10-18 Thread Rea, Ron
Hello, I need to pre-set the value displayed in a drop-down via the nested:select tag. Although the property used in the nested select tag has a value (I wrote it out in the column next to the dropdown column to verify this), the dropdown is not being preselected. Any ideas: Example:

RE: nested:select default value

2002-10-18 Thread Sri Sankaran
Have you ensured that the case of the strings match? Make sure that processResp is PMA and not pma. Sri -Original Message- From: Rea, Ron [mailto:rear;coramhc.com] Sent: Friday, October 18, 2002 5:07 PM To: '[EMAIL PROTECTED]' Subject: nested:select default value Hello, I need

RE: nested:select default value

2002-10-18 Thread Rea, Ron
Yes, it is PMA. Any ideas? -Original Message- From: Sri Sankaran [mailto:Sri.Sankaran;sas.com] Sent: Friday, October 18, 2002 4:19 PM To: Struts Users Mailing List Subject: RE: nested:select default value Have you ensured that the case of the strings match? Make sure that processResp

RE: nested:select default value

2002-10-18 Thread Rea, Ron
=processResp/ in the value parameter of the nested:select? -Original Message- From: Sri Sankaran [mailto:Sri.Sankaran;sas.com] Sent: Friday, October 18, 2002 4:19 PM To: Struts Users Mailing List Subject: RE: nested:select default value Have you ensured that the case of the strings match? Make

default value for html:select

2002-09-17 Thread Michael Lee
I have one MAIN question. I don't want to have to repost a question. I try searching for answers to my questions on the website but it always forwards me to google. Are these emails not cached for searching? Anyway, 2 questions; 1) How do I set a default value in an html:select on an options

RE: default value for html:select

2002-09-17 Thread wbchmura
/ -Original Message- From: mleejr [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 4:29 PM To: struts-user Subject: default value for html:select I have one MAIN question. I don't want to have to repost a question. I try searching for answers to my questions on the website

Re: default value for html:select

2002-09-17 Thread Michael Lee
Thanks, but what I meant was set the default option chosen in the html:options to be a value in the current html:form. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 17, 2002 4:42 PM Subject: RE: default value for html:select Answer to #1

session-timeout default value?

2002-05-30 Thread Michael Marrotte
If the not defined in the web app, what is the default session timeout? And, where might this be documented? --Michael Marrotte -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: session-timeout default value?

2002-05-30 Thread Filipe Mateus
This depends on your servlet container. In Tomcat, the default timeout is located in $TOMCAT_HOME/conf/server.xml: !-- You can set the default session timeout (in minutes) for all newly -- !-- created sessions by modifying the value below. -- session-config

Setting default value to html:file

2001-07-06 Thread Eda Srinivasareddy
Hi Is there a way to set a default value to the html:file tags text field? Thanks Eda Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year!http://personal.mail.yahoo.com/

Re: Setting default value to html:file

2001-07-06 Thread Gregor Rayman
Eda Srinivasareddy writes: Hi Is there a way to set a default value to the html:file tags text field? Thanks Eda No way! This is not allowed in plain HTML, so Struts cannot do anything about it. If it was allowed, it would be quite HUGE security hole in the browser. -- gR

Re: Default value

2001-04-13 Thread Craig R. McClanahan
On Mon, 9 Apr 2001, Yuriy Zubarev wrote: Hello friends, I'm trying to give default value to some form elements by assigning this value in 'reset' method of 'ActionForm' child class, but it's not working: text boxes have no text, select elements always show the first item. Any advices

Default value

2001-04-09 Thread Yuriy Zubarev
Hello friends, I'm trying to give default value to some form elements by assigning this value in 'reset' method of 'ActionForm' child class, but it's not working: text boxes have no text, select elements always show the first item. Any advices will be highly appreciated. Best of luck, Yuriy