Re: Netscape 4.7 & disable fields

2003-04-03 Thread Gus Delgado
A user is now running into the same problem with IE 6.0 but I've IE 6.0 
on my machine and it works fine, I wonder if it is just a browser 
setting on this case? Any Ideas?

Thanks
Gus
Niesen, Nathan wrote:
You could also have an onfocus event handler that calls blur() on the field
or sets focus to the next field. They can't change the field if they can't
put the cursor in it. This affects tabbing from field to field.
-Original Message-
From: 	Moore, Scott R. [mailto:[EMAIL PROTECTED] 
Sent:	Tuesday, April 01, 2003 11:26 AM
To:	'Struts Users Mailing List'
Subject:	RE: Netscape 4.7 & disable fields

Potential workaround to keep those 3 ns4 users happy (actually i think
there's more like 7):
- Clicking the button sets a Javascript variable "disableTextBoxes" to true
- The textboxes have an onchange function that:
   - if disableTextBoxes is false, it stores the textbox value in an array
   - if disableTextBoxes is true, it changes the textbox value back to the
previous value saved in the array
So when disableTextBoxes is true, the user could edit the field value, but
as soon as the focus leaves that field it will change back to its orig
value--it's in effect uneditable.
A nice extra touch would be to have an onfocus handler in the textboxes that
calls a function tellUserIfDisabled().  tellUserIfDisabled() checks
disableTextBoxes, and if it is true, shows them an alert saying that they
shouldn't change the value in that textbox.
It's a total hack but having had to work with NS 4.7 before I got used to
doing such things...  ugh.
HTH,
Scott.
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 12:06 PM
To: Struts Users Mailing List
Subject: Re: Netscape 4.7 & disable fields
A couple of years back i had to get disabled form element behaviour 
working on ns4 and used dynamically gnerated and positioned divs with a 
tranparent image to cover the elements ... But i think its very silly 
and a waste of time.

It quite a lot of dhtml fiddlyness for all 3 ns4 users.. :)

Lunedì, 31 mar 2003, alle 18:19 Europe/Rome, James Mitchell ha scritto:

 

On Mon, 2003-03-31 at 11:12, Gus Delgado wrote:
   

Has anyone run with his/her Struts application and Nestcape 4.7. I 
have
a few textfields that once a button is click the text field go from
being enable to disable (read-only) it works great on IE 5.5 and
Netscape 6.0 but it seems that Netscape 4.7 does not understand the
disable=true attribute.  Any ideas?
 

Netscape 4.x does not support disabled fields.
If you must support that browser version, use html:hidden with the 
write
option:
http://jakarta.apache.org/struts/userGuide/struts-html.html#hidden

   

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

--
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org


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


Netscape 4.7 & disable fields

2003-03-31 Thread Gus Delgado
Has anyone run with his/her Struts application and Nestcape 4.7. I have 
a few textfields that once a button is click the text field go from 
being enable to disable (read-only) it works great on IE 5.5 and 
Netscape 6.0 but it seems that Netscape 4.7 does not understand the 
disable=true attribute.  Any ideas?

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


[OT] JMS

2003-03-05 Thread Gus Delgado
I apologized for the off-topic question, is there a mailing-list for 
Java Messaging Service that anyone knows about, I'm trying to find some 
answers to some question I have about that technology.

Your help is much appreciated.  Thanks.

-Gus

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


Re: Cache

2003-02-13 Thread Gus Delgado
This works thanks.

In order for it to work the user has to do a "Post" in the page then if 
you go to a different page and try to comeback the page will be expired, 
but what about if the user does not do anything on the page, or if the 
user hits a hyperlink, those two do not create a post, so if you go to a 
different page and hit the back button the page will be there.

-Gus
Kris Schneider wrote:

For 1.0.2, set the servlet init param "nocache" to "true"

Gus Delgado wrote:


too late in the project to run that risk!!

Alvarado, Juan (c) wrote:


Oh yeah that would be a problem. Can't you upgrade?? It's suppose to be
backwards compatible.

-Original Message-
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 12:18 PM
To: Struts Users Mailing List
Subject: Re: Cache


I think I'm out of luck cause I'm using Struts 1.0.2, and the 
RequestProcessor is not part of that version.

-Gus
Alvarado, Juan (c) wrote:

 

Yeah sure I apologize for not being more detailed.

It goes in your struts-config file. I have mine right after the action
mappings, but it might not matter where you put it.

Your subclass would be a subclass of
org.apache.struts.action.RequestProcessor. The subclass doesn't 
have to do
anything initially, but in the event you ever need to implement 
some of the
methods in it in your application, you have a class ready for it.

I would suggest you read the javadoc on this class.

Good luck.

-Original Message-
From: ajTreece [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 11:55 AM
To: Struts Users Mailing List
Subject: Re: Cache


Juan

Could you be a little more specific... I'm not familiar with 
. Where does it actually go and what would my 
processor subclass be?

Thanks...



Alvarado, Juan (c) wrote:



 

We have used the following as a means of expiring pages. This way 
when the
user hits the back button they will get a page has expired message.


processorClass="your.processor.subclass">

-Original Message-
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 10:54 AM
To: Struts Users Mailing List
Subject: Cache


Is there any way to clean the cache from an Action. I have a 
LogoutAction that gets all of the Attributes in the session by 
name and removes all of them + it invalidates the session, but I 
also want to clear the cache so that when the user hits the back 
button nothing will be there.

Is there any way to do this?

-thanks
Gus


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

-
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: Cache

2003-02-13 Thread Gus Delgado
too late in the project to run that risk!!

Alvarado, Juan (c) wrote:


Oh yeah that would be a problem. Can't you upgrade?? It's suppose to be
backwards compatible.

-Original Message-----
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 12:18 PM
To: Struts Users Mailing List
Subject: Re: Cache


I think I'm out of luck cause I'm using Struts 1.0.2, and the 
RequestProcessor is not part of that version.

-Gus
Alvarado, Juan (c) wrote:

 

Yeah sure I apologize for not being more detailed.

It goes in your struts-config file. I have mine right after the action
mappings, but it might not matter where you put it.

Your subclass would be a subclass of
org.apache.struts.action.RequestProcessor. The subclass doesn't have to do
anything initially, but in the event you ever need to implement some of the
methods in it in your application, you have a class ready for it.

I would suggest you read the javadoc on this class.

Good luck.

-Original Message-
From: ajTreece [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 11:55 AM
To: Struts Users Mailing List
Subject: Re: Cache


Juan

Could you be a little more specific... I'm not familiar with . Where does it actually go and what would my processor subclass be?

Thanks...



Alvarado, Juan (c) wrote:



   

We have used the following as a means of expiring pages. This way when the
user hits the back button they will get a page has expired message.


processorClass="your.processor.subclass">

-Original Message-
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 10:54 AM
To: Struts Users Mailing List
Subject: Cache


Is there any way to clean the cache from an Action. I have a 
LogoutAction that gets all of the Attributes in the session by name and 
removes all of them + it invalidates the session, but I also want to 
clear the cache so that when the user hits the back button nothing will 
be there.

Is there any way to do this?

-thanks
Gus


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

-
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: Cache

2003-02-13 Thread Gus Delgado
I think I'm out of luck cause I'm using Struts 1.0.2, and the 
RequestProcessor is not part of that version.

-Gus
Alvarado, Juan (c) wrote:

Yeah sure I apologize for not being more detailed.

It goes in your struts-config file. I have mine right after the action
mappings, but it might not matter where you put it.

Your subclass would be a subclass of
org.apache.struts.action.RequestProcessor. The subclass doesn't have to do
anything initially, but in the event you ever need to implement some of the
methods in it in your application, you have a class ready for it.

I would suggest you read the javadoc on this class.

Good luck.

-Original Message-
From: ajTreece [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 11:55 AM
To: Struts Users Mailing List
Subject: Re: Cache


Juan

Could you be a little more specific... I'm not familiar with . Where does it actually go and what would my processor subclass be?

Thanks...



Alvarado, Juan (c) wrote:

 

We have used the following as a means of expiring pages. This way when the
user hits the back button they will get a page has expired message.


processorClass="your.processor.subclass">

-----Original Message-
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 10:54 AM
To: Struts Users Mailing List
Subject: Cache


Is there any way to clean the cache from an Action. I have a 
LogoutAction that gets all of the Attributes in the session by name and 
removes all of them + it invalidates the session, but I also want to 
clear the cache so that when the user hits the back button nothing will 
be there.

Is there any way to do this?

-thanks
Gus


-
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: Cache

2003-02-13 Thread Gus Delgado
Yeah I tried adding this at the end of the action.

response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Expires", "Wed, 26 Feb 1997 08:21:57 GMT");

I tested it but it does not seem to work on either IE or Mozilla

David Graham wrote:


You can use various http headers to tell the browser to not cache the 
pages.  There's no guarantee that the browsers will follow your 
suggestion though.  It sounds like you're trying to control the user 
too much.

David



From: Gus Delgado <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Cache
Date: Thu, 13 Feb 2003 10:53:53 -0500

Is there any way to clean the cache from an Action. I have a 
LogoutAction that gets all of the Attributes in the session by name 
and removes all of them + it invalidates the session, but I also want 
to clear the cache so that when the user hits the back button nothing 
will be there.

Is there any way to do this?

-thanks
Gus


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



_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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




Cache

2003-02-13 Thread Gus Delgado
Is there any way to clean the cache from an Action. I have a 
LogoutAction that gets all of the Attributes in the session by name and 
removes all of them + it invalidates the session, but I also want to 
clear the cache so that when the user hits the back button nothing will 
be there.

Is there any way to do this?

-thanks
Gus


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



Re: Reset button.

2003-02-11 Thread Gus Delgado
This work thanks, here is the code for anyone else who is interested.

function resetForm(myForm)
 {
 for(i=0, n=myForm.elements.length; i< n; i++)
   {
   var theElement = myForm.elements[i];
   if (theElement.type == 'text') {
   theElement.value = '';
   }
   }
 }


Reset


Gus Delgado wrote:


no, not really, I'll give it a try thank you!

-gus
Durham David Cntr 805CSS/SCBE wrote:


Gus, try going back a few posts to the javascript stuff.  I think 
it's more in line with your original question.  As a test try putting:


on your page.  replace nameOfYourForm and firstTextField with the 
appropriate names.

I think you'll start to see where this is going.

It's not hard, and there isn't a need for server side processing, 
unless there is, well, a need for server side processing.  Is there?  
You haven't mentioned any.

-Dave



 

-Original Message-
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 3:14 PM
To: Struts Users Mailing List
Subject: Re: Reset button.


isReset() who's method is that, action, form?

I can't seem to find it.

-Gus
Jacky Kimmel wrote:

  

if (isReset(httpServletRequest)){
   return actionMapping.findForward(Constants.D_RESET);
   }

As you can see, I had a constants class that I refer to.  

Also, in the struts-config.xml I have mapped this forward back to 
the original jsp.  I put this snippet of code in the beginning of 
each action class I have.

Gus Delgado <[EMAIL PROTECTED]> wrote:how do I 

check for the reset in the Action?
  

Jacky Kimmel wrote:





It sounds like your action does not check to see if the   


reset was clicked or not. What I have done is do this check at the 
beginning of all my action classes. If the reset has been selected 
then the action is redirected to the empty jsp. It sounds like your 
action mapping may also not be corrected in your config file.
  

Gus Delgado wrote:I have created a JSP with a "Submit" and   


"Reset" button both using the   

and tags. When I first render the page the reset works just fine, 
but if I hit the submit button and   


the page gets   

render again, I try to hit the reset and the form does not   


get clear   

anymore, the reset button does not work anymore, any ideas   


of why this   

is happening? any ways to fix it?

thank you

-Gus



  


-
  

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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


 
  


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now





-
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: Reset button.

2003-02-10 Thread Gus Delgado
no, not really, I'll give it a try thank you!

-gus
Durham David Cntr 805CSS/SCBE wrote:


Gus, try going back a few posts to the javascript stuff.  I think it's more in line with your original question.  As a test try putting: 



on your page.  replace nameOfYourForm and firstTextField with the appropriate names.

I think you'll start to see where this is going.

It's not hard, and there isn't a need for server side processing, unless there is, well, a need for server side processing.  Is there?  You haven't mentioned any.

-Dave



 

-----Original Message-
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 3:14 PM
To: Struts Users Mailing List
Subject: Re: Reset button.


isReset() who's method is that, action, form?

I can't seem to find it.

-Gus
Jacky Kimmel wrote:

   

if (isReset(httpServletRequest)) 
   {
   return actionMapping.findForward(Constants.D_RESET);
   }

As you can see, I had a constants class that I refer to.  
 

Also, in the struts-config.xml I have mapped this forward 
back to the original jsp.  I put this snippet of code in the 
beginning of each action class I have.  
   

Gus Delgado <[EMAIL PROTECTED]> wrote:how do I 
 

check for the reset in the Action?
   

Jacky Kimmel wrote:



 

It sounds like your action does not check to see if the 
   

reset was clicked or not. What I have done is do this check 
at the beginning of all my action classes. If the reset has 
been selected then the action is redirected to the empty jsp. 
It sounds like your action mapping may also not be corrected 
in your config file.
   

Gus Delgado wrote:I have created a JSP with a "Submit" and 
   

"Reset" button both using the 
   

and tags. When I first render the page the 
reset works just fine, but if I hit the submit button and 
   

the page gets 
   

render again, I try to hit the reset and the form does not 
   

get clear 
   

anymore, the reset button does not work anymore, any ideas 
   

of why this 
   

is happening? any ways to fix it?

thank you

-Gus



   

-
   

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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


  

   


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


 


-
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: Reset button.

2003-02-10 Thread Gus Delgado
isReset() who's method is that, action, form?

I can't seem to find it.

-Gus
Jacky Kimmel wrote:


if (isReset(httpServletRequest)) 
{
return actionMapping.findForward(Constants.D_RESET);
}

As you can see, I had a constants class that I refer to.  Also, in the struts-config.xml I have mapped this forward back to the original jsp.  I put this snippet of code in the beginning of each action class I have.  

Gus Delgado <[EMAIL PROTECTED]> wrote:how do I check for the reset in the Action?

Jacky Kimmel wrote:

 

It sounds like your action does not check to see if the reset was clicked or not. What I have done is do this check at the beginning of all my action classes. If the reset has been selected then the action is redirected to the empty jsp. It sounds like your action mapping may also not be corrected in your config file.
Gus Delgado wrote:I have created a JSP with a "Submit" and "Reset" button both using the 
and tags. When I first render the page the 
reset works just fine, but if I hit the submit button and the page gets 
render again, I try to hit the reset and the form does not get clear 
anymore, the reset button does not work anymore, any ideas of why this 
is happening? any ways to fix it?

thank you

-Gus


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


   




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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
 




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




Re: Reset button.

2003-02-10 Thread Gus Delgado
how do I check for the reset in the Action?

Jacky Kimmel wrote:


It sounds like your action does not check to see if the reset was clicked or not.  What I have done is do this check at the beginning of all my action classes.  If the reset has been selected then the action is redirected to the empty jsp.  It sounds like your action mapping may also not be corrected in your config file.
Gus Delgado <[EMAIL PROTECTED]> wrote:I have created a JSP with a "Submit" and "Reset" button both using the 
and tags. When I first render the page the 
reset works just fine, but if I hit the submit button and the page gets 
render again, I try to hit the reset and the form does not get clear 
anymore, the reset button does not work anymore, any ideas of why this 
is happening? any ways to fix it?

thank you

-Gus


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
 




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




Reset button.

2003-02-10 Thread Gus Delgado
I have created a JSP with a "Submit" and "Reset" button both using the 
 and  tags. When I first render the page the 
reset works just fine, but if I hit the submit button and the page gets 
render again, I try to hit the reset and the form does not get clear 
anymore, the reset button does not work anymore, any ideas of why this 
is happening? any ways to fix it?

thank you

-Gus


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



struts-user@jakarta.apache.org

2003-01-21 Thread Gus Delgado


I notice that in all of the 

-Gus


 





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




Re: Paging using struts

2003-01-14 Thread Gus Delgado
http://jsptags.com/tags/navigation/pager/pager-demo.jsp

Pat Quinn wrote:


Does anyone have a good example of Paging using struts??


_
The new MSN 8 is here: Try it free* for 2 months 
http://join.msn.com/?page=dept/dialup


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



.





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




Re: Paging using struts

2003-01-14 Thread Gus Delgado
Pat Quinn wrote:


Does anyone have a good example of Paging using struts??


_
The new MSN 8 is here: Try it free* for 2 months 
http://join.msn.com/?page=dept/dialup


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



.






pager-taglib-1.1.jar
Description: Binary data
--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: JList

2003-01-10 Thread Gus Delgado
will the getItem() in the Form take a Collection as suppose of a String?

Eric C. Hein wrote:



 
labelProperty="label"/>


- Original Message -----
From: "Gus Delgado" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, January 10, 2003 12:31 PM
Subject: JList


 

On Struts and jsp tags, what is the alternative to a JList. Where a user
can select multiple items from that list?

-thanks
Gus



--
To unsubscribe, e-mail:
   

<mailto:[EMAIL PROTECTED]>
 

For additional commands, e-mail:
   

<mailto:[EMAIL PROTECTED]>
 



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


.

 





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




Re: JList

2003-01-10 Thread Gus Delgado
it works fine Thank you
Eric C. Hein wrote:



 
labelProperty="label"/>


- Original Message -----
From: "Gus Delgado" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, January 10, 2003 12:31 PM
Subject: JList


 

On Struts and jsp tags, what is the alternative to a JList. Where a user
can select multiple items from that list?

-thanks
Gus



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




JList

2003-01-10 Thread Gus Delgado
On Struts and jsp tags, what is the alternative to a JList. Where a user 
can select multiple items from that list?

-thanks
Gus



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



action from an Interface

2003-01-09 Thread Gus Delgado
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 




Re: Call Struts Action from JS

2003-01-09 Thread Gus Delgado
The reason why I'm trying to do this is that I have one  with 
two submit buttons that do different actions. I tried both of your 
seggestions and I'm still getting that java script popup on IE 5.5

<br>
function setNav(formObject)<br>
 {<br>
   //alert ("FormObject: " + formObject );<br>
   formObject.form.action="<%=request.getContextPath()%>/getAccounts.do";<br>
   formObject.form.submit();<br>
 }<br>



Is the formObject.form.action line that the browser does not like.  Any 
ideas?  Thanks

-Gus
Siggelkow, Bill wrote:

Also, I meant to say that the error from IE is saying that in its DOM it doesn't have the property you are referring to.  If the formObject is actually the form itself then eliminate the 'form' property ... in other words, you would have:

   formObject.action="<%=request.getContextPath()%>/getAccounts.do";
   formObject.submit();

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 11:20 AM
To: 'Struts Users Mailing List'
Subject: RE: Call Struts Action from JS


What type of object is formObject?  That is, how are you calling this function (e.g. from onclick? or some other event handler).

If 'formObject' is actually the 'document' then you would do something like ...

 formObject.forms[0].action="<%=request.getContextPath()%>/getAccounts.do";
 formObject.forms[0].submit();

or if the form were named 'myForm' you could use ...

 formObject.myForm.action="<%=request.getContextPath()%>/getAccounts.do";
 formObject.myForm.submit();

Also, I am curious as to why you are needing to set the action via JavaScript when it doesn't seem like it is dynamic?  Even if you submit using the submit() method of Form it will still use the action that is specified for the form tag.

Another thing to keep in mind is that calling 'submit()' will not invoke any onsubmit event handlers if you have them.  In general, I don't like using the 'submit()' method but sometimes it is unavoidable.

-Original Message-
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 10:51 AM
To: Struts Users Mailing List
Subject: Call Struts Action from JS


when I call an action from JavaScript like this, it works fine under 
Mozilla (Netscape) but I get a warning under IE, any ideas how to get 
around that popup.

Error: "Object does not support this property of method" on the line 
that I call the struts action.  

If I select no on the popup it will give me the response but I want the 
popup not to show, any ideas?  Thanks.

<br>
function setNav(formObject)<br>
 {<br>
   //alert ("FormObject: " + formObject );<br>
   formObject.form.action="<%=request.getContextPath()%>/getAccounts.do";<br>
   formObject.form.submit();<br>
 }<br>




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




String Array

2003-01-09 Thread Gus Delgado
I'm trying to populate a table with some data from a collection and a 
column with a text field do enter data in.
I'm trying to make the field in that column a String array but it does 
not seem to be working?


 
   
 
   
   
 
   
 
 

it does not like the i inside the array but I don't know any other way 
to do it cause I don't know the size of the array until I get the 
collection?

Any ideas?

-Thanks Gus


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



Call Struts Action from JS

2003-01-08 Thread Gus Delgado
when I call an action from JavaScript like this, it works fine under 
Mozilla (Netscape) but I get a warning under IE, any ideas how to get 
around that popup.

Error: "Object does not support this property of method" on the line 
that I call the struts action.  

If I select no on the popup it will give me the response but I want the 
popup not to show, any ideas?  Thanks.


function setNav(formObject)
{
//alert ("FormObject: " + formObject );
formObject.form.action="<%=request.getContextPath()%>/getAccounts.do";
formObject.form.submit();
}
-- To unsubscribe, e-mail: For additional commands, e-mail:

Re: html:options question

2003-01-06 Thread Gus Delgado
Thanks it work!.

-Gus D.
Rick Reumann wrote:


On Monday, January 6, 2003, 2:14:38 PM, Gus wrote:

GD> 
GD> labelProperty="label"/>
GD> 

GD> Example. the options are "Read-only", "Admin", and "Analyst" that's the 
GD> order of the collection, when I edit a user that is Admin, I want the 
GD> drop-down to show with the "Admin" being selected,

GD> How can I accomplish this. Thanks in advanced.

Just make sure "accessType" is set to whatever the value is for
"Admin" in the options. In other words the value fields in
accessTypeList should have "Admin", "Analyst", "Read-only" and
then accessType should also be one of those names as well. (Personally
I usually like to use ints for those values. So that accessType would
be an int value and in the accesTypeList you'd have corresponding
ints for the values and the label would be your String for the title
(Admin, Analyst, etc)). If that doesn't make sense let me know. I
typed this up very quickly:)

 





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




html:options question

2003-01-06 Thread Gus Delgado
I populate an html:option tag with a collection. I use the html:option 
to create a new user in my system and to edit a user in my system.


  


When doing an edit I want the html:option to be shown with the current 
accessType of the user I'm editing.

Example. the options are "Read-only", "Admin", and "Analyst" that's the 
order of the collection, when I edit a user that is Admin, I want the 
drop-down to show with the "Admin" being selected,

How can I accomplish this. Thanks in advanced.




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



Re: Check log-in status

2002-11-21 Thread Gus Delgado
Does anyone know if Jakarta is got a tab lib that performs paging, like 
the one jsptags.com offers?
thanks
-gus



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



enter disable

2002-11-15 Thread Gus Delgado
How can I disable the 

thanks
gus


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



two variables in an action

2002-11-13 Thread Gus Delgado
is this the right way to put to variables in the jsp in an action

/newBalanceSheetGroup.do?action=pre,?type=TypeA

thanks


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




html:select and collections

2002-11-12 Thread Gus Delgado
I declare a tag in my jsp like this




and my action for pre population goes something like this

Collection productTypes = getProductTypes(results);
session.setAttribute("productTypes", productTypes);

I'm getting an error saying that the productTypes bean does not exist? 
any ideas



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



Re: back button

2002-11-07 Thread Gus Delgado

Can the isTokenValid and saveToken be in the same Action ?


Gus Delgado wrote:


I'm trying to use the saveToken function but is not working here is 
what I have: a parameter called "action" 
if("save".equals(request.getParameter("action")))
{
   if(!isTokenValid(request)){
   System.out.println("our of transaction order");
   resetToken(request);
  }
  //save stuff
}
else if("validate".equals(request.getParameter("action")))
{
   saveToken(request);//validate stuff

}

any inside will be very helpful

thanks
gus
Trieu, Danny wrote:

No-cache settings in the controller will make sure that every 
response going
Through the controller will have its head setting to no-cache on the 
user Browser.  Meaning, the content on the user browser get expired 
as the user
Going to another page, and so when the user click the back button the
browser
Will request to the server for the new contents of whatever on the 
history Stack.  With transaction token, if there is a match meaning 
you have a good
Transaction, a sync with the current state, and you can go on and 
process
The request.  Else, there isn't a match with the token which mean out of
sync
Then you can handle the condition as if it is out of sync.

Hope this would help.

danny

-Original Message-
From: Gus Delgado [mailto:gdelgado@;oceanobjects.com] Sent: Wednesday, 
October 30, 2002 8:49 AM
To: Struts Users Mailing List
Subject: Re: back button


please explain the controller to no-cache part?

Trieu, Danny wrote:

 

Use transaction token to guaranty your transaction.  And don't 
forget To set your controller to no-cache.

-Original Message-
From: David Graham [mailto:dgraham1980@;hotmail.com]
Sent: Wednesday, October 30, 2002 7:29 AM
To: [EMAIL PROTECTED]
Subject: Re: back button


That is an absolutely hideous solution to the problem.  Breaking the 
user's
back button will only make them angry.

David





  

From: "Affan Qureshi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: back button
Date: Wed, 30 Oct 2002 19:47:39 +0500

You can disable the back button by using JavaScript history.forward()
at
the
top of your page. But i dont know if that solves your problem.

- Original Message -
From: "Gus Delgado" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 6:38 PM
Subject: back button


 


I have a JSP that has a sequence of actions.  First one is
"validate" which will validate some IO File and the next one is 
"load" to load the file.

When the user hits "validate" it sends a request to the back-end to
do some validation and I get back a response.  When I hit Load it 
sends a request to the back-end to persist that file.

the Load button depends on the validation button.  When click
validate and get an ok response, load shows.

The problem is the back button on the browser, the file is already
validated but if I hit the back button the ui and the back-end are 
our of sync I can validate again.

Any one run into this problem? how can it be handlel?  thanks.



--
To unsubscribe, e-mail:
   
  

<mailto:struts-user-unsubscribe@;jakarta.apache.org>
 


For additional commands, e-mail:
   
  

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


_
Surf the Web without missing calls! Get MSN Broadband.
http://resourcecenter.msn.com/access/plans/freeactivation.asp


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

--
To unsubscribe, e-mail:
  

<mailto:struts-user-unsubscribe@;jakarta.apache.org>
 

For additional commands, e-mail:
  

<mailto:struts-user-help@;jakarta.apache.org>
 

.



  





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

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


.

 





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


.





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




Weblogic

2002-11-05 Thread Gus Delgado
I have a weblogic question, How do I set up weblogic so that when my 
Struts Action throws an exception I'll know which line it is on right 
now I get   "class.method(Unknow Source)", i would like to get 
"class.method(Class.java:432).

thanks you very much

-gus


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



Re: back button

2002-11-04 Thread Gus Delgado
I'm trying to use the saveToken function but is not working here is what 
I have: a parameter called "action"  

if("save".equals(request.getParameter("action")))
{
   if(!isTokenValid(request)){
   System.out.println("our of transaction order");
   resetToken(request);
  }
  //save stuff
}
else if("validate".equals(request.getParameter("action")))
{
   saveToken(request); 
   //validate stuff

}

any inside will be very helpful

thanks
gus
Trieu, Danny wrote:

No-cache settings in the controller will make sure that every response going
Through the controller will have its head setting to no-cache on the user 
Browser.  Meaning, the content on the user browser get expired as the user
Going to another page, and so when the user click the back button the
browser
Will request to the server for the new contents of whatever on the history 
Stack.  With transaction token, if there is a match meaning you have a good
Transaction, a sync with the current state, and you can go on and process
The request.  Else, there isn't a match with the token which mean out of
sync
Then you can handle the condition as if it is out of sync.

Hope this would help.

danny

-Original Message-
From: Gus Delgado [mailto:gdelgado@;oceanobjects.com] 
Sent: Wednesday, October 30, 2002 8:49 AM
To: Struts Users Mailing List
Subject: Re: back button


please explain the controller to no-cache part?

Trieu, Danny wrote:

 

Use transaction token to guaranty your transaction.  And don't forget 
To set your controller to no-cache.

-Original Message-
From: David Graham [mailto:dgraham1980@;hotmail.com]
Sent: Wednesday, October 30, 2002 7:29 AM
To: [EMAIL PROTECTED]
Subject: Re: back button


That is an absolutely hideous solution to the problem.  Breaking the 
user's
back button will only make them angry.

David





   

From: "Affan Qureshi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: back button
Date: Wed, 30 Oct 2002 19:47:39 +0500

You can disable the back button by using JavaScript history.forward()
at
the
top of your page. But i dont know if that solves your problem.

- Original Message -
From: "Gus Delgado" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 6:38 PM
Subject: back button


  

 

I have a JSP that has a sequence of actions.  First one is
"validate" which will validate some IO File and the next one is 
"load" to load the file.

When the user hits "validate" it sends a request to the back-end to
do some validation and I get back a response.  When I hit Load it 
sends a request to the back-end to persist that file.

the Load button depends on the validation button.  When click
validate and get an ok response, load shows.

The problem is the back button on the browser, the file is already
validated but if I hit the back button the ui and the back-end are 
our of sync I can validate again.

Any one run into this problem? how can it be handlel?  thanks.



--
To unsubscribe, e-mail:


   

<mailto:struts-user-unsubscribe@;jakarta.apache.org>
  

 

For additional commands, e-mail:


   

<mailto:struts-user-help@;jakarta.apache.org>
  

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

 

_
Surf the Web without missing calls! Get MSN Broadband.
http://resourcecenter.msn.com/access/plans/freeactivation.asp


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

--
To unsubscribe, e-mail:
   

<mailto:struts-user-unsubscribe@;jakarta.apache.org>
 

For additional commands, e-mail:
   

<mailto:struts-user-help@;jakarta.apache.org>
 

.



   





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

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


.

 





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




Re: ClassDefNotFound error on Action

2002-11-04 Thread Gus Delgado
I had the same problem with weblogic, it was because I had the Action 
and ActionForms inside the war file and inside a jar file as well.
Maybe you are doing the same thing?
The Actions and ActionForms have to be in only one deployable unit (jar, 
war).

-Gus
Richard Doust wrote:

I'm trying to incorporate Struts into an existing ear after having
successfully deployed Struts wars. On attempting to invoke an action url I
get:

2002-11-04 01:03:52,446 WARN  [org.jboss.jbossweb] WARNING: action: Error
creating Action instance for path '/getReview', class name
'com.nym.videostore.actions.GetReviewAction'
java.lang.NoClassDefFoundError: org/apache/struts/action/Action 	at
java.lang.ClassLoader.defineClass0(Native Method) 	at
java.lang.ClassLoader.defineClass(ClassLoader.java:502) 	at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) 	at
java.net.URLClassLoader.defineClass(URLClassLoader.java:250) 	at
java.net.URLClassLoader.access$100(URLClassLoader.java:54) 	at
java.net.URLClassLoader$1.run(URLClassLoader.java:193) 	at
java.security.AccessController.doPrivileged(Native Method) 	at
java.net.URLClassLoader.findClass(URLClassLoader.java:186) 	at
org.jboss.mx.loading.UnifiedClassLoader.findClass(UnifiedClassLoader.java:22
6) 	at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
	at
org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClassLoader.
java:234) 	at
org.jboss.mx.loading.UnifiedLoaderRepository2.loadClassFromRepository(Unifie
dLoaderRepository2.java:269) 	at
org.jboss.mx.loading.UnifiedLoaderRepository2.loadClass(UnifiedLoaderReposit
ory2.java:149) 	at
org.jboss.mx.loading.UnifiedClassLoader2.loadClass(UnifiedClassLoader2.java:
146) 	at java.lang.ClassLoader.loadClass(ClassLoader.java:292) 	at
java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:566) 	at
java.lang.ClassLoader.loadClass(ClassLoader.java:255) 	at
org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:216) 	at
org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:200) 	at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) 	at
java.lang.Class.forName0(Native Method) 	at
java.lang.Class.forName(Class.java:140) 	at
org.apache.struts.action.ActionServlet.processActionCreate(ActionServlet.jav
a:1631) 	at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1577) 	at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) 	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740) 	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 	at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366) 	at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:284) 	at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:577) 	at
org.mortbay.http.HttpContext.handle(HttpContext.java:1674) 	at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.java:544) 	at org.mortbay.http.HttpContext.handle(HttpContext.java:1624)
at org.mortbay.http.HttpServer.service(HttpServer.java:875) 	at
org.jboss.jetty.Jetty.service(Jetty.java:541) 	at
org.mortbay.http.HttpConnection.service(HttpConnection.java:785) 	at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:935) 	at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:802) 	at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:200)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:294) 	at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743) 	at
java.lang.Thread.run(Thread.java:536)


