On Friday, August 15, 2003, at 02:11 PM, Abhijit Petkar wrote:


Hi Everyone,

I have got the basic Velocity forwards working for me. I have created forward entries in forward.xml, created psml(s), and made registry entries for portlets.

However, I am not able to get it working to fit my requirements:

Here is my requirement:
I need four velocity templates among which I want to be able to navigate conditionally. I have 2 buttons on a template and depending on which button the user clicks, I want to navigate to different page.


I have tried using the ForwardService.forward method in the java action class. Doesn't work for me:-( Thus, I am using $jsforward.forward method in the velocity template which works. However, this method is invoked on form submit which creates the issue of conditionality!!

The velocity forward simply calls the Java class, so it should be the same either way.
In Java, you can say


ForwardService fs = (ForwardService)ServiceUtil.getServiceByName(ForwardService.SERVICE_NAME );
fs.forward(rundata, "MyForwardTarget");


Also, I am not clear as to how portlet-forwards work.

Have you read the online documentation:

http://jakarta.apache.org/jetspeed/site/forwards.html


I would appreciate all help.

Regards
Abhijit

_________________________________________________________________
MSN Messenger V6.0. Give it a fun name. http://server1.msn.co.in/sp03/ilovemessenger/index.asp Win cool stuff!



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




-- David Sean Taylor Bluesunrise Software [EMAIL PROTECTED] +01 707 773-4646 +01 707 529 9194


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



Reply via email to