RE: Newbie :rendering hidden fields

2003-08-04 Thread Jitesh Sinha
what is the full syntax of bean:define tag...Actually I am getting  an
exception regarding end tag of bean:define .
I have used it like this :

bean:define id=var name=mybean
property=aPropertyOfmybean/bean:define

The error page shows following stack trace :

java.lang.Object
org.apache.struts.util.RequestUtils.lookup(javax.servlet.jsp.PageContext,
java.lang.String, java.lang.String, java.lang.String)
int org.apache.struts.taglib.bean.DefineTag.doEndTag()
void
jsp.WorkProductsReviewCode_29._jspService(javax.servlet.http.HttpServletRequ
est, javax.servlet.http.HttpServletResponse)
void
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServlet
Request, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)


what modifications should I do in my usage of this tag???

Thanks,
Jitesh

  -Original Message-
  From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 30, 2003 12:54 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Newbie :rendering hidden fields


hi,


logic:iterate id=mybean name=formbean
property=collectionofmybeans
bean:write name=mybean property=aPropertyOfmybean
bean:define id=var name=mybean property=aPropertyOfmybean
html:hidden property=thishiddenfieldname value=%= var % /
/logic:iterate

hope this helps

--nagi


---Original Message---

From: Struts Users Mailing List
Date: Wednesday, July 30, 2003 12:10:58 PM
To: Struts Users Mailing List
Subject: Newbie :rendering hidden fields

How do you render an input hidden field inside a logic:iterate tag
..??
Actually here is what my code looks like :
logic:iterate id=mybean name=formbean
property=collectionofmybeans
bean:write name=mybean property=aPropertyOfmybean
-- Here I want to put my hidden field like this---
html:hidden property=thishiddenfieldname value=???(what should I
put
here)

/logic:iterate

I want the value of hidden field as another property of bean
mybean(which
is used in bean:write tag) suppose anotherPropertyofmybean .What
to do?


Thansk,
Jitesh



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


.


  
IncrediMail - Email has finally evolved - Click Here


RE: Newbie :rendering hidden fields

2003-08-04 Thread Jitesh Sinha
Never mind..this problem is solved...thanks...

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 10:19 PM
To: Struts Users Mailing List; Nagendra Kumar O V S
Subject: RE: Newbie :rendering hidden fields


what is the full syntax of bean:define tag...Actually I am getting  an
exception regarding end tag of bean:define .
I have used it like this :

bean:define id=var name=mybean
property=aPropertyOfmybean/bean:define

The error page shows following stack trace :

java.lang.Object
org.apache.struts.util.RequestUtils.lookup(javax.servlet.jsp.PageContext,
java.lang.String, java.lang.String, java.lang.String)
int org.apache.struts.taglib.bean.DefineTag.doEndTag()
void
jsp.WorkProductsReviewCode_29._jspService(javax.servlet.http.HttpServletRequ
est, javax.servlet.http.HttpServletResponse)
void
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServlet
Request, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)


what modifications should I do in my usage of this tag???

Thanks,
Jitesh

  -Original Message-
  From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 30, 2003 12:54 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Newbie :rendering hidden fields


hi,


logic:iterate id=mybean name=formbean
property=collectionofmybeans
bean:write name=mybean property=aPropertyOfmybean
bean:define id=var name=mybean property=aPropertyOfmybean
html:hidden property=thishiddenfieldname value=%= var % /
/logic:iterate

hope this helps

--nagi


---Original Message---

From: Struts Users Mailing List
Date: Wednesday, July 30, 2003 12:10:58 PM
To: Struts Users Mailing List
Subject: Newbie :rendering hidden fields

How do you render an input hidden field inside a logic:iterate tag
..??
Actually here is what my code looks like :
logic:iterate id=mybean name=formbean
property=collectionofmybeans
bean:write name=mybean property=aPropertyOfmybean
-- Here I want to put my hidden field like this---
html:hidden property=thishiddenfieldname value=???(what should I
put
here)

/logic:iterate

I want the value of hidden field as another property of bean
mybean(which
is used in bean:write tag) suppose anotherPropertyofmybean .What
to do?


Thansk,
Jitesh



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


.


  
IncrediMail - Email has finally evolved - Click Here


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Newbie :rendering hidden fields

