Validators

2003-12-05 Thread McRobb, John
Has anyone used validators with anything other than JavaBeans.
I am lookig to use it to validate paramaters on fn calls to remote systems.

Ta

John




Tesco Personal Finance Limited is a joint venture between The Royal Bank of Scotland 
plc and Tesco PLC. Tesco Personal Finance Limited is registered in Scotland No 173199. 
Registered Office: 42 St Andrew Square, Edinburgh EH2 2YE. 

This e-mail message is confidential and for use by the addressee only. If you are not 
the addressee, please return the message to the sender by replying to it and then 
delete the message from your computer. 

Internet e-mails are not necessarily secure. Tesco Personal Finance Limited does not 
accept responsibility for changes made to this message after it was sent.


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



Chain of Command

2003-08-08 Thread McRobb, John
Are there any good design guidelines for implementing a chain of
Command/Workflow like approach to actions.

ie a specific action can drive a number of different flow of pages.

a->b->c->d->a
a->c->a
a->b->d->a

Thanks

John

> John McRobb
> Corporate Channel Delivery
> Royal Bank of Scotland
> 4th Floor
113 Dundas Street
Edinburgh
> *:  mailto:[EMAIL PROTECTED]
> *Internal:  24643
> *External:   (0131) 523 4643
> * Mobile:  0776 3217501
> 
> 


Tesco Personal Finance Limited is a joint venture between The Royal Bank of Scotland 
plc and Tesco PLC. Tesco Personal Finance Limited is registered in Scotland No 173199. 
Registered Office: 42 St Andrew Square, Edinburgh EH2 2YE. 

This e-mail message is confidential and for use by the addressee only. If you are not 
the addressee, please return the message to the sender by replying to it and then 
delete the message from your computer. 

Internet e-mails are not necessarily secure. Tesco Personal Finance Limited does not 
accept responsibility for changes made to this message after it was sent.


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



struts layout what do people think

2003-07-16 Thread McRobb, John
I am looking for positive/negative feedback on this as we are considering
using it.

Thanks in advance

John




Tesco Personal Finance Limited is a joint venture between The Royal Bank of Scotland 
plc and Tesco PLC. Tesco Personal Finance Limited is registered in Scotland No 173199. 
Registered Office: 42 St Andrew Square, Edinburgh EH2 2YE. 

This e-mail message is confidential and for use by the addressee only. If you are not 
the addressee, please return the message to the sender by replying to it and then 
delete the message from your computer. 

Internet e-mails are not necessarily secure. Tesco Personal Finance Limited does not 
accept responsibility for changes made to this message after it was sent.


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



struts-layout

2003-07-03 Thread McRobb, John
I heard that this was in struts 1.1rc1, what happened to it that it didn't
make 1.1 and what are the plans.

Ta

John



Tesco Personal Finance Limited is a joint venture between The Royal Bank of Scotland 
plc and Tesco PLC. Tesco Personal Finance Limited is registered in Scotland No 173199. 
Registered Office: 42 St Andrew Square, Edinburgh EH2 2YE. 

This e-mail message is confidential and for use by the addressee only. If you are not 
the addressee, please return the message to the sender by replying to it and then 
delete the message from your computer. 

Internet e-mails are not necessarily secure. Tesco Personal Finance Limited does not 
accept responsibility for changes made to this message after it was sent.


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



Branding/Mutli Channel

2003-06-18 Thread McRobb, John
Has anyone used Struts for Branding ie using Tiles and just deploying with a
different template and perhaps a different file for filed tags ala
internationalisation.
Secondly has anyone used it for supporting multi channel and if so what is
the preferred route ie using XSLT or using SUN's mutli controller pattern
with a sepearte controller per channel.

Thanks

John






Tesco Personal Finance Limited is a joint venture between The Royal Bank of Scotland 
plc and Tesco PLC. Tesco Personal Finance Limited is registered in Scotland No 173199. 
Registered Office: 42 St Andrew Square, Edinburgh EH2 2YE. 

This e-mail message is confidential and for use by the addressee only. If you are not 
the addressee, please return the message to the sender by replying to it and then 
delete the message from your computer. 

Internet e-mails are not necessarily secure. Tesco Personal Finance Limited does not 
accept responsibility for changes made to this message after it was sent.


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



FW: Unit Testing

2003-04-02 Thread McRobb, John
> There are many test tools to stuff:
> 
> struts Test
> Cactus
> HttpUnit
> 
> but none of them seem to do what I want.
> 
> I want to set up a test to load the request with data to test that my page
> renders ok, just now I am using a scriptlet in the jsp.
> Is there any way I can move this out to a class which launches the JSp in
> a bowser with the data on the request.
> 
> Ta
> 
> John
> 
> 


Tesco Personal Finance Limited is a joint venture between The Royal Bank of Scotland 
plc and Tesco PLC. Tesco Personal Finance Limited is registered in Scotland No 173199. 
Registered Office: 42 St Andrew Square, Edinburgh EH2 2YE. 

This e-mail message is confidential and for use by the addressee only. If you are not 
the addressee, please return the message to the sender by replying to it and then 
delete the message from your computer. 

Internet e-mails are not necessarily secure. Tesco Personal Finance Limited does not 
accept responsibility for changes made to this message after it was sent.


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



Example JUnit Tests for Validators

2003-03-19 Thread McRobb, John
Does anyone know where I can find an example oa a Junit Test for the
validators.

Ta

John



Tesco Personal Finance Limited is a joint venture between The Royal Bank of Scotland 
plc and Tesco PLC. Tesco Personal Finance Limited is registered in Scotland No 173199. 
Registered Office: 42 St Andrew Square, Edinburgh EH2 2YE. 

This e-mail message is confidential and for use by the addressee only. If you are not 
the addressee, please return the message to the sender by replying to it and then 
delete the message from your computer. 

Internet e-mails are not necessarily secure. Tesco Personal Finance Limited does not 
accept responsibility for changes made to this message after it was sent.


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



RE: pageContext is null?

2003-03-18 Thread McRobb, John
I've managed to overcome this by taking it out of the constructor, but all
that seems to be set for struts on the request and servletContext is:

MODULE and MESSAGE

Any ideas

Thanks

John


> -Original Message-
> I am writing a custom Tag:
> 
> public class InRoleTag extends ConditionalTagBase 
> 
> I try and get the roles but it appears that the pageContext is null
> 
> ServletRequest req = null;
> if (pageContext != null) {
>   req = pageContext.getRequest();
> }
> else
>   System.out.println("page Context was null");
>   
> if (req != null) {
>Enumeration e = req.getAttributeNames();
>while(e.hasMoreElements())
>   System.out.println(e.nextElement().toString());
> }
> else
>System.out.println("request was null");
> 
> if (config == null) { // Backwards compatibility hack
> config = (ApplicationConfig)
> pageContext.getServletContext().getAttribute
> (Action.APPLICATION_KEY);
> }
> 
> I got a null pointer exception previously and with the trace above it is
> down to the pageConext being null.
> It's on WebSphere 4.04 Single Server Edition.
> 
> Thanks
> 
> John
> 
> > John McRobb
> > Tesco Personal Finance
> 52 West Register Street, Edinburgh, EH2 2AA
> > *:  mailto:[EMAIL PROTECTED]
> > *:  0131 523 9382  (Internal: x29382)
> > 
> 
> 
> Tesco Personal Finance Limited is a joint venture between The Royal Bank
> of Scotland plc and Tesco PLC. Tesco Personal Finance Limited is
> registered in Scotland No 173199. Registered Office: 42 St Andrew Square,
> Edinburgh EH2 2YE. 
> 
> This e-mail message is confidential and for use by the addressee only. If
> you are not the addressee, please return the message to the sender by
> replying to it and then delete the message from your computer. 
> 
> Internet e-mails are not necessarily secure. Tesco Personal Finance
> Limited does not accept responsibility for changes made to this message
> after it was sent.
> 


Tesco Personal Finance Limited is a joint venture between The Royal Bank of Scotland 
plc and Tesco PLC. Tesco Personal Finance Limited is registered in Scotland No 173199. 
Registered Office: 42 St Andrew Square, Edinburgh EH2 2YE. 

This e-mail message is confidential and for use by the addressee only. If you are not 
the addressee, please return the message to the sender by replying to it and then 
delete the message from your computer. 

Internet e-mails are not necessarily secure. Tesco Personal Finance Limited does not 
accept responsibility for changes made to this message after it was sent.


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



pageContext is null?

2003-03-18 Thread McRobb, John
I am writing a custom Tag:

public class InRoleTag extends ConditionalTagBase 

I try and get the roles but it appears that the pageContext is null

ServletRequest req = null;
if (pageContext != null) {
  req = pageContext.getRequest();
}
else
  System.out.println("page Context was null");
  
if (req != null) {
   Enumeration e = req.getAttributeNames();
   while(e.hasMoreElements())
  System.out.println(e.nextElement().toString());
}
else
   System.out.println("request was null");

if (config == null) { // Backwards compatibility hack
config = (ApplicationConfig)
pageContext.getServletContext().getAttribute
(Action.APPLICATION_KEY);
}

I got a null pointer exception previously and with the trace above it is
down to the pageConext being null.
It's on WebSphere 4.04 Single Server Edition.

Thanks

John

> John McRobb
> Tesco Personal Finance
52 West Register Street, Edinburgh, EH2 2AA
> *:  mailto:[EMAIL PROTECTED]
> *:  0131 523 9382  (Internal: x29382)
> 


Tesco Personal Finance Limited is a joint venture between The Royal Bank of Scotland 
plc and Tesco PLC. Tesco Personal Finance Limited is registered in Scotland No 173199. 
Registered Office: 42 St Andrew Square, Edinburgh EH2 2YE. 

This e-mail message is confidential and for use by the addressee only. If you are not 
the addressee, please return the message to the sender by replying to it and then 
delete the message from your computer. 

Internet e-mails are not necessarily secure. Tesco Personal Finance Limited does not 
accept responsibility for changes made to this message after it was sent.


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



Repeated Values

2003-01-24 Thread McRobb, John
If we have repeated values in a form say address which we have repeated 4
times (poor example really)

Anyway on the business object layer we will be storing these addresses as 4
instances of the address object.
The beanutils offers a copy properties method that copies simple ActionForms
to Business Objects using reflection,
is there any way we can use something similar to populate mutiple objects 

ie
AddressLine1_1
AddressLine1_2
AddressLine1_3
AddressLine1_4
>  will be copied and cobverted to the correct type to AddressLine1 in the
> four different objects.
> 
> Thanks
> 
> John
> 
> John McRobb
> Tesco Personal Finance
52 West Register Street, Edinburgh, EH2 2AA
> *:  mailto:[EMAIL PROTECTED]
> *:  0131 523 9382  (Internal: x29382)
> 


Tesco Personal Finance Limited is a joint venture between The Royal Bank of Scotland 
plc and Tesco PLC. Tesco Personal Finance Limited is registered in Scotland No 173199. 
Registered Office: 42 St Andrew Square, Edinburgh EH2 2YE. 

This e-mail message is confidential and for use by the addressee only. If you are not 
the addressee, please return the message to the sender by replying to it and then 
delete the message from your computer. 

Internet e-mails are not necessarily secure. Tesco Personal Finance Limited does not 
accept responsibility for changes made to this message after it was sent.


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




SSL

2003-01-22 Thread McRobb, John
We are using struts 1.1 and tiles.
How do we specify if a tiled page should be served using ssl or not?
i.e like we do for a jsp in the web.xml

Thanks

John

> John McRobb
> Tesco Personal Finance
52 West Register Street, Edinburgh, EH2 2AA
> *:  mailto:[EMAIL PROTECTED]
> *:  0131 523 9382  (Internal: x29382)
> 


Tesco Personal Finance Limited is a joint venture between The Royal Bank of Scotland 
plc and Tesco PLC. Tesco Personal Finance Limited is registered in Scotland No 173199. 
Registered Office: 42 St Andrew Square, Edinburgh EH2 2YE. 

This e-mail message is confidential and for use by the addressee only. If you are not 
the addressee, please return the message to the sender by replying to it and then 
delete the message from your computer. 

Internet e-mails are not necessarily secure. Tesco Personal Finance Limited does not 
accept responsibility for changes made to this message after it was sent.


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