RE: [Struts2] problem with s:select tag

2007-12-17 Thread Rajasekhar
hi Raghuveer 
   you can solve your problem through call prepare() method again means
   in action method before return String like SUCCESS OR INPUT OR LOGIN
   call prepare() method once again it will display select component values
   perfectly as normally.

-Original Message-
From: Raghuveer Rawat [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 15, 2007 4:01 AM
To: Struts Users Mailing List
Subject: [Struts2] problem with s:select tag


Hi,
I have a getting problem in using s:select tag. Need some help if anyone
used s:select before.
This dropdown is populated dynamically. When form is loaded initially
dropdown is getting populated perfectly. No issue here.
But when we submit the form and some of the validations fail then page is
not getting displayed correctly. This is because dropdown values are not
coming back after the form submit. Not sure what need to be done to bring
back this dropdown values.
I can see below error in the log.

 Servlet.service() for servlet jsp threw exception
tag 'select', field 'list', name 'user.country': The requested list key
'countryList' could not be resolved as a
collection/array/map/enumeration/iterator type. Example: people or
people.{name} - [unknown location]

Here is my jsp code for this issue:

s:select name=user.country headerKey=-1 headerValue=Select Country
cssClass=textbox1
list=countryList listKey=code
listValue=name required=true /

Pl. let me know if you need some more information.

Thanks in advance.



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



ExceptionHandling in Struts2.0

2007-12-17 Thread Rajasekhar

hi
  how can i use Exception Handling in struts2.0
  does anyone have information pls send me

Best Regards,

Rajasekhar Yenduva B.tech(IT),
Jr J2EE Developer,
Miracle Software Systems, Inc
Website: www.miraclesoft.com
Email: [EMAIL PROTECTED]
Work: 248-233-1814
Mobile: 9290842877



winning does't always mean being first winning means doing better than you
have done before. __Bonnie Blair



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



Dojo Jars for Struts2

2007-12-17 Thread Rajasekhar

Hi
   How can i dowload DojoJars For Struts2.0

   does anyone have information pls send me

Best Regards,

Rajasekhar Yenduva B.tech(IT),
Jr J2EE Developer,
Miracle Software Systems, Inc
Website: www.miraclesoft.com
Email: [EMAIL PROTECTED]
Work: 248-233-1814
Mobile: 9290842877



winning does't always mean being first winning means doing better than you
have done before. __Bonnie Blair



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



RE: LOG4J in Struts2

2007-12-14 Thread Rajasekhar
Thank you for your response i will work out with an example
  


-Original Message-
From: hezjing [mailto:[EMAIL PROTECTED]
Sent: Friday, December 14, 2007 2:10 PM
To: Struts Users Mailing List
Subject: Re: LOG4J in Struts2


Hi Rajasekhar

You can study the struts2-showcase-2.0.11.war which comes with the
Struts2 distribution.

You will see WEB-INF\lib\log4j-1.2.9.jar,
WEB-INF\classes\log4j.properties
and the Java files in
WEB-INF\src\java\org\apache\struts2\showcase\action directory.


On 12/14/07, Rajasekhar [EMAIL PROTECTED] wrote:

 hai every one,

  i am interrested to use Log4j in Struts2 so does any enyone have
 information about
  tutorials pls send me.

 Best Regards,

 Rajasekhar Yenduva B.tech(IT),
 Jr J2EE Developer,
 Miracle Software Systems, Inc
 Email: [EMAIL PROTECTED]


 
 
 winning does't always mean being first winning means doing better than you
 have done before. __Bonnie Blair



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




-- 

Hez

-
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]



Tabbedpannel issue

2007-12-14 Thread Rajasekhar

hi to all
  i am getting issue in tabbebpannel like
  maintaining the state  of tab in multipletabs means
  when i refresh the page previous tab should be selected that was last
accessed tab.

  in this context selectTab is property is given but it's showing Depricated
Message On Jsp
  please give me some idea

  right now i am using Struts2.0.9 version


Best Regards,

Rajasekhar Yenduva B.tech(IT),
Jr J2EE Developer,
Miracle Software Systems, Inc
Email: [EMAIL PROTECTED]




winning does't always mean being first winning means doing better than you
have done before. __Bonnie Blair



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



STRUTS2.1 JARS

2007-12-14 Thread Rajasekhar

Hi to all

how can i download struts2.1 jars is this released? if so
can you send me url

Best Regards,

Rajasekhar Yenduva B.tech(IT),
Jr J2EE Developer,
Miracle Software Systems, Inc
Website: www.miraclesoft.com
Email: [EMAIL PROTECTED]
Work: 248-233-1814
Mobile: 9290842877



winning does't always mean being first winning means doing better than you
have done before. __Bonnie Blair



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



LOG4J in Struts2

2007-12-13 Thread Rajasekhar

hai every one,

  i am interrested to use Log4j in Struts2 so does any enyone have
information about
 tutorials pls send me.

Best Regards,

Rajasekhar Yenduva B.tech(IT),
Jr J2EE Developer,
Miracle Software Systems, Inc
Email: [EMAIL PROTECTED]




winning does't always mean being first winning means doing better than you
have done before. __Bonnie Blair



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



Re: Problem opening application in more than one browser

2006-03-30 Thread rajasekhar . cherukuri
Hi,
Are you using the new browser instance or getting a new window by 
using the 'RightClick - Open in new Window' ?  If you are using a 
different browser instance, you might get error if you are not using the 
context related information properly. If you are using  'RightClick - Open 
in new Window', the problem can be because of improper handling of session 
related information. Just check if this could be of any help for you.

Thanks and Regards,
Rajasekhar Cherukuri




Shasirekha Engala [EMAIL PROTECTED] 
03/30/2006 12:50 PM
Please respond to
Struts Users Mailing List user@struts.apache.org


To
Struts \(E-mail\) user@struts.apache.org
cc

Subject
Problem opening application in more than one browser









Hi
  There is a struts application. If  the application is opened in more 
than
one browser  and is tested it is throwing exception.  Is there any 
solution
for this.



Shasi



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


ForwardSourceID:NT0001129E 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information. If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited. If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments. Thank you



Re: Invalidating a session using JAVASCRIPT

2006-03-21 Thread rajasekhar . cherukuri
Hi Sahil,
I believe this can be done by implementing the 
HttpSessionBindingListenerInterface.The HttpSessionBindingListener 
interface is implemented by the classes whose objects need to receive 
notifications whenever they are added to or removed from a session. We do 
not have to inform the container about such objects explicitly via the 
deployment descriptor. Whenever an object is added to or removed from any 
session, the container introspects the interfaces implemented by that 
object. If the object implements the HttpSessionBindingListener interface, 
the container calls the corresponding notification methods

Rajasekhar Cherukuri
Tata Consultancy Services Limited
Air-India Building 11th Floor,
Nariman Point ,
Mumbai - 400 021,Maharashtra
India
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com




Sahil Gupta [EMAIL PROTECTED] 
03/21/2006 04:08 PM
Please respond to
Struts Users Mailing List user@struts.apache.org


To
user@struts.apache.org
cc

Subject
Invalidating a session using JAVASCRIPT






Hi,
 
Can anyone tell me how to  logout a user (invalidate his Session) when a
user directly closes his browser window. 
 
Thanks.

Regards,

Sahil Gupta

Extn : 233
Email : [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
**
NetEdge Computing Global Solutions Private Limited. 
A-14, Sector-7, NOIDA U.P. 201-301
Tel #  91-120-2423281, 2423282 
Fax #  91-120-2423279 
URL  http//www.netedgecomputing.com 
**
This message may contain confidential and/or privileged information. If
you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose or take any action based on
this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation. 
 

ForwardSourceID:NT0001060A 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information. If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited. If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments. Thank you



Re: cant reset form

2005-11-09 Thread rajasekhar . cherukuri
Hi Chris,
Why don't you try making the scope of the form as request ?





Chris Pat [EMAIL PROTECTED] 
11/10/2005 09:33 AM
Please respond to
Struts Users Mailing List user@struts.apache.org


To
Struts Users Mailing List user@struts.apache.org
cc

Subject
cant reset form






Hello
I have an app with three fields on the form.  It all
works fine and I even have the Reset method assigning
blank strings.  The problem, Reset never works.  I
submit the form and the form values  do not clear. 
This is even more unbelievable, I down TC, recompile
the war, place it in webapps, start TC, and STILL the
same values.  How can this happern, what am I clearly
not doing? 

Also, If I wanted the form to keep a dynamic list per
field of the values entered per session per form with
the browser, is there an easy way to do that?  Thank you.


 
 
__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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


ForwardSourceID:NT801E 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information. If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited. If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments. Thank you



Re: Problem with request.setAttribute

2005-10-27 Thread rajasekhar . cherukuri
Hi,
When you use request.setAttribute() in Action, it is the same 
request which goes to JSP also. So, you are able to get the values in JSP 
through request.getAttribute(). But when you use request.setAttribute() in 
JSP and submit the form, then a new request is generated with the values 
that are contained in the current form and that new request erases all the 
previous values. If you want to use these values in the Action also, you 
need to set them to session rather than request.

Regards,
Rajasekhar Cherukuri



Deepa Khetan [EMAIL PROTECTED] 
10/27/2005 02:22 PM
Please respond to
Struts Users Mailing List user@struts.apache.org


To
user@struts.apache.org
cc

Subject
Problem with request.setAttribute






Hi,
 I have a observed a peculiar behaviour with Struts. We cannot use
request.setAttribute() while passing values from JSP to Action class. It
works fine if i do it from Action to JSP. but when i use it in JSP and
retreive value in Action class, it results in null. Can anyone please
explain why this happens?
 Deepa

ForwardSourceID:NT6B3E 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information. If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited. If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments. Thank you



Re: difference between setAtttibute and setPatameter

2005-10-27 Thread rajasekhar . cherukuri
Hi,
There is nothing like request.setParameter(). When ever you submit 
a form (say JSP),  all the controls in the form like textbox, checkbox, 
textarea etc..will be submitted to the Action or Servelt with the names 
given to them and these values can be retrieved through 
request.getParameter(name).  Here the name is the name given to each 
control in JSP. On the other hand request.setAttribute() is some thing 
through which the user can explicitly store the required information. For 
example, if you use request.setAttribute(MY_ATT, new Interger(4)) in 
either Action or Servlet, then you can retrieve the value in JSP through 
request.getAttribute(MY_ATT).

Regards,
Rajasekhar Cherukuri




Ankit Pancholi [EMAIL PROTECTED] 
10/27/2005 03:04 PM
Please respond to
Struts Users Mailing List user@struts.apache.org


To
Struts Users Mailing List user@struts.apache.org
cc

Subject
difference between setAtttibute and setPatameter







Hi guys

I wanted to know wat is the difference between request.setAttribute and
request.setParameter. Rather there seems to be nothing called
request.setParameter wen there is request.getParameter.

Is the only way to pass values from action to jsp is
request.setAttribute and then request.getAttribute in jsp???

Thanks

Ankit





Its amazing wat u can achieve if u don't care who gets the credit






 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended 
solely for the use of the addressee(s). If you are not the intended 
recipient, please notify the sender by e-mail and delete the original 
message. Further, you are not to copy, disclose, or distribute this e-mail 
or its contents to any other person and any such actions are unlawful. 
This e-mail may contain viruses. Infosys has taken every reasonable 
precaution to minimize this risk, but is not liable for any damage you may 
sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves 
the right to monitor and review the content of all messages sent to or 
from this e-mail address. Messages sent to or from this e-mail address may 
be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***
ForwardSourceID:NT6B4E 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information. If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited. If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments. Thank you



RE: query string parameters problem

2005-10-22 Thread rajasekhar . cherukuri

Are you able to see the 'age' and 'name' attributes in the address bar 
after submitting the form ? If not, the action=/submit.do in your 
html:form is overwriting the URL you wanted to post. IN this case you 
can use the hidden variables for age and name and set the required values 
in the Javascript.

Regards,
Rajasekhar Cherukuri





R.Vijayaraghavan [EMAIL PROTECTED] 
10/22/2005 11:53 AM
Please respond to
Struts Users Mailing List user@struts.apache.org


To
Struts Users Mailing List user@struts.apache.org
cc

Subject
RE: query string parameters problem








 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Saturday, October 22, 2005 8:36 AM
 To: Struts Users Mailing List
 Subject: Re: query string parameters problem



 Hi,
 You should use
 request.getParameter(name)
 request.getParameter(age)

It does not work.

 to get the values from the request. I don't think the values set
 through through query string will be set to ActionForm automatically. In
 this case you should explicitly call the setter methods of the 
ActionForm
 and then set the new ActionForm object to session with the same name 
that
 was used in the action element attribute attribute in 
struts-config.xml.

No, the values are set even while passing the values through the query
string. Why should not this work. The URL with the query string will call
teh appropriate ActionForm, set the values that it gets from the Http GET
request.

The problem I face is that when I submit the html page, the name and age 
do
not get added to the query string(and thats fine, it should not). The
description goes via the Http POST request, ActionForm sets the value of
description, comes to the Action. Its here that I am not able to get the
values of name and age.

regards,
vijay.



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


ForwardSourceID:NT6736 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

RE: query string parameters problem

2005-10-22 Thread rajasekhar . cherukuri

The scope of the ActionForm is session means that the last submitted 
ActionForm will remain in the session till the session ends. In you case, 
even though the ActionForm is getting populated with the values for the 
first time, those are getting overridden by the second request and the 
second request is not taking the values of name and age in the query 
string (As the querystring URL is getting overridden by /submit.do).

Regards,
Rajasekhar Cherukuri




R.Vijayaraghavan [EMAIL PROTECTED] 
10/22/2005 12:14 PM
Please respond to
Struts Users Mailing List user@struts.apache.org


To
Struts Users Mailing List user@struts.apache.org
cc

Subject
RE: query string parameters problem







 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Saturday, October 22, 2005 12:08 PM
 To: Struts Users Mailing List
 Subject: RE: query string parameters problem



 Are you able to see the 'age' and 'name' attributes in the address bar
 after submitting the form ? If not, the action=/submit.do in your
 html:form is overwriting the URL you wanted to post. IN this case you
 can use the hidden variables for age and name and set the required 
values
 in the Javascript.

Yes it overwrites the address bar with just /submit.do. But why should the
name and age attributes be null when the ActionForm is in session scope.
Shouldn't the values be re-used.


 Regards,
 Rajasekhar Cherukuri


regards,
vijay.



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


ForwardSourceID:NT674A 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Re: unknown field in struts-config.xml

2005-10-22 Thread rajasekhar . cherukuri

Hi Alex,
Unknown=true  is a special attribute which is useful in 
directing the unknown requests to the applications to a specific page. For 
example if you hit the URL of your application with 
http://localhost:7001/App/someThing.do  and if this someThing.do is not 
a valid action in your Application App then it will be directed to an 
action whose unknown=true in the struts-config.xml. There can be only 
one action with this unknown=true. The default value is false and it 
does NO harm to the action if explicitly unknown=false is specified.

Regards,
Rajasekhar Cherukuri



axel maroudas [EMAIL PROTECTED] 
10/22/2005 05:28 PM
Please respond to
Struts Users Mailing List user@struts.apache.org


To
user@struts.apache.org
cc

Subject
unknown field in struts-config.xml






Hello all!

I am new to this mailing list. Actually this is my first post here.

I have a problem regarding the struts-config.xml. I am using xdoclet to 
generate it. The situation is the following: The tags in the class as as 
follows:

/**
 *@struts.action
 * path=/login
 *name=LoginForm
 * scope=request
 * input=/jsp/login/loginScreen.jsp
 * validate=true
 * @struts.action-forward
 * name=Success
 * path=/jsp/login/loginOk.jsp
 * redirect=true
 * @struts.action-forward
 * name=Failure
 * path=/jsp/login/loginScreen.jsp
 * redirect=true
 *
 *
 */
public class LoginAction extends Action
{
..

What is generated in the struts-config.xml is as follows:

action
  path=/login
  type=com.am.struts.wamp3.user.presentation.LoginAction
  name=LoginForm
  scope=request
  input=/jsp/login/loginScreen.jsp
  *unknown=false*
  validate=true

  forward
name=Success
path=/jsp/login/loginOk.jsp
redirect=true
  /
  forward
name=Failure
path=/jsp/login/loginScreen.jsp
redirect=true
  /
/action

What is is this unknown=false? How did it get there? Do I need it? How 
do I get rid of it?

Thanx in advance
axelmangr


http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου.
http://www.freemail.gr - free email service for the Greek-speaking.

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


ForwardSourceID:NT6762 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you


Re: [Form field values.. regarding]

2005-10-21 Thread rajasekhar . cherukuri

Hi,
You can use the value= attribute in the tag in which you don't 
want the default values to be loaded. This doe not require any special 
method.

Regards,
Rajasekhar Cherukuri




Deva Pitchai(NatureSoft) [EMAIL PROTECTED] 
10/21/2005 01:10 PM
Please respond to
Struts Users Mailing List user@struts.apache.org


To
Struts Users Mailing List user@struts.apache.org
cc

Subject
[Form field values.. regarding]






[With snapshot attached]

Hi group

hope you all must come across this situation...
If u can tell me how to solve this... i will be very much thankful

when i edit a form (say with 10 fields in it. some are dropdown, textbox
etc), the non-mandatory fields are displaying 0.0 as the field value,
which is the value from the database.


Now my question is is there any simple way to avoid this kind of
displaying 0.0.
Or I need to write a method to make it as null


Thanks in adv
Deva


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


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Re: query string parameters problem

2005-10-21 Thread rajasekhar . cherukuri

Hi,
You should use 
request.getParameter(name) 
request.getParameter(age)

to get the values from the request. I don't think the values set 
through through query string will be set to ActionForm automatically. In 
this case you should explicitly call the setter methods of the ActionForm 
and then set the new ActionForm object to session with the same name that 
was used in the action element attribute attribute in struts-config.xml.

Regards,
Rajasekhar Cherukuri



R.Vijayaraghavan [EMAIL PROTECTED] 
10/21/2005 03:40 PM
Please respond to
Struts Users Mailing List user@struts.apache.org


To
Struts Users Mailing List user@struts.apache.org
cc

Subject
query string parameters problem






Hello,

I have 3 variables, namely age, name and description. I have the values 
for
name and age before sending the request. That is, my URL would look like
http://localhost:8080/vijay/submit.do?name=xyzage=22

I have a form that sets the values of age and name which is then accessed 
in
a html page using bean:write. In the html page, the user will enter the
description in the corrosponding textarea.

The action is set to /submit.do. Since I am only sending the description 
in
the http request, only the setDescription() method should be called and it
happens so. The problem is when I try to access the age and name variables
from the ActionForm in the Action class, I get null. Why so? I am not
setting age and name after submitting the form, they are already set. The
form is in session scope, so shouldn't it be re-used.

Or am I understanding it in-correctly.

regards,
vijay.

Sorry if the subject of the mail is not proper, I couldn't think of any
other subject.



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


ForwardSourceID:NT66BE 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Re: Error while adding one field in thesample application

2005-10-20 Thread rajasekhar . cherukuri

Have u tried with restarting or redeploying your app server??

Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Re: Problems with Iterator tag Please Help

2005-10-20 Thread rajasekhar . cherukuri

Use the following code


logic:present name=rows scope=session
  logic:iterate id=row name=rows scope=session 
type=NibuSrchVLocalDTO Hi /logic:iterate
/logic:present


This will print the Hi the number of times depending on the size of 
ArrayList. Also do not forget to use the fully qualified name with package 
for type=NibuSrchVLocalDTO

Regards,
Rajasekhar Cherukuri




Troy Bull [EMAIL PROTECTED] 
10/20/2005 08:56 PM
Please respond to
Struts Users Mailing List user@struts.apache.org


To
Struts Users Mailing List user@struts.apache.org
cc

Subject
Problems with Iterator tag Please Help






Hello

I have a situation here.  I have an ArrayList of DTO objects in session.

%
ArrayList rows = (ArrayList) session.getAttribute(rows);
if (rows != null) {
  Iterator i = rows.iterator();
while (i.hasNext())
{
 NibuSrchVLocalDTO debug = (NibuSrchVLocalDTO)i.next();
out.println(Name:  + debug.getFullName() + BR);
}
}
%

This code here (scriptlet above this line) works perfectly but

logic:present name=rows scope=session
  logic:iterate id=row scope=session 
collection=rowsHi/logic:iterate
/logic:present

this code here with teh iterate tag does not it gives me the following 
error:

javax.servlet.jsp.JspException: Cannot create iterator for this collection
 at 
org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:310)
 at _search._jspService(search.jsp:96)
 [/search.jsp]

I have these 2 code fragments in the same JSP right next to each other, 
I tested by removing one fragment at a time.  Any pointers would be 
greatly appreciated.

thanks in advance

troy



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


ForwardSourceID:NT6592 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Re: I am getting frustrated with LookupDispatchAction

2005-10-17 Thread rajasekhar . cherukuri

Have you extended LookUpDipatchAction your ddPSLUserWizardAction ??

Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Re: Handling invalid sessions

2005-10-16 Thread rajasekhar . cherukuri

Hi,
The best way is to write a Base Action class and extend that class 
for all your Action classes in your application. Place a check in the 
execute method of the Base Action class and if it is a success then call 
an abstract method in the Base Action class which will be implemented by 
all your Action classes. If it is a failure (means there is NO required 
information in the session), then forward to a login page or failure page.


Regards,
Rajasekhar Cherukuri




Jadeler [EMAIL PROTECTED] 
10/17/2005 09:57 AM
Please respond to
Struts Users Mailing List user@struts.apache.org


To
user@struts.apache.org
cc

Subject
Handling invalid sessions






What is the best way to handle invalid sessions (http
sessions) within Struts?  I need a way to determine
when an object within a session no longer exists and
redirect the user to an error page when that happens. 
I was thinking of implementing
HttpSessionAttributeListener or a Servlet filter.  Any
suggestions on whats recommended?  Thanks.

Jadeler


 

 
 
__ 
Find your next car at http://autos.yahoo.ca

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


ForwardSourceID:NT615A 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Re: Handling invalid sessions

2005-10-16 Thread rajasekhar . cherukuri

That is why i have clearly specified that you have to implement an 
abstract method in the base class. which will be implemented in all your 
classes and that method will be called explicitly from Base Action class. 
You should not override the execute() method in the Child classes.


Regards,
Rajasekhar Cherukuri



peru cheppanu [EMAIL PROTECTED] 
10/17/2005 10:26 AM
Please respond to
Struts Users Mailing List user@struts.apache.org


To
Struts Users Mailing List user@struts.apache.org
cc

Subject
Re: Handling invalid sessions







If we do that, then execute() method in child classes will override Base 
Action execute() method. Right? Then, as far as I know, that execute() in 
Base Action will not be executed..
 
Peru Cheppanu
 

[EMAIL PROTECTED] wrote:

Hi,
The best way is to write a Base Action class and extend that class 
for all your Action classes in your application. Place a check in the 
execute method of the Base Action class and if it is a success then call 

an abstract method in the Base Action class which will be implemented by 
all your Action classes. If it is a failure (means there is NO required 
information in the session), then forward to a login page or failure page.


Regards,
Rajasekhar Cherukuri




Jadeler 
10/17/2005 09:57 AM
Please respond to
Struts Users Mailing List 


To
user@struts.apache.org
cc

Subject
Handling invalid sessions






What is the best way to handle invalid sessions (http
sessions) within Struts? I need a way to determine
when an object within a session no longer exists and
redirect the user to an error page when that happens. 
I was thinking of implementing
HttpSessionAttributeListener or a Servlet filter. Any
suggestions on whats recommended? Thanks.

Jadeler






__ 
Find your next car at http://autos.yahoo.ca

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


ForwardSourceID:NT615A 


Notice: The information contained in this e-mail message and/or 
attachments to it may contain confidential or privileged information. If 
you are not the intended recipient, any dissemination, use, review, 
distribution, printing or copying of the information contained in this 
e-mail message and/or attachments to it are strictly prohibited. If you 
have received this communication in error, please notify us by reply 
e-mail or telephone and immediately and permanently delete the message and 
any attachments. Thank you
 
-
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
ForwardSourceID:NT616E 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Re: Select first in Options list

2005-10-10 Thread rajasekhar . cherukuri

Hi,
Do not use selected for any option. By default automatically, 
the first option will be selected and your purpose will be solved.

Regards,
Rajasekhar Cherukuri




Doug Thomas [EMAIL PROTECTED] 
10/10/2005 06:20 PM
Please respond to
Struts Users Mailing List user@struts.apache.org


To
Struts MailList user@struts.apache.org
cc

Subject
Select first in Options list






I have a Select element with several Options making up a selection list. 
The
Options are built dynamically from a database. After the list is built, I
want the first option in the list to be SELECTed. Every sample I've seen
assumes you know what's in the list and you know what option you want
selected, by name.

Any ideas on how to do this?

Doug



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


ForwardSourceID:NT5B56 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Re: Hide the JSP: Actions, rowBean and JSPs question

2005-10-09 Thread rajasekhar . cherukuri

Hi,

Put the following code in your web.xml. This will not allow any of 
your user to access your JSPs.


web-app
   ...
  security-constraint
web-resource-collection
  web-resource-nameno_access/web-resource-name
  url-pattern*.jsp/url-pattern
/web-resource-collection
auth-constraint/
  /security-constraint
  ...
/web-app


Regards,
Rajasekhar Cherukuri






C.F. Scheidecker Antunes [EMAIL PROTECTED] 
10/10/2005 09:58 AM
Please respond to
Struts Users Mailing List user@struts.apache.org


To
Struts Users Mailing List user@struts.apache.org
cc

Subject
Hide the JSP: Actions, rowBean and JSPs question






Hello All,

I have an action that reads from the database and return a rowSet bean 
to the request scope.
Then I iterate the bean on my JSP and show the data.

Everything works.

I however have a problem. I can access the JSP straight if I type the URL.

That is, I want the JSP only to be shown if it is called from the 
action. I have a forward called success and
mapped to my struts-config.xml. On success I forward to the jsp

I would like to hide the JSP from the user, is it possible?

How?

Thanks,

C.F.

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


ForwardSourceID:NT5AE2 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Re: ActionForm validate() - what Action does the controller call?

2005-10-07 Thread rajasekhar . cherukuri

If the validate method returs non empty ActionErrors object, the control 
will go to the JSP specified in the input attribute of the corresponding 
action element in struts-config.xml .

Thanks,
Rajasekhar Cherukuri







Please respond to
Struts Users Mailing List user@struts.apache.org


To
Struts Users Mailing List user@struts.apache.org
cc

Subject
ActionForm validate() - what Action does the controller call?






When my ActionForm returns a non-empty ActionErrors object, where does
control go to?

i.e. i read from the struts site:


When the properties of this bean have been populated, but before the
executemethod of the
Action is called, this bean's validate method will be called, which gives
the bean a chance to verify that the properties submitted by the user are
correct and valid. If this method finds problems, it returns an error
messages object that encapsulates those problems, and the controller 
servlet
will return control to the corresponding input form. Otherwise, the
validatemethod returns
null, indicating that everything is acceptable and the corresponding
Action.execute method should be called.

(my bold)

I guess I don't understand what 'corresponding input form' means? 
Presumably
the controller needs to call some Action, how do I know / specify which 
one?

Thanks

ForwardSourceID:NT591E 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

NullPointerException while using Tiles

2005-10-06 Thread rajasekhar . cherukuri

Hi,
I am using Tiles in my application. Whenever i am redeploying or 
making any changes i am getting the following error. If i restart the 
server, it is working fine. Any idea about this?
Thanks in advance.

Error 500--Internal Server Error

java.lang.NullPointerException
 at 
org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper.getDefinition(ComponentDefinitionsFactoryWrapper.java:124)
 at 
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:180)
 at 
org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:341)
 at 