I am using Struts 1.0.2, JBoss 3.0.3 and the version of Jetty that's
included in that package. I haven't been able to figure this out. struts.jar
is in the /WEB-INF/lib directory and the Action class is definitely there.
I've seen some posts about ActionForm not being found but couldn't find any
info that helps. Can anyone point me in a direction that might help me to
solve this?

Thanks very much
Richard Doust


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


.

 





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




Re: back button

2002-10-30 Thread Gus Delgado
please explain the controller to no-cache part?

Trieu, Danny wrote:


Use transaction token to guaranty your transaction.  And don't forget
To set your controller to no-cache.

-Original Message-
From: David Graham [mailto:dgraham1980@;hotmail.com] 
Sent: Wednesday, October 30, 2002 7:29 AM
To: [EMAIL PROTECTED]
Subject: Re: back button


That is an absolutely hideous solution to the problem.  Breaking the user's 
back button will only make them angry.

David



 

From: "Affan Qureshi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: back button
Date: Wed, 30 Oct 2002 19:47:39 +0500

You can disable the back button by using JavaScript history.forward() 
at
the
top of your page. But i dont know if that solves your problem.

- Original Message -
From: "Gus Delgado" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 6:38 PM
Subject: back button


   

I have a JSP that has a sequence of actions.  First one is 
"validate" which will validate some IO File and the next one is 
"load" to load the file.

