> 
> Btw. If you use Eclipse, have you tried Sysdeo plugin? It 
> allows you to 
> run webapps in Tomcat directly from within code compiled in Eclipse. 
> What more, you can use breakpoints in your webapp code and 
> debug it as 
> normal application :-)  You would not need to inject your code with 
> sysouts and printStackTrace methods then :)

Interesting, thanks for the tip, I will look into that for sure.

> > -------------
> >             throw new
> > RedirectException(cycle.getAbsoluteURL("ListAll.page"));
>
> That URL won't work if Friendly URLs (FURLs) are not enabled. 
> Resulting 
> URL will be of form:
> 
> http://www.yourdomain.com/yourcontext/ListAll.page
> 
> And  what if you choose to change extension for your page service to 
> other that '.page' ? I suggest that you use proper 
> ServiceEncoding (via 
> IEngineService getLink(boolean post, Object parameter) method 
> to assure 
> that the obtained URL is always valid.
> 
> I think that in that case you should create proper url with 
> PageService.getLink method

I tried to figure out how that worked, but I couldn't... *blush* I couldn't
get my head around all the different service engines and how to use them for
generating links. So, since I was using friendly URLs, I decided to go for
this way instead. Of course, in a real application I would prefer to look up
the page name to redirect to in a less error-prone way than with a
hard-coded string. I think that could be workable, but there may be better
alternatives. Since I didn't understand how to use the PageService, maybe
you could show some sample code for how to use the PageService when you want
to go from a page name to an absolute URL?

Thanks,

Petter


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

Reply via email to