2003-07-30 Thread Jitesh Sinha
How do you render an input hidden field inside a logic:iterate  tag ..??
Actually here is what my code looks like :
logic:iterate id=mybean name=formbean property=collectionofmybeans
bean:write name=mybean property=aPropertyOfmybean
-- Here I want to put my hidden field like this---
html:hidden property=thishiddenfieldname value=???(what should I put
here)

/logic:iterate

I want the value of hidden field as another property of bean mybean(which
is used in bean:write tag) suppose anotherPropertyofmybean .What to do?


Thansk,
Jitesh


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie :rendering hidden fields

2003-07-30 Thread Nagendra Kumar O V S








  hi,
  
  
  logic:iterate id="mybean" name="formbean" 
  property="collectionofmybeans"bean:write name="mybean" 
  property="aPropertyOfmybean"
  bean:define id="var"name="mybean" 
  property="aPropertyOfmybean"html:hidden 
  property="thishiddenfieldname" value="%= var %" /
  /logic:iterate
  hope this helps
  
  --nagi
  
  ---Original Message---
  
  
  From: Struts Users Mailing 
  List
  Date: Wednesday, July 
  30, 2003 12:10:58 PM
  To: Struts Users Mailing 
  List
  Subject: Newbie 
  :rendering hidden fields
  How do you render an input hidden field inside a 
  logic:iterate tag ..??Actually here is what my code looks like 
  :logic:iterate id="mybean" name="formbean" 
  property="collectionofmybeans"bean:write name="mybean" 
  property="aPropertyOfmybean"-- Here I want to put my hidden field 
  like this---html:hidden property="thishiddenfieldname" 
  value=???(what should I 
  puthere)/logic:iterateI want the value of 
  hidden field as another property of bean "mybean"(whichis used in 
  bean:write tag) suppose "anotherPropertyofmybean" .What to 
  do?Thansk,Jitesh-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED].





	
	
	
	
	
	
	




 IncrediMail - 
Email has finally evolved - Click 
Here



Re: Newbie :rendering hidden fields

2003-07-30 Thread Gabriel Guerreiro
Use it just like bean:write

html:hidden name=mybean property=aPropertyOfmybean/

I use it a lot.

Jitesh Sinha wrote:

How do you render an input hidden field inside a logic:iterate  tag ..??
Actually here is what my code looks like :
logic:iterate id=mybean name=formbean property=collectionofmybeans
bean:write name=mybean property=aPropertyOfmybean
-- Here I want to put my hidden field like this---
html:hidden property=thishiddenfieldname value=???(what should I put
here)
/logic:iterate

I want the value of hidden field as another property of bean mybean(which
is used in bean:write tag) suppose anotherPropertyofmybean .What to do?
Thansk,
Jitesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: hidden fields and extension tag errors with weblogic

2003-06-19 Thread Craig R. McClanahan


On Wed, 18 Jun 2003, Clauson, Kelly wrote:

 Date: Wed, 18 Jun 2003 19:18:45 -
 From: Clauson, Kelly [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: hidden fields and extension tag errors with weblogic

 Thanks for the response Rich. This did not work, but it did get me started
 on the right path.
 This code in the jsp:
 html:select property=week value=%= request.getParameter('Week') %

 results in this error:

 myaddedit.java:213: unclosed character literal
 probably occurred due to an error in /list/myAddEdit.jsp line 21:
 html:select property=week value=%= request.getParameter('Week') %


The problem is that Java and JSP have different interpretations of quoting
literal characters (single and double quotes):

* In JSP, you can use either kind of quotes for an
  attribute value, as long as they match.

* In Java, single quotes are used for character literals,
  and double quotes are used for strings.

So, the following would do what you want:

html:select property=week value='%= request.getParameter(Week) %'

Note the use of single quotes around the attribute value for value, so
that you can use double quotes inside the Java expression.

Craig

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



hidden fields and extension tag errors with weblogic

2003-06-18 Thread Clauson, Kelly
I've developed a struts application that is working well on Tomcat and on
SilverStream. I'm now trying to deploy it to WebLogic 7.0 (Service Pack 2).

There are two problems occurring on WebLogic that do not occur with Tomcat
or SilverStream:

1) I get the following error trying to display a jsp that contains the
struts html select/options tags:

/list/myAddEdit.jsp(23): Non-matching extension tags //[ null; Line: 23]
probably occurred due to an error in /list/myAddEdit.jsp line 23:
/html:select

