I have a scenario which is to do the following

The web browser will call the server via ajax.  At the server the system should 
produce a pdf file and store it in the file system.  Next make a database 
update and return some data back to web browser using json

Below is the steps as per my understanding to do the same

·         Front end to call a controller entry for a particular request map

·         Request map to call a service and do some things and then kick off 
the view map of type ‘screenfop’ to generate pdf. 

·         This screen fop is mapped to custom handler based on 
org.ofbiz.widget.screen.ScreenFopViewHandler which has code tweaked to store 
the pdf as file on hard disk and then call another request map entry in the 
controller.xml

·         This request map to do the rest of things like update database row 
and then return data in json back to client

Is there a better way to execute the above scenario

Secondly from my customer ScreenFopViewHandler how do I call another request 
map entry in controller.xml.  Will it via RequestDispatcher?

Reply via email to