mixing scriptlets and jsp tags

X-Application Version: 3.1.2, 3.1.1
Tamino Version : 3.1.1
Platform : Win2k
WebContainer : Tomcat 3.3.1
JDK Version : 1.3.1

Hello,
How can we use the variable in scriptlets inside xapplication jsp tags.

for example i want to use a variable inside an “if” tag like

<bdm:if condition=“notequal” select=(my scriptlet variable) value=“5”)

I tried this but it didn’t work
<bdm:if condition=“notequal” select="<% out.print(iCount); %>" value=“5”)

if the above condition is false i will hide the “ADD” button.

Are there any ways to do like this?
can we mix up javascript or java with jsp tags?if possible how?

Hello,

as I know, it is not possible to set the attribute value of a JSP tag dynamically. My propose: Why not using a normal scriptlet if expression?

<BR><% <BR>  if (iCount!=5) {<BR>%><BR><BR>  ... Add HTML and JSP tags - they are evaluated only if iCount != 5.<BR><BR><%<BR>  }<BR>%><BR>



Bye,
Christian.

yeah its working fine.Thanks.

If we are working with multiple schemas and if the apllication uses jsp pages with data from instances of multiple schemas is it better to do it thru xapplication or should we use Tamino API for java.

Any suggestions…

regards
jag

Hello,

I would use X-Application tags before using Scriptlets. If there is a special functionality not supported by the existing tags, I would try to write a plugin. For implementing the plugin I would program against the X-Application Java API.

X-Application can work with multiple schema. I have written a proposal how to implement the pages. I posted it to your request

Querying Multiple Schemas

If I have time enough I could provide an example for the next week. But, I can not promise it.

Bye,
Christian.