Dashboard > WebWork 1 > WebWork CookBook > How to return a view with zero code
  WebWork 1 Log In View a printable version of the current page.  
  How to return a view with zero code
Added by Andre Mermegas, last edited by Hani Suleiman on Apr 25, 2004  (view change)
Labels: 
(None)

So you want to return a view say an index.jsp and you dont want people to just hit the file, or you have a view but dont have any model or processing to do yet and you want to prototype,but through webwork, this is for you.

There isn't much to it really, as part of the core webwork library there is a class called webwork.action.ActionSupport.

This class is basically there for extension but we can use it here because it implements enough functionality namely doExecute among other stuff,and returns SUCCESS which is all we need.

In views.properties you do something like this:

test.action=webwork.action.ActionSupport
test.success=test.jsp

Then you too can hit your view through webwork with zero code.

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators