RE: Token documentation

2003-11-21 Thread Fullam, Jonathan
I found the description of how and when to use tokens in "The Struts
Framework, Practical Guide for Java Programming" by Sue Spielman very
useful.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 11:19 AM
To: [EMAIL PROTECTED]
Subject: Token documentation



Hi all,

I have problems with the refresh button of my brower: it resend
automatically the form to the server.
I found the mailing archive that with the use of tokens, I can avoid that.
But I don't really understand how I have to use it properly.
Can someone tell me when i could find a good documentation concerning this
point? Is it a recommanding desing to associated with tokens ?

thanks,

Ludo.







This message and any attachments (the "message") is intended solely for the
addressees and is confidential. 
If you receive this message in error, please delete it and immediately
notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole or partial, is
prohibited except formal approval. 
The internet can not guarantee the integrity of this message. BNP PARIBAS
(and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

-

Ce message et toutes les pieces jointes (ci-apres le "message") sont etablis
a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce message par erreur,
merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce message non conforme a
sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf autorisation
expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses filiales)
decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.


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


RE: Session Scope ActionForm, ActionErrors and the Back Button

2003-12-02 Thread Fullam, Jonathan
John,
ActionErrors is stored under the key: Globals.ERROR_KEY.  You can implement
your ActionForm reset (which is called on all ActionForm objects on every
request) method to remove the ActionErrors found under this key from your
Request or Session.

Jonathan

-Original Message-
From: John Topley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 1:31 PM
To: [EMAIL PROTECTED]
Subject: Session Scope ActionForm, ActionErrors and the Back Button 


My application has a sequence of pages that submit to a single ActionForm
with
session scope. The problem I have is that if the user clicks the Back button
any
previous ActionErrors are still displayed, even though the form fields may
be
populated with valid values.

Is it possible to specify a session scope ActionForm with request scope
ActionErrors? How can I solve this problem? I really want to keep the
ActionForm
in the session.

I've searched this list but didn't find any solutions.

Thanks in anticipation,

John



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


RE: Why isn't an ActionForm just a Map?

2003-12-03 Thread Fullam, Jonathan
One guess would be because then you would lose some of the methods which
provide more functionality than just a TransferObject provides. Such methods
are validate and reset.

-Jonathan

-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 8:39 AM
To: struts
Subject: Why isn't an ActionForm just a Map? 


This question is from the table of contents of a text book. I dont have this
book in hand.
I have other questions also.
Why ActionForm is made Struts dependent ?.
Why not use just plain JavaBean whch can be used as TransferObject. ?

rgds
Antony Paul

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


RE: Variable value in logic:equal tag Help Req

2003-12-03 Thread Fullam, Jonathan
You can use a variable for the value attribute just as you did:  <%=
refValue %> as long as refValue is a variable in some scope on your page.
Note that refValue must point to a String object because the equal tag
requires this (it converts the value of the bean pointed to by the name
attribute to a String for comparisons).  If refValue is not a String you can
try the following <%= refValue.toString() %>.

-Jonathan

