Questions Tagged With jsphttps://answers.axonivy.com/tags/jsp/?type=rssquestions tagged <span class="tag">jsp</span>enThu, 01 Nov 2018 08:10:53 -0400InvalidFormatException when importing java script on JSP pagehttps://answers.axonivy.com/questions/3520/invalidformatexception-when-importing-java-script-on-jsp-page<p>Dear ivy team,</p> <p>I building an JSP page in ivy, use Web Element to load that jsp page</p> <p><img alt="alt text" src="https://answers.axonivy.com/upfiles/cob-page-structures.png"></p> <p>Here is content of that page:</p> <p><img alt="alt text" src="https://answers.axonivy.com/upfiles/cob-page-structures_S8qlK57.png"> I try to import two javascript files to page, but got exception:</p> <pre><code>InvalidFormatException: &gt; didn't match format: &lt;No closing tag found!&gt; at ch.ivyteam.ivy.scripting.internal.expander.TextTagExpander.getNextToExpand(TextTagExpander.java:147) at ch.ivyteam.ivy.scripting.internal.expander.TextTagExpander.getNextToExpand(TextTagExpander.java:80) at ch.ivyteam.ivy.scripting.internal.expander.EmbeddedScriptExpander.expandEmbeddedScripts(EmbeddedScriptExpander.java:81) at ch.ivyteam.ivy.scripting.internal.expander.EmbeddedScriptExpander.expandEmbeddedScripts(EmbeddedScriptExpander.java:56) at ch.ivyteam.ivy.macro.internal.MacroExpander.expandMacros(MacroExpander.java:76) </code></pre> <p>This happen when i import js via script tag with relative resource. When i change to a external link like <img alt="alt text" src="https://answers.axonivy.com/upfiles/cob-page-structures_imu9DbS.png"> Then everything is fine.</p> <p>My question is:</p> <ul> <li>What is different between two ways on ivy? does ivy try to read js file then validate it when we using relative path?</li> </ul> <p>You could see full stacktrace at <a href="https://raw.githubusercontent.com/trungdoviet/import-script-exception/master/stracktrace.txt">here</a> and <a href="https://github.com/trungdoviet/import-script-exception/blob/master/index.js">index.js</a>, <a href="https://github.com/trungdoviet/import-script-exception/blob/master/configuration2.js">configuration2.js</a></p> <p>Thanks and hope you can help.</p> <p>P/S: when i try with HtmlUserDialog, it's seem to work. but my page is React and need to use JSP.</p>trungdvThu, 01 Nov 2018 08:10:53 -0400https://answers.axonivy.com/questions/3520/invalidformatexception-when-importing-java-script-on-jsp-pagejspivy/info/index.jsphttps://answers.axonivy.com/questions/2030/ivy-info-index-jsp<p>Hi,</p> <p>I have some questions about the Index page:</p> <ul> <li>Is there a way to replace it with an own page?</li> <li>What's best practice to not show th e index page to the users but still <br> have access to the admin panel?</li> </ul> <p>Thanks for answers in advance</p> <p>Regards, Dani</p>dharlachThu, 15 Sep 2016 16:08:11 -0400https://answers.axonivy.com/questions/2030/ivy-info-index-jspjspserverGet ID of ended task in JSP End Pagehttps://answers.axonivy.com/questions/1339/get-id-of-ended-task-in-jsp-end-page<p>When overriding Default Pages as described in Server Guide (<a href="http://developer.axonivy.com/doc/5.0.latest/ServerGuideHtml/ivy.server.concepts.introduction.html)">http://developer.axonivy.com/doc/5.0.latest/ServerGuideHtml/ivy.server.concepts.introduction.html)</a> I have access to ID of the ended task (endedTaskId Parameter).</p> <p>In my use case I need special end pages for some tasks. So I prefer using a individual JSP end page for each task. Is is possible to get the ID of the ended task in the JSP, too?</p>Timo RuppThu, 28 May 2015 10:48:56 -0400https://answers.axonivy.com/questions/1339/get-id-of-ended-task-in-jsp-end-pagejspHow do I send html formated content in email step?https://answers.axonivy.com/questions/1151/how-do-i-send-html-formated-content-in-email-step<p>Hello</p> <p>How can I send formated emails? Assume I have an html-formated String and whant to bring it into my email. Problem here is that even this method will escape the String:</p> <p><code>&lt;%=ivy.html.getObject("in.mailString").toString()%&gt;</code></p> <p>Is there an other possibility to send the content of a JSP-Page?</p> <p>Best regards</p> <p>Alexis</p>AlexisMon, 09 Feb 2015 18:56:24 -0500https://answers.axonivy.com/questions/1151/how-do-i-send-html-formated-content-in-email-stepivyscriptjspHow to call a logic process from another logic process within JSFhttps://answers.axonivy.com/questions/787/how-to-call-a-logic-process-from-another-logic-process-within-jsf<p>Hi there</p> <p>within ULC we often used the panel api to call some methods with the rdc logic. Means after pressing a button to save data the save event was triggered. In the logic of this save process we called a method on the panel (for example validate some data).</p> <p>Within JSF there is no longer a panel api available - but maybe you could give us a hint to solve this issue?</p> <p>Thanks for the fish, Sven</p>skilchenmannFri, 13 Jun 2014 10:03:21 -0400https://answers.axonivy.com/questions/787/how-to-call-a-logic-process-from-another-logic-process-within-jsfhtmluserdialogapijspHow to use process data in a if in a JSP file?https://answers.axonivy.com/questions/480/how-to-use-process-data-in-a-if-in-a-jsp-file<p>How can we use the value of the process data (e.g. in.umxm) in a JSP?</p> <pre><code>if (%&gt; &lt;%= ivy.html.get("in.umxm")%&gt; &lt;%) {%&gt;&lt;br/&gt; A&lt;br/&gt; &lt;%} else {%&gt;&lt;br/&gt; B&lt;br/&gt; &lt;%}%&gt; </code></pre>Stefan KressigThu, 03 Oct 2013 05:31:44 -0400https://answers.axonivy.com/questions/480/how-to-use-process-data-in-a-if-in-a-jsp-filejsphtmlwebpagesReplacement for navigation nodes in Ivy 4.x HTML web pages?https://answers.axonivy.com/questions/468/replacement-for-navigation-nodes-in-ivy-4-x-html-web-pages<p>We are working with Ivy 4.3 to develop a web page based solution. We have a main project and several other projects that use the main one. How can we develop a nice site navigation in the layout JSP content objects so that I can start a process from another project. In 3.9 we had the navigation node content objects, but in Ivy4 they are no more there, So, how can we do this with Ivy 4?</p>Matthias MaurerWed, 29 Aug 2012 09:43:01 -0400https://answers.axonivy.com/questions/468/replacement-for-navigation-nodes-in-ivy-4-x-html-web-pagesjsphtmlwebpages