Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!

Dan McGinn-Combs

Greenhorn
+ Follow
since Jul 17, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dan McGinn-Combs

thanks for all the pointers... none of them were null!
- Dan
9 years ago
I recently started working in an environment which runs Java v1.4.2 on the server and in production. While trying to set up my workstation development environment, I found that I could no longer download Oracle JDK. I need to be able to compile code offline and generate WAR/EAR files to deploy into the test environment (there is no viable dev environment for this).

the most significant piece of code that suffers from 1.4.2 vs. 1.6 disparity is the parsing of time/date formats using SimpleDateFormat:


so, two questions:
  • Is there a compile option that will allow me to use the 1.6 compiler to generate code for a 1.4.2 server? (or where can I find Windows versions of the JDK?)
  • and
  • How can I simply rewrite the date/time arithmetic for 1.4.2?


  • thanks!
    - Dan
    9 years ago

    imran tariq wrote:Hi, I need Step-by-Step help for SAML. Here are some of my requirements. Please help.

    All SAML specific functionality will be implemented using the open source OpenSAML libraries.

    We will support both Service Provider (SP) initiated authentication as well as Identity-Provider (IdP) initiated authentication.



    Imran, I hope you found your answers. My suggestion would be to review the information at Oasis. Then read the online tutorials about SAML available from the good folks at JOSSO and Shibboleth.

    -- Dan
    I'm struggling with a way to return a hashmap of parsed XML to a main program.
    The issue may not be SAXParser problem specifically, but it is related. A pointer or two would be welcome.

    I am receiving an XML payload in a POST variable. To parse that variable I call the function passing it the XML payload and expecting back a HashMap. If I inspect the hashmap on return it is blank. The only way to return a value is to make the temporary hashmap in the function a static variable inside the class. That has potentially bad side effects I believe.



    In some test I've found that xmlPayload behaves correctly until the parser finishes (endDocument). At that point, it appears that a new (and empty) xmlPayload is created (unless I use the static keyword). If I use the static keyword though, the returned hashmap contains information from the previous XML (bad!).

    I've tried this with two different SAX parsers and so I believe I'm running into a problem with more than SAX. Any suggestions on how to accomplish my goal are more than welcome.

    -- Dan