When the user hits "validate" it sends a request to the back-end to 
do some validation and I get back a response.  When I hit Load it 
sends a request to the back-end to persist that file.

the Load button depends on the validation button.  When click 
validate and get an ok response, load shows.

The problem is the back button on the browser, the file is already 
validated but if I hit the back button the ui and the back-end are 
our of sync I can validate again.

Any one run into this problem? how can it be handlel?  thanks.



--
To unsubscribe, e-mail:
 

<mailto:struts-user-unsubscribe@;jakarta.apache.org>
   

For additional commands, e-mail:
 

<mailto:struts-user-help@;jakarta.apache.org>
   

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



_
Surf the Web without missing calls! Get MSN Broadband.  
http://resourcecenter.msn.com/access/plans/freeactivation.asp


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

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


.

 





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




back button

2002-10-30 Thread Gus Delgado
I have a JSP that has a sequence of actions.  First one is "validate" 
which will validate some IO File and the next one is "load" to load the 
file.

When the user hits "validate" it sends a request to the back-end to do 
some validation and I get back a response.  When I hit Load it sends a 
request to the back-end to persist that file.  

the Load button depends on the validation button.  When click validate 
and get an ok response, load shows.  

The problem is the back button on the browser, the file is already 
validated but if I hit the back button the ui and the back-end are our 
of sync I can validate again.  

