Now, we want to check the host name before initialize it.
For example, want to check host name with provided string value(like "http%3A%2F%2FXXXX-YYYY%3A9081%2FUploadWeb%2FCSIOServlet"). If it match then initialize host name with proper value otherwise initialize host name with blank.
Re: Check String from request parameters befor initialize it
Since you're asking, I imagine that your comparison between `xxforms:get-request-parameter('host')` and the string you have there doesn't match when you would like it to. I'd suggest you try to output what is returned by `xxforms:get-request-parameter('host')`, says with a `<xf:message value="…"/>`. I think you'll find the string isn't URL-encoded anymore, and this to be at least one reason why your comparison fails.
And what do you mean by "debug the hab.jsp page"? You want to use a Java debugger? You would just use the same technique to debug it that you would use if it were included in your own app.
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet