on 05-08-2009 1:23 PM
Dear Experts,
In my WDJ application I am using iframe UI to show a document in KM, when the document link I pass to the Iframe do not exist,
I get the message
404 The requested resource is not available.
Please suggest that how can I track it navigate to different page so that the user does not get the following message.
Warm Regards
Upendra Agrawal
Edited by: Upendra Agrawal on May 8, 2009 2:23 PM
You could first create an URL and use openConnection() to check whether you can access the resource. If yes, open the URL in the IFrame, otherwise show some error message.
http://java.sun.com/j2se/1.5.0/docs/api/java/net/URL.html
http://java.sun.com/j2se/1.5.0/docs/api/java/net/URLConnection.html
http://java.sun.com/j2se/1.5.0/docs/api/java/net/HttpURLConnection.html
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Armin,
Thanks a lot for your reply.
It was indeed a very heplful answer.
I was able to get the response code, but the problem is that the URL path I used to open connection requires user authentication,
So when I used open connection, I got the response code as 401.
Now it would be very kind of you, if you may also suggest that how can I pass the user info to access the document.
Warm Regards
Upendra Agrawal
Dear Experts,
Please Suggest wether it is possible or not
Warm regards
Upendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.