This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question on portlet development...  RSS feed

 
Carmen Brianick
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, currently I'm working on how to use the NEXUS portal. I'm trying to get userid info from the session id from a cookie (created by them) and their api to get it. So far, this is what a NEXUS rep told me: Nexus offers a api called NXSETSESS api and that when I call it, this program acts as a web service and will return an XML document with the user info to my JSP program. It is entirely possible that my JSP builder has an XML parser.

I'm not too familar with web services, and parsing xml, so here are my question is: Does the code below represent something similar to what the Nexus rep is talking about? :

1.)
All the api names and method names are fictional here as I don't know what they are as yet. (**please excuse all the java scripting)
<%@ page import="NXSETSESS.xml.*, org.w3c.dom.Document" %>
<html><body>
<%Document document = NXSETSESS.getUserInfoXMLDoc();//Use their webservice to get their XML document
Nodelist pList = document.getElementsByTagName("USER_ID");
//At this time, I would loop through elements in USER_ID and find out what I need i.e. favorite color, hobby%>
</body></html>

2.) What is the 'JSP builder' that the Nexus rep refered to?

Thank you so much for any type of response that will help me better understand what to do. This will be a great learning experience for me.

Thanks so much in advance,
Carmen
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!