scope:request doubt

2003-06-30 Thread Suresh Babu
Hi,

What is the default scope in Struts???

I think it is request.

My doubt is,

I have a property called companyId in my JSP. The value is retained till the
control comes to the Formbean. After this it is reset to null. This problem
occurs if scope=request is set in my struts-config.

Once this is removed, the page works just fine.

Why is this???

Please advice.

Thanks in advance,
Suresh


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



RE: html:hidden and value

2003-06-12 Thread Suresh Babu
In your reset() try to initialize the string to null. (Not  )


Hope this helps.

 --
 From: Anurag Garg[SMTP:[EMAIL PROTECTED]
 Reply To: Struts Users Mailing List
 Sent: Thursday, June 12, 2003 11:46 AM
 To:   Struts Users Mailing List
 Subject:  html:hidden and value 
 
 
 
 
 Hi,
 
 I am using html:hideen element and specifying the value in the jsp page
 like
 this.
 html:hidden property=login value=userName /
 
 In my ActionForm I am declaring a variable String login with getter and
 setter methods. In my reset() method Iinitialize the string to
 blank
 string .
 
 When I print the value of hidden element in my action form it displays a
 blank string , rather than displaying the value userName.
 
 I do not understand where the problem is. Any help will be Great..
 
 Anurag Garg
 
 
 -
 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: need all info. regd Tags in Struts..

2003-06-11 Thread Suresh Babu
Hi Rajat,

Check out this link.

http://www.novell.com/documentation/lg/workbench4/docs/help/books/tutwarTOC.
html

Hope it helps.

Regards,
Suresh


 --
 From: Rajat Nayer[SMTP:[EMAIL PROTECTED]
 Reply To: Struts Users Mailing List
 Sent: Wednesday, June 11, 2003 5:41 PM
 To:   [EMAIL PROTECTED]
 Subject:  need all info. regd Tags in Struts..
 
 
 
 
 Hi,
 
 I have just started understanding Struts framework.
 The tutorial that i followed used some tag libs to do
 some html jobs (probably formatting - i dunno yet!!).
 
 Where can i get a complete list of Tags available in
 the Struts framework (and abt all the tld files that
 we keep in WEB-INF).
 
 Also, could you guide me to a tutorial which will help
 me use EJBs in a struts framework on Tomcat 3.2.4( i
 have this server currently).
 
 Will really appreciate the help by the list users to
 get me up and running with EJBs and Struts.
 
 Thanks
 Rajat
 
 
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
 http://calendar.yahoo.com
 
 -
 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: Help with requiredif validation

2003-06-11 Thread Suresh Babu
Try this

 arg1
  name=requiredif
  key=A name is
  resource=false
  /


 --
 From: Brian McSweeney[SMTP:[EMAIL PROTECTED]
 Reply To: Struts Users Mailing List
 Sent: Wednesday, June 11, 2003 9:36 PM
 To:   Struts Users Mailing List
 Subject:  Help with requiredif validation
 
 Hi all,
 
 I'd like to use requiredif to validate some fields as follows:
 
 on my jsp I have a checkbox, eg supplier,
 
 if this checkbox is checked, then I want another field, eg name to be
 required.
 I've tried to set this up in my validation.xml file as follows:
 
   field property=name
  depends=requiredif
 
   arg0 key=validateForm.name/
   arg0
   name=requiredif
   key=A name is
   resource=false
   /
   var
 var-namevalidateForm.supplier/var-name
 var-valuetrue/var-value
   /var
 
 however it doesn't seem to be working at all.
 Any ideas?
 thanks,
 Brian
 
 PS - other fields are being validated correctly.
 

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