setting array of elements in Action class.

2003-12-19 Thread Amit Kumar Sharma
I have all the elements in the HTML form with same name, how can I set there
value using the set() property I dont know the syntax..for a normal
set it would be.
set( FIELDNAME, VALUE )

can anybody help me with the syntax.


Regards,
Amit Kumar Sharma
SysArris Software Pvt Ltd
120A, Elephant Rock Road,
3rd Block, Jayanagar, 
Bangalore - 560011
Tel.: 91-80-665 4965 / 665 5052
[EMAIL PROTECTED]
  
 


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

RE: Check-boxes and formbeans

2003-12-17 Thread Amit Kumar Sharma
what is the solution for that than ?we can't keep two array to maintain the
values attachedbecause of this limitation I had to change the complete
logic of the page...
If anybody also has encountered the same problem please do share and the
solution too.

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 11:27 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Check-boxes and formbeans


that's correct...you won't be able to get unchecked checkboxes

-Original Message-----
From: Amit Kumar Sharma [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 10:57 AM
To: Struts Users Mailing List
Subject: RE: Check-boxes and formbeans


I had the same problemwhen we do
request.getParameterValues(ARRAY_OF_CHECKBOX) the unchecked checkboxes didnt
appeared in the new array...only the checked ones were there.

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 10:47 AM
To: Struts Users Mailing List
Subject: RE: Check-boxes and formbeans


you will be able to access fields with same name as an array...

-Original Message-
From: vasudevrao gupta [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 10:31 AM
To: 'Struts Users Mailing List'
Subject: Check-boxes and formbeans



Hi All,
I have many checkboxes with the same name in my html form. I use struts
framework. When i submit the form, will i be able to access the
checkboxes as an array in the form bean? Or should i have a seperate
field for each checkbox in the formbean?

Regards
Vasudevrao gupta


Confidentiality Notice

The information contained in this electronic message and any attachments to
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or
[EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.

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


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


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



RE: Check-boxes and formbeans

2003-12-17 Thread Amit Kumar Sharma
I had the same problemwhen we do
request.getParameterValues(ARRAY_OF_CHECKBOX) the unchecked checkboxes didnt
appeared in the new array...only the checked ones were there.

-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 10:47 AM
To: Struts Users Mailing List
Subject: RE: Check-boxes and formbeans


you will be able to access fields with same name as an array...

-Original Message-
From: vasudevrao gupta [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 10:31 AM
To: 'Struts Users Mailing List'
Subject: Check-boxes and formbeans



Hi All,
I have many checkboxes with the same name in my html form. I use struts
framework. When i submit the form, will i be able to access the
checkboxes as an array in the form bean? Or should i have a seperate
field for each checkbox in the formbean?

Regards
Vasudevrao gupta


Confidentiality Notice

The information contained in this electronic message and any attachments to
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or
[EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.

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


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



html:img is not getting recognised.

2003-12-17 Thread Amit Kumar Sharma
Dear friends,

I am substituting the normal HTML image tag 

with the shown below but is not getting recognised, can somebody guide me
out how to use it, I am new to struts.


Regards,
Amit Kumar Sharma
SysArris Software Pvt Ltd
120A, Elephant Rock Road,
3rd Block, Jayanagar, 
Bangalore - 560011
Tel.: 91-80-665 4965 / 665 5052
[EMAIL PROTECTED]
  
 


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

RE: Session Times Out

2003-11-03 Thread Amit Kumar Sharma
if session becomes null than try this

if ( session.getValue("SESSIONNAME")==null ){%>

window.open("Index.jsp",fullscreen="yes");
parent.close();
//winself = window.self;
//winself.setTimeout("window.close()",1);

<%
}

try this and than U can set one more attritbute(Flag) which on the Index
page can show a message that the user is here because of timeout.


Regards,
Amit Kumar Sharma
SysArris Software Pvt Ltd
120A, Elephant Rock Road,
3rd Block, Jayanagar,Bangalore - 560011
Tel.: 91-80-665 4965 / 665 5052
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
  


-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 11:54 AM
To: [EMAIL PROTECTED]
Subject: Session Times Out


I check if session expires for each action in the
application.  If the session times out, I forward the
user to index.jsp so that the user can log on again.  

How do I inform the user with a message that he/she is
at the welcome page because the session has expired?

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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

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



RE: Session Times Out

2003-11-03 Thread Amit Kumar Sharma
if session becomes null than try this

if ( session.getValue("SESSIONNAME")==null ){%>

window.open("Index.jsp",fullscreen="yes");
parent.close();
//winself = window.self;
//winself.setTimeout("window.close()",1);

<%
}

try this and than U can set one more attritbute(Flag) which on the Index
page can show a message that the user is here because of timeout.

Regards,
Amit Kumar Sharma
SysArris Software Pvt Ltd
120A, Elephant Rock Road,
3rd Block, Jayanagar,Bangalore - 560011
Tel.: 91-80-665 4965 / 665 5052
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>



-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 11:54 AM
To: [EMAIL PROTECTED]
Subject: Session Times Out


I check if session expires for each action in the
application.  If the session times out, I forward the
user to index.jsp so that the user can log on again.

How do I inform the user with a message that he/she is
at the welcome page because the session has expired?

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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



a question on the example in struts documentation

2002-07-19 Thread Amit Kumar

Please let me know if I have understood it correctly.

Just like in example in struts documentation I map my ActionServlet to *.do. I have a 
page someform.jsp whose logical name is say something.do.

All server side validations are performed in the corresponding Action class.

Now if some user of my page after viewing page something.do opens its html source in 
browser he will be able to find a base tag  containing actual address to someform.jsp.
Now if the same user copies and paste this address to someform.jsp in browser, now the 
request will not go to ActionServlet as it only captures *.do not .jsp.
As a result Action class will be bypassed and thus all server side validations will be 
skipped by this user.

Is this correct

Amit Kumar


 



got it

2002-01-22 Thread Amit Kumar

thank you very much , I got it.

thnaks a lot
- Original Message -
From: "Brian Holzer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 22, 2002 10:53 PM
Subject: Re: same problem--help needed---missing source code of some ofthe
classesin struts


If you have unzipped the file, the struts classes are under

jakarta-struts-1.0.1-src/src/share/org/apache/struts/action...

Brian

>>> [EMAIL PROTECTED] 01/22/02 11:01am >>>
Dear Mr James,
Yeah
http://jakarta.apache.org/builds/jakarta-struts/release/v1.0.1/src/jakarta-s
truts-1.0.1-src.zip  is the url I used.
should I try it again ?? Can you please check and let me know the path
Once again thanks a lot for the response

regards
Amit K

- Original Message -
From: "Jonathan James" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 22, 2002 10:25 PM
Subject: Re: still the same problem--help needed---missing source code of
some of the classesin struts


>
http://jakarta.apache.org/builds/jakarta-struts/release/v1.0.1/src/jakarta-s
> truts-1.0.1-src.zip
>
> or
>
> http://jakarta.apache.org/builds/jakarta-struts/nightly/src/
>
> for nightly build src.
>
> For your future reference you get here by going to
>
> http://jakarta.apache.org/struts/ and then clicking "Source Code" on the
> left.
>
>
>
> - Original Message -
> From: "Amit Kumar" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, January 22, 2002 10:45 AM
> Subject: still the same problem--help needed---missing source code of some
> of the classesin struts
>
>
> > Thank you very much for such a quick response.Yes I have downloaded
> > everything again but again find the same classes missing :-(
> > The source code of all the files available in struts.jar  is
unavailable.
> > The reason I wanted to look into the code of
> > org.apache.struts.action.ActionServlet is I want to learn about Struts
as
> > much as possible ,we are about to take off to design a B2B Ecommerce
> > application.
> > Decompilation of the classes is always possible , but I want to make
sure
> > that this is the only option or that the currently available source
> version
> > is accidently missing the source files that I mentioned above.and also
the
> > Struts is an open source project , it will be helpful to have all the
> source
> > code.
> >
> > For a trial run what I did is as follows:
> > before starting  tomcat I copied the following war files in webapps
> > 1. struts-blank.war
> > 2. struts-documentation.war
> > 3.struts-example.war
> > 4. struts-exercise-taglib.war
> > 5. struts-template.war
> > 6. struts-upload.war
> >
> > on starting the tomcat as usual it unpacked the war files and the all
the
> > applications are working perfectly alright.
> > But unfortunately the package org.apache.struts.action in source form is
> > nowhere to be seen.the only package that is available is
> > org.apache.struts.webapp.example.
> >
> > Please let me know if I am missing something.and it will be a great help
> if
> > somebody can pointout where exactly the source files are put if at all
the
> > ones that I am looking for.
> >
> > I will be very much thankful if this issue gets resolved.
> >
> > Thank you so much for the patience
> > Best regards
> > Amit K
> >
> >
> >
> >
> >
> >
> > - Original Message -
> > From: "Brian Holzer" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, January 22, 2002 7:32 PM
> > Subject: Re: help needed---missing source code of some of the classesin
> > struts
> >
> >
> > From the download page, there is  a link for downloading the source and
a
> > link for downloading the executables.  Go back to the download page and
> > check that you have downloaded the right stuff.
> >
> > Brian
> >
> > >>> [EMAIL PROTECTED] 01/22/02 08:02am >>>
> > I have downloaded the source code of Struts ,but I donot see the source
> code
> > of classses such as --
> >
> > org.apache.struts.action.ActionServlet
> > org.apache.struts.action.Action
> >
> > I see only the .class files for them.Can somebody please clarify as to
> > whether my download is problematic or these classes in source form are
> > actualy not provided.
> >
> > Thanks in advance
> > Amit K
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <

same problem--help needed---missing source code of some of the classesin struts

2002-01-22 Thread Amit Kumar

Dear Mr James,
Yeah
http://jakarta.apache.org/builds/jakarta-struts/release/v1.0.1/src/jakarta-s
truts-1.0.1-src.zip  is the url I used.
should I try it again ?? Can you please check and let me know the path
Once again thanks a lot for the response

regards
Amit K

- Original Message -
From: "Jonathan James" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 22, 2002 10:25 PM
Subject: Re: still the same problem--help needed---missing source code of
some of the classesin struts


>
http://jakarta.apache.org/builds/jakarta-struts/release/v1.0.1/src/jakarta-s
> truts-1.0.1-src.zip
>
> or
>
> http://jakarta.apache.org/builds/jakarta-struts/nightly/src/
>
> for nightly build src.
>
> For your future reference you get here by going to
>
> http://jakarta.apache.org/struts/ and then clicking "Source Code" on the
> left.
>
>
>
> - Original Message -
> From: "Amit Kumar" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, January 22, 2002 10:45 AM
> Subject: still the same problem--help needed---missing source code of some
> of the classesin struts
>
>
> > Thank you very much for such a quick response.Yes I have downloaded
> > everything again but again find the same classes missing :-(
> > The source code of all the files available in struts.jar  is
unavailable.
> > The reason I wanted to look into the code of
> > org.apache.struts.action.ActionServlet is I want to learn about Struts
as
> > much as possible ,we are about to take off to design a B2B Ecommerce
> > application.
> > Decompilation of the classes is always possible , but I want to make
sure
> > that this is the only option or that the currently available source
> version
> > is accidently missing the source files that I mentioned above.and also
the
> > Struts is an open source project , it will be helpful to have all the
> source
> > code.
> >
> > For a trial run what I did is as follows:
> > before starting  tomcat I copied the following war files in webapps
> > 1. struts-blank.war
> > 2. struts-documentation.war
> > 3.struts-example.war
> > 4. struts-exercise-taglib.war
> > 5. struts-template.war
> > 6. struts-upload.war
> >
> > on starting the tomcat as usual it unpacked the war files and the all
the
> > applications are working perfectly alright.
> > But unfortunately the package org.apache.struts.action in source form is
> > nowhere to be seen.the only package that is available is
> > org.apache.struts.webapp.example.
> >
> > Please let me know if I am missing something.and it will be a great help
> if
> > somebody can pointout where exactly the source files are put if at all
the
> > ones that I am looking for.
> >
> > I will be very much thankful if this issue gets resolved.
> >
> > Thank you so much for the patience
> > Best regards
> > Amit K
> >
> >
> >
> >
> >
> >
> > - Original Message -
> > From: "Brian Holzer" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, January 22, 2002 7:32 PM
> > Subject: Re: help needed---missing source code of some of the classesin
> > struts
> >
> >
> > From the download page, there is  a link for downloading the source and
a
> > link for downloading the executables.  Go back to the download page and
> > check that you have downloaded the right stuff.
> >
> > Brian
> >
> > >>> [EMAIL PROTECTED] 01/22/02 08:02am >>>
> > I have downloaded the source code of Struts ,but I donot see the source
> code
> > of classses such as --
> >
> > org.apache.struts.action.ActionServlet
> > org.apache.struts.action.Action
> >
> > I see only the .class files for them.Can somebody please clarify as to
> > whether my download is problematic or these classes in source form are
> > actualy not provided.
> >
> > Thanks in advance
> > Amit K
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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




still the same problem--help needed---missing source code of some of the classesin struts

2002-01-22 Thread Amit Kumar

Thank you very much for such a quick response.Yes I have downloaded
everything again but again find the same classes missing :-(
The source code of all the files available in struts.jar  is unavailable.
The reason I wanted to look into the code of
org.apache.struts.action.ActionServlet is I want to learn about Struts as
much as possible ,we are about to take off to design a B2B Ecommerce
application.
Decompilation of the classes is always possible , but I want to make sure
that this is the only option or that the currently available source version
is accidently missing the source files that I mentioned above.and also the
Struts is an open source project , it will be helpful to have all the source
code.

For a trial run what I did is as follows:
before starting  tomcat I copied the following war files in webapps
1. struts-blank.war
2. struts-documentation.war
3.struts-example.war
4. struts-exercise-taglib.war
5. struts-template.war
6. struts-upload.war

on starting the tomcat as usual it unpacked the war files and the all the
applications are working perfectly alright.
But unfortunately the package org.apache.struts.action in source form is
nowhere to be seen.the only package that is available is
org.apache.struts.webapp.example.

Please let me know if I am missing something.and it will be a great help if
somebody can pointout where exactly the source files are put if at all the
ones that I am looking for.

I will be very much thankful if this issue gets resolved.

Thank you so much for the patience
Best regards
Amit K






- Original Message -
From: "Brian Holzer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 22, 2002 7:32 PM
Subject: Re: help needed---missing source code of some of the classesin
struts


>From the download page, there is  a link for downloading the source and a
link for downloading the executables.  Go back to the download page and
check that you have downloaded the right stuff.

Brian

>>> [EMAIL PROTECTED] 01/22/02 08:02am >>>
I have downloaded the source code of Struts ,but I donot see the source code
of classses such as --

org.apache.struts.action.ActionServlet
org.apache.struts.action.Action

I see only the .class files for them.Can somebody please clarify as to
whether my download is problematic or these classes in source form are
actualy not provided.

Thanks in advance
Amit K


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




help needed---missing source code of some of the classes in struts

2002-01-22 Thread Amit Kumar

I have downloaded the source code of Struts ,but I donot see the source code
of classses such as --

org.apache.struts.action.ActionServlet
org.apache.struts.action.Action

I see only the .class files for them.Can somebody please clarify as to
whether my download is problematic or these classes in source form are
actualy not provided.

Thanks in advance
Amit K


--
To unsubscribe, e-mail:   
For additional commands, e-mail: