RE: Preprocessing of request

2006-12-15 Thread Anil Kumar T

Hi ...

Thanks to Ed and Frank for explaining this.. I understand it. One more
question was .. is there a way to avoid mandatory calling it in all the
sub actions, instead the call should happen automatically.

For Ex : I believe ..
when we instantiate a sub class by saying
 SubClass subcls = new SubClass();,
the base class constructor is called and then the sub class constructor
is called (hope am correct). Some thing like this am looking at method
level. I think am moving out of struts and getting into the concepts
etc..

Coming to the actual point. I want to have the user name to be available
in all the action class instances with less effort. During the login
time I can get it from DB and then put it in session. And then in all
the actions I need the user name/id for my processing. So as of now am
getting the user name from session in all the actions. But looking for a
better handling

Any thoughts on this point.?

Thanks & regards,
Anil.


-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 14, 2006 9:03 PM
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: Re: Preprocessing of request

I'm glad Ed replied because I missed your reply Anil... I wasn't
ignoring
you :)

Ed covered it well... when I do this, I tend to do it slightly
different... I write an Action that has an extra empty method,
realExecute()... execute() calls realExecute(), and any "common" code,
like your transformation logic, is in execute()... then I extent this
class to create the Actions for my application, I override
realExecute(),
and that's that.  Same basic concept, just a slightly different
structure.

Still saying filter though :)

Frank


--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
 (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

On Thu, December 14, 2006 9:59 am, Ed Griebel wrote:
> You would define a base action that extends
> org.apache.struts.action.Action and includes a method execute() or
> maybe a helper method doSetup().
>
> Your action classes would then extend this BaseAction class and then
> one of the first things you would do in execute() would be to call
> super.execute() or super.doSetup().
>
> But, like Frank said, it would be better to decouple your logic from
> Struts by implementing a servlet filter which will work regardless if
> using struts 1.2, 1.3, 2.0, or just plain old servlets+JSPs.
>
> HTH,
> -ed
>
> On 12/14/06, Anil Kumar T <[EMAIL PROTECTED]> wrote:
>>
>> Hi Frank,
>>
>> Referring to your response..
>> you might also be able
>> to have a base Action that all your Actions extend from, and the base
>> action does the transformation before the real work happens.  This
might
>> work if you don't need the transformation to happen before that
point.
>>
>> How does this works ? Theoretically I understand this, but how to
>> implement this? I mean where do we mention our CustomizedBaseAction
>> class name? some where in properties ? Can you tell me..?
>>
>> Anil.
>>
>>
>>
>> -Original Message-
>> From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, December 13, 2006 1:03 AM
>> To: Struts Users Mailing List
>> Cc: 'user@struts.apache.org'
>> Subject: Re: Preprocessing of request
>>
>> Your best bet most likely is a servlet filter.  Do the transformation
>> and
>> stuff the transformed content in request as an attribute, then grab
it
>> later in your Actions.
>>
>> Which version of Struts are you using?  If pre-1.3, modifying the RP
is
>> one of the few other options as Dave mentioned... you might also be
able
>> to have a base Action that all your Actions extend from, and the base
>> action does the transformation before the real work happens.  This
might
>> work if you don't need the transformation to happen before that
point.
>>
>> If using 1.3.x, you could write a command to do it and modify the RP
>> chain.
>>
>> If 2.x, an interceptor is probably the right answer.
>>
>> However, in all these cases, a servlet filter would work, and would
keep
>> your transformation logic abstracted out of Struts itself, so one
less
>> thing to worry about if you upgrade versions later :)
>>
>> Frank
>>
>>
>> --
>> Frank W. Zammetti
>> Founder and Chief Software Architect
>> Omnytex Technologies
>> http://www.omnytex.com
>> AIM/Ya

RE: On Error repopulating the data entered by user on the screen....! how.?

2006-12-13 Thread Anil Kumar T

Hey guys...

Am posting solution to my problem.

The mail culprit is form name mentioned in jsp was different from the
form name mentioned in the struts-config.xml file. I made both same then
it worked!
For some javascript purpose we had to name the form in the jsp. This is
the only difference I found from my other forms.

Thanks & regards,
Anil.

-Original Message-
From: Anil Kumar T [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 18, 2006 3:22 PM
To: Struts Users Mailing List
Subject: RE: On Error repopulating the data entered by user on the
screen! how.?


Hi All,

As you guys asked me here are the details. The TIMForm and TIMAction are
the super classes. Apart from this we have some other forms and actions
which works fine. If you need more details let me know.  Below are he
action mapping and the form bean definition in struts config file.











Regards,
Anil.
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]

Sent: Tuesday, October 17, 2006 5:30 PM
To: Struts Users Mailing List
Subject: RE: On Error repopulating the data entered by user on the
screen! how.?

From: Anil Kumar T [mailto:[EMAIL PROTECTED]
> But in one particular form the data is not been shown to
> the user.  [...] This application is developed by 4
> people and only one is creating this problem.

Seems like to problem is clear, then! ;)

Without configs it's hard to say; I'd guess it's not configured right.

Dave


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



Information transmitted by this e-mail is proprietary to Infinite
Computer Solutions and / or its Customers and is intended for use only
by the individual or the entity to which it is addressed, and may
contain information that is privileged, confidential or exempt from
disclosure under applicable law. If you are not the intended recipient
or it appears that this mail has been forwarded to you without proper
authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at [EMAIL PROTECTED] and delete this email from
your records.

Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

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