The code from the jsp:
table
tr
td
bean:message key=week//td
td
html:select property=week value=%= request.getParameter(Week) %
html:options name=MyForm property=weeks/
/html:select    Line 23
/td
/tr
/table

Any idea why weblogic complains about this?


2) The set methods are not being called on the form for hidden fields. I
have this code in my jsp:

html:form action=/MyAction
  name=MyForm
  type=com.foo.struts.MyForm

   bean:message key=state.id/: %= request.getParameter(StateID)
%br
   html:submitDelete/html:submit html:cancel/
  
   html:hidden property=origStateID value=%=
request.getParameter(StateID) %/
/html:form

StateID is a request parameter to the page. The setOrigStateID method is not
being called on MyForm. When deployed on Tomcat and SilverStream, the
sequence of events is:

MyForm.reset()
MyForm.setOrigStateID()
MyForm.validate()

With weblogic the sequence of events is

MyForm.reset()
MyForm.validate()

Obviously, this causes serious problems. 

I would really appreciate any help.
Thanks,
Kelly

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: hidden fields and extension tag errors with weblogic

2003-06-18 Thread Richard J. Duncan
Hi. WebLogic uses a different page complier than Tomcat. That may be part of the 
reason why you're picking up the error. My guess is that the problem is that you have 
a scriptlet inside the struts tag. Try re-writing it like this:

html:select property=week value=%= request.getParameter('Week') %
 
That should work fine in Tomcat too.

Regards,
 
Rich


-Original Message-
From: Clauson, Kelly [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 18, 2003 11:39 AM
To: '[EMAIL PROTECTED]'
Subject: hidden fields and extension tag errors with weblogic

I've developed a struts application that is working well on Tomcat and on
SilverStream. I'm now trying to deploy it to WebLogic 7.0 (Service Pack 2).

There are two problems occurring on WebLogic that do not occur with Tomcat
or SilverStream:

1) I get the following error trying to display a jsp that contains the
struts html select/options tags:

/list/myAddEdit.jsp(23): Non-matching extension tags //[ null; Line: 23]
probably occurred due to an error in /list/myAddEdit.jsp line 23:
/html:select

The code from the jsp:
table
tr
td
bean:message key=week//td
td
html:select property=week value=%= request.getParameter(Week) %
html:options name=MyForm property=weeks/
/html:select    Line 23
/td
/tr
/table

Any idea why weblogic complains about this?


2) The set methods are not being called on the form for hidden fields. I
have this code in my jsp:

html:form action=/MyAction
  name=MyForm
  type=com.foo.struts.MyForm

   bean:message key=state.id/: %= request.getParameter(StateID)
%br
   html:submitDelete/html:submit html:cancel/
  
   html:hidden property=origStateID value=%=
request.getParameter(StateID) %/
/html:form

StateID is a request parameter to the page. The setOrigStateID method is not
being called on MyForm. When deployed on Tomcat and SilverStream, the
sequence of events is:

MyForm.reset()
MyForm.setOrigStateID()
MyForm.validate()

With weblogic the sequence of events is

MyForm.reset()
MyForm.validate()

Obviously, this causes serious problems. 

I would really appreciate any help.
Thanks,
Kelly

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: hidden fields and extension tag errors with weblogic

2003-06-18 Thread Clauson, Kelly
Thanks for the response Rich. This did not work, but it did get me started
on the right path.
This code in the jsp:
html:select property=week value=%= request.getParameter('Week') %

results in this error:

myaddedit.java:213: unclosed character literal
probably occurred due to an error in /list/myAddEdit.jsp line 21:
html:select property=week value=%= request.getParameter('Week') %


To get around the errors I now do this:

%
   String week = request.getParameter(Week);
%

html:select property=week value=%= week %

and it works.


As for the other issue I'm dealing with, I'm still not sure why hidden
fields are not populated.
I've implemented a work-around but I really don't like it. Rather than use a
hidden tag, I'm setting a session attribute. Then, in the form's reset
method I set the data member to the value of the session attribute.
I don't like this because I'd rather not have more session attributes
floating around and it seems like an abuse of the reset method.

If you have an idea why hidden fields are not populated, please let me know.

