Solved

servlet and xml/xsl

Posted on 2012-03-22
3
354 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Suggested Courses

732 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