RE: dynamic html:select

2006-12-13 Thread Anil Kumar T

Thanks Dave. This is very useful...

Anil.

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 13, 2006 8:57 PM
To: Struts Users Mailing List
Subject: RE: dynamic html:select

From: Kranti Parisa [mailto:[EMAIL PROTECTED]
> i have an ArrayList of beans
> each bean contains empid, empname
> i need to populate them into drop down
> plz suggest something for this

http://struts.apache.org/1.2.x/userGuide/struts-html.html

d.


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


Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

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



RE: Preprocessing of request

2006-12-13 Thread Anil Kumar T

Hi Frank,

Referring to your response..
you might also be able
to have a base Action that all your Actions extend from, and the base
action does the transformation before the real work happens.  This might
work if you don't need the transformation to happen before that point.

How does this works ? Theoretically I understand this, but how to
implement this? I mean where do we mention our CustomizedBaseAction
class name? some where in properties ? Can you tell me..?

Anil.



-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 13, 2006 1:03 AM
To: Struts Users Mailing List
Cc: 'user@struts.apache.org'
Subject: Re: Preprocessing of request

Your best bet most likely is a servlet filter.  Do the transformation
and
stuff the transformed content in request as an attribute, then grab it
later in your Actions.

Which version of Struts are you using?  If pre-1.3, modifying the RP is
one of the few other options as Dave mentioned... you might also be able
to have a base Action that all your Actions extend from, and the base
action does the transformation before the real work happens.  This might
work if you don't need the transformation to happen before that point.

If using 1.3.x, you could write a command to do it and modify the RP
chain.

If 2.x, an interceptor is probably the right answer.

However, in all these cases, a servlet filter would work, and would keep
your transformation logic abstracted out of Struts itself, so one less
thing to worry about if you upgrade versions later :)

Frank


--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
 (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

On Tue, December 12, 2006 1:17 pm, O'Toole, Joe wrote:
> Hi
>
> My application receieves an xml request. I need to perform some
> transformation of this xml before performing business logic etc.
>
> Is there anyway I can configure through struts that I can invoke a
java
> class that does this task as I don't want to perform it in the action
or
> the
> model. Something like the plug-in element in the struts-config.xml
that
> invokes a java class that adheres to correct interface for performing
> tasks
> when the app is starting/stopping.
>
> I cannot see where I can do this and I would really to make this task
> configurable and push it out from the action or model
>
> Thanks
>
> Joe
>
>
>


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


Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

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



RE: logic:iterate for arraylist of beans

2006-12-13 Thread Anil Kumar T

Hi Kranti,

I also had a similar requirement. But I did it in bad way.. which is ...




See if this helps you as a quick fix. But if you get a better solution
do let the group know
Thanks & regards,
Anil.


-Original Message-
From: Kranti Parisa [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 13, 2006 3:23 PM
To: Struts Users Mailing List
Subject: Re: logic:iterate for arraylist of beans

Dear Mano,

I need to display the employees from the emp table
emp table is having following columns
1) empid
2) fname
3) lname
4) email
5) mobile ...etc

so when i fire a query i will be getting Result Set. while looping the
result set i am creating EmployeeBean

eg:

while(rs.next()){
EmployeeBean objEmployee= new EmployeeBean();
objEmployee.setEmpID(rs.getString(1));

similarly for other properties of the bean
then add this to ArrayList
al.add(objEmployee);

} // end of while loop

after that sending the arraylist to jsp thru request.setAttribute

in JSP now i need to iterate the ArrayList of Employee Beans
and display in a form

hope this is clear now. in this case not using any FormBean. directly
getting ArrayList and sending thru request.

so please give me the code template that i need to use
my arraylist name : al
my employee bean name : EmployeeBean
properties in bean: empID,firstName,middleName,...etc



