?
Solved

servlet and xml/xsl

Posted on 2012-03-22
3
Medium Priority
?
356 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses
Course of the Month7 days, 20 hours left to enroll

765 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