Kelly





 -Original Message-
 From: Richard J. Duncan [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 18, 2003 11:08 AM
 To: [EMAIL PROTECTED]
 Subject: RE: hidden fields and extension tag errors with weblogic
 
 
 Hi. WebLogic uses a different page complier than Tomcat. That 
 may be part of the reason why you're picking up the error. My 
 guess is that the problem is that you have a scriptlet inside 
 the struts tag. Try re-writing it like this:
 
 html:select property=week value=%= 
 request.getParameter('Week') %
  
 That should work fine in Tomcat too.
 
 Regards,
  
 Rich
 
 
 -Original Message-
 From: Clauson, Kelly [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 18, 2003 11:39 AM
 To: '[EMAIL PROTECTED]'
 Subject: hidden fields and extension tag errors with weblogic
 
 I've developed a struts application that is working well on 
 Tomcat and on SilverStream. I'm now trying to deploy it to 
 WebLogic 7.0 (Service Pack 2).
 
 There are two problems occurring on WebLogic that do not 
 occur with Tomcat or SilverStream:
 
 1) I get the following error trying to display a jsp that 
 contains the struts html select/options tags:
 
 /list/myAddEdit.jsp(23): Non-matching extension tags //[ 
 null; Line: 23] probably occurred due to an error in 
 /list/myAddEdit.jsp line 23: /html:select
 
 The code from the jsp:
 table
 tr
 td
 bean:message key=week//td
 td
 html:select property=week value=%= 
 request.getParameter(Week) % html:options name=MyForm 
 property=weeks/
 /html:select    Line 23
 /td
 /tr
 /table
 
 Any idea why weblogic complains about this?
 
 
 2) The set methods are not being called on the form for 
 hidden fields. I have this code in my jsp:
 
 html:form action=/MyAction
   name=MyForm
   type=com.foo.struts.MyForm
 
bean:message key=state.id/: %= 
 request.getParameter(StateID) %br
html:submitDelete/html:submit html:cancel/
   
html:hidden property=origStateID value=%=
 request.getParameter(StateID) %/
 /html:form
 
 StateID is a request parameter to the page. The 
 setOrigStateID method is not being called on MyForm. When 
 deployed on Tomcat and SilverStream, the sequence of events is:
 
 MyForm.reset()
 MyForm.setOrigStateID()
 MyForm.validate()
 
 With weblogic the sequence of events is
 
 MyForm.reset()
 MyForm.validate()
 
 Obviously, this causes serious problems. 
 
 I would really appreciate any help.
 Thanks,
 Kelly
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: hidden fields and extension tag errors with weblogic

2003-06-18 Thread Richard J. Duncan
Kelly:

My guess is that the value attribute in the html:hidden isn't being set either. As a 
result, when the form posts, struts doesn't see the parameter and therefore doesn't 
call the corresponding setter on the form. I'd try the same approach for the 
html:hidden value as you did for the html:select.


Also, could you restructure your code to let struts fill these properties for you? For 
example, if you're getting to your page via:

/page.jsp?Week=10StateID=3

you can use
/page.do?week=10StateID=3

can capture the two parameters as properties in your ActionForm. If this happens to be 
the same one that page.jsp uses, you can just forward to page.jsp, and get all the 
values you need write from the ActionForm.

Hope this is helpful.

Regards,
 
Rich

