Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can i validate an url using weblogic 7.0 api?

 
Diggy Lans
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone help me with this - I need to validate an URL - meaning that i need to know whether the URL is correct and whether it conveys "rigth" (specific to me webapp) parameters' values - using weblogic API
 
Sai Prasad
Ranch Hand
Posts: 560
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Write a stand alone java application to open a Connection using java.net.URL object. Catch the exception to determine the invalid url.
 
Diggy Lans
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually what I ment was checking parameters passed to my servlet for occurence of invalid characters - html tags for example.
 
Sai Prasad
Ranch Hand
Posts: 560
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is available if you buy Weblogic Portal product.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic