RE: Webapp Security?

2003-07-07 Thread du Plessis, Corneil C
Look at the http://www.securityfilter.org project on sourceforge. 
It provides a portable implementation that is similar to container security
but can be regarded as an improvment in some cases. request.isUserInRole
will work and also struts role checking.

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: 07 July, 2003 18:21
To: Struts Users Mailing List
Subject: Re: Webapp Security?




On Sun, 7 Jul 2003, Rick Reumann wrote:

 Date: 07 Jul 2003 00:47:20 -0400
 From: Rick Reumann [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: Webapp Security?

 On Thu, 2003-07-03 at 16:42, Craig R. McClanahan wrote:
 
 
  Why are you trying to mess with the container's implementation of
  authentication at all?  Why not just write a Filter that does an
  RD.forward() to some safe place if it sees that the session does not
  contain the right stuff (because it was timed out and recreated)?
  Remember, a filter is *not* required to call chain.doFilter() to pass
the
  request on -- it can forward wherever it wants and then return, and this
  is portable to any Servlet 2.3 container.
 
  Filters are your friend :-).


 Well, here's the deal... Basically there are are too many things that
 rely on certain objects being in Session scope for this application so I
 don't want to have to test every type of action url. So what I did was
 write a Servlet Filter that also is called from the urr pattern /*

 the relevant filter method looks like :

 if (  httpRequest.getUserPrincipal() != null 
 session.getAttribute(userBean) == null ) {
 RequestDispatcher rd = request.getRequestDispatcher(mainPage);
 rd.forward(request, response );
 }
 else {
  chain.doFilter(request, response);
 }


 The above seems to work fine- forcing the forward to the mainPage (which
 in my case is an index page that then forwards to an Action that sets up
 appropriate Session information).

 Throughout the course of the application there are other session objects
 (mainly some Lists for reporting that are put in Session scope) so
 rather than test for everything and have to figure out what page/action
 to bring the user to in oder to make things are set up correctly, I just
 want them all back some initial page.

 The part I don't like is every request now has to hit both the security
 filter and this other filter. Would it maybe be better to maybe just do
 this type of check in my base action execute method? (check for the
 userBean being null there and if null forward to the appropriate
 setUpAction?


I wouldn't be concerned -- combining things through composition (versus
putting everything in one big class) makes the individual pieces much
easier to understand and maintain.

Also, note that the Filter approach works even if your user tries to
request a JSP page directly, while embedding the logic in your Action
would not catch this.

 Thanks,

 --
 Rick

Craig

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

__

For information about the Standard Bank group visit our web site 
www.standardbank.co.za
__

Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited  is proprietary to the group. 
It is confidential, legally privileged and protected by law. 
Standard Bank does not own and endorse any other content. Views and opinions are those 
of the sender unless clearly stated as being that of the group. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender immediately if it has unintentionally reached you and do not read, 
disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has been 
maintained nor that it is free of errors, virus, interception or interference.
___


RE: Passing values into action

2003-03-27 Thread du Plessis, Corneil C
If you want a generic action that is defined in a few different ways you can
use the parameter in the action mapping.

-Original Message-
From: Pat Young [mailto:[EMAIL PROTECTED]
Sent: 27 March, 2003 16:40
To: [EMAIL PROTECTED]
Subject: Passing values into action


What is the best way to pass values into an action?  I
want to do this in order to be able to make my actions
dynamic.  However, I don't want to have to include
these values in the URL.  Is there a way to pass them
in using the action xml element and then use logic in
my JSP to process these?

Pat Young

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



RE: Generate select from Hashtable

2003-03-24 Thread du Plessis, Corneil C
html:select ...
html:optionsCollection name=myhashTable value=countrycode
label=countrydesc/
/html:select

-Original Message-
From: Kalaiselvan [mailto:[EMAIL PROTECTED]
Sent: 25 March, 2003 06:09
To: Struts Users Mailing List
Subject: Generate select from Hashtable


Hi,
   I have a hashtable having the (countrcode,countrydesc). Is there any 
option to use struts taglib to display it in select tag.
Thanx
Kalaiselvan




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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



RE: PrePopulation Problem - Urgent

2003-03-19 Thread du Plessis, Corneil C
Makes sure redirect=false in the forward.

-Original Message-
From: ashokd [mailto:[EMAIL PROTECTED]
Sent: 21 March, 2002 07:11
To: [EMAIL PROTECTED]
Subject: PrePopulation Problem - Urgent
Importance: High


Hi,

I have a .jsp page, In this page if the user clicks a Hyper link one Action
class will invoke.
In this action class I am setting some values to the Form Bean and
redirecting to the same page.
These values are not prepopulating in jsp page.

When the user navigates to another page and then comes to the first page
then these values are populating.

This problem is coming with Specific IE versions only.

After putting cache invalidate tag this problem overcome in some versions.
%
 response.setHeader(Cache-Control,no-cache);
 response.setHeader(Pragma,no-cache);
%


But still it is their in one Version of  I.E 5.0

I taken the form bean values into strings and printing down in jsp page.

These values are coming good but not prepopulating.

Even though I tried directly assiging these string values to html:text
.. value=%=var1 %.

Even though no result.

If the user refreshes the pages then these values are populating.

If any one faced same type of problem pls let me know the solution or causes
to this problem.

Thanks In Advance,
Ashok.D


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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



RE: * * * Calling org.apache.struts.action.ActionServlet Manually * * *

2003-03-18 Thread du Plessis, Corneil C
Forward to some action /myaction.do
Allow your LoginServlet to accept an init parameter that indicates where to
go on success.

-Original Message-
From: Romualdo Rubens de Freitas [mailto:[EMAIL PROTECTED]
Sent: 18 March, 2003 16:08
To: [EMAIL PROTECTED]
Subject: * * * Calling org.apache.struts.action.ActionServlet Manually
* * *


Hi All,

This is my first msg to this list and am new to Struts.

My login strategy is the following: I have a login.jsp which
calls a LoginServlet to make user validation. If an invalid
username/password is entered, LoginServlet forwards to login.jsp.
This is working fine.

Now my problem, if the validation goes well how can I call
org.apache.struts.action.ActionServlet (action) so that my app
can really start ???

Best regards,
Romualdo Rubens de Freitas
mailto:[EMAIL PROTECTED]



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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



RE: [OT] Dynamic UI configuration

2003-03-18 Thread du Plessis, Corneil C
Place the bean in the session as well.

-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: 18 March, 2003 16:22
To: [EMAIL PROTECTED]
Subject: [OT] Dynamic UI configuration 


Hi Guys,

I've got a java bean stored in the application context. This java bean 
stores UI color details for the entire website. I've tried doing something 
as follows in my jsp but it doesn't work:


table width=100% border=0 bgColor='bean:write name=appConfigBean 
scope=application property=screenColor/'


Any ideas how i should go about this???





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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



RE: Html:Options usage

2003-03-17 Thread du Plessis, Corneil C
logic:iterate name=filters id=filter indexId=filterIndex
select name='%=filter+filterIndex%'html:optionsCollection
name=filter label=label value=value//select
/logic:iterate

-Original Message-
From: e gg [mailto:[EMAIL PROTECTED]
Sent: 17 March, 2003 15:16
To: [EMAIL PROTECTED]
Subject: Html:Options usage



Hi, I have a bean class that returns an ArrayList of ArrayLists for my
dropdowns. I am really confused on how to show this dropdowns. Here's my
bean class:

public class UserAccessBean implements java.io.Serializable {
 

List deptList  = new ArrayList();
List brokerList = new ArrayList();
List filters = new ArrayList();


 public List getFilters() {
 deptList.add(new LabelValueBean(1, Department1));
 deptList.add(new LabelValueBean(2, Department2));
 deptList.add(new LabelValueBean(3, Department3));


 brokerList.add(new LabelValueBean(broker1, BrokerDepartment1));
 brokerList.add(new LabelValueBean(broker2, BrokerDepartment2));
 brokerList.add(new LabelValueBean(broker3, BrokerDepartment3));
 
  filters.add(deptList);
  filters.add(brokerList);
  return filters;
 }


}

The 'filters' ArrayList can actually return 2 or more ArrayList. Like if
there's 3 ArrayLists, I would like an html output such as:

select name=filter1options/select

select name=filter2options ... /select

select name=filter3options.../select

tia,

Emmanuel

  



-
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



RE: bean:message problem !

2003-03-13 Thread du Plessis, Corneil C
bean:define id=localvar1 type=Stringbean:message
key=keyforarg0/bean:define
bean:message key=mykey arg0=%=localvar1%/

-Original Message-
From: Eric Chow [mailto:[EMAIL PROTECTED]
Sent: 13 March, 2003 08:39
To: Struts Users Mailing List
Subject: bean:message problem !


Hello,

If I want to parse a parameter to the bean:message tag,

I can do it as bean:message key=mykey arg0=my argument0/.

How about if my arg0 also in MessageResource file ?


Best regards,
Eric



==
If you know what you are doing, 
it is not called RESEARCH!
==

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



RE: html:form tag and document submit()

2003-03-13 Thread du Plessis, Corneil C
html:form is a JSP Tag library that renders a form tag based on the
struts-config.
document.form.submit() is a JavaScript expression that is going to submit
the specific form.


-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: 13 March, 2003 11:31
To: 'Struts Users Mailing List'
Subject: html:form tag and document submit()


Hi,
I have a dumb question to ask.

 What does the tag html:form do that document.form.submit() doesn't do
?

If there is a considerable difference between these two methods, then it
might explain some of the things we have been facing here.

Mohan



-Original Message-
From: Ian Hunter [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 7:21 AM
To: Struts Users Mailing List
Subject: Accessing DynaActionForm fields within custom tag


I have a form where the submit button is supposed to say add login or
update login depending on if the user in question (based on field
fkMember) already exists in the login database.  I have tags called HasLogin
and HasNoLogin that take an integer parameter, and return whether or not the
condition is true.

I am using a DynaActionForm to populate the rest of the fields.  The
DynaActionForm is a session scoped bean called loginForm -- the following
code actually works:

!-- form tags and all that above --
tdhtml:submit
jsp:useBean id=loginForm scope=session
class=org.apache.struts.action.DynaActionForm/
app:HasNoLogin idMember=%=new Integer
(Integer.parseInt((String)loginForm.get(fkMember)))%
bean:message key=button.addlogin/
/app:HasNoLogin
app:HasLogin idMember=%=new Integer
(Integer.parseInt((String)loginForm.get(fkMember)))%
bean:message key=button.updatelogin/
/app:HasLogin
/html:submit/td
!-- rest of page below --

The syntax above offends my sensibilities.  First, I ought to be able to
refer to the bean in question without using a jsp:useBean I think; it's
obviously available to the rest of the form, if the form works (and it
does).  Seconds, casting the get() as a String and doing a parseInt to it to
create a new Integer is silly.

Isn't there a more elegant way to do this?

Ian


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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



RE: forwarding to servlet

2003-03-13 Thread du Plessis, Corneil C
You should forward name=error path=/action/ 

-Original Message-
From: santhosh [mailto:[EMAIL PROTECTED]
Sent: 14 March, 2003 09:06
To: 'Struts Users Mailing List'
Subject: forwarding to servlet


Hello everybody,

In struts i want to forward to a servlet than a jsp.  So in
struts-config.xml how to configure it.  if it is jsp we configure like
following for e.g 
 forward name=list path=/list.jsp/   lik this i want to forward to a
servlet.  how to give the path.  i have a servlet which i can call from the
browser like the following.

http://127.0.0.1:8080/dvdapp2/action  .  and i have configured in
web.xml like the following.  

servlet
  servlet-nameerror/servlet-name
  servlet-classhansen.playground.error/servlet-class
  /servlet
  
  servlet-mapping
  servlet-nameerror/servlet-name
  url-pattern/action/url-pattern
  /servlet-mapping


Now if i configure like this  forward name=error path=/dvdapp2/action/
exception if  FileNotFoundException.  



please help me out in this.


Thanx with regds
santhosh hegde A

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



RE: unwanted emty lines in produced html

2003-03-12 Thread du Plessis, Corneil C
The biggest program is taglibs within logic:iterate if you try something
like:
logic:iterate ...trtdbean:message  //td/tr/logic:iterate

instead of:
logic:iterate ...
trtdbean:message  //td/tr
/logic:iterate

You will find you get a lot fewer blank lines.

-Original Message-
From: Brian Lee [mailto:[EMAIL PROTECTED]
Sent: 12 March, 2003 17:41
To: [EMAIL PROTECTED]
Subject: Re: unwanted emty lines in produced html


Hundreds of blank lines affect rendering speed of a browser and can affect 
performance of heavily hit sites. Although each line is negligible with 
thousands of users you end up paying for the extra bandwidth.

Plus browsers still have some quirks with blank lines. I.e. it can make an 
image look misaligned or cause a link's underline to extend beyong the text.

BAL

From: David Graham [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: unwanted emty lines in produced html
Date: Wed, 12 Mar 2003 08:24:57 -0700

How are empty lines affecting the display of the html?  AFAIK, browsers 
ignore blank lines.

David



From: Igor Lyubimov [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: unwanted emty lines in produced html
Date: Wed, 12 Mar 2003 16:17:07 +0100

Hallo!

I use struts-tiles framework for my web application.

When I look in produced html code, I see wery much empty lines. In this 
case I become broken design. (Some divs have incorrect size, table cells 
are broken etc.)

As I understand this problem, this emty lines are produced by embedded 
java statements and struts/tiles tags like:

% ... %
%@ ... %
...
tiles:useAttribute ... /

So, how can I control the output? I need to be able to use in my code 
constructions (as stated above) and I do not like to have one emty line 
per construction. I do not like to have very long lines in my code too.

Have anybody solution for this problem?

Thanks a lot,

--
_
  |   |
  | knipp |   Knipp  Medien und Kommunikation GmbH
   ---   Technologiepark
 Martin-Schmeisser-Weg 9
 D-44227 Dortmund
  Dipl.-Mathematiker Igor Lyubimov   Fon: +49-231-9703-0
  [EMAIL PROTECTED] Fax: +49-231-9703-200
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   C e B I T  2003   Besuchen Sie uns
   H a n n o v e r   auf unserem Stand:
   12.3.-19.3.2003   Halle 6, C 52/560


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



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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



RE: [OT] Isn't LISP the same?

2003-03-11 Thread du Plessis, Corneil C
And James Gosling was part of it as well!

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: 11 March, 2003 16:21
To: struts
Subject: [OT] Isn't LISP the same?


 
Creators Admit UNIX, C Hoax 
In an announcement that has stunned the computer industry, Ken Thompson,
Dennis Ritchie and Brian Kernighan admitted that the Unix operating system 
and C programming language created by them is an elaborate prank kept alive 
for over 30 years. Speaking at the recent UnixWorld Software Development

Forum, Thompson revealed the following: 

In 1969, ATT had just terminated their work with the GE/Honeywell/ATT

Multics project. Brian and I had started work with an early release of 
Pascal from Professor Niklaus Wirth's ETH labs in Switzerland and we were 
impressed with its elegant simplicity and power. Dennis had just finished 
reading 'Bored of the Rings', a National Lampoon parody of the Tolkien's
'Lord of the Rings' trilogy. As a lark, we decided to do parodies of the
Multics environment and Pascal. Dennis and I were responsible for the 
operating environment. We looked at Multics and designed the new OS to be 
as complex and cryptic as possible to maximize casual users' frustration
levels, calling it Unix as a parody of Multics, as well as other more 
risque allusions. We sold the terse command language to novitiates by 
telling them that it saved them typing. 

Then Dennis and Brian worked on a warped version of Pascal, called 'A'. 'A' 
looked a lot like Pascal, but elevated the notion of the direct memory 
address (which Wirth had banished) to the central concept of the language. 
This was Dennis's contribution, and he in fact coined the term pointer as 
an innocuous sounding name for a truly malevolent construct. 

Brian must be credited with the idea of having absolutely no standard I/O 
specification: this ensured that at least 50% of the typical commercial 
program would have to be re-coded when changing hardware platforms. Brian 
was also responsible for pitching this lack of I/O as a feature: it allowed 
us to describe the language as truly portable. 

When we found others were actually creating real programs with A, we 
removed compulsory type-checking on function arguments. Later, we added a 
notion we called casting: this allowed the programmer to treat an integer 
as though it were a 50kb user-defined structure. When we found that some
programmers were simply not using pointers, we eliminated the ability to
pass structures to functions, enforcing their use in even the simplest 
applications. We sold this, and many other features, as enhancements to the 
efficiency of the language. In this way, our prank evolved into B, BCPL, and
finally C. 

We stopped when we got a clean compile on the following syntax: 

for(;P(\n),R-;P(|))for(e=3DC;e-;P(_+(*u++/8)%2))P(| +(*u/4)%2); 

At one time, we joked about selling this to the Soviets to set their 
computer science progress back 20 or more years. 

Unfortunately, ATT and other US corporations actually began using Unix and 
C. We decided we'd better keep mum, assuming it was just a passing phase. 

In fact, it took US companies over 20 years to develop enough expertise 
to generate useful applications using this 1960's technological parody. We 
are impressed with the tenacity of the general Unix and C programmer. In
fact, Brian, Dennis and I have never ourselves attempted to write a 
commercial application in this environment. 

We feel really guilty about the chaos, confusion and truly awesome 
programming projects that have resulted from our silly prank so long ago. 

Dennis Ritchie said: What really tore it (just when Ada was catching on), 
was that Bjarne Stroustrup caught onto our joke. He extended it to further 
parody, C++. Like us, he was caught by surprise when nobody laughed. 
So he added multiple inheritance, virtual base classes, and later ... 
templates. All to no avail. So we now have compilers that can compile 
100,000 lines per second, but need to process header files for 25 minutes 
before they get to the meat of Hello, World. 

Major Unix and C vendors and customers, including ATT, Microsoft, 
Hewlett-Packard, GTE, NCR, and DEC have refused comment at this time. 

Borland International, a leading vendor of object-oriented tools, including 
the popular Turbo Pascal and Borland C++, stated they had suspected this for
a couple of years. In fact, the notoriously late Quattro Pro for 
Windows was originally written in C++. Philippe Kahn said: After two and a 
half years programming, and massive programmer burn-outs, we re-coded the 
whole thing in Turbo Pascal in three months. I think it's fair to say that 
Turbo Pascal saved our bacon. Another Borland spokesman said that they 
would continue to enhance their Pascal products and halt further efforts to 
develop C/C++. 

Professor Wirth of the ETH institute and father of the Pascal, Modula 2 and 
Oberon structured languages, cryptically said P.T. 

RE: [OT] computer performance with jsp/servlets/struts

2003-03-10 Thread du Plessis, Corneil C
I would suggest you try to tune Tomcat memory by using -mx as a JVM
parameter, I may help reduce the swapping.

-Original Message-
From: Dan Allen [mailto:[EMAIL PROTECTED]
Sent: 11 March, 2003 06:09
To: Struts-User List
Subject: [OT] computer performance with jsp/servlets/struts


I only ask this to see if I can make my life easier.  I have a PII
333MHz laptop with 216MB Ram and I am running Tomcat, JDK 1.4.1 and
some struts applications.  Just now it took ant 6 min 56 sec to
reload my application after making changes.  If I were to go and get
a decent Athlon XP or PIV computer, what should I expect for reload
times and compile times for a reasonable size webpage application?

This is the one thing that I regret when leaving PHP.  I spend close
to 1/8 of my day waiting for it to reload once my computer starts
swapping to disk.  Does anyone else have this issue?

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
It is not enough to succeed.  Others must fail.  
 -- Gore Vidal
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



RE: [OT] Ancient computing

2003-03-05 Thread du Plessis, Corneil C
Here in South Africa technology was in the same state in the late 70s and
early 80s.
Doing computer studies meant complete coding sheet this week next week
receive punch cards and compile report if successfull compile you may even
get an execution report.
8 programs took the whole year to complete.
We actually went to visit the computer room half-way through our senior year
as a class trip. 
By that time I already had a ZX Spectrum and was laughing my at this room
ful of computer with not much more capability the my little spectrum.


-Original Message-
From: Pani, Gourav [mailto:[EMAIL PROTECTED]
Sent: 05 March, 2003 17:47
To: 'Struts Users Mailing List'
Subject: RE: [OT] Ancient computing


ok so i am a kid.  first computer - 386.

-Original Message-
From: Bueno Carlos M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 10:46 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Ancient computing


Dang, I must be a youngster -- mine were a Zenith-Heath kit computer running
CP/M and an Atari 400 with BASIC.

-Original Message-
From: Kandi Potter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 9:34 AM
To: Struts Users Mailing List
Subject: RE: [OT] Ancient computing


My guess is early 70sbecause my first experience was also in high
school using an old IBM System ?? with 64k memory.It took up a complete
room.You saved your program by not dropping the punch cards.   If your
program didn't have any compile errors, it would be 20 minutes executing
until the output came out on the printer !

-Original Message-
From: Ray Madigan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 6:38 PM
To: Struts Users Mailing List
Subject: RE: [OT] Ancient computing


Well - lets see:

Does older win this contest :-)

My first computing experience was in high school.  We had a room in 
the science lab with an old IBM computer - I think at one time it
was the state of the art mainframe.  But you would program with
toggle switches, and you could save your program to rolls of punch
paper.  If the paper role tore or got bent you were out of luck.

Anyone wanna guess how long ago that was.

LOL

-Original Message-
From: Clement, Stephen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 3:06 PM
To: [EMAIL PROTECTED]
Subject: RE: [OT] Ancient computing



I wrote the first design patterns using sticks and stones.
Facade was easy.
Iterator was hard and took up a lot of rocks.

:)

-Original Message-
From: awc [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 6:02 PM
To: Struts Users Mailing List
Subject: Re: [OT] Ancient computing


TI-994A - which could generate tow tones same time.  very cool machine.

.anil

James Childers wrote:

 My first experience with programming was on a TI-994A. Had 4K RAM, I
think, and no storage. Yes, you heard me right: no storage. Not a floppy. I
would write a program and as soon as I turned the computer off it was gone
forever.


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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



RE: [OT] Ancient computing

2003-03-05 Thread du Plessis, Corneil C
Playing the Space shuttle games on the Commodore 64 was just awesome!

-Original Message-
From: Nelson, Laird [mailto:[EMAIL PROTECTED]
Sent: 05 March, 2003 18:10
To: 'Struts Users Mailing List'
Subject: RE: [OT] Ancient computing


 -Original Message-
 From: Tim Shadel [mailto:[EMAIL PROTECTED]
 First family computer I remember: 8080
 
 First that I used: Atari or Commodore64 with BASIC (hooked it 
 to the TV, 
 screen was blue with white letters [forboadings of M$??], 
 eventually had 
 a 5 1/4 disk drive)

First computer used: Commodore PET (was that what they were called?)
First computer used extensively: Radio Shack TRS-80
First computer that awed me: Commodore 64

Laird

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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



RE: Struts not parsing HTML correctly?

2003-03-04 Thread du Plessis, Corneil C
They will be ignored but the will still be visible in the HTML received by
the browser, it is therefore much better to use JSP comments %--  --%

-Original Message-
From: Jaye Bass [mailto:[EMAIL PROTECTED]
Sent: 04 March, 2003 13:24
To: 'Struts Users Mailing List'
Subject: RE: Struts not parsing HTML correctly?


Actually, you can use html comments to remove tags you just have to
embed them in the tag...thusly:

!--bean:write name=foobar property=nothing--

That will be ignored by the container, browser and everything else.


-Original Message-
From: Thomas CORNET [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2003 3:04 AM
To: Struts Users Mailing List
Subject: Re: Struts not parsing HTML correctly?

At 09:51 04/03/2003, you wrote:
There are actually 2 problems I'm experiencing:

Firstly, I have the following snippet in one of my forms
(user_add.jsp):

 !-- tr
 thContract User/th
 td
 html:checkbox property=contractUser/
 /td
 /tr --

If this is present, struts fails with the following error:

org.apache.jasper.JasperException: No getter method for property
contractUser
of bean org.apache.struts.taglib.html.BEAN

This happens whether that section is commented out or not, but does not
occur
if I remove the code entirely.

Struts doesn't care of HTML comments, all the JSP source is processed to

produce HTML content, and that's the navigator which is checking HTML 
comments to display contents or not.


The second problem is that I actually DO have a getter (and setter)
method 
for
contractUser in UserForm.java:

 /* Contract User */
 private boolean contractUser = false;
 public boolean getContractUser() {
 return this.contractUser;
 }
 public void setContractUser(boolean contractUser) {
 this.contractUser = contractUser;
 }


I have the following in my struts config:

struts-config
 form-beans
...
 form-bean name=userForm
type=com.somewhere.aproject.UserForm /
...
 /form-beans
 action-mappings
...
 action path=/screen_user_add
  forward=/user_add.jsp
 name=userForm
 validate=false/
...
 /action-mappings
/struts-config


I know the configuration is right since the rest of the fields work
fine.
Should I be using type String instead of boolean for contractUser?

I've read somewhere that all forms fields should be declared as String
in 
the Form classes... It is recommended to make the conversions in your 
actions classes.


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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



RE: [Q] BEAN SCOPE

2003-02-26 Thread du Plessis, Corneil C
I cannot see a problem with the way you have used 'name' in the action
mapping.
Another way of tracking the problem is to log/System.out.println access to
the Form validate by logging the session id as well. Then you can find out
if the session is somehow recreated.


-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 13:20
To: Struts Users Mailing List
Subject: Re: [Q] BEAN SCOPE


attribute as what ?
I tried putting attribute value as my formbean name, nothing is happening
when I checked in struts dtd for struts-config the explaination says

  attribute   Name of the request-scope or session-scope attribute that
 is used to access our ActionForm bean, if it is other
than
 the bean's specified name. Optional if name is
specified,
 else not valid.

it says optional if name is specified.

Regards
Chetan
- Original Message -
From: Brian Blignaut [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 4:31 PM
Subject: Re: [Q] BEAN SCOPE


 You must specify the attribute value for you action mapping

 David Bolsover wrote:

 Are you explicitly putting wigadminwizardform into session scope in
OMInterfaceInfoAction?
 
 db
 
 


[STUFF DELETED]

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



RE: security question #2

2003-02-26 Thread du Plessis, Corneil C
You can use container based security.
http://jakarta.apache.org/struts/userGuide/preface.html#jaas

-Original Message-
From: Jason Vinson [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 16:38
To: Struts Users Mailing List
Subject: security question #2


I am using the below code to check for the presence of session attributes
for security.  Are there any issues I may be overlooking by doing it this
way?

TIA,
Jason

//
// Default spgAction class
//

package spg.logic;

import com.clarify.cbo.*;
import org.apache.struts.action.*;
import org.apache.struts.actions.*;
import javax.servlet.http.*;

public class spgAction extends Action {

public ActionForward execute (ActionMapping mapping,
ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {

HttpSession session = request.getSession();
Session ClfySession = (Session)session.getAttribute(ClfySession);
com.clarify.cbo.FormContext ClfyFormContext_S =
(com.clarify.cbo.FormContext) session.getAttribute(ClfyFormContext_S);

if ( ClfySession == null || ClfyFormContext_S == null) {
return(mapping.findForward(login));
} else

return super.execute(mapping, form, request, response);
}
}


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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



RE: Action input

2003-02-26 Thread du Plessis, Corneil C
Create an action that has no input and validate is false.
In this action you call validate on the form and check the return value. 
Then create a forward using request.getRequestURI() if is fails otherwise go
to a forward you have defined that matches the request.getRequestURI() or
some you can easily derive from the request.getRequestURI().

-Original Message-
From: harish krishnaswamy [mailto:[EMAIL PROTECTED]
Sent: 27 February, 2003 03:30
To: [EMAIL PROTECTED]
Subject: Action input


Is there a way of providing the action input in a
dynamic fashion? In other words, if I had the same
action being submitted from multiple pages/forms, how
would I go back to the page/form I came from?

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



RE: strange display delay

2003-02-25 Thread du Plessis, Corneil C
Iterators are generally very efficient I have not used the nested tags but I
cannot image that they would be any different from logic:iterate.
How much work is done in searchTextContentBooksTreenode.jsp ?


-Original Message-
From: Nicolas Grehalle [mailto:[EMAIL PROTECTED]
Sent: 25 February, 2003 12:40
To: Struts Users Mailing List
Subject: Re: strange display delay


I'm not allowed to join my jsp code, but i can put some part of this
code :


body 


%
long td = System.currentTimeMillis();
System.out.println( heure dpart (vue) :  + (  td ) );
%


nested:form action=/TEXT/searchTextContentBooks.do method=POST

nested:nest property=expandableTree 

nested:iterate id=currentElement property =
childCollection
indexId=index 

!--  Node treatment . --


nested:equal property=showChildren value=true
   jsp:include
page=searchTextContentBooksTreenode.jsp /

/nested:iterate

%
System.out.println( Temps traitement vue :  + (
System.currentTimeMillis() - td ) + ms );
%

/body
/html






Le mar 25/02/2003  11:31, Chetan Sahasrabudhe a crit :

Nicolas :
can u push your jsp on net ?
I will like to have look at it
coz it itz acting fast on server side it should not have much of the
problem
on client side either
but letz see ... push u jsp as attachment (if itz not against ur company
policy)
Chetan
- Original Message -
From: Nicolas Grehalle [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 3:54 PM
Subject: Re: strange display delay


Le mar 25/02/2003  11:19, Chetan Sahasrabudhe a crit :

Few Questions first

1. Tree is in java script ?
2. Tree is a applet ?

if java script, do u hit the server again to get the nodes for the
tree
?
or do u populate it beforehand and all data goes in one shot to the
jsp.

while populating the tree have u written any recursive loops ?
If so, how is your exit logic ?


Tree is all populated in the action.
I use nested tags to display the tree in the jsp page.
My problem is that server takes anly 1.2 second to build the jsp page,
but the page is displayed in 30 secondes.
I don't understand what takes so many time.


- Original Message -
From: Nicolas Grehalle [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 3:40 PM
Subject: strange display delay


 I have a strange display problem with a web page.
 I try to display a Tree with a expand all option.
 When i expand all the tree, the program spends :
 - few milliseconds in my Action class (about 30 ms)
 - 1.2 second in my jsp page (i use the code System.out.println(
 System.currentTimeMillis() ); on top and bottom of my jsp page).
 - 30 seconds before page displaying (and after my last
 System.out.println) in the browser.

 What kind of treatment occures after the jsp executing ?

 How know what is the problem ?

 Thanks for your help

 N.G.





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



__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



RE: [Q] BEAN SCOPE

2003-02-25 Thread du Plessis, Corneil C
Did you put scope=session on both action mappings?

-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 08:31
To: Struts Users Mailing List
Subject: [Q] BEAN SCOPE


Hi,
I am trying to figure out what can be the problem in my struts-config
from yday,
will anyone tell me what can be the problem if, I am putting scope=session
in my action-mapping
and trying to access same formbean from two different actions.
 
Once the bean is created, it should be there for the session, and when I
move to next jsp and call another action it should use same bean rather than
creating a new one.
 
I know itz creating new bean, coz I have put default constructor in my
formbean and am printing System.out.printing() through constructor.
 
 
Regards
Chetan
___
|  
| The trouble with being punctual 
|  is that nobody's there to appreciate it.
| 
| 
|___


 


__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__


RE: [Q] BEAN SCOPE

2003-02-25 Thread du Plessis, Corneil C
It may be a silly question but are these actions in the same web
application?

-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 08:47
To: Struts Users Mailing List
Subject: Re: [Q] BEAN SCOPE


Yep, I have session scope in both action mappings
I have attached my struts-config along with this mail.

btw in my jsp i have form bean saying

JSP 1
html:form action=/ominterfaceinfo.do focus=sOMName onsubmit=return
validateWIGAdminWizardForm(this);

JSP 2
html:form action=/translator.do onsubmit=return
validateWIGAdminWizardForm(this);


now, when I call jsp1 the bean is getting created
but when I move to jsp 2 , again new bean is created.

And thatz the problem area.

Thanks
Chetan
- Original Message -
From: du Plessis, Corneil C [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:05 PM
Subject: RE: [Q] BEAN SCOPE


 Did you put scope=session on both action mappings?

 -Original Message-
 From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
 Sent: 26 February, 2003 08:31
 To: Struts Users Mailing List
 Subject: [Q] BEAN SCOPE


 Hi,
 I am trying to figure out what can be the problem in my struts-config
 from yday,
 will anyone tell me what can be the problem if, I am putting
scope=session
 in my action-mapping
 and trying to access same formbean from two different actions.

 Once the bean is created, it should be there for the session, and when I
 move to next jsp and call another action it should use same bean rather
than
 creating a new one.

 I know itz creating new bean, coz I have put default constructor in my
 formbean and am printing System.out.printing() through constructor.


 Regards
 Chetan
 ___
 |
 | The trouble with being punctual
 |  is that nobody's there to appreciate it.
 |
 |
 |___





 __

 Disclaimer and confidentiality note


 Everything in this e-mail and any attachments relating to the official
business of
 Standard Bank Group Limited is proprietary to the company. It is
confidential, legally
 privileged and protected by law. Standard Bank does not own and endorse
any other content.
 Views and opinions are those of the sender unless clearly stated as being
that of Standard Bank.

 The person addressed in the e-mail is the sole authorised recipient.
Please notify the sender
 immediately if it has unintentionally reached you and do not read,
disclose or use the content
 in any way.

 Standard Bank can not assure that the integrity of this communication has
been maintained nor
 that it is free of errors, virus, interception or interference.

 __


__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



RE: [Q] BEAN SCOPE

2003-02-25 Thread du Plessis, Corneil C
What does you struts-config look like? The form bean and action mapping
entries.

-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: 26 February, 2003 09:34
To: Struts Users Mailing List
Subject: Re: [Q] BEAN SCOPE


OH yeh ... they r all in same webapps folder and are having refferences in
same WEB-INF web.xml and struts-config.xml files.

Any changes required in my struts-config ?


btw, how is world cup going at ur end :)  r u planning to watch
India-England match :)

- Original Message -
From: du Plessis, Corneil C [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:50 PM
Subject: RE: [Q] BEAN SCOPE


 It may be a silly question but are these actions in the same web
 application?

 -Original Message-
 From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
 Sent: 26 February, 2003 08:47
 To: Struts Users Mailing List
 Subject: Re: [Q] BEAN SCOPE


 Yep, I have session scope in both action mappings
 I have attached my struts-config along with this mail.

 btw in my jsp i have form bean saying

 JSP 1
 html:form action=/ominterfaceinfo.do focus=sOMName onsubmit=return
 validateWIGAdminWizardForm(this);

 JSP 2
 html:form action=/translator.do onsubmit=return
 validateWIGAdminWizardForm(this);


 now, when I call jsp1 the bean is getting created
 but when I move to jsp 2 , again new bean is created.

 And thatz the problem area.

 Thanks
 Chetan
 - Original Message -
 From: du Plessis, Corneil C [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 12:05 PM
 Subject: RE: [Q] BEAN SCOPE


  Did you put scope=session on both action mappings?
 
  -Original Message-
  From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
  Sent: 26 February, 2003 08:31
  To: Struts Users Mailing List
  Subject: [Q] BEAN SCOPE
 
 
  Hi,
  I am trying to figure out what can be the problem in my
struts-config
  from yday,
  will anyone tell me what can be the problem if, I am putting
 scope=session
  in my action-mapping
  and trying to access same formbean from two different actions.
 
  Once the bean is created, it should be there for the session, and when I
  move to next jsp and call another action it should use same bean rather
 than
  creating a new one.
 
  I know itz creating new bean, coz I have put default constructor in my
  formbean and am printing System.out.printing() through constructor.
 
 
  Regards
  Chetan
  ___
  |
  | The trouble with being punctual
  |  is that nobody's there to appreciate it.
  |
  |
  |___
 
 
 
 
 
  __
 
  Disclaimer and confidentiality note
 
 
  Everything in this e-mail and any attachments relating to the official
 business of
  Standard Bank Group Limited is proprietary to the company. It is
 confidential, legally
  privileged and protected by law. Standard Bank does not own and endorse
 any other content.
  Views and opinions are those of the sender unless clearly stated as
being
 that of Standard Bank.
 
  The person addressed in the e-mail is the sole authorised recipient.
 Please notify the sender
  immediately if it has unintentionally reached you and do not read,
 disclose or use the content
  in any way.
 
  Standard Bank can not assure that the integrity of this communication
has
 been maintained nor
  that it is free of errors, virus, interception or interference.
 
  __
 

 __

 Disclaimer and confidentiality note


 Everything in this e-mail and any attachments relating to the official
business of
 Standard Bank Group Limited is proprietary to the company. It is
confidential, legally
 privileged and protected by law. Standard Bank does not own and endorse
any other content.
 Views and opinions are those of the sender unless clearly stated as being
that of Standard Bank.

 The person addressed in the e-mail is the sole authorised recipient.
Please notify the sender
 immediately if it has unintentionally reached you and do not read,
disclose or use the content
 in any way.

 Standard Bank can not assure that the integrity of this communication has
been maintained nor
 that it is free of errors, virus, interception or interference.

 __

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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary

RE: Pointing to resources within the struts app client side.

2003-02-19 Thread du Plessis, Corneil C
The browser should not be able to load any resource from /WEB-INF/ the
servlet engine will protect this directory.

-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]]
Sent: 18 February, 2003 16:18
To: Struts Users Mailing List
Subject: Pointing to resources within the struts app client side.


Hi all,

I'm trying to place an image with my web page that is stored as a resource
within my struts web-app.  I'm using xslt to create the output html, but
can't work out how to point at the image correctly.  I had put
src=/WEB-INF/classes/resources/graphics/icon.bmp, but this will not
display iether the image or the alt description.  Anyone have a clue how I
can do this?

Cheers

Simon

Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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




RE: Modifying action input at runtime

2003-02-17 Thread du Plessis, Corneil C
You will have to parameterize the action of your html:form then have
different actions in struts-config for each of those. A failing validation
will return to the appropriate input page.

-Original Message-
From: Colin Hawkett [mailto:[EMAIL PROTECTED]]
Sent: 17 February, 2003 16:09
To: 'Struts Users Mailing List' ([EMAIL PROTECTED])
Subject: Modifying action input at runtime


Hi all,
 
I am looking to use an action to handle the submission of multiple
similar forms.  Normally I would use separate actions, but in this case
the code is identical for the different forms.  Everythign seesm to be
working fine except for the specification fo the input parameter on the
action.  Depending on where the request cam eform, I want to have the
validate method return to different places.  I thought the easiest way
to do this would be to use mapping.setInput() to specify at runtime
where I want it to return to, but when I try to do this I am getting
 
Servlet Error: Configuration is frozen: java.lang.IllegalStateException:
Configuration is frozen
 
You may be wondering how the same Form class could validate a bunch of
different html forms effectively.  I actually have different Form
classes for each of the html forms, but in order to trick the
struts-config into allowing me to specify them all for the single
action, I specify a common Form base class in struts-config.  Now I want
to dynamically set the input parameter in the validate() method of the
BaseForm  subclass - but I can't see an obvious way to do it if the
configuration is frozen.  Is there any way around this problem?
 
Colin Hawkett
Technical Architect
 
Morpheus - eBusiness Solutions
Morpheus Limited, Gibbs House, Kennel Ride, Ascot, Berkshire, SL5 7NT
Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
Tel: 01344 891621; Fax: 01344 891620
Web: http://www.morpheus.co.uk http://www.morpheus.co.uk/ 
 
*Winner of the IBM Solution Excellence Award for e-Commerce 2001*
*Solution Provider of the Month - Channel 2002 Magazine* *Investor in
People*
 






This email and any files transmitted with it contain information that may be
confidential or privileged, and are intended solely for the use of the
individual or entity to whom they are addressed. If you are not the intended
recipient any disclosure, copying, distribution or use of the information is
prohibited. If you have received this email in error, please notify me by
return email immediately. Any opinions expressed are those of the author,
not of Morpheus Limited.


This message has been checked for all known viruses by UUNET delivered 
through the MessageLabs Virus Control Centre.



__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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




RE: Where to add Access control

2003-02-17 Thread du Plessis, Corneil C
Look at how Struts support web server roles. 
http://jakarta.apache.org/struts/userGuide/preface.html#jaas

-Original Message-
From: Rademacher Tobias [mailto:[EMAIL PROTECTED]]
Sent: 17 February, 2003 15:37
To: '[EMAIL PROTECTED]'
Subject: Where to add Access control


Hi Folks,

I want to add some access control in order to protected a site form a group
of users.
My application uses JAAS so I guess I have to write a PriviligedAction.
Where do I have to add the invokation of this
Action? Where is the best place in RequestProcessor in order to add such
support?

Thx and Bye
Toby

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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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




RE: [OT] Modeling tools

2003-02-11 Thread du Plessis, Corneil C
They are just as much a part of the Commonwealth as Canada or South Africa
or Nigeria or even Zimbabwe.

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: 11 February, 2003 15:25
To: Struts Users Mailing List
Subject: RE: [OT] Modeling tools


Aussies send it all up here.  You guys still pissed about 1783?  1815?
1840?  When did you get your own country, anyway?

Well, technically it isn't their's. They are members of the British
Commonwealth, so all their base are belong to the Queen.

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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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




RE: [OT] Modeling tools

2003-02-11 Thread du Plessis, Corneil C
Tell that to French speaking Canadians

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: 11 February, 2003 15:43
To: Struts Users Mailing List
Subject: RE: [OT] Modeling tools


Exactly, so they all belong to Britain. The British Empire never really went
away, we just gave it a nice, new, politically correct label.

-Original Message-
From: du Plessis, Corneil C [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 7:40 AM
To: Struts Users Mailing List
Subject: RE: [OT] Modeling tools


They are just as much a part of the Commonwealth as Canada or 
South Africa
or Nigeria or even Zimbabwe.

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: 11 February, 2003 15:25
To: Struts Users Mailing List
Subject: RE: [OT] Modeling tools


Aussies send it all up here.  You guys still pissed about 1783?  1815?
1840?  When did you get your own country, anyway?

Well, technically it isn't their's. They are members of the British
Commonwealth, so all their base are belong to the Queen.

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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the 
official business of 
Standard Bank Group Limited is proprietary to the company. It 
is confidential, legally 
privileged and protected by law. Standard Bank does not own 
and endorse any other content. 
Views and opinions are those of the sender unless clearly 
stated as being that of Standard Bank. 

The person addressed in the e-mail is the sole authorised 
recipient. Please notify the sender 
immediately if it has unintentionally reached you and do not 
read, disclose or use the content
in any way. 

Standard Bank can not assure that the integrity of this 
communication has been maintained nor 
that it is free of errors, virus, interception or interference.

__

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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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




RE: ? on logic:empty - any hints

2003-01-30 Thread du Plessis, Corneil C
logic:present will work for all types of objects.
logic:empty works on String 

-Original Message-
From: Jörg Maurer [mailto:[EMAIL PROTECTED]]
Sent: 30 January, 2003 10:53
To: Struts Users Mailing List
Subject: RE: ? on logic:empty - any hints


THANX SO MUCH? PHUHH? I am really getting a little mad for
getting my project with struts done(more my fault than struts of course
;-) )

Shortly - So what is difference/usage of logic:empty to present(despite
it doesn´t work as described in api).

GREE Jörg

-Original Message-
From: Míguel Ángel Mulero Martínez
[mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 09:44
To: Struts Users Mailing List
Subject: RE: ? on logic:empty - any hints


Use the logic:present

Regards,
Miguel

-Mensaje original-
De: Jörg Maurer [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 30 de enero de 2003 9:32
Para: Struts Users Mailing List (E-mail)
Asunto: ? on logic:empty - any hints

Hi!

I want to test in jsp if user does need to log in, e.g. if user has
already logged in and by back button is calling login.jsp for second
time.

My login.jsp has code :

logic:empty name=%= IAppConstants.USER_CONTAINER_KEY%
scope=session

html:form action=/login

/html:form

/logic:empty

logic:notEmpty name=%= IAppConstants.USER_CONTAINER_KEY%
scope=session
logic:notEqual name=%= IAppConstants.USER_CONTAINER_KEY%
property=userViewR value=false scope=session
You are already logged in!
/logic:notEqual
/logic:notEmpty

So i test for that bean named UserContainer in session scope, where it
resides when login completes.

Unfortunatly, if user not logged - it throws
[ServletException in:/login.jsp] Cannot find bean UserContainer in
scope session'

Reading api docu, I thought logic:empty would test bean for
null(existing or not existing)?

Can any of you help me ?

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

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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




RE: Struts officially supported at Ford

2003-01-24 Thread du Plessis, Corneil C
We have used Struts to build an Internet Banking application and have shaved
a lot off the budget IBM Global Services charged for developing a previous
web application.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 23 January, 2003 22:41
To: [EMAIL PROTECTED]
Subject: RE: Struts officially supported at Ford


Since we're on the subject  What kind of applications are being built
using Struts?  We're one of those big companies where many folks would
rather roll our own.  One of the defenses is that Struts was designed for
web sites not servicing apps.  Now I know that statement holds no merit,
but it would be nice to have some validations.

Greg

 -Original Message-
 From: Sterin, Ilya [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 23, 2003 2:35 PM
 To: 'Hajratwala, Nayan (N.) '; ''Struts Users Mailing List' '
 Subject: RE: Struts officially supported at Ford
 
 
 No, actually apache and apache tomcat will be deployed as 
 well.  That's a
 part of the whole Linux deployment strategy as well.  We are 
 now working on
 the global load to deploy both.
 
 Ilya
 
 -Original Message-
 From: Hajratwala, Nayan (N.)
 To: 'Struts Users Mailing List'
 Sent: 1/23/03 12:01 PM
 Subject: RE: Struts officially supported at Ford
 
 Yes, my understanding is that Solaris is out the door and 
 Linux/Intel is
 in for new stuff.  I believe that WebSphere 5.0 will only be 
 deployed on
 Linux here, so teams that want to upgrade will have to migrate from
 Solaris -- Linux
 
 ---
 - Nayan Hajratwala
 - Chikli Consulting LLC
 - http://www.chikli.com
 
 
 -Original Message-
 From: Sterin, Ilya [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, January 23, 2003 1:32 PM
 To: 'Mark Lepkowski '; 'Struts Users Mailing List '
 Subject: RE: Struts officially supported at Ford
 
 
 Hmmm, great.  I'm a consultant for Ford, they taken a clear 
 Open Source
 initiative last year.  They are also implementing Linux and other Open
 Source technologies.
 
 Ilya
 
 -Original Message-
 From: Mark Lepkowski
 To: Struts Users Mailing List
 Sent: 1/23/03 11:16 AM
 Subject: Re: Struts officially supported at Ford
 
 I didn't read anything in the quote the mentioned v1.1b2.  It 
 sounds to
 me like maybe IBM has tailored whatever beta version they started with
 to the point where they want their developers to use that as their
 common base.  
 
 - Original Message - 
 From: Karr, David [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, January 23, 2003 1:08 PM
 Subject: RE: Struts officially supported at Ford
 
 
  It's certainly good that they're using 1.1, but somewhat unfortunate
  that they stopped at b2.  
 (snip)
  
  -Original Message-
  From: Hajratwala, Nayan (N.) [mailto:[EMAIL PROTECTED]] 
  Sent: Thursday, January 23, 2003 9:59 AM
  To: '[EMAIL PROTECTED]'
  Subject: Struts officially supported at Ford
  
 
 (snip)
 
  quote
  The Ford Servlet Framework is a packaged version of Struts 1.1
 provided
  by and supported by IBM. This download includes Struts 
 provided by IBM
  with some custom integration of the other Frameworks and services
  provided by the Java COE. The Java COE will only be supporting the
  versions of Struts downloaded from here. Application teams 
 should NOT
 be
  downloading Struts from the Jakarta website but are 
 encouraged to use
  the website for learning and documentation.
  /quote
  
 (snip)
 
 
 --
 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]

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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




RE: Nobody answers....

2003-01-22 Thread du Plessis, Corneil C
You discription of what you want to achieve is unclear.
What do you mean by displaying B.jsp twice?
Do you want to the contents of B.jsp twice then C.jsp?

-Original Message-
From: Nathalie Foures [mailto:[EMAIL PROTECTED]]
Sent: 22 January, 2003 11:22
To: [EMAIL PROTECTED]
Subject: Nobody answers


Hi all!

I have already sent this message but nobody answered...So I send it
again, because I do need your advices!

I use Struts 1.1b2. I want to display several times, the same jsp page.
I have three views : A.jsp, B.jsp, C.jsp.

If the user select one item on A.jsp, B.jsp has to be displayed once,
and then C.jsp.
If the user select two items on A.jsp, B.jsp has to be displayed twice,
and then C.jsp.
...etc.

In struts-config.xml :
...
action
 path=/A
 type=AAction
 name=AForm
 scope=request
 forward name=B path=/B.jsp/
/action

action
 path=/B
 type=BAction
 name=BForm
 scope=request
 foward name=B  path=/B.jsp/
 forward name=C path=/C.jsp/
/action
...

The bean BForm has a reset method, so that ActionServlet could put it in
the initial state back, when recycling.

All works fine, when I only select one item. One B.jsp page is
displayed, and then the C.jsp page. But when I select more than one
item, the first B.jsp is displayed, and not the following ones. Instead,
I get an alert box that tells me that the document is empty and that I
have to contact my administrator system. I have no Tomcat error messages
: the logs file only says that all stops when the BAction forward to
B.jsp.

Does the problem come from bean form recycling or populating, or
something else?

Thank you very much for your answers!

Nathalie

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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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




RE: Struts application

2003-01-17 Thread du Plessis, Corneil C
Sounds like the scope on the form you submitted first may be request scope
instead of session scope.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 17 January, 2003 01:18
To: Struts Users Mailing List
Subject: Struts application


I applied struts in the simplest form and received the below error message.
This application resides on a Weblogic 6.0 server.

Scenario:
It involves two JSP's, two form classes and an action class.  The Index.jsp
is loaded first where you key in the username and click the ok submit
button. It takes you to the other jsp, accept.jsp, which displays the user
name.

In the backend, when you click the button on the index.jsp, the value of
the username is taken to the form bean and in the action class the data
from the form bean of the index.jsp is retrieved and stored in the form
bean of the the accept.jsp and the jsp is loaded.  It automatically gets
the data from the form bean and displays  it on  the accept.jsp.


Problem:
The problem I'm having is once I click on the ok button from the index.jsp
I get the following error message displayed from weblogic:




Jan 16, 2003 3:46:10 PM EST Error HTTP
[WebAppServletContext(6821348,wrox-struts,/wrox-struts)] Servlet failed
with Exception java.lang.NullPointerException





It's set up in the below structure:






 (Embedded image moved to file: pic04734.gif)   







Can anyone help??

Thanks.

CONFIDENTIAL MATERIAL.  This electronic message contains information from
Princeton eCom Corporation, is confidential and may be privileged.  It is
intended for the use of the addressee only.  If you are not the addressee
indicated in this message (or responsible for delivery of the message to
such person), any disclosure, copy, distribution or use of the contents of
this message is prohibited.  Please destroy this message and notify us
immediately if this is the case by sending a reply to this message or by
sending an e-mail to [EMAIL PROTECTED] and by destroying all
copies of this message and any attachments. Thank you.  For more
information about Princeton eCom Corporation, please visit us at
http://www.princetonecom.com


__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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




RE: Servlet action is currently unavailable.

2003-01-14 Thread du Plessis, Corneil C
Seems your servlet or web application may not be running.

-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]]
Sent: 14 January, 2003 10:37
To: Struts Users Mailing List
Subject: Servlet action is currently unavailable.


Hi all,

I've just written a small struts package, and tried to run it but I'm
getting an HTTP Status 503 -
Servlet action is currently unavailable error.  I have checked the setup of
both the struts-config and my .web and they both look to be correct (Checked
against a know working one).

Has anyone seen this sort of thing before and if so are tere any other
possible causes?

Cheers

Simon

Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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




RE: popup window

2003-01-02 Thread du Plessis, Corneil C
If you want to open a new window when submitting a form you will have to set
the target of the html:form or form using _blank will launch a new
window.

-Original Message-
From: Amit Badheka [mailto:[EMAIL PROTECTED]]
Sent: 02 January, 2003 11:26
To: Struts Users Mailing List
Subject: popup window


Hi All,

Is there any way to open new window from the action class.

I have a requirement like when one from is submitted I have to pass values
of that from to another jsp that will open in new window.

please help.

AB.

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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




RE: Question About Modules

2002-11-21 Thread du Plessis, Corneil C
You generate the PDF using FOP and attach to the request or session the
forward to a JSP or Servlet that will serve the contect with the correct
type etc.

-Original Message-
From: Vikram Goyal [mailto:[EMAIL PROTECTED]]
Sent: 21 November, 2002 14:01
To: Struts Users Mailing List
Subject: Re: Question About Modules


We used FOP to generate dynamic pdf through the action. The action itself
returned null.

Vikram

- Original Message -
From: Madel,Kurt [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, November 21, 2002 5:46 AM
Subject: RE: Question About Modules


 Anyone using modules and going through an action to generate dynamic
 database driven pdf's???  Anyone .

 Kurt Madel
 Programmer, CSMi
 (703) 823-4300 ext. 170


 -Original Message-
 From: Madel,Kurt [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, November 20, 2002 11:27 AM
 To: 'Struts Users Mailing List'
 Subject: Question About Modules

 My understanding is that you have to use an extension mapping in order to
 use the Module functionality, i.e. '*.do'

 What are people doing if they need to serve say a '.pdf' from an action?
 That is, my pdf is dynamic and requires the use of the same DAO's that I
use
 for my jsp pages.  Sure you can set the mime type, but Internet Explorer
 ignores these most of the time and counts on the extension.  If you map
 *.pdf and *.do then you won't be able to server static pdf's???

 Kurt Madel
 Programmer, CSMi
 (703) 823-4300 ext. 170




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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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




RE: Question about object in struts form

2002-11-17 Thread du Plessis, Corneil C
You input field will be something like

html:text name=myForm property=address.line1/

Or if you only want to display
bean:write name=myForm property=address.line1/

This assumes you have a form called myForm with your address object called
getAddress() and your address object has getLine1().

-Original Message-
From: Wendy Krehbiel [mailto:[EMAIL PROTECTED]]
Sent: 18 November, 2002 08:27
To: [EMAIL PROTECTED]
Subject: Question about object in struts form


Hello,
I'm new to struts and have tried looking through the
archives here as well as around the web and am unable
to find the answer to my question.  I'm guessing that
it's not possible to do what I want, but figured I'd
ask before giving up...

So, I have a class User that contains a String for
the name, and an Address object for the address (the
Address object contains more Strings, etc for city,
state, zip, address1, etc).  I have defined all the
get/set functions.

I have a form that I want to use to edit the user
info.  No problem to edit the name.  Problem is that
I also want to edit the address fields.  

So, what I was hoping to be able to do was declare
my dyna-form in struts-config to have a form-property
with name=user and type=org.blah.blah.dao.User. 
Then in the jsp code I would refer to user.name,
user.address.city, etc.  I got this to work fine for
creating and populating the edit page.  The problem
comes about when I try to save the changes.  No
matter what I try I get all kinds of errors in the
BeanUtils populate.  

One that I can't seem to get around is that it seems
to want me to have a hidden type for my user object,
and when I do that it complains that it can't conver
from type String to type User.  

The other weird thing is that in the logs it gives
me the following: 
[Thread-4] DEBUG org.apache.struts.util.RequestUtils

-  --
DynaActionForm[dynaClass=userForm,user=org.taprootfoundation.trweb.dao.User@
181497d]
[Thread-4] DEBUG
org.apache.struts.action.RequestProcessor  - Storing
ActionForm bean instance in scope 'session' under
attribute key 'userForm'
[Thread-4] DEBUG
org.apache.struts.action.RequestProcessor  -
Populating bean properties from this request 
[Thread-4] DEBUG
org.apache.commons.beanutils.BeanUtils  -
BeanUtils.populate(DynaActionForm[dynaClass=userForm,user=NULL]

I don't understand why it has a value for user within
the userForm, and then seems to lose it.  Before I
made my scope session (was request before), it had
NULL throughout the logs.

Any suggestions, or examples, or statements that you
can't do what I'm trying to do are appreciated.

Thanks,
Wendy
[EMAIL PROTECTED]


__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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




RE: Mab-backed Iteration

2002-11-11 Thread du Plessis, Corneil C
I you want to iterate a Map you will have to expose a getMyMap or whatever
the name of your proerty is.
The documentation for logic:iterate is prettry straight-forward.

-Original Message-
From: Mark Ayad [mailto:mark;javamark.com]
Sent: 11 November, 2002 13:21
To: Struts Users Mailing List
Subject: Mab-backed Iteration



I would like to iterate the elements in a Map-backed action form in my JSP.
How do I get a handle on the Map used in the page a.k.a what do I use for
the name=?


logic:iterate id=element name=?
Next element is bean:write name=element property=value/
/logic:iterate 

The Map Backed form bean is:

public MapForm extends ActionForm {

private final Map values = new HashMap();

public void setValue(String key, Object value) {
values.put(key, value);
}

public Object getValue(String key) {
return values.get(key);
}
}


__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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




RE: can struts work with sessions disabled?

2002-11-07 Thread du Plessis, Corneil C
You will have to allow struts to create the session and store locale
information.
Use a Cookie to manage or identify state information that your application
relies on.

-Original Message-
From: Brad Harding [mailto:bradharding;earthlink.net]
Sent: 08 November, 2002 02:46
To: Struts Users Mailing List
Subject: Re: can struts work with sessions disabled?


Thanks Craig for your response. The problems I'm having do indeed seem to 
be related to the locale, but it seems like a lot of struts tags might rely 
on the locale being in the session.

For example, the bean:message tag seems to rely on a locale being in the 
session to work. I can probably live without the bean:message tag, but then 
I discovered the html:errors tag also seems to rely on a locale being in 
the session. Both of these problems trace back to the 
org.apache.struts.utils.RequestUtils class, which appears to use the 
session. Part of the stack trace is below.

Do you think I would need to subclass RequestUtils and override the method 
that uses the session, or is there some easier way to just get tags like 
bean:message and html:errors to work without sessions enabled?

Thanks,

Brad

stack trace:

Error 500
An error has occured while processing request: 
http://128.48.199.46/wip/checkreturnlogin.do (/wip/returnlogin.jsp)
Message: Server caught unhandled exception from servlet [action]: Server 
caught unhandled exception from servlet [jsp11]: can#39;t access 
SESSION_SCOPE without an HttpSession

Target Servlet: action
StackTrace:


Root Error-1: can't access SESSION_SCOPE without an HttpSession
java.lang.IllegalArgumentException: can't access SESSION_SCOPE without an 
HttpSession
  at 
org.apache.jasper.runtime.PageContextImpl.getAttribute(PageContextImpl.java:
186) 

  at org.apache.struts.util.RequestUtils.present(RequestUtils.java:812)
  at 
org.apache.struts.taglib.html.ErrorsTag.doStartTag(ErrorsTag.java:229)
  at _returnlogin_jsp_29._jspService(_returnlogin_jsp_29.java:188)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:127)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:390) 

  at 
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:712)
  at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:879)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)




At 09:20 AM 11/4/2002 -0800, you wrote:


On Mon, 4 Nov 2002, Brad Harding wrote:

  Date: Mon, 04 Nov 2002 09:17:10 -0800
  From: Brad Harding [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: can struts work with sessions disabled?
 
  Can a struts app work with sessions disabled on the application server?

As long as your app doesn't use sessions, this should be ok.

  If
  so, what do I need to change? Finally, why does struts use sessions
(it's
  not obvious to me what struts does that is beyond the scope of a
request)?
 

The only Struts feature that requires sessions is the saving of the user's
preferred locale.  Of course, you're allowed to use the session for form
beans as well.

  Background:
 
  I'm building a struts application that cannot depend on the application
  server session (the app will run on a cluster of app servers that don't
  share sessions). I've coded my app to only use the request context for
  beans etc., and to not use the session context at all. However, when I
  disable sessions on the application server, my app stops working (can't
  even get to the first login jsp, let alone the struts main servlet).
 

Without details (such as error messages from your log files), that's
pretty hard to debug.

  Thanks,
 
  Brad Harding
 

Craig


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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, 

RE: Using Frames in Struts

2002-10-31 Thread du Plessis, Corneil C
Sounds like your hastable is in your request and not the session

Corneil du Plessis
Technical Specialist
Internet Development
Retail Channels
Standard Bank
Direct +27 (11) 636-2210
Mobile +27 (83) 442-9221
ICQ# 66747137



-Original Message-
From: Alok Garg [mailto:alok;direct2s.com]
Sent: 01 November, 2002 06:17
To: Struts Users Mailing List
Subject: Using Frames in Struts


Has anybody have used frames in Struts 1.1b2 with weblogic61 then please
guide me with a problem that I am facing.
I have a main Frame with 2 frames in it. From one frame1 I am calling an
action class from where I am setting a hashtable, and I am forwarding it to
the main frame.
I want to access this hashtable in my second frame which I am unable to do
it. I can get the hashtable in the first frame but not in the second frame.

Now, when I press refresh I get the hashtable in the secondframe.
Please help me with this, and if u can provide me with an example it would
be of greate help.

Alok

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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




RE: Am I the only one using java.util.Date?

2002-10-16 Thread du Plessis, Corneil C

When you input or output dates you should java.text.SimpleDateFormat format
and parse functions to convert to and from a known format string like
-MM-dd that you can maintain in a ResourceBundle.

Tell the user which format you expect by rendering todays date with the
format string.

Corneil du Plessis
Technical Specialist
Internet Development
Retail Channels
Standard Bank
Direct +27 (11) 636-2210
Mobile +27 (83) 442-9221
ICQ# 66747137



-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]]
Sent: 16 October, 2002 18:22
To: Struts List
Subject: Am I the only one using java.util.Date?


My business layer bean has a field as java.util.Date (example:
birthDate). My form bean uses the String for this date (in this
example.. String birthDate). The problem is I can't seem to use
BeanUtils to copy the properties since it appears BeanUtils will only
convert a java.sql.Date by default (get
java.lang.IllegalArgumentException: argument type mismatch when using
java.util.Date) . I tried dealing with registering a custom Coverter I
wrote and registering it with ConvertUtils and below is a copy of the
message I posted concerning this problem.

I'm posting this question, though, because I'm curious how others have
dealt with this situation? Maybe using the BeanUtils or PropertyUtils
is not that common of a practice or most use a java.sql.Date as
opposed to java.util.Date? Having dates in form fields is common so
I'm curious how others transfer their form field dates to their
business model (as java.util.Date?).

Thanks for any info.

Below was Converter question I posted last night, in case anyone is
interested:

I'm still having a bit of trouble trying to use BeanUtils to copy
java.util.Date properties. It appears that it will work fine by
default with java.sql.Date but isn't set up by default for
java.util.Date (which I'm using for Dates in my business bean). I
build a class implements Converter interface and used the ConvertUtils
to register java.util.Date with this Converter. It works great
converting the String form properties to Dates as expected. The
question I have is how do I build a converter (or modify the existing
one) that will convert the Date properties to String properties when I
want to go the other way with the copyProperties (populate my DynaForm
from a business bean)? I tried modifying the covert method of the
Converter I created so that if the arg was a String property it would
covert and return a Date but the problem is this Converter never got
used when going the other direction (Date to String). Any ideas what
I'm doing wrong or what I can do to solve this problem?


-- 

Rick
mailto:[EMAIL PROTECTED]


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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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




RE: Struts and state information

2002-10-14 Thread du Plessis, Corneil C

Web server can use three mechanisms to store the sessionid.

1. The SSL session id
2. The session id stored in a cooke
3. URL rewriting like you describe

If you configure your web server to have persistent sessions it should be
able to share the session in a load balancing scenario.
If you use cookies to store all your state information you could ignore
HttpSessions all together. 
There may also be an elegant way to use a filter to save and restore session
state from the cookie.

The performance hit of persistent sessions is something to keep in mind.


Corneil du Plessis
Technical Specialist
Internet Development
Retail Channels
Standard Bank
Direct +27 (11) 636-2210
Mobile +27 (83) 442-9221
ICQ# 66747137



-Original Message-
From: Brett Elliott [mailto:[EMAIL PROTECTED]]
Sent: 14 October, 2002 07:07
To: [EMAIL PROTECTED]
Subject: Struts and state information


I would like to keep session state soley in cookies so I can use round robin
HTTP load balancing versus sticky load balancing(sticky load balancing as in
all requests are directed at a specific web server for a given user.

I read Professional JSP, perused this mailing list and looked on the web and
nothing really elaborates on where the state is stored by default.  I see
how the html:link /html:link directive is translated into a
href=http://...;jsessionid=X/a but where does it get X and where does it
store the session information related to X?  Does it rely on the jsession ID
being passed around in URLs then keep the associated session information
cached on the server?  So if you have multiple servers you will need to use
sticky load balancing to make sure users only use one webserver?

What options are there in case I want to keep all session state in cookies?
That is, ideally, I would generate an encrypted cookie w/ CRC containing the
logged in username and minimal information about the user.  And I would like
to do this within the confines of Struts.

Thanks for any help and I aplogize if this is a redundant question.


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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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




RE: Accessing the Commons Logging Interface

2002-09-25 Thread du Plessis, Corneil C

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

In your class:
static private Log log = LogFactory.getLog(MyClass.class);



Corneil du Plessis
Technical Specialist
Internet Development
Retail Channels
Standard Bank
Direct +27 (11) 636-2210
Mobile +27 (83) 442-9221
ICQ# 66747137



-Original Message-
From: Tal Rotbart [mailto:[EMAIL PROTECTED]]
Sent: 25 September, 2002 09:47
To: Struts Users Mailing List
Subject: Accessing the Commons Logging Interface


Hi all,

In Struts 1.1b2, how do I access the Commons Logging Interface from withing
a Struts Plug-In?
1. The chapter in the User Guide is still [TO DO]
2. It seems that the log static member field from within ActionServlet
is not public.
3. I have not found any getLog member function anywhere... Seems like a
missing feature...

Any ideas?

Thanks!
Tal Rotbart


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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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