Wiki source code of AddServletContainer

Last modified by Ilie Andriuta on 2023/07/06 11:30

Show last authors
1 {{velocity}}
2 #set($servletContainerName = $request.servletContainerName)
3 #set($servletContainerVersion = $request.servletContainerVersion)
4
5 #if(("$!servletContainerName" != '' || $servletContainerName == '') && ("$!servletContainerVersion" != '' || $servletContainerVersion == ''))
6 #set($targetDocName = $servletContainerName)
7 #set($targetDocName = "${targetDocName} ${servletContainerVersion}")
8 #set($documentReference = $services.model.createDocumentReference($xcontext.getDatabase(), 'QA', $targetDocName))
9 #set($redirectReference = $services.model.createDocumentReference($xcontext.getDatabase(), 'QA', 'Management'))
10 $response.sendRedirect($xwiki.getURL($documentReference, 'save', "QA.ServletContainerClass_0_name=$escapetool.url($servletContainerName)&QA.ServletContainerClass_0_version=$escapetool.url($servletContainerVersion)&template=QA.ServletContainerTemplate&parent=QA.WebHome&title=$escapetool.url($targetDocName)&form_token=${services.csrf.getToken()}&xredirect=$escapetool.url($xwiki.getURL($redirectReference))"))
11 #end
12
13 {{html wiki="true"}}
14 <form action="" class="xform third" id="addServletContainerForm">
15 (((
16 ; <label for="servletContainerName">$services.localization.render('qaapp.AddServletContainer.servletName.label')</label>
17 <select id="servletContainerName" name="servletContainerName">
18 <option value="Tomcat">Tomcat</option>
19 <option value="Jetty Standalone Packaging">Jetty Standalone Packaging</option>
20 <option value="Jetty Official Packaging">Jetty Official Packaging</option>
21 <option value="WildFly">WildFly</option>
22 <option value="Glassfish">Glassfish</option>
23 </select>
24 ; <label for="servletContainerVersion">$services.localization.render('qaapp.AddServletContainer.servletVersion.label')</label>
25 : <input type="text" id="servletContainerVersion" name="servletContainerVersion">
26
27 <div class="xform buttons">
28 <span class="buttonwrapper"><input type="submit" value="$services.localization.render('qaapp.AddServletContainer.servletName')" class="button"/></span>
29 </div>
30 )))
31 </form>
32 {{/html}}
33 {{/velocity}}

Get Connected