Solved

servlet and xml/xsl

Posted on 2012-03-22
3
353 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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jmss example java 2 31
XSLT 1.0 - Finding Substrings from the End of a String 3 39
Java Eclipse Loop 3 29
Java pass by reference 3 15
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 …
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

761 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