Solved

servlet and xml/xsl

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now