Solved

servlet and xml/xsl

Posted on 2012-03-22
3
355 Views
Last Modified: 2012-03-28
Please help with servlet.

I need to make a portion of the xml / xsl that is attached to this hide an aspect of the interface. I have already tried to hide the aspect required in xsl and it did not work. In that case, I was using the parentid as a variable which gets passed. I am stuck now.

The portion that did not work was this:

<xsl:variable name="parentId" select="substring-before(substring-after(concat($querystring, '&amp;'), 'parentid='), '&amp;')"/>
<xsl:if test="@id = 'SelectReporting' and not(contains('#2#10#192#15#169#189#230#', concat('#', $parentid, '#')))">
                                           

I wonder if I need to write something in the servlet to address this issue or if I am looking in the wrong place. Thanks, M.
doLogin.txt
0
Comment
Question by:Midani22
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Expert Comment

by:gudii9
ID: 37754190
>>aspect of the interface.

Can you please elaborate on this. What are you trying to hide, where.
0
 

Accepted Solution

by:
Midani22 earned 0 total points
ID: 37754305
What I mean is that I think the parentid from above (mentioned above) is ALREADY being made available via a session variable. Therefore, no need to refer to it being passed on the querystring,or to provide it as a variable at all on the xsl file.

I wonder if the second statement is correct from above. Based on the parent id, it would either show or hide a button on the interface, which corresponds to

this xsl file:

window.open(servlet + '?sdate=' + d1 + '&edate=' + d2+ '&caseid=' + document.form1.caseid.value+ '&homeid=' + document.form1.homeid.value+ '&parentid=' +  document.form1.parentid.value+ '&userid=' + document.form1.userid.value+ '&mode=' + document.form1.mode.value);
0
 

Author Closing Comment

by:Midani22
ID: 37775685
hard time finding the code for processing the XSLT.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question