-Original Message-
From: Shakti [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 10:27 AM
To: Struts Developers List; Struts Users Mailing List
Subject: Variable value in logic:equal tag Help Req


With reference this mail :
I trid this code but i am getting the error :can not resolve symbol refValue
:\bea\user_projects\mydomain\myserver\.wlnotdelete\mcc_mcc_4346456\jsp_servl
et\__reassignta.java:376: cannot resolve symbol
probably occurred due to an error in /reassignta.jsp line 118:


I want to compare values from one arraylist with another using logic equal
tag but in the value="" tag how i can give a variable ??
Plz Help !!!
Thanks & Regards,
Shakti



- Original Message -
From: "Nicolas De Loof" <[EMAIL PROTECTED]>
To: "Struts Developers List" <[EMAIL PROTECTED]>
Sent: Monday, November 24, 2003 4:38 PM
Subject: Re: variable value in logic notEqual tag


> Use this :
>
> 
> 
> ...
> 
>
>
> Nico.
>
> - Original Message -
> From: "Baljinder Singh" <[EMAIL PROTECTED]>
> To: "Struts Developers List" <[EMAIL PROTECTED]>
> Sent: Monday, November 24, 2003 12:03 PM
> Subject: variable value in logic notEqual tag
>
>
> > Hi All,
> >
> > I want to compare the variable in notEqual tag to value of another
variable
> > instead of comparing it to a fixed value. How can I do that ?
> >
> > Thanks
> > BS
> >
> >
> > -
> > 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: Select Property !

2003-12-03 Thread Fullam, Jonathan
You are referencing modelYear as the property but your baseVO appears to
have a property called strModelYear.

-Original Message-
From: Rama, Shreekantha (K.) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 11:04 AM
To: Struts Users Mailing List
Subject: Select Property !
Importance: High


Hi All, 

I have the following piece of code in a .jsp


  
  

I am getting the error as : 

[No getter method available for property modelYear for bean under
name 2002]: javax.servlet.jsp.JspException: No getter method available for
property modelYear for bean under name 2002
at
org.apache.struts.taglib.html.OptionsCollectionTag.doStartTag(OptionsCollect
ionTag.java:273)


My baseVO class has these methods

/**
 * Gets the fieldNo
 * @return Returns a String
 */
public String getModelYear() {
return strModelYear;
}

/**
 * Sets the strModelYear
 * @param strMdlYr The strModelYear to set
 */
public void setModelYear(String strMdlYr) {
this.strModelYear = strMdlYr;
}



/**
 * Gets the ModelYearList
 * @return Returns an arraylist
 */
public ArrayList getModelYearList() {
return ModelYearList;
}

/**
 * Sets the ModelYearList
 * @param ModelYearList The ModelYearList to set
 */
public void setModelYearList(ArrayList listArray) {
this.ModelYearList = listArray;
}


What is the mistake I have done. 


Thanks & Regards
Shree


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


RE: Variable value in logic:equal tag Help Req [SOLVED]

2003-12-03 Thread Fullam, Jonathan
told ya so...  ;-)

-Original Message-
From: Shakti [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 11:35 AM
To: Struts Users Mailing List; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Re: Variable value in logic:equal tag Help Req [SOLVED]


Hey that <% refVar.toString %> worked man .. :-) ... at last. . now i won't
have to sit for the whole nite .. :-) ..
chao ..
Shakti

- Original Message -
From: "Shakti" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, December 03, 2003 9:52 PM
Subject: Re: Variable value in logic:equal tag Help Req


