T5: How to handle caching for applications in multi-user environments

2008-02-04 Thread Thomas Zenglein
Hi,

we encountered the situation where users authenticate in a web application, 
then using a web form to send mail to certain e-mail addresses. 
The T5 app for that resides under the same URI (here: 
https://some-server/mymailer/start). Certain web form elements (e.g. 1-line 
input fields) are prepopulated with data, depending on the URL GET parameters 
passed to the T5 app (e.g.  https://some-server/mymailer/start?a=bc=d) and on 
session data.

Now: with different parameters, the web form values remain the same (!), 
resulting in the display of previously entered information for the next 
authenticated user using the T5 app 
= I need to get rid of this obvious caching issue, but currently have no idea 
how.

I tried passing
-Dorg.apache.tapestry.disable-caching=true
to the Tomcat binary for start-up - unfortunately didn't help.

The env is: T 5.0.6, tomcat-5.5.23, SLES 10, Java 1.5.0_13 - on the server.
Browsers hitting the T5 app were IE 6.0.2900, FF 2.0.0.11.

Any of you guys have any idea how to prevent a T5 page from using its cached 
version for display? I feel I'm missing sth obvious but also feel pretty much 
stuck :(

Thanks for any pointers,
Thomas. 


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



Re: T5: regexp for commas

2008-01-15 Thread Thomas Zenglein
Hello,

thanks evrybody for attempting to help me with that problem. I tried every 
suggest you gave, with no positve result. Now I think this is a Tapetry 
internal problem. 
Any idea for an alternative solution method?
Meanwhile I have to be happy without the regexp check.

THX

Thomas


 Michael Courcy [EMAIL PROTECTED] schrieb am Mo, Jan 14, 2008 um  4:18 
in Nachricht [EMAIL PROTECTED]:
 well I wonder if the comma is not playing a role in the interpretation 
 of the annotation ?
 
 did you try to replace the comma by its unicode value :  \u002C
 
 
 Thomas Zenglein a écrit :
 Hello Michael,

 I've just tried following lines.

 public class Test {
public static void main(String[] args) {
  String foo = ,;
  if (foo.matches([a-zA-Z,öäüÖÄÜß0-9\\.\\'?!§$%\\-+*:/ ]+)){
  System.out.println(:));
  } else {
  System.out.println(:();
  }
   }
 }

 With the aim to decide weather String foo contains a ',' ( or  another 
 blabla that I allow) or not. Fortunately that works fine :). Now I want the 
 same functionality in T5.

 Thomas

   
 Michael Courcy [EMAIL PROTECTED] schrieb am Mo, Jan 14, 2008 um  1:33 
 
 
 in Nachricht [EMAIL PROTECTED]:
   
 Did you try this regexp with in a regular java program ?

 Thomas Zenglein a écrit :
 
 Hello everybody,

 I want my textfield to allow a couple of signs.  For that I have the 
   
 following code.
 
 @Validate(required,regexp=[a-zA-ZöäüÖÄÜß0-9\\.\\'?!§$%\\-+*:/ ]+)
 public void setName(String name) {
  this.name = name;
 }

 Comma signs should also be allowed here. So I want to extend the regexp to 
   
 handle that case.
 
 @Validate(required,regexp=[a-zA-Z,öäüÖÄÜß0-9\\.\\'?!§$%\\-+*:/ ]+)
 leads to 
 Coercion of [a-zA-Z to type java.util.regex.Pattern (via String -- 
   
 java.util.regex.Pattern) failed: Unclosed character class near index 8 
 [a-zA-Z ^
 
 @Validate(required,regexp=[a-z\\,A-ZöäüÖÄÜß0-9\\.\\'?!§$%\\-+*:/ ]+) 
   
 leads to following error:
 
 Coercion of [a-z\ to type java.util.regex.Pattern (via String -- 
   
 java.util.regex.Pattern) failed: Unclosed character class near index 7 
 [a-z\ 
 
 ^
 
 Has anybody an idea for the correct code??? I use tapestry 5.0.6.

 THX 

 Thomas

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



T5: regexp for commas

2008-01-14 Thread Thomas Zenglein
Hello everybody,

I want my textfield to allow a couple of signs.  For that I have the following 
code.

@Validate(required,regexp=[a-zA-ZöäüÖÄÜß0-9\\.\\'?!§$%\\-+*:/ ]+)
public void setName(String name) {
 this.name = name;
}

Comma signs should also be allowed here. So I want to extend the regexp to 
handle that case.

@Validate(required,regexp=[a-zA-Z,öäüÖÄÜß0-9\\.\\'?!§$%\\-+*:/ ]+)
leads to 
Coercion of [a-zA-Z to type java.util.regex.Pattern (via String -- 
java.util.regex.Pattern) failed: Unclosed character class near index 8 
[a-zA-Z ^

@Validate(required,regexp=[a-z\\,A-ZöäüÖÄÜß0-9\\.\\'?!§$%\\-+*:/ ]+) 
leads to following error:
Coercion of [a-z\ to type java.util.regex.Pattern (via String -- 
java.util.regex.Pattern) failed: Unclosed character class near index 7 [a-z\ ^

Has anybody an idea for the correct code??? I use tapestry 5.0.6.

THX 

Thomas

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



Antw: Re: T5: regexp for commas

2008-01-14 Thread Thomas Zenglein
Hello Michael,

I've just tried following lines.

public class Test {
   public static void main(String[] args) {
String foo = ,;
if (foo.matches([a-zA-Z,öäüÖÄÜß0-9\\.\\'?!§$%\\-+*:/ ]+)){
System.out.println(:));
} else {
System.out.println(:();
}
  }
}

With the aim to decide weather String foo contains a ',' ( or  another blabla 
that I allow) or not. Fortunately that works fine :). Now I want the same 
functionality in T5.

Thomas

 Michael Courcy [EMAIL PROTECTED] schrieb am Mo, Jan 14, 2008 um  1:33 
in Nachricht [EMAIL PROTECTED]:
 Did you try this regexp with in a regular java program ?
 
 Thomas Zenglein a écrit :
 Hello everybody,

 I want my textfield to allow a couple of signs.  For that I have the 
 following code.

 @Validate(required,regexp=[a-zA-ZöäüÖÄÜß0-9\\.\\'?!§$%\\-+*:/ ]+)
 public void setName(String name) {
  this.name = name;
 }

 Comma signs should also be allowed here. So I want to extend the regexp to 
 handle that case.

 @Validate(required,regexp=[a-zA-Z,öäüÖÄÜß0-9\\.\\'?!§$%\\-+*:/ ]+)
 leads to 
 Coercion of [a-zA-Z to type java.util.regex.Pattern (via String -- 
 java.util.regex.Pattern) failed: Unclosed character class near index 8 
 [a-zA-Z ^

 @Validate(required,regexp=[a-z\\,A-ZöäüÖÄÜß0-9\\.\\'?!§$%\\-+*:/ ]+) 
 leads to following error:
 Coercion of [a-z\ to type java.util.regex.Pattern (via String -- 
 java.util.regex.Pattern) failed: Unclosed character class near index 7 
 [a-z\ 
 ^

 Has anybody an idea for the correct code??? I use tapestry 5.0.6.

 THX 

 Thomas

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



Help wanted. Running T5 on Tomcat

2007-12-03 Thread Thomas Zenglein
Hi,
I m  currently evaluating T5 as a framework. I am new in tapestry. Fot that 
purpose I wrote a small test application that runs fine in jetty application 
server. Wedo however use tomcat 5.5 as the standard application server in our 
project and we must stick to this decision due to external dependencies. What 
is the recommended way of integrating T5 into tomcat 5.5 and has anyone 
experience with such a setup? 

Thanks in advance,
Thomas



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