cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Form rendering to JSP

parul_vipparthi
Champ on-the-rise
Champ on-the-rise
Hello

I am using activiti as workflow and jsp as front end.
I have a process file having user tasks and associated forms to complete the tasks.

….
        <userTask name="Search Document on First Name, Last Name, SSN" id="searchdoc_on_fn_ln"
        activiti:formKey="com/idika/galaxy/deployment/resources/forms/usecaseindexer/search_document.jsp">
….

Now I am able to run this process but my problem is if i get the form for the above usertask using
      out.println(formService.getRenderedTaskForm(task.getId()).toString());

it works fine and prints the values of the process variables too which are used within the form but will not parse the server side code (ex. jsp scriptlets).
And if I copy the form in the server and use
                     pageContext.include("/"+formService.getTaskFormData(task.getId()).getFormKey());
the server side code is parsed but does not print values of process variables.

What is the right way of finding a solution for this.
Please help.

best regards
parul

The full source code is attached. [attachment=0]activiti_web_jsp.zip[/attachment]
4 REPLIES 4

stroobat
Champ in-the-making
Champ in-the-making
Did you got any response on this ?

Did you manage to solve this ?

Tom.

vamsi25
Champ in-the-making
Champ in-the-making
Hi Any one got this working ??


Thanks & Regards

frederikherema1
Star Contributor
Star Contributor
Getting a rendered form only handles the raw expressions in the file, it's not going to serve or interpret JSP-files… It's a pure templating-mechanism

advisor_team
Champ in-the-making
Champ in-the-making
Hello parul_vipparthi

Right now i am developing sample application which using external jsp pages instead of activti internal forms.
I have seen your application and got many idea and also trying to run your application
I am applying following steps to run application
(1) deploy your zip on activti explorer
(2) start process from all the deployed processes
(3) Then i got your first task but can not get first page search_document.jsp
     Instead It only shows one complete task button on first task
Please tell me how we can run it and how i can get deplyed jsp page view

Regards
advisor_team