<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to use process data in a if in a JSP file?</title><link>https://answers.axonivy.com/questions/480/how-to-use-process-data-in-a-if-in-a-jsp-file</link><description>&lt;p&gt;How can we use the value of the process data (e.g. in.umxm) in a JSP?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if (%&amp;gt; &amp;lt;%= ivy.html.get("in.umxm")%&amp;gt;  &amp;lt;%) {%&amp;gt;&amp;lt;br/&amp;gt;
  A&amp;lt;br/&amp;gt;
&amp;lt;%} else {%&amp;gt;&amp;lt;br/&amp;gt;
  B&amp;lt;br/&amp;gt;
&amp;lt;%}%&amp;gt;
&lt;/code&gt;&lt;/pre&gt;</description><atom:link href="https://answers.axonivy.com/questions/480/how-to-use-process-data-in-a-if-in-a-jsp-file" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 04 Oct 2013 06:07:14 -0400</lastBuildDate><item><title>Answer by Dominik Regli</title><link>https://answers.axonivy.com/questions/480/how-to-use-process-data-in-a-if-in-a-jsp-file/481</link><description>&lt;p&gt;You use correctly &lt;code&gt;ivy.html.get()&lt;/code&gt; but this is normal Java Code. Therefore you can put it into the same JSP tag like the &lt;code&gt;if&lt;/code&gt;. Note that &lt;code&gt;ivy.html.get()&lt;/code&gt; returns a String.&lt;/p&gt;
&lt;p&gt;The JSP tag with the equals sign &lt;code&gt;&amp;lt;%= ... %&amp;gt;&lt;/code&gt; is only required if you want to display the return value of a JSP expression in the HTML page.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; &amp;lt;%&amp;gt; if ( "true".equals(ivy.html.get("in.umxm")) { %&amp;gt;
   A
 &amp;lt;%} else {%&amp;gt;
   B
 &amp;lt;%}%&amp;gt;
&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dominik Regli</dc:creator><pubDate>Fri, 04 Oct 2013 06:07:14 -0400</pubDate><guid>https://answers.axonivy.com/questions/480/how-to-use-process-data-in-a-if-in-a-jsp-file/481</guid></item></channel></rss>