> Hi ,
> I am still not able to make out as how can i compare values from two
> arraylists using logic iterate and logic equal , as none of them is a
> constant and i am still getting the same error.
> 1) I want to know how do i get the value of the variable created using
> bean:define ??? I am using <%= var %> but i am not getting it .. plz help
.
>
> Plz help me out of this .
> Thanks
> Shakti
> - Original Message -
> From: "Fullam, Jonathan" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, December 03, 2003 9:30 PM
> Subject: RE: Variable value in logic:equal tag Help Req
>
>
> > You can use a variable for the value attribute just as you did:  <%=
> > refValue %> as long as refValue is a variable in some scope on your
page.
> > Note that refValue must point to a String object because the equal tag
> > requires this (it converts the value of the bean pointed to by the name
> > attribute to a String for comparisons).  If refValue is not a String you
> can
> > try the following <%= refValue.toString() %>.
> >
> > -Jonathan
> >
> > -Original Message-
> > From: Shakti [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, December 03, 2003 10:27 AM
> > To: Struts Developers List; Struts Users Mailing List
> > Subject: Variable value in logic:equal tag Help Req
> >
> >
> > With reference this mail :
> > I trid this code but i am getting the error :can not resolve symbol
> refValue
> >
> :\bea\user_projects\mydomain\myserver\.wlnotdelete\mcc_mcc_4346456\jsp_ser
vl
> > et\__reassignta.java:376: cannot resolve symbol
> > probably occurred due to an error in /reassignta.jsp line 118:
> > 
> >
> > I want to compare values from one arraylist with another using logic
equal
> > tag but in the value="" tag how i can give a variable ??
> > Plz Help !!!
> > Thanks & Regards,
> > Shakti
> >
> >
> >
> > - Original Message -
> > From: "Nicolas De Loof" <[EMAIL PROTECTED]>
> > To: "Struts Developers List" <[EMAIL PROTECTED]>
> > Sent: Monday, November 24, 2003 4:38 PM
> > Subject: Re: variable value in logic notEqual tag
> >
> >
> > > Use this :
> > >
> > > 
> > >  >
> > > ...
> > > 
> > >
> > >
> > > Nico.
> > >
> > > - Original Message -
> > > From: "Baljinder Singh" <[EMAIL PROTECTED]>
> > > To: "Struts Developers List" <[EMAIL PROTECTED]>
> > > Sent: Monday, November 24, 2003 12:03 PM
> > > Subject: variable value in logic notEqual tag
> > >
> > >
> > > > Hi All,
> > > >
> > > > I want to compare the variable in notEqual tag to value of another
> > variable
> > > > instead of comparing it to a fixed value. How can I do that ?
> > > >
> > > > Thanks
> > > > BS
> > > >
> > > >
> > >
> -
> > > > 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: How do I combine tiles and pre-populated forms?

2003-12-04 Thread Fullam, Jonathan
Jay,

Make sure the following is after  in your struts config
file (IF YOU HAVEN'T DONE SO ALREADY):









where you point to your own opus-tiles.xml.

Then, use the following mapping:





After you pre-populate your form in the ViewSystemProperties action.

return mapping.findForward("success");

-Jonathan


-Original Message-
From: Glanville, Jay [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 11:02 AM
To: Struts User List
Subject: How do I combine tiles and pre-populated forms?


Hello All.

I'm a nubie and I'm having a little problem.  I need to combine an
action mapping to pre-populate a form, with an action mapping for a tile
definition.

Let me go into more detail ...

I have an action mapping that gets the information for a form, populates
the form and then forwards on to the page containing the form.  The
mapping looks like this:


The "name" attribute is a form bean I've defined in the 
section, which subclasses action form and does all the necessary
validation of the form.  The "type" in the above action is a subclass of
Action which goes to the database and gets the appropriate information,
and then sets the form's properties.  The "type" class then uses the
"parameter" attribute to forward on to our internal templating framework
that we want to get rid of.

As we want to get rid of our internal templating framework and use
tiles, I came up with the following action mapping:


The "parameter" attribute is a tile definition (from tiles-def.xml).
The problem with this is that I can't do the necessary work with
pre-populating the form.

With the first solution, I can pre-populate a form.  With the second
solution, I can use the tiling framework.  Now the big question: how do
I combine both solutions so that I can pre-populate my form and use the
tiling framework?

Thanks in advance.



Jay Dickon Glanville

PS: If this email comes through as HTML or RTF, I apologize.  I BELIEVE
I've setup this email for plain text, but I could be wrong.

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


RE: How do I combine tiles and pre-populated forms?

2003-12-04 Thread Fullam, Jonathan
Sorry...I replied before I received this response.

-Original Message-
From: Greg Reddin [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 2:47 AM
To: Struts Users Mailing List
Subject: Re: How do I combine tiles and pre-populated forms?


Jay,

Use the first action mapping, but do it like this:

  
  
  

Then in your ViewSystemProperties action do this:

  return mapping.findForward("success");

Greg

Glanville, Jay wrote:
> Hello All.
> 
> I'm a nubie and I'm having a little problem.  I need to combine an
> action mapping to pre-populate a form, with an action mapping for a tile
> definition.
> 
> Let me go into more detail ...
> 
> I have an action mapping that gets the information for a form, populates
> the form and then forwards on to the page containing the form.  The
> mapping looks like this:
>  path="/ViewSystemProperties"
> type="com.nci.action.telco.ViewSystemProperties"
> scope="request"
> name="SystemProperties"
> parameter="/telco_edit_system_properties"
> validate="false">
> 
> The "name" attribute is a form bean I've defined in the 
> section, which subclasses action form and does all the necessary
> validation of the form.  The "type" in the above action is a subclass of
> Action which goes to the database and gets the appropriate information,
> and then sets the form's properties.  The "type" class then uses the
> "parameter" attribute to forward on to our internal templating framework
> that we want to get rid of.
> 
> As we want to get rid of our internal templating framework and use
> tiles, I came up with the following action mapping:
>  path="/ViewSystemProperties"
> type="org.apache.struts.actions.ForwardAction"
> parameter="telco.system_properties">
> 
> The "parameter" attribute is a tile definition (from tiles-def.xml).
> The problem with this is that I can't do the necessary work with
> pre-populating the form.
> 
> With the first solution, I can pre-populate a form.  With the second
> solution, I can use the tiling framework.  Now the big question: how do
> I combine both solutions so that I can pre-populate my form and use the
> tiling framework?
> 
> Thanks in advance.
> 
> 
> 
> Jay Dickon Glanville
> 
> PS: If this email comes through as HTML or RTF, I apologize.  I BELIEVE
> I've setup this email for plain text, but I could be wrong.
> 
> -
> 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]


Subclassing ActionServlet

2003-12-04 Thread Fullam, Jonathan
All,

I need to check the Session for an authenticated user before most requests.
To do this I subclassed ActionServlet and only call super(request, response)
upon verification that authenticated user is in the Session. 

if (request.getRequestURI().endsWith("welcome.do") |
request.getRequestURI().endsWith("logon.do") |
request.getRequestURI().endsWith("html"))
{
super.process(request, response);
}


else if (request.getSession().getAttribute("USER") == null)
{
//Forward to login page
response.sendRedirect("/welcome.do");
}

 I also know about the ability to subclass the RequestProcessor and
providing my own implementation of the processPreprocess method to
accomplish the same thing.

Does anybody know of any serious disadvantages or side effects of
subclassing the ActionServlet class rather than the RequestProcessor class.


RE: When HashMap will replace ActionForm ?

2003-12-10 Thread Fullam, Jonathan
That's where a map-backed Hashmap is useful.  

-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 6:02 AM
To: Struts Users Mailing List
Subject: Re: When HashMap will replace ActionForm ?


I know that but one have to define 10 to 30 elements in struts-config.xml
for that. With a hash map one have to say whether it is needed ot not. It
could be accessed like DynaValidator form. And my requirement is to store
simple text field values.

rgds
Antony Paul.

- Original Message -
From: "Kalra, Ashwani" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 10, 2003 4:05 PM
Subject: RE: When HashMap will replace ActionForm ?


> DynaValidator forms stores data in Hashmap internally if you dont want to
> define norma action forms.
>
>
>
>
> >-Original Message-
> >From: Antony Paul [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, December 10, 2003 2:40 PM
> >To: struts
> >Subject: When HashMap will replace ActionForm ?
> >
> >
> >Hi,
> >Is there any move to support HashMap in place of
> >ActionForm ?. I dont
> >want to start any argument. I have read a lot on ActionForm in
> >this archive.
> >
> >rgds
> >Antony Paul.
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> 
> This message contains information that may be privileged or confidential
and
> is the property of the Cap Gemini Ernst & Young Group. It is intended only
> for the person to whom it is addressed. If you are not the intended
> recipient, you are not authorised to read, print, retain, copy,
disseminate,
> distribute, or use this message or any part thereof. If you receive this
> message in error, please notify the sender immediately and delete all
copies
> of this message.
>
> -
> 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: 'Module scoped' variables

2003-12-10 Thread Fullam, Jonathan
Not sure if it's exactly what you want but I know you can use the parameter
attribute of the action tags to specify a value that is accessible using
mapping.getParameter() from withing you Action class.



-Jonathan

-Original Message-
From: Lawrence Williams [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 11:20 AM
To: [EMAIL PROTECTED]
Subject: 'Module scoped' variables


Hi,

Hope this isn't too naïve a question Is there anyway of setting
parameters in a module-level struts-config file and referencing those
variables within an action?

Effectively giving me a module scope.

Regards
Lawrence

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 02/12/2003
 

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


RE: Tag for adding no-cache header.

2003-12-10 Thread Fullam, Jonathan
Setting the nocache in the web.xml has actually been deprecated.  A better
solution for you is to set the nocache header as an attribute inside the
controller element of you struts-config file.  

-Jonathan

-Original Message-
From: Trieu, Danny [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 11:31 AM
To: 'Struts Users Mailing List'
Subject: RE: Tag for adding no-cache header.


In your deployment descriptor, web.xml, you can can set the ActionServlet's
parameter no-cache=true.  The container will take care of this for you as
long as all of your request go through the FrontController.

Danny Trieu 
Internet Business Group 
Downey Savings and Loan Association, F.A. 
[EMAIL PROTECTED]
(949) 509-4564

"The beginning of knowledge is the discovery of something we do not
understand."
- Frank Herbert (1920-1986)
"The essence of knowledge is, having it, to apply it; not having it, to
confess your ignorance."
- Confucius (551-479 BC)




-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 10, 2003 3:16 AM
To: struts
Subject: Tag for adding no-cache header.


Hi,
Does any Struts tag generate the headers necessary to say browser not to
cache a JSP page. It still exists as a scriptlet in my JSP. If one is added
it will be useful. I think every dynamic page need this.

rgds
Antony Paul.


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


This message and any attachments are for the intended recipient(s) only and
may contain privileged, confidential and/or proprietary information about
Downey Savings or its customers, which Downey Savings does not intend to
disclose to the public. If you received this message by mistake, please
notify the sender by reply e-mail and delete the message and attachments.

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


RE: 'Module scoped' variables

2003-12-10 Thread Fullam, Jonathan
Yes.  I actually thought of that issue after I replied to you.  

Another option you can look into is subclassing the ControllerConfig class
and specify your new Config class in the className attribute of the
controller element in each of your modules.  You could then build in the
functionality to configure extra "module-scoped" variable.
 
-Jonathan

-Original Message-
From: Lawrence Williams [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 11:35 AM
To: Struts Users Mailing List
Subject: RE: 'Module scoped' variables


Thanks Jonathan,

That's kind of the half solution I have at present - the problem is I have
to specify the parameter in all my actions as it is 'global to the module'.
This makes changing the value a bit tedious. Does this make sense?

Regards
Lawrence

-Original Message-
From: Fullam, Jonathan [mailto:[EMAIL PROTECTED] 
Sent: 10 December 2003 16:23
To: 'Struts Users Mailing List'
Subject: RE: 'Module scoped' variables

Not sure if it's exactly what you want but I know you can use the parameter
attribute of the action tags to specify a value that is accessible using
mapping.getParameter() from withing you Action class.



-Jonathan

-Original Message-
From: Lawrence Williams [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 11:20 AM
To: [EMAIL PROTECTED]
Subject: 'Module scoped' variables


Hi,

Hope this isn't too naïve a question Is there anyway of setting
parameters in a module-level struts-config file and referencing those
variables within an action?

Effectively giving me a module scope.

Regards
Lawrence

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 02/12/2003
 

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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 02/12/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 02/12/2003
 

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


RE: Tabbed menus using Tiles

2003-12-10 Thread Fullam, Jonathan
Look into using the struts-menu libraries.  It contains tabbed menus.
http://raibledesigns.com/wiki/Wiki.jsp?page=StrutsMenu
-Jonathan

-Original Message-
From: Gopal Venkata Achi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 3:36 PM
To: Struts Users Mailing List
Subject: Tabbed menus using Tiles


Hi All,

I am presently designing a web application, and curious to learn whether
there is any way we can create and use the tabbed menus using Struts
libraries.  We have chosen tiles for the layout design already.

I appreciate any help.

cheers

gopal



RE: [OFF TOPIC] STRUTS PROGRAMMER JOB.

2003-12-11 Thread Fullam, Jonathan
jobs are real easy to get and starting salaries are anywhere from 150K to
350K per year.

-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 3:23 PM
To: [EMAIL PROTECTED]
Subject: Re: [OFF TOPIC] STRUTS PROGRAMMER JOB.


$4.75?! 

Dang, I am getting robbed!

Larry

>>> [EMAIL PROTECTED] 12/11/03 4:36 PM >>>
Actually that figure is a bit high .. 4.75/hr if you want Health Insurance
Saludos,
Martin
- Original Message - 
From: "Marcus Peixoto" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 11, 2003 1:28 PM
Subject: Re: [OFF TOPIC] STRUTS PROGRAMMER JOB.


> Are you kidding ? Are programmers for sale in US ?
>
> Em Qui, 2003-12-11 às 20:59, Martin Gainty escreveu:
> > Going rate is about 6$/hr
> > - Original Message - 
> > From: "Tiago Henrique Costa Rodrigues Alves"
> > <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Thursday, December 11, 2003 1:37 PM
> > Subject: RE: [OFF TOPIC] STRUTS PROGRAMMER JOB.
> >
> >
> > > I wrote my email wrong: [EMAIL PROTECTED]
> > >
> > > YOU DONT NEED TO REPLY TO THE MAILING LIST send me an email
> > > ([EMAIL PROTECTED])
> > >
> > > Sorry for the off topic, but I just need to hear from you guys...
> > >
> > > I am looking for an American Job, I live in Brazil and I have 2 years
> > > experience in Java + Struts + OJB + Apache + TomCat + UML + PHP + ASP.
Web
> > > in General
> > >
> > > How much an Web/Java Developer can make?
> > >
> > > How easy can I get a job from Brazil?
> > >
> > > Thanks,
> > > Tiago Henrique C. R. Alves
> > >
> > > -
> > > 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: question on DynaActionForm

2003-12-15 Thread Fullam, Jonathan
Jim,
I'm not exactly sure what the book means when they say that "whether you use
an ActionForm or a DynaActionForm should be transparent," but once you use
DynaActionForm, you form is no longer of type RegisterForm (hence the
ClassCastException).  You must cast it to DynaActionFrom now as in:

DynaActionFrom rf = (DynaActionForm) form;

Also,  you will need to access the data in rf differently now...

rf.get("Name of property");

-Jonathan

-Original Message-
From: Anderson, James H [IT] [mailto:[EMAIL PROTECTED]
Sent: Monday, December 15, 2003 9:52 AM
To: Struts Users Mailing List
Subject: question on DynaActionForm


I'm trying to modify the simple Register application from Chapter 1 of
"Struts in Action" to use a DynaActionForm in place on the ActionForm shown
in the book. I've modified struts-config.xml accordingly. According to the
book, whether you use an ActionForm or a DynaActionForm should be
transparent. However, when I attempt to run the modified app I get a
ClassCastException at the following line in RegisterAction.java:

RegisterForm rf = (RegisterForm) form;

I'm sure it's something dumb, but I'm not seeing it. Any help appreciated.

Thanks,

jim




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


RE: Login Security

2003-12-16 Thread Fullam, Jonathan
You could put a cookie on the user's machine that expires after a certain
period of time.  Of course this only works when cookies are turned one and
an experienced user could always manually remove their cookie.

Another solution maybe is to get the user's IP address from the request
Header and add it to a list of invalid IP address with their times of entry.
Then upon a new request, you will have to check the list and determine how
long ago the IP address was added.

I'm just brainstorming here so anybody can criticize these suggestions
freely.
-Jonathan

-Original Message-
From: Ciaran Hanley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 16, 2003 10:55 AM
To: [EMAIL PROTECTED]
Subject: Login Security


I'm writing a web application using JSP and Struts. I want to add a
security feature to my login page where if a user has three unsuccessful
logins they will be unable to log in for a certain period of time
afterwards. I can count the number of unsuccessful logins ok but how I'm
not sure how to give a timeout after 3 failures. Any ideas how I could
implement this?
 
Thanks


RE: Help on form reset

2003-12-17 Thread Fullam, Jonathan
No, the reset method will automatically be called on a Session scoped
ActionForm upon each request.  Request scoped ActionForms are newly
instantiated upon each request so, with Request scoped ActionForms, the
reset method is irrelevant.
-Jonathan

-Original Message-
From: vasudevrao gupta [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 9:06 AM
To: 'Struts Users Mailing List'
Subject: Help on form reset



Hi,

I am new to struts..
I understand that the validate method of the Action form can be called
based on the "validate" 
attribute in struts_config.xml.
Similarly, for the reset method, can we configure in the xml file.

Regards
VasudevRaoGupta


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]


RE: Struts internal error

2003-12-17 Thread Fullam, Jonathan
You can get the root cause of an internal exception by looking about half
way down the stack trace.  In your case it is:

root cause

java.lang.IllegalAccessError: tried to access class
org.apache.commons.beanutils.MappedPropertyDescriptor$1 from class
org.apache.commons.beanutils.MappedPropertyDescriptor

-Jonathan

-Original Message-
From: Julien Martin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 12:53 PM
To: Struts Users Mailing List
Subject: Struts internal error


Hello,
I am working on a fairly complex application and I am running into a struts
internal error.  Can anyone tell me how to sort it please.

Here is the exception trace:

***
HTTP Status 500 -




type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter
Chain.java:98)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain
.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:172)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
at java.lang.Thread.run(Thread.java:536)

root cause

java.lang.IllegalAccessError: tried to access class
org.apache.commons.beanutils.MappedPropertyDescriptor$1 from class
org.apache.commons.beanutils.MappedPropertyDescriptor
at
org.apache.commons.beanutils.MappedPropertyDescriptor.getPublicDeclaredMetho
ds(MappedPropertyDescriptor.java:383)
at
org.apache.commons.beanutils.MappedPropertyDescriptor.internalFindMethod(Map
pedPropertyDescriptor.java:453)
at
org.apache.commons.beanutils.MappedPropertyDescriptor.findMethod(MappedPrope
rtyDescriptor.java:527)
at
org.apache.commons.beanutils.MappedPropertyDescriptor.(MappedPropertyDescrip
tor.java:149)
at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUti
ls.java:907)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1096)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:816)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
at org.apache.stru

RE: URGENT - Help defending Struts

2003-12-18 Thread Fullam, Jonathan
www.verizonwireless.com

-Original Message-
From: Ben Anderson [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 10:53 AM
To: [EMAIL PROTECTED]
Subject: RE: URGENT - Help defending Struts


http://www.paychex.com/demos/s125/index.html
you can't directly access it, because it's a subsription service, but 
there's a flash tour of the site.


>From: [EMAIL PROTECTED]
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: URGENT - Help defending Struts
>Date: Thu, 18 Dec 2003 09:48:35 -0600
>
>All:
>
>
>
>Our CIO is currently fighting the use of Struts by saying that it is not
>widely used in B2C sites.  Does anyone know of any sites, preferably
>commerce sites that are using Struts?  This would be extremely helpful.
>
>
>
>The issue is that the CIO is looking for sites that may be similar to
>ours that are using Struts already.
>
>
>
>Thanks very much,
>
>Russell
>
>
>
>[EMAIL PROTECTED]
>
>310-426-5587
>
>
>
>
>
>This message is for the designated recipient only and may contain 
>privileged, proprietary, or otherwise private information.  If you have 
>received it in error, please notify the sender immediately and delete the 
>original.  Any other use of the email by you is prohibited.

_
Enjoy the holiday season with great tips from MSN.  
http://special.msn.com/network/happyholidays.armx


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


redirecting to fully qualified hostname

2004-01-13 Thread Fullam, Jonathan
All,

The application I am working on is secured with a login that required a
username and password.  Once a user is logged in, all pages can be accessed
as long as there is a Subject object in the Session.  My problem is that
part of the webapp provided links to pages that open in another window, and
when the link is clicked, it is forwarding to the logon page as if the
Subject object is no longer in the Session.  I've determined that this
behavior is only present when the hostname used for the request is not fully
qualified upon the intial logon.

For instance.

User logons on by going to http://serverName/webapp/logon.do

Then the application provides a link to
http://serverName.mycompany.com/webapp/something.do which open a page in a
new window.

When the user click the link, a new window is opened but they are forwarded
to the logon page as if they never logged on in the first place.

How can I have all requests to the original hostname
http://serverName/webapp be redirected to
http://serverName.mycompany.com/webapp ?  Is there anybody out there that
has experienced this or knows of a better way to work around this issue?

Thanks in Advance,
Jonathan