org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:582)
 at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260)
 at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
 at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
 at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
 at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
 at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6310)
 at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
 at 
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
 at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
 at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
 at 
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
 at 
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)



Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Re: Base action class

2005-10-06 Thread rajasekhar . cherukuri

It was a good idea to put the user logging check in the BaseAction class. 
This will be used as a firewall before allowing to access any resource 
(Action class). The required code for User Information check can be put in 
the execute method and another method like delegateToExecute(..) can be 
made abstract and this method can be called as the last statement in 
BaseAction's execute method. if the check is successful, the control goes 
to the delegateToExecute(..) method for the requested class where you can 
put ypur regular code. Since delegateToExecute(..)  will be made abstract, 
that needs to be implemented in all teh actions which import the 
BaseAction.

Thanks,
Rajasekhar Cherukuri









Please respond to
Struts Users Mailing List user@struts.apache.org


To
user@struts.apache.org
cc

Subject
Base action class






Hello,

I am trying to use a BaseAction class for my action, and i have been
wondering what to put in there;

As for now, i have put the basic stuff there like finding a forward for
a database faillure and so on..
(like in the mailreader example by the way). Also, i have put a method
that retrieves a handler from
the servlet context that all actions need. Is this a good idea?

I wonder whether it's a good idea to do authorization in the base class
by implementing an abstract
execute method that will check whether a user is logged in.. All action
classes then will first call
this abstract execute method.

What do you put in base classes?
Thanks


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


ForwardSourceID:NT5876 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you