On 12/14/06, mano dasanayake <[EMAIL PROTECTED]> wrote:
>
> Hi ,
> I'm using 1.2 any how...what I mean in the Iterate code is that you
simply
> Define an ID for the bean that you are about to iterate...
>
> For an instance,
>
>
>  type="com.yourCom.common.beans.Employee ">
>
>
> 
>
> So you'r going to iterate thru your "EmplyList" and refer
> Each of ur bean by name "EMp".
> Then you can get whatever the attribute you want from your
> Bean,(Employee).
>
> For this case I think better to use ,,,
> Can you explain your requirement specifically?
>
> Regards,
> Mano
>
>
>
>
>
>
>
> -Original Message-
> From: Kranti Parisa [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 13, 2006 3:06 PM
> To: Struts Users Mailing List
> Subject: Re: logic:iterate for arraylist of beans
>
> Hi Mano,
>
> In the code you have written 
>
> "Emp" should be the name of the ArrayList right?
>
> and in logic:iterate type is there? i hope you mean to say
collection=""
> ..
>
> and i need to submit the form after selecting what ever checkboxes
that i
> need to delete and then click on the detele button.but in the code
that
> you
> gave me will submit the orm when i click on the checkbox i think.
>
> the problem is for the "value" of the checkbox
> i should assign the value of the checkbox as empid. so that when i
submit
> the form we can capture all the checked empid using
req.gerParamaterValues
>
> please suggest something
>
>
> On 12/14/06, mano dasanayake <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> > As I understood what you have to do is,
> > Iterate through your list and add checkboxes as folllwing...
> >
> > 
> >
> >  > onclick="submitForm("editaction.do?id= > property="ID"/>")" />
> > 
> >
> >
> > 
> >
> > Regards,
> > Mano
> >
> >
> >
> >
> > -Original Message-
> > From: Kranti Parisa [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, December 13, 2006 2:07 PM
> > To: Struts Users Mailing List
> > Subject: logic:iterate for arraylist of beans
> >
> > hi,
> >
> > i am facing proble for the following
> > =
> > assigning value to check box
> >
> > say logic:iterate is having arraylist
> > this arraylist is with beans
> > means for example employee bean
> > i want to view all emps in jsp
> > what we will do is we create a bean for each employee
> > and add tht bean to arraylist
> > so tht we have this arraylist in jsp
> > then we use logic:iterate
> > to iterate the arraylist
> > now we need to print the rows
> > each row contains a check box
> > this check box should get the value as empid
> > so tht when i select the checkbox
> > we can do delete or modify..etc
> > 
> >
> > plz suggest/help from this.
> > stuck up completely with this.
> >
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> --
> Best Regards
> Kranti Kiran Kumar Parisa
> Mobile: +91 - 9849 - 625 - 625 +91 - 9391 - 438 - 738
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
--
Best Regards
Kranti Kiran Kumar Parisa
Mobile: +91 - 9849 - 625 - 625 +91 - 9391 - 438 - 738

Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure un

working with radio buttons with html tags.

2006-12-05 Thread Anil Kumar T

Hi All,



Am trying to display a radio button according to the value in the
database.

The way am trying is ...

  

<%=TIMKeys.IM_ACTIVE_STATUS%>

<%=TIMKeys.IM_INACTIVE_STATUS%>

 



But the IDE shows the below msg during compilation.

JspTranslate: Attribute selected invalid according to the specified TLD.




Can any body help me how to rectify this.? Any links would be helpful..

Anil.



Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

RE: How & Where to specify the Request Processor class name?

2006-11-28 Thread Anil Kumar T

Thanks Nuwan. It gave me some useful info.

Anil.

-Original Message-
From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 29, 2006 3:35 PM
To: Struts Users Mailing List
Subject: Re: How & Where to specify the Request Processor class name?

read this...

http://wiki.apache.org/struts/RequestProcessor



- Original Message -
From: "Anil Kumar T" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Wednesday, November 29, 2006 6:53 AM
Subject: How & Where to specify the Request Processor class name?



Hi Guys,



I have read in the documentation and on the net also about the Struts
framework. There would be only one ActionServlet per web app and one
RequestProcessor per module. Is that true? Any body pls help me with
your answers and any useful sites.



I believe we can over write the ActionServlet,  this case we would
mention the Servlet class in the web.xml. But I read that even
RequestProcessor also can be over written, but not mentioned where to
specify the implemented RequestProcessor class name.



I really need some useful info on this topic.



Kindly help me with this.



Thanks & regards,

Anil.



Information transmitted by this e-mail is proprietary to Infinite
Computer
Solutions and / or its Customers and is intended for use only by the
individual or the entity to which it is addressed, and may contain
information that is privileged, confidential or exempt from disclosure
under
applicable law. If you are not the intended recipient or it appears that

this mail has been forwarded to you without proper authority, you are
notified that any use or dissemination of this information in any manner
is
strictly prohibited. In such cases, please notify us immediately at
[EMAIL PROTECTED] and delete this email from your records.


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


Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

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



How & Where to specify the Request Processor class name?

2006-11-28 Thread Anil Kumar T

Hi Guys,



I have read in the documentation and on the net also about the Struts
framework. There would be only one ActionServlet per web app and one
RequestProcessor per module. Is that true? Any body pls help me with
your answers and any useful sites.



I believe we can over write the ActionServlet,  this case we would
mention the Servlet class in the web.xml. But I read that even
RequestProcessor also can be over written, but not mentioned where to
specify the implemented RequestProcessor class name.



I really need some useful info on this topic.



Kindly help me with this.



Thanks & regards,

Anil.



Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

RE: html form

2006-11-22 Thread Anil Kumar T

Try changing the form method to get. I think post does not sends the
data in the way you have done.

Just my guess..
Anil.

-Original Message-
From: temp temp [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 22, 2006 8:13 PM
To: user@struts.apache.org
Subject: html form

I have a  html form
  
  
 

 

 
Display OptionsShow
10
 
Show 20
 
Show 50
 
Show 100
 
Show 200
 

 

 

 
  
 

 

 
  
  When I  receive request posted from this form I don't get the
parameter value  display  why?
  Is it safe  to create url with several parameters as in the
example above and post to that  url ?
   
 
-
Sponsored Link

Mortgage rates near 39yr lows. $420,000 Mortgage for $1,399/mo -
Calculate new house payment

Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

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



RE: Query in action messages

2006-11-15 Thread Anil Kumar T

I was wrong... ignore my earlier mail..
Thanks.
Anil.

-Original Message-
From: Hanmay Udgiri [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 15, 2006 1:56 PM
To: user@struts.apache.org
Subject: Query in action messages

Hi
I am doing validation in my Action Form which is extending
ValidatorActionForm.
In validate method,I am checking for mandatory field and adding error.
The error in ApplicationResources.properties is like this.
error.required=The {0) field is required field.
error.notInRange=The {0} field should be in between {1) and {2)
error.zipcode=Zip Code
And I am addding the the error in validate mehod like this
errors.add(Error_FIELD_KEY,new ActionMessage(" error.required","
error.zipcode"));

But It is printing the error mesasges like this.
The error.zipcode field in reuqired field.
It works if I add error like this.
errors.add(Error_FIELD_KEY,new ActionMessage(" error.required","Zip
Code"));
The Zip Code field in reuqired field.

Can anybody help on this

--
Thanks and Regards
Hanmayya Udgiri

Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

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



RE: Query in action messages

2006-11-15 Thread Anil Kumar T

There is empty space before the key.. just observe..



errors.add(Error_FIELD_KEY,new ActionMessage(" error.required","Zip
Code"));



should like ...



errors.add(Error_FIELD_KEY,new ActionMessage("error.required","Zip
Code"));



hope it helps you...



Anil.



-Original Message-
From: Hanmay Udgiri [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 15, 2006 1:56 PM
To: user@struts.apache.org
Subject: Query in action messages



Hi

I am doing validation in my Action Form which is extending

ValidatorActionForm.

In validate method,I am checking for mandatory field and adding error.

The error in ApplicationResources.properties is like this.

error.required=The {0) field is required field.

error.notInRange=The {0} field should be in between {1) and {2)

error.zipcode=Zip Code

And I am addding the the error in validate mehod like this

errors.add(Error_FIELD_KEY,new ActionMessage(" error.required","

error.zipcode"));



But It is printing the error mesasges like this.

The error.zipcode field in reuqired field.

It works if I add error like this.

errors.add(Error_FIELD_KEY,new ActionMessage(" error.required","Zip
Code"));

The Zip Code field in reuqired field.



Can anybody help on this



--

Thanks and Regards

Hanmayya Udgiri



Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

RE: Lost Error Message!!

2006-11-13 Thread Anil Kumar T

Would the svaeToken(), isTokenValid() helps you..?

-Original Message-
From: Juan Espinosa [mailto:[EMAIL PROTECTED]
Sent: Monday, November 13, 2006 6:45 PM
To: 'Struts Users Mailing List'
Subject: RE: Lost Error Message!!

Im not very sure, but i think that when you use redirect= true a new
request
is built(when the redirect is made) and there you loose all your data
that
is in the request.

To avoid the resubmit there is others solutions.

Regards,


Juan

-Mensaje original-
De: Balwinder [mailto:[EMAIL PROTECTED]
Enviado el: Lunes, 13 de Noviembre de 2006 09:10 a.m.
Para: Struts Users Mailing List
Asunto: Lost Error Message!!

Hi!!

Iam losing error message when iam setting redirect=true in  action
mapping,
iam doing this to avoid resubmit of data on page refresh ie if user
press F5
function key.

Any help would be highly appreciated.

Thanks and Regards,
Balwinder Kumar

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



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.3/531 - Release Date:
12/11/2006



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


Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

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



RE: How to make a SELECT list readonly? If set disabled, loses thevalue when submit.

2006-11-02 Thread Anil Kumar T

If you do not want the user to modify the select box then you should not
display the select. Just display a text/label.

If you can explain the scenario then you would get a better solution.

Anil.

-Original Message-
From: Gareth Evans [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 02, 2006 1:52 PM
To: Struts Users Mailing List
Subject: Re: How to make a SELECT list readonly? If set disabled, loses
thevalue when submit.

You could add an onchange function that sets the selected item back to
the orginal item.

Gareth

Rafael Nami wrote:
> You can choose to maintain the value from this select in a hidden
field,
> that will be submitted with your page. I was used to use another
approach,
> making the select enabled in the submit, but it was a great meal to
> hackers.
>
> 2006/11/1, Mississippi John Hurt <[EMAIL PROTECTED]>:
>>
>> Help, I can make  readonly by setting readonly="true"
which
>> works.
>>  has no readonly attribute, only a disabled. If I use
>> disabled
>> attribute, then the value of the select is no longer recognized and
my
>> form
>> validation says its required.  How can I make the 
disabled
>> or
>> readonly while keeping the values it has passing back to the action
when
>> form is submitted. Thanks.
>>
>>
>

--
Gareth Evans

Senior Developer

MSoft eSolutions Limited
Technology Centre
Inward Way
Rossmore Business Park
Ellesmere Port
Cheshire
CH65 3EN

--
Tel:+44 (0)870 0100 704
Fax:+44 (0)870 9010 705
E-Mail: [EMAIL PROTECTED]
Web:www.msoft.co.uk

--
Terms:
Please note that any prices quoted within this e-mail are subject to
VAT.
All program details and code described in this e-mail are subject to
copyright (c) of MSoft eSolutions Limited and remain the intellectual
property of MSoft eSolutions Limited.
Any proposal or pricing information contained within this e-mail are
subject to MSoft eSolutions' Terms and Conditions
--
Disclaimer:
This message is intended only for use of the addressee. If this message
was sent to you in error, please notify the sender and delete this
message. MSoft eSolutions Limited cannot accept responsibility for
viruses,
so please scan attachments. Views expressed in this message do not
necessarily reflect those of MSoft eSolutions Limited who will not
necessarily be bound by its contents.


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


Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

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



RE: On Error repopulating the data entered by user on the screen....! how.?

2006-10-18 Thread Anil Kumar T

Hi All,

As you guys asked me here are the details. The TIMForm and TIMAction are
the super classes. Apart from this we have some other forms and actions
which works fine. If you need more details let me know.  Below are he
action mapping and the form bean definition in struts config file.











Regards,
Anil.
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 17, 2006 5:30 PM
To: Struts Users Mailing List
Subject: RE: On Error repopulating the data entered by user on the
screen! how.?

From: Anil Kumar T [mailto:[EMAIL PROTECTED]
> But in one particular form the data is not been shown to
> the user.  [...] This application is developed by 4
> people and only one is creating this problem.

Seems like to problem is clear, then! ;)

Without configs it's hard to say; I'd guess it's not configured right.

Dave


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



Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

On Error repopulating the data entered by user on the screen....! how.?

2006-10-16 Thread Anil Kumar T

Hi Group,



In our struts application we have couple of forms. When ever there is
failure in Create form the same page is shown to the user with the data
filled by him. But in one particular form the data is not been shown to
the user. All the forms in the application extend one super form which
extends the ValidatorForm. Am not sure what could be the problem. I have
verified all the details like struts config (form beans, action mappings
etc), form extends etc. but no luck. Can any body throw some ideas as
where all do I need to verify what? This application is developed by 4
people and only one is creating this problem.



Any help would be appreciated.

Anil.





Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

Using ValidatorFramework for different validation scenarios of same functioanlity/form.

2006-09-13 Thread Anil Kumar T

Hi Group,



I need a help on general issue which every body would have solved.



Generally we'll have four operations like Add, Update, Query and Remove.
I believe we can use DispatchAction to handle all these operation in a
single action. So for the validation part we are planning to use
validator framework. Generally for create we will need to validate all
the mandatory fields (not the PK value incase of DB sequence) and for
update all the fields including the PK fields(as hidden fields) and for
query there may not be any validations and for delete operation we need
to validate the PK value alone. I'm not sure whether we can achieve this
kind of validation using validator framework or not. Because from my
understanding I believe that validator framework would be invoked first
and then the Action class. So can we validate the fields on conditional
basis?



I think we can do this by writing each operation in different action
calss.



Or is there a better approach for this kind of scenarios. Any help,
information, links material would be helpful.



If my question is not clear, let me know.



Thanks & regards,

Anil.



Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

RE: empty fields of an input form get default value after submitting

2006-09-13 Thread Anil Kumar T

Hi,

Since 0 would be the default value for primitive int, you cant do any
thing over there. But if you are using Integer object then youc an get
null.
In the formBean you would have instantiated the fields globally. Check
that.
Ex :
String s = ""; or String s = new String("") ;

If so then you got to change it to
String s = null;

Then you would get it as null.

Hope this helps you.
Anil.

-Original Message-
From: Sandra Reichert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 13, 2006 1:10 PM
To: Struts Users Mailing List
Subject: empty fields of an input form get default value after
submitting

Hi,

I have an input form in jsp. After submitting empty fields (user entered
nothing in input field) are set by default with specific values
depending on their data typ.
So an empty Integer field is set to 0, an String field to "" an so on.

But i want to have a null value for empty fields.
Or in other words: How can i decide if for example the 0 is entered by
user or the default initialization.

Can anybody help 


Thanks
Sandra Reichert



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


Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

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



RE: Retrieve Data From WebServer

2006-08-30 Thread Anil Kumar T

Hi,
I was also having similar problem some time back. According to my
knowledge...

If the data is common to all the users then may be you can have a
singleton class and then only once you can populate the data, and every
time you use the same data.

If the data is user specific then I think storing in the session is
must.

Lets wait about the others ideas also...

Cheers,
Anil.

-Original Message-
From: Rokariya, Raman [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 31, 2006 10:20 AM
To: user@struts.apache.org
Subject: Retrieve Data From WebServer

Hi,

I am developing web client using Struts Framework. I am facing a problem
in following scenario.

I have an arraylist of Data , which is populated in Table Grid using
Display-Tag library. The first time when the page appears, the data
comes from the Database.

It is working fine for the first time . However, my page refreshes after
some interval , say 5 mins, during subsequent refreshes, I don't want
that the data should again come through the Database call. I have tried
using ThreadLocal utitity, however it doesn't work.

I have tried using JSP Session object, and it worked. However, I want to
avoid the use of Session object in the project.

Any solution/Ideas would be highly appreciated.

Thanks
Raman







Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

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



Session management

2006-08-27 Thread Anil Kumar T

Hi All,



Can some one help me in understanding the session management with
struts? How to do this with struts? I tried doing it in all the actions,
but am not sure what am doing wrong, it does not work. Can any body help
me on this. Any links, sample codes etc would be of great help.



Anil.



Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

How to handle session validation in struts 1.1

2006-08-14 Thread Anil Kumar T

Hi All,

I need to validate the user session in all actions. For this I tried
using saveToken, isTokenValid(), but failed to use them. Not sure what
the reason is but it fails during second request. Any info on this
particular step or is there any other way to handle the session in
struts?

Any help is appreciated.

Anil.


Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

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



RE: dynamic casting in Action class

2006-07-26 Thread Anil Kumar T

You got to include one more step as mentioned below.

Class classDefinition = Class.forName(ClassName_as_string);
Object obj = classDefinition.newInstance();
classDefinition afc = (obj)fm;

Anil.

-Original Message-
From: Andreas Hartmann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 26, 2006 1:47 PM
To: user@struts.apache.org
Subject: dynamic casting in Action class

Hello!

I've got the following problem in an action-class: I dynamically want to
retrieve the ActionForm class, which has been called before the
Action-class.

Statically, I do this with
ActionFormClass afc = (afc)fm;


How is it done dynamically? I've got the String name of the desired
Class-Name in an Hashtable. I tried it with reflection, but stuck:

Class classDefinition = Class.forName(ClassName_as_string);
classDefinition afc = (classDefinition)fm;


The last line gives the error:

cannot find symbol classDefinition
symbol  : class classDefinition



Has anybody an idea, how to do it?

Thanks,
Andreas

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


Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

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



RE: Give me a solution

2006-07-23 Thread Anil Kumar T

I believe this is not a struts based question. You need to post this in
SQL Server forums.



Anil.





From: senthil.s [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 11:26 AM
To: user@struts.apache.org
Subject: Give me a solution



Hi all



 I have a table of records in SQL Server with UniqueID (unique ID
enabled with increment of 1 starting from 1 for each record, now I have
100 records in that having Unique ID 1 - 100  now I want to delete
records (only 10 records in the middle) having Unique id  50 - 59 and I
want the remaining records (say 60... 100) has to rearrange themself
(say 50... 90 as Unique ID)







Thank You 



Senthil.S



Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

Accessing messages. from action, dao classes.

2006-07-19 Thread Anil Kumar T

Hi guys,



I would like ot know how to acess the resource properties from an action
class or subsequent DAO classes. Any help, links etc would be great.



Thanks & regards,

Anil.



Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

RE: Dynamic Sort depending on the field requested by user.

2006-07-17 Thread Anil Kumar T

Hi, I want to take this as offline as it is not related to struts.
Thanks a lot for your effort for making me understand.
Does it mean that we need to do the sort for all the objects or is it a
bulk sorting available from java package? I believe the sort takes only
two objects and tells which is smaller and which is bigger. I'm looking
for a bulk sorting functionality.

Through me some ideas if u ave.
Anil.
-Original Message-
From: Lance [mailto:[EMAIL PROTECTED]
Sent: Monday, July 17, 2006 6:29 PM
To: 'Struts Users Mailing List'
Subject: RE: Dynamic Sort depending on the field requested by user.

For arrays, use java.util.Arrays.sort(Object[], java.util.Comparator)

-Original Message-
From: Lance [mailto:[EMAIL PROTECTED]
Sent: 17 July 2006 13:57
To: 'Struts Users Mailing List'
Subject: RE: Dynamic Sort depending on the field requested by user.

Ok... chances are your form has a java.util.List that you want sorted.
You
can use java.util.Collections.sort(java.util.List, java.util.Comparator)
I think commons-collections or commons-lang has a BeanComparator that
you
can use to sort beans by their properties. You can write your own custom
java.util.Comparator too.

-Original Message-
From: Anil Kumar T [mailto:[EMAIL PROTECTED]
Sent: 17 July 2006 13:45
To: Struts Users Mailing List
Subject: RE: Dynamic Sort depending on the field requested by user.


But I need the dynamic sort logic ?

Anil.

-Original Message-
From: Lance [mailto:[EMAIL PROTECTED]

Sent: Monday, July 17, 2006 6:11 PM
To: 'Struts Users Mailing List'
Subject: RE: Dynamic Sort depending on the field requested by user.

I don't store the sort column, I pass it in a parameter.
Eg your table heading may have a link similar to




-----Original Message-
From: Anil Kumar T [mailto:[EMAIL PROTECTED]

Sent: 17 July 2006 13:35
To: Struts Users Mailing List
Subject: RE: Dynamic Sort depending on the field requested by user.


Hi Lance,

Thanks for the response. I'm looking at some thing like this. But I'm
not getting how to store the values? When the user clicks on any column
how do we do the sorting..? can you send me sample piece of coding.

Regards,
Anil.

-Original Message-
From: Lance [mailto:[EMAIL PROTECTED]

Sent: Monday, July 17, 2006 4:22 PM
To: 'Struts Users Mailing List'
Subject: RE: Dynamic Sort depending on the field requested by user.

I do this with 2 actions which use the same form which has a scope of
"session". The first (retrieve) action hits the db and populates a form.
The
second (sort) action just sorts the form (retrieved from the session).
On
your html table, the column headings link to your "sort" action.

-Original Message-
From: Anil Kumar T [mailto:[EMAIL PROTECTED]

Sent: 14 July 2006 08:11
To: Struts Users Mailing List
Subject: Dynamic Sort depending on the field requested by user.


Hi Group,




I have a requirement like I need to display a list containing Name,
Date, Department, Last update etc., after displaying the list the user
can select any field to sort the list display, but it should not query
again, only with the first time result we should be able to provide the
sort order as per user request. He can request the sort order on any
field. Can any one know how to achieve this with struts? Any help, links
would be appreciated highly.




Thanks in advance,

Anil.



Information transmitted by this e-mail is proprietary to Infinite
Computer
Solutions and / or its Customers and is intended for use only by the
individual or the entity to which it is addressed, and may contain
information that is privileged, confidential or exempt from disclosure
under
applicable law. If you are not the intended recipient or it appears that
this mail has been forwarded to you without proper authority, you are
notified that any use or dissemination of this information in any manner
is
strictly prohibited. In such cases, please notify us immediately at
[EMAIL PROTECTED] and delete this email from your records.



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


Information transmitted by this e-mail is proprietary to Infinite
Computer
Solutions and / or its Customers and is intended for use only by the
individual or the entity to which it is addressed, and may contain
information that is privileged, confidential or exempt from disclosure
under
applicable law. If you are not the intended recipient or it appears that
this mail has been forwarded to you without proper authority, you are
notified that any use or dissemination of this information in any manner
is
strictly prohibited. In such cases, please notify us immediately at
[EMAIL PROTECTED] and delete this email from your records.

-
To unsubscr

RE: Dynamic Sort depending on the field requested by user.

2006-07-17 Thread Anil Kumar T

But I need the dynamic sort logic ?

Anil.

-Original Message-
From: Lance [mailto:[EMAIL PROTECTED]
Sent: Monday, July 17, 2006 6:11 PM
To: 'Struts Users Mailing List'
Subject: RE: Dynamic Sort depending on the field requested by user.

I don't store the sort column, I pass it in a parameter.
Eg your table heading may have a link similar to




-Original Message-----
From: Anil Kumar T [mailto:[EMAIL PROTECTED]
Sent: 17 July 2006 13:35
To: Struts Users Mailing List
Subject: RE: Dynamic Sort depending on the field requested by user.


Hi Lance,

Thanks for the response. I'm looking at some thing like this. But I'm
not getting how to store the values? When the user clicks on any column
how do we do the sorting..? can you send me sample piece of coding.

Regards,
Anil.

-Original Message-
From: Lance [mailto:[EMAIL PROTECTED]

Sent: Monday, July 17, 2006 4:22 PM
To: 'Struts Users Mailing List'
Subject: RE: Dynamic Sort depending on the field requested by user.

I do this with 2 actions which use the same form which has a scope of
"session". The first (retrieve) action hits the db and populates a form.
The
second (sort) action just sorts the form (retrieved from the session).
On
your html table, the column headings link to your "sort" action.

-Original Message-
From: Anil Kumar T [mailto:[EMAIL PROTECTED]

Sent: 14 July 2006 08:11
To: Struts Users Mailing List
Subject: Dynamic Sort depending on the field requested by user.


Hi Group,




I have a requirement like I need to display a list containing Name,
Date, Department, Last update etc., after displaying the list the user
can select any field to sort the list display, but it should not query
again, only with the first time result we should be able to provide the
sort order as per user request. He can request the sort order on any
field. Can any one know how to achieve this with struts? Any help, links
would be appreciated highly.




Thanks in advance,

Anil.



Information transmitted by this e-mail is proprietary to Infinite
Computer
Solutions and / or its Customers and is intended for use only by the
individual or the entity to which it is addressed, and may contain
information that is privileged, confidential or exempt from disclosure
under
applicable law. If you are not the intended recipient or it appears that
this mail has been forwarded to you without proper authority, you are
notified that any use or dissemination of this information in any manner
is
strictly prohibited. In such cases, please notify us immediately at
[EMAIL PROTECTED] and delete this email from your records.



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


Information transmitted by this e-mail is proprietary to Infinite
Computer
Solutions and / or its Customers and is intended for use only by the
individual or the entity to which it is addressed, and may contain
information that is privileged, confidential or exempt from disclosure
under
applicable law. If you are not the intended recipient or it appears that
this mail has been forwarded to you without proper authority, you are
notified that any use or dissemination of this information in any manner
is
strictly prohibited. In such cases, please notify us immediately at
[EMAIL PROTECTED] and delete this email from your records.

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


Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

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



RE: Dynamic Sort depending on the field requested by user.

2006-07-17 Thread Anil Kumar T

Hi Lance,

Thanks for the response. I'm looking at some thing like this. But I'm
not getting how to store the values? When the user clicks on any column
how do we do the sorting..? can you send me sample piece of coding.

Regards,
Anil.

-Original Message-
From: Lance [mailto:[EMAIL PROTECTED]
Sent: Monday, July 17, 2006 4:22 PM
To: 'Struts Users Mailing List'
Subject: RE: Dynamic Sort depending on the field requested by user.

I do this with 2 actions which use the same form which has a scope of
"session". The first (retrieve) action hits the db and populates a form.
The
second (sort) action just sorts the form (retrieved from the session).
On
your html table, the column headings link to your "sort" action.

-----Original Message-
From: Anil Kumar T [mailto:[EMAIL PROTECTED]
Sent: 14 July 2006 08:11
To: Struts Users Mailing List
Subject: Dynamic Sort depending on the field requested by user.


Hi Group,




I have a requirement like I need to display a list containing Name,
Date, Department, Last update etc., after displaying the list the user
can select any field to sort the list display, but it should not query
again, only with the first time result we should be able to provide the
sort order as per user request. He can request the sort order on any
field. Can any one know how to achieve this with struts? Any help, links
would be appreciated highly.




Thanks in advance,

Anil.



Information transmitted by this e-mail is proprietary to Infinite
Computer
Solutions and / or its Customers and is intended for use only by the
individual or the entity to which it is addressed, and may contain
information that is privileged, confidential or exempt from disclosure
under
applicable law. If you are not the intended recipient or it appears that
this mail has been forwarded to you without proper authority, you are
notified that any use or dissemination of this information in any manner
is
strictly prohibited. In such cases, please notify us immediately at
[EMAIL PROTECTED] and delete this email from your records.



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


Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

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



Dynamic Sort depending on the field requested by user.

2006-07-14 Thread Anil Kumar T

Hi Group,



I have a requirement like I need to display a list containing Name,
Date, Department, Last update etc., after displaying the list the user
can select any field to sort the list display, but it should not query
again, only with the first time result we should be able to provide the
sort order as per user request. He can request the sort order on any
field. Can any one know how to achieve this with struts? Any help, links
would be appreciated highly.



Thanks in advance,

Anil.



Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

RE: how to create a struts project in eclipse 3.1.2 + WTP ?

2006-07-07 Thread Anil Kumar T

Hi Hicham,

I'm also having the same problem. But I'm using eclipse 3.1.1.

Hi All,
Any help would be appreciated in this regard.

Thanks,
Anil.

-Original Message-
From: hicham [mailto:[EMAIL PROTECTED]
Sent: Friday, July 07, 2006 3:57 PM
To: Struts Users Mailing List
Subject: how to create a struts project in eclipse 3.1.2 + WTP ?

Hello
 a newbie question.
 This seems to be an eclipse question more than a struts one ?
I'm trying to import the struts examples  that comes with the struts
project, into eclipse 3.1.2 and offcourse  using WTP plugin
I've found this example in
"http://struts.apache.org/1.x/faqs/eclipse.html"; but it is an obsolete
example using eclipse 2.0. 1

Thanks
Hicham.

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


Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

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



RE: Eclipse-Struts configuration.

2006-07-04 Thread Anil Kumar T

Now I wonder what IDE's generally people would use for struts
development? Is there a better IDE than eclipse for Struts development?
Can you guys please suggest me if a better IDE is available.

Thanks,
Anil.

-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 04, 2006 1:37 PM
To: Struts Users Mailing List
Subject: Re: Eclipse-Struts configuration.

Anil Kumar T ha scritto:
> Hi, Thanks for the info, I already tried it and WTP does not support
> struts.
>  

Ok, I noticed that, besides webapp support, you need some extra support
for Struts. You can try Strutsbox:
http://www.strutsbox.de/
HTH
Antonio

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


Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

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



RE: Eclipse-Struts configuration.

2006-07-04 Thread Anil Kumar T

Hi, Thanks for the info, I already tried it and WTP does not support
struts.

Anil.

-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 04, 2006 1:28 PM
To: Struts Users Mailing List
Subject: Re: Eclipse-Struts configuration.

Anil Kumar T ha scritto:
> Hi folks,
> I have eclipse 3.1.1, I'm unable to create a struts project using
> eclipse. Any body has any idea about configuring / setup of struts
> applications with eclipse. Any help would be appreciated.
>  

I think Eclipse WTP can help you:
http://www.eclipse.org/webtools/

Ciao
Antonio


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


Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

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



RE: Eclipse-Struts configuration.

2006-07-04 Thread Anil Kumar T

I want to try struts project this time. I think there would be some kind
of struts plugin for eclipse. Am trying to get it. Any body got any
idea?

Anil.

-Original Message-
From: Paul Benedict [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 04, 2006 1:08 PM
To: Struts Users Mailing List
Subject: Re: Eclipse-Struts configuration.

Anil, what is the problem? Struts is just a java library. Go ahead and
write a standard Eclipse java project.

Anil Kumar T <[EMAIL PROTECTED]> wrote:
Hi folks,



I have eclipse 3.1.1, I'm unable to create a struts project using
eclipse. Any body has any idea about configuring / setup of struts
applications with eclipse. Any help would be appreciated.



Thanks & regards,

Anil.



Information transmitted by this e-mail is proprietary to Infinite
Computer Solutions and / or its Customers and is intended for use only
by the individual or the entity to which it is addressed, and may
contain information that is privileged, confidential or exempt from
disclosure under applicable law. If you are not the intended recipient
or it appears that this mail has been forwarded to you without proper
authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at [EMAIL PROTECTED] and delete this email from
your records.


-
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail Beta.

Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

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



Eclipse-Struts configuration.

2006-07-04 Thread Anil Kumar T

Hi folks,



I have eclipse 3.1.1, I'm unable to create a struts project using
eclipse. Any body has any idea about configuring / setup of struts
applications with eclipse. Any help would be appreciated.



Thanks & regards,

Anil.



Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

Need help on popups..

2006-06-24 Thread Anil Kumar T

Hi guys,



I have a issue with the parent child window in struts application.
Actually we are planning to use struts for our project. So I wanted to
know if this can be achieved with struts.



I have Page1.jsp, page2.jsp. Lets say in the parent window am opening
page1.jsp and on button click a child popup window needs to open and
display page2 using the inputs from parent window, after displaying the
child window the user can submit couple of times like till gets to the
correct point and the closes the child, up on closing the child couple
of values needs to be passed to parent and submit the parent or refresh
the parent. I know this is possible in normal scenario, but I would like
to know using struts. Any useful urls, documents, source code would be
of greatly appreciated.



Thanks in advance.

Anil.



Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

RE: Reset the Action Form

2006-04-19 Thread Anil Kumar T
Are you trying to do a server side reset..? Generally it is a client
side reset.
I think this should be some thing like this...
mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 4:03 PM
To: 'Struts Users Mailing List'
Subject: Reset the Action Form 

Hi ye,
I have an action form with submit & reset buttons.
In the form been class, I do declare the reset method to clear up all
the
text fields.

Here is the situation, after filling in some data into some text field,
I
select the Reset button. The reset method is called, but those text
fields
doesn't clear up.
Could anyone tell me why??

Cheers,

Jason
The reset method

public void reset(ActionMapping mapping,
   HttpServletRequest request){
firstName = null;
lastName = null;
userName = null;
password = null;
passwordCheck = null;
email = null;
phone = null;
fax = null;
registered = false;
System.out.println("Call reset method in Form...");
}

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