-Original Message-
From: Clauson, Kelly [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 18, 2003 3:19 PM
To: 'Struts Users Mailing List'
Subject: RE: hidden fields and extension tag errors with weblogic

Thanks for the response Rich. This did not work, but it did get me started
on the right path.
This code in the jsp:
html:select property=week value=%= request.getParameter('Week') %

results in this error:

myaddedit.java:213: unclosed character literal
probably occurred due to an error in /list/myAddEdit.jsp line 21:
html:select property=week value=%= request.getParameter('Week') %


To get around the errors I now do this:

%
   String week = request.getParameter(Week);
%

html:select property=week value=%= week %

and it works.


As for the other issue I'm dealing with, I'm still not sure why hidden
fields are not populated.
I've implemented a work-around but I really don't like it. Rather than use a
hidden tag, I'm setting a session attribute. Then, in the form's reset
method I set the data member to the value of the session attribute.
I don't like this because I'd rather not have more session attributes
floating around and it seems like an abuse of the reset method.

If you have an idea why hidden fields are not populated, please let me know.

Kelly





 -Original Message-
 From: Richard J. Duncan [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 18, 2003 11:08 AM
 To: [EMAIL PROTECTED]
 Subject: RE: hidden fields and extension tag errors with weblogic
 
 
 Hi. WebLogic uses a different page complier than Tomcat. That 
 may be part of the reason why you're picking up the error. My 
 guess is that the problem is that you have a scriptlet inside 
 the struts tag. Try re-writing it like this:
 
 html:select property=week value=%= 
 request.getParameter('Week') %
  
 That should work fine in Tomcat too.
 
 Regards,
  
 Rich
 
 
 -Original Message-
 From: Clauson, Kelly [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 18, 2003 11:39 AM
 To: '[EMAIL PROTECTED]'
 Subject: hidden fields and extension tag errors with weblogic
 
 I've developed a struts application that is working well on 
 Tomcat and on SilverStream. I'm now trying to deploy it to 
 WebLogic 7.0 (Service Pack 2).
 
 There are two problems occurring on WebLogic that do not 
 occur with Tomcat or SilverStream:
 
 1) I get the following error trying to display a jsp that 
 contains the struts html select/options tags:
 
 /list/myAddEdit.jsp(23): Non-matching extension tags //[ 
 null; Line: 23] probably occurred due to an error in 
 /list/myAddEdit.jsp line 23: /html:select
 
 The code from the jsp:
 table
 tr
 td
 bean:message key=week//td
 td
 html:select property=week value=%= 
 request.getParameter(Week) % html:options name=MyForm 
 property=weeks/
 /html:select    Line 23
 /td
 /tr
 /table
 
 Any idea why weblogic complains about this?
 
 
 2) The set methods are not being called on the form for 
 hidden fields. I have this code in my jsp:
 
 html:form action=/MyAction
   name=MyForm
   type=com.foo.struts.MyForm
 
bean:message key=state.id/: %= 
 request.getParameter(StateID) %br
html:submitDelete/html:submit html:cancel/
   
html:hidden property=origStateID value=%=
 request.getParameter(StateID) %/
 /html:form
 
 StateID is a request parameter to the page. The 
 setOrigStateID method is not being called on MyForm. When 
 deployed on Tomcat and SilverStream, the sequence of events is:
 
 MyForm.reset()
 MyForm.setOrigStateID()
 MyForm.validate()
 
 With weblogic the sequence of events is
 
 MyForm.reset()
 MyForm.validate()
 
 Obviously, this causes serious problems. 
 
 I would really appreciate any help.
 Thanks,
 Kelly
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Populating hidden fields from an iterator

2003-03-05 Thread Karl
I'm trying to get struts to generate rows of data with an edit button beside 
(Beach row.  When that edit button is pressed, the record it references will be 
(Bloaded into an edit screen.
(B
(BThe record is referenced by its ID value, which I want to put into a hidden 
(Bfield.
(B
(BI tried doing the following, but it simply places the literal *element.id" as 
(Bthe value of the hidden property rather than the value I thought it would 
(Breference.
(B
(B
(Btable
(Btr
(BthID/th
(B/tr
(Btr
(BthData/th
(B/tr
(Blogic:iterate id="element" name="testForm" property="testData"
(Btr
(Btd
(Bbean:write name="element" property="id"/
(B/td
(Btd
(Bbean:write name="element" property="data"/
(B/td
(Btd
(Bhtml:form action="do_view_test_data.do" name="testForm" 
(Btype="com.somewhere.TestForm"
(Bhtml:hidden property="currentId" value="element.id"/
(Bhtml:submit value="Edit"/
(B/html:form
(B/td
(B/tr
(B/logic:iterate
(B/table
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Indexed Hidden fields

2002-11-06 Thread Ian Crossfield

I've done a search of the archives, but can't find any two answers that are the 
same on this one!

I'm creating a wizard interface, and a couple of the pages hold an array of 
values, that are viewed using html:multibox's within an html:iterate.

When they aren't visible, those values that have been selected need to be 
stored in hidden fields on the form.

My jsp reads as:

.
.
logic:notEqual name=pageNo value=1
logic:iterate id=service name=editDatabaseForm property=service
html:hidden property=services indexed=true/
/logic:iterate
/logic:notEqual
.
.

My question is what do I use for the gets and sets in the form bean?  At the 
moment I have (from one of the suggestions I found in the archive):

private Vector services = new Vector();

public Vector getServices()
{ return services; }
public Select getServices( int i )
{ return (Select) services.get( i ); }

public void setServices( Vector services )
{ this.services = services; }
public void setServices( int i, Select service )
{ services.set( i, service ); }

Each service is stored within a Select class (simply stores a value and a 
label).

What am I doing wrong? - no matter what combination I try the jsp page won't 
run!

Thanks

Ian



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




RE: Settiing hidden fields (thru Javascript) Form Beans

2002-10-11 Thread Galbreath, Mark

Gee, with all that information, this should be real easy.  Who wants to take
a shot at writing a full tutorial on the html:hidden tag?

Post the relevant code, dude.

Mark

-Original Message-
From: bobby oberai [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 11:08 PM

I m having a hidden field which maps to an Action Form Bean Field (I have 
used html:hidden tag for this). If I set any values in this html hidden 
field via Javascript, the values are not passed to the Form Bean.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Settiing hidden fields (thru Javascript) Form Beans

2002-10-11 Thread Galbreath, Mark

Wanna teach him HTML, too?  ;-)

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 11:20 PM
To: Struts Users Mailing List
Subject: RE: Settiing hidden fields (thru Javascript)  Form Beans


Strange, a hidden field should work just the same as a normal text field
(except that its invisible).
Few things to check:
0.) Check the generated html to see its what you expect it to be
1.) Do other fields on the form work? (ie: is it just the hidden field got
problem?)
2.) Is the hidden field located somewhere on the form - ie: between form
and /form?
3.) Have you set the property attribute correctly?
4.) Is the setter working for that field - if you make the field visible and
manually enter data does it work then? Is the parameter actually passed
through to the server with the form - (if so its the form bean and not the
client side at fault.)
5.) Is your javascript in fact setting the value for you or is it breaking?
(Can check by again making the hidden field visbible and watching what
happens)

The above should help you narrow down the problem.


-Original Message-
From: bobby oberai [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 11:08
To: [EMAIL PROTECTED]
Subject: Settiing hidden fields (thru Javascript)  Form Beans


Hello All,

I m having a hidden field which maps to an Action Form Bean Field (I have
used html:hidden tag for this). If I set any values in this html hidden
field via Javascript, the values are not passed to the Form Bean.

Any help on this?

Thanks,
Bobby

_
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Settiing hidden fields (thru Javascript) Form Beans

2002-10-11 Thread Andrew Hill

Yeh, I was about to actually, and had composed a short 3500 word essay on
the matter for him, but alas I was distracted and lost it before I had
clicked the send button...
;-)

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 20:18
To: 'Struts Users Mailing List'
Subject: RE: Settiing hidden fields (thru Javascript)  Form Beans


Wanna teach him HTML, too?  ;-)

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 11:20 PM
To: Struts Users Mailing List
Subject: RE: Settiing hidden fields (thru Javascript)  Form Beans


Strange, a hidden field should work just the same as a normal text field
(except that its invisible).
Few things to check:
0.) Check the generated html to see its what you expect it to be
1.) Do other fields on the form work? (ie: is it just the hidden field got
problem?)
2.) Is the hidden field located somewhere on the form - ie: between form
and /form?
3.) Have you set the property attribute correctly?
4.) Is the setter working for that field - if you make the field visible and
manually enter data does it work then? Is the parameter actually passed
through to the server with the form - (if so its the form bean and not the
client side at fault.)
5.) Is your javascript in fact setting the value for you or is it breaking?
(Can check by again making the hidden field visbible and watching what
happens)

The above should help you narrow down the problem.


-Original Message-
From: bobby oberai [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 11:08
To: [EMAIL PROTECTED]
Subject: Settiing hidden fields (thru Javascript)  Form Beans


Hello All,

I m having a hidden field which maps to an Action Form Bean Field (I have
used html:hidden tag for this). If I set any values in this html hidden
field via Javascript, the values are not passed to the Form Bean.

Any help on this?

Thanks,
Bobby

_
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Settiing hidden fields (thru Javascript) Form Beans

2002-10-10 Thread bobby oberai

Hello All,

I m having a hidden field which maps to an Action Form Bean Field (I have 
used html:hidden tag for this). If I set any values in this html hidden 
field via Javascript, the values are not passed to the Form Bean.

Any help on this?

Thanks,
Bobby

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Settiing hidden fields (thru Javascript) Form Beans

2002-10-10 Thread Andrew Hill

Strange, a hidden field should work just the same as a normal text field
(except that its invisible).
Few things to check:
0.) Check the generated html to see its what you expect it to be
1.) Do other fields on the form work? (ie: is it just the hidden field got
problem?)
2.) Is the hidden field located somewhere on the form - ie: between form
and /form?
3.) Have you set the property attribute correctly?
4.) Is the setter working for that field - if you make the field visible and
manually enter data does it work then? Is the parameter actually passed
through to the server with the form - (if so its the form bean and not the
client side at fault.)
5.) Is your javascript in fact setting the value for you or is it breaking?
(Can check by again making the hidden field visbible and watching what
happens)

The above should help you narrow down the problem.


-Original Message-
From: bobby oberai [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 11:08
To: [EMAIL PROTECTED]
Subject: Settiing hidden fields (thru Javascript)  Form Beans


Hello All,

I m having a hidden field which maps to an Action Form Bean Field (I have
used html:hidden tag for this). If I set any values in this html hidden
field via Javascript, the values are not passed to the Form Bean.

Any help on this?

Thanks,
Bobby

_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




hidden fields and String[]

2002-07-29 Thread Zimmer, Robin (SSABSA)

I have a form bean that has an array of strings that are supposed to hold
the selected items from a multibox. The architect has asked that when the
roiginal form is submitted, I display the selected items on a new form as
part of a confirmation process. When the Yes button is pressed the contents
of the string array (selected items) must be submitted. To accomplish this I
am trying to use hidden fields to hold the content of the String[] but am
getting no where. I realise that I have to iterate somehow over the array,
but have nver thried this with a String[] and hidden fields. Can someone
please help.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




hidden fields

2001-12-21 Thread Kuntz Peter, NY

I have a problem with the html:hidden tag. I tried the following:

html:form action=/AnnuityClientInformation method=post
html:hidden property=Action value=Hallo/
/html:form

I also implemented a FormBean which is associated with the jsp where this
form is in. This bean has a getAction() and setAction(String) method. I
assumed that the 'Action' property of this FormBean will be set when this
form is submitted. Somehow I couldn't manage to make this happen. Am I
missing here something or is there a bug in this tag.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: hidden fields

2001-12-21 Thread Stephen Owens

Peter,

Try this

html:hidden property=action value=Hallo/

Those bean conversion rules get me every time...


-Original Message-
From: Kuntz Peter, NY [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 1:55 PM
To: '[EMAIL PROTECTED]'
Subject: hidden fields


I have a problem with the html:hidden tag. I tried the following:

html:form action=/AnnuityClientInformation method=post
html:hidden property=Action value=Hallo/
/html:form

I also implemented a FormBean which is associated with the jsp where
this
form is in. This bean has a getAction() and setAction(String) method. I
assumed that the 'Action' property of this FormBean will be set when
this
form is submitted. Somehow I couldn't manage to make this happen. Am I
missing here something or is there a bug in this tag.

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: hidden fields

2001-12-21 Thread cahana

try

html:hidden property=action value=Hallo/


- Original Message -
From: Kuntz Peter, NY [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 21, 2001 8:55 AM
Subject: hidden fields


 I have a problem with the html:hidden tag. I tried the following:

 html:form action=/AnnuityClientInformation method=post
 html:hidden property=Action value=Hallo/
 /html:form

 I also implemented a FormBean which is associated with the jsp where this
 form is in. This bean has a getAction() and setAction(String) method. I
 assumed that the 'Action' property of this FormBean will be set when this
 form is submitted. Somehow I couldn't manage to make this happen. Am I
 missing here something or is there a bug in this tag.

 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Form with Hidden fields

2001-03-02 Thread Dorai, Harish (c)

Forget it! It was a minor typo. The form bean attributes and and the form
field names weren't matching. 

-Original Message-
From: Dorai, Harish (c) 
Sent: Friday, March 02, 2001 9:11 AM
To: '[EMAIL PROTECTED]'
Subject: Form with Hidden fields


Hi,

I am submitting a Form with just hidden fields to the Struts controller. But
I am getting a null pointer exception. I tried displaying the Form bean
contents in my Action class, but it is displaying null, which proves that
the hidden field values weren't set in the Bean. Am I missing something?
Please help me resolve the problem.

Thanks,
Harish.