John.

Thanks, that did the trick...although it's strange the problem should occur in the first place!!

Thanks and regards,
 

Matt

John McNally wrote:

try screen = data.getScreenTemplate.replace('/',',');

john mcnally

Matthew Forder wrote:
>
> This one's a real head scratcher (for me at least).
>
> I put some code into my SecureScreen function isAuthorised() to allow
> "pass-thru" login. It works fine in every scenerio except one.
>
> Here's the code...
>
> String screen = data.getScreenTemplate();
> DynamicURI lastUrl = new DynamicURI (data);
> lastUrl.addPathInfo("template",screen);
> lastUrl.addPathInfo(data.getParameters());
> context.put("oldurl",lastUrl);
> data.setScreenTemplate(login);
>
> and in my login screen i'm using:
>
> <form action="$orldurl.setAction("LoginUser")">
>
> Everything was working fine until I started using Tomcat b7...Now the
> problem is if the user requests the URL
>
> http://www.someserver.com/app/servlet/app
>
> In other words doesn't request a specific URL, in the final HTML
> source the form action ends up looking like this...
>
> <form
> action="http://www.someserver.com/app/servlet/app/template/%2FIndex.vm/action/LoginUser">
>
> And when the login form is submitted the page cannot be found.
>
> Can anyone help with this or offer a suggestion on how to circumvent
> the problem?
>

-- 
   ____  | Matthew J. Forder         | Data Center Supervisor
  / / () | Seagate Techology         | Tel:+31 20 316 7468
  \ \ \  | Koolhovenlaan 1           | Fax:+31 20 653 5537
 ()_/_/  | 1119 NB Schiphol-Rijk, NL | [EMAIL PROTECTED]
 
begin:vcard 
n:Forder;Matthew
tel;cell:+31 65 350 8743
tel;fax:+31 20 653 5537
tel;work:+31 20 316 7468
x-mozilla-html:TRUE
url:http://www.seagate.com/
org:<i>Seagate Technology LLC</i>;<a href="http://www.seagate.com/";><img src="http://www.seagate.com/images/doors/frontdoor/logo.gif"; width=99 height=24 border=0 vspace=3 alt="Seagate" align=right></a>
adr:;;Koolhovenlaan 1;Schiphol-Rijk;North Holland;1119 NB;Netherlands
version:2.1
email;internet:[EMAIL PROTECTED]
title:<b>Datacenter Supervisor</b>
x-mozilla-cpt:;-25048
fn:Matthew Forder
end:vcard

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

Reply via email to