Any one run into this problem? how can it be handlel?  thanks.



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



scope="session"

2002-10-29 Thread Gus Delgado
I have set an scope="session" for one of my action tags


  type="com.webcontrol.monthlyprocess.DeliveryAction"
  name="deliveryForm"
  scope="session"
  validate="true"
  input="/Delivery.jsp">
 
  

...when I click a button and some action gets fire, all the pre-set 
values from the Form are lost, how can I keep them in the result page 
which is the same Delivery.jsp page?

thanks
gus


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



Re: Struts in a war inside a ear file in WL6.1

2002-10-29 Thread Gus Delgado
it is WEB-INF, sorry.

Wendy Smoak wrote:


The struts.jar is inside the WAR file under web-inf/lib/struts.jar
any  ideas?
   


Try capitalizing WEB-INF?  If you're running on Windows it might not matter,
but I've never seen it in lower case. 

 





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




Struts in a war inside a ear file in WL6.1

2002-10-29 Thread Gus Delgado
I'm getting this error in the browser when I try to deploy an ear that 
has two EJBs and a war with struts in it. When I click on the button 
that has the action:

No action instance for path /amortization could be created


action: Error creating ActionForm instance of class '
i.webcontrol.monthlyprocess.AmortizationForm'
java.lang.ClassNotFoundException: com.mypcka.ipi.webcontrol
AmortizationForm
   at java.net.URLClassLoader$1.run(URLClassLoader.java:19
   at java.security.AccessController.doPrivileged(Native M
   at java.net.URLClassLoader.findClass(URLClassLoader.jav
   at java.lang.ClassLoader.loadClass(ClassLoader.java:294
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.
   at java.lang.ClassLoader.loadClass(ClassLoader.java:250
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:115)

The struts.jar is inside the WAR file under web-inf/lib/struts.jar

any  ideas?

thanks



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



Struts and Together CC

2002-09-25 Thread Gus Delgado

>
>
>> Has anyone try to deploy a struts app on Together CC 6.0 with struts 
>> plugin?
>
When doing it, my ApplicationResource.properties file does not get place 
in the WAR file. any ideas?

thanks in advanced.

-gus

>>


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




Struts Power Points

2002-08-22 Thread Gus Delgado

Any good power point presentations out there for an intro to Struts? I'm 
doing a presentation on it soon, I would like to see if there any good 
one out there already. Thanks.


-Gus


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




Validating with JavaScript

2002-08-12 Thread Gus Delgado

Is there a way to have the validation show on a JavaScript popup instead 
of on the header of the jsp?  I ask this a while back but I never got an 
answer.  

Thanks



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




Errors on a different frame

2002-07-29 Thread Gus Delgado

Can I display the errors of an input form in a different frame? like a 
footer frame?

Can I display the errors of an input form in a JScript pop up window?

and are these two options conflicting with the Struts framework and/or 
design?

Thanks in advanced.

Gus


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




html:multibox

2001-09-14 Thread Gus Delgado

> I have used the html:multibox  before to successfully group checkboxes but
> now I'm trying to group text fields, I know that, or at least I think I know
> that the html:text won't work.  Has anyone ran into this problem before and
> if so what were the solutions?  Thanks in advanced.

Gus





RE: ComboBox

2001-08-09 Thread Gus Delgado

create a collection an set it in the session:

session.setAttribute("myCollection", myCollection)





-Original Message-
From: Bernhard J. Hirschmann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 7:53 AM
To: Struts-User
Subject: ComboBox



My  only displays a list of options, but how can I get
something like a ComboBox instead of this list?

Greetings




RE: Reaching Action class from Href Link

2001-08-03 Thread Gus Delgado




In addition, If you set the variables from your bean into an ActionForm you
won't even have to use the  neither.

-Original Message-
From: Fletcher, Ken [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 2:32 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Reaching Action class from Href Link


I haven't played around with paramID, paramName and paramProperty in the tag
yet (still experimenting).  However, I have been able to get the bean to
show up on the forwarded JSP by putting it in the HttpSession (from the
action class) and then have the JSP access the properties in regular
fashion:



Does anyone else have a more elegant solution to this?

-Original Message-
From: Greg Maletic [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 2:13 PM
To: [EMAIL PROTECTED]
Subject: RE: Reaching Action class from Href Link


In my JSP, I've got:


My link goes here



In my struts-config.xml file, I've got:

...


...






What I'm finding is that my EditProduct action isn't being called at all.
I'm wanting EditProduct in this case to prepopulate the form bean with data
so it will display for editing on the next JSP.  Because of this problem, no
data is being written into the form bean, so my form comes up blank when I
want it to be pre-filled with data.

Any help is greatly appreciated!

--Greg


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
rg]On Behalf Of Fletcher, Ken
Sent: Friday, August 03, 2001 12:07 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Reaching Action class from Href Link


I'm using Tomcat.don't know if it'll work using something else.  Maybe
if you show some of your code I can help.

-Original Message-
From: Greg Maletic [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 1:59 PM
To: [EMAIL PROTECTED]
Subject: RE: Reaching Action class from Href Link


It's not working for me, for some reason.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
rg]On Behalf Of Fletcher, Ken
Sent: Friday, August 03, 2001 11:41 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Reaching Action class from Href Link


 does work, as long as you have
the .do in there (did for me, anyway).

-Original Message-
From: John M. Corro [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 3:33 PM
To: [EMAIL PROTECTED]
Subject: Re: Reaching Action class from Href Link


Thanks to John and Ken for the assistance.

Point of clarification other interested newbies, using a form's 'action'
value as the link's 'href' value will not work - the reason mine wasn't
working.  For instance,



may work, where as

~~~ or 

will not.




- Original Message -
From: "John Schroeder" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 03, 2001 11:22 AM
Subject: RE: Reaching Action class from Href Link


> Using the struts html:form tag will set the method to POST by default.
This
> won't prevent you from using the link as you describe though.  The service
> methods of an HttpServlet doPost() and doGet() will accomplish essentially
> the same goal (often doGet() will just call doPost() ).  In the case of
the
> struts ActionServlet, both of these methods call process().  So you can
use
> a query string to pass your parameters (or extra path info if you wish).
>
> So, that was a little long-winded way of saying that your link can look
> like:
> LINK
> TEXT
>
> Hope this helps!!
>
> --John
>
>
>
>
>
> -Original Message-
> From: John M. Corro [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 03, 2001 1:07 PM
> To: [EMAIL PROTECTED]
> Subject: Reaching Action class from Href Link
>
>
> I've recently begun working with Struts and am looking to create a
scenario
> where a user can click on a link and trigger some event in an Action class
> (ie the clicking of a link would be the same as clicking a form's submit
> button).  My understanding is that within Struts forms submit by the post
> method by default so I don't know if the only way to reach an Action class
> is by an actual form.  Any one have any insight?
>
>
>




RE: How goes the 1.0 release?

2001-06-15 Thread Gus Delgado

is this suppose to be not-beta anymore?

-Original Message-
From: Moore, Robert [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 3:01 PM
To: '[EMAIL PROTECTED]'
Subject: How goes the 1.0 release?


Is it still expected to happen today?

Thanks,

Rob



No getter method

2001-06-13 Thread Gus Delgado

I'm trying to re-write the example included in the struts package. I made
some changes to the code and now when I try to bring the registration.jsp
with an action="Edit". I get an error: No getter method for property
mypropertyname of bean mybeanname. I change what I think is everything I
needed to change to use that property (the Form bean, the Action bean, the
struts-config.xml, etc) I'm missing something?

How does struts know which property is map to which getter and setter?

Your help is much appreaciated.




database.xml

2001-06-06 Thread Gus Delgado

I'm trying to create my own example of the struts framework, I created a
database servlet and I try to get data from the database.xml when I click on
a link but when I check my servlet.log I see that the database (hashtable)
is empty.

SERVLET LOG:
2001-06-06 01:57:25 - path="/struts-floodcert" :jsp: init
2001-06-06 01:57:25 - path="/struts-floodcert" :database: init
2001-06-06 01:57:25 - path="/struts-floodcert" :database: Initializing
database servlet
2001-06-06 01:57:25 - path="/struts-floodcert" :database: Loading database
from '/WEB-INF/database.xml'
2001-06-06 01:57:25 - path="/struts-floodcert" :action: init
2001-06-06 01:57:26 - path="/struts-floodcert" :action: Loading application
resources from resource floodcert.struts.ApplicationResources
2001-06-06 01:57:26 - path="/struts-floodcert" :action: Initializing
configuration from resource path /WEB-INF/struts-config.xml
2001-06-06 01:57:26 - path="/struts-floodcert" :action: Process
servletName=action, urlPattern=*.do
2001-06-06 01:57:26 - path="/struts-floodcert" :action: Mapping for servlet
'action' = '*.do'
2001-06-06 01:57:29 - path="" :jsp: init
2001-06-06 01:57:37 - path="/struts-floodcert" :jsp: init
2001-06-06 01:57:42 - path="/struts-floodcert" :action: Processing a GET for
/getPending
2001-06-06 01:57:42 - path="/struts-floodcert" :action:  Looking for
ActionForm bean under attribute 'pendingForm'
2001-06-06 01:57:42 - path="/struts-floodcert" :action:  Creating new
ActionForm instance of class 'floodcert.struts.PendingOrdersForm'
2001-06-06 01:57:42 - path="/struts-floodcert" :action:  Storing instance
under attribute 'pendingForm' in scope 'request'
2001-06-06 01:57:42 - path="/struts-floodcert" :action:  Populating bean
properties from this request
2001-06-06 01:57:42 - path="/struts-floodcert" :action:  Validating input
form properties
2001-06-06 01:57:42 - path="/struts-floodcert" :action:  Looking for Action
instance for class floodcert.struts.GetPendingAction
2001-06-06 01:57:42 - path="/struts-floodcert" :action:   Double checking
for Action instance already there
2001-06-06 01:57:42 - path="/struts-floodcert" :action:   Creating new
Action instance


2001-06-06 01:57:42 - path="/struts-floodcert" :action: {}
2001-06-06 01:57:42 - path="/struts-floodcert" :action: GetPendingAction:
Processing Get action
2001-06-06 01:57:42 - path="/struts-floodcert" :action:  PendingOrders is
not in database

Can someone tell me what I'm doing wrong?

Your help is much appreciated.

Gus