Regular Expresson to Extrcat URLs from img src tags

Hi,
I have a huge string containing html tags, some of these tags being <img src="URL"> ones. I need to extract the urls from all the occurences of these tags in the input string. This is what I am doing:
Pattern p=null;
Matcher m= null;
String word0= null;
String word1= null;
p= Pattern.compile(".*<img[^>]*src=\"([^\"]*)",Pattern.CASE_INSENSITIVE);
m= p.matcher(txt);
while (m.find())
    word0=m.group(1);
    System.out.println(word0.toString());
     }The problem with this code is that this prints only the last URL. For example if there are 5 <img src="URL"> tags, this code prints only the URL contained withn the 5th< img src> tag. Please tell me how to solve this.
Thanking you in advance

Here's another approach:
ok so this is assuming that the source text is not one line of strings, but mulitple lines.
String[] lines = txt.split("\n")this splits the string based on the newline character. then you can iterate through the array and use the pattern on each string. The only thing that can go wrong here is if there are two images in one line of code. Then you can use some of the methods in the String class to find each instance of "img src=", and you can figure out the rest.
another, better, way to split the string is with a string tokenizer (simple method in my library):
* Returns an array of strings from splitting the givin string
* with the given deliminator.  See the example<br/>
* <br/>
* <i>Example:</i><br/>
* <code>splitTokens("ID: 1920129 NAME: JOHNY IAMYOURFATHER: IDONOTWANT", ": ")</code> would return:<br/>
* <code>["ID",190129","NAME","JOHNY","IAMYOURFATHER","IDONOTWANT"]</code>
* @param base
*               the string to be split
* @param delim
*               the deliminator that is used to split the string.  If the
*               deliminator is <code>", "</code>, then the string will be
*               split on any combination of commas and spaces, along with
*               individual commas and spaces.
* @return an array of strings split from the base string by the deliminator
public static String[] splitTokens(String base, String delim) {
     StringTokenizer toker = new StringTokenizer(base, delim);
     String pieces[] = new String[toker.countTokens()];
     int index = 0;
     while (toker.hasMoreTokens()) {
          pieces[index++] = toker.nextToken();
     return pieces;
}{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Using multiple img src / with htmlText --display problem

    I need help.
    I am using multiple <img src /> tag with htmlText and
    pictures displays in layers(overlay)?
    html_txt.html = true;
    html_txt.htmlText = "text<br><img src = '
    http://picture1.jpg 'width='500'
    height='491' hspace='0' /><br>more text<br><img
    src = '
    http://picture2.jpg' width='299'
    height='612' hspace='101' ><br>end with text";
    Is there any way to refresh text field when pictures are
    fully loaded so it will display like regular html page?
    this is flash version, evrything is shown but it is not
    right.
    http://www.sosui.jp/flash/test/v001/pages/home/homeBlogV002.swf
    I want to show them like this page.
    http://sosui.jp/flash/test/v001/pages/home/blog.html
    I tried onEnterFrame but pictures will not show. I think it
    is because it is trying to load pictures everytime. So I cannot use
    onEnterFrame, i need other way to refresh text field.
    Please help me. you might of guessed I am not an English
    speaker, so my English might be little off.
    Thank you.

    does anybody know anything? how long do i need to wait to see
    if someone replies? I just need to know if it is possible or not.

  • I want to display BLOB image in JSP Using  html tags IMG src=

    GoodAfternoon Sir/Madom
    I Have got the image from oracle database but want to display BLOB image using <IMG src="" > Html tags in JSP page . If it is possible than please give some ideas or
    Send me sample codes for display image.
    This code is ok and working no problem here Please send me code How to display using html tag from oracle in JSP page.
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="javax.swing.ImageIcon;" %>
          <%
            out.print("hiiiiiii") ;
                // declare a connection by using Connection interface
                Connection connection = null;
                /* Create string of connection url within specified format with machine
                   name, port number and database name. Here machine name id localhost
                   and database name is student. */
                String connectionURL = "jdbc:oracle:thin:@localhost:1521:orcl";
                /*declare a resultSet that works as a table resulted by execute a specified
                   sql query. */
                ResultSet rs = null;
                // Declare statement.
                PreparedStatement psmnt = null;
                  // declare InputStream object to store binary stream of given image.
                   InputStream sImage;
                try {
                    // Load JDBC driver "com.mysql.jdbc.Driver"
                    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
                        /* Create a connection by using getConnection() method that takes
                        parameters of string type connection url, user name and password to
                        connect to database. */
                    connection = DriverManager.getConnection(connectionURL, "scott", "root");
                        /* prepareStatement() is used for create statement object that is
                    used for sending sql statements to the specified database. */
                    psmnt = connection.prepareStatement("SELECT image FROM img WHERE id = ?");
                    psmnt.setString(1, "10");
                    rs = psmnt.executeQuery();
                    if(rs.next()) {
                          byte[] bytearray = new byte[1048576];
                          int size=0;
                          sImage = rs.getBinaryStream(1);
                        //response.reset();
                          response.setContentType("image/jpeg");
                          while((size=sImage.read(bytearray))!= -1 ){
                response.getOutputStream().write(bytearray,0,size);
                catch(Exception ex){
                        out.println("error :"+ex);
               finally {
                    // close all the connections.
                    rs.close();
                    psmnt.close();
                    connection.close();
         %>
         Thanks

    I have done exactly that in one of my applications.
    I have extracted the image from the database as a byte array, and displayed it using a servlet.
    Here is the method in the servlet which does the displaying:
    (since I'm writing one byte at a time, it's probably not terribly efficient but it works)
         private void sendImage(byte[] bytes, HttpServletRequest request, HttpServletResponse response) throws IOException {
              ServletOutputStream sout = response.getOutputStream();
              for(int n = 0; n < bytes.length; n++) {
                   sout.write(bytes[n]);
              sout.flush();
              sout.close();
         }Then in my JSP, I use this:
    <img src="/path-to-servlet/image.jpg"/>
    The name of the image to display is in the URL as well as the path to the servlet. The servlet will therefore need to extract the image name from the url and call the database.

  • What syntax should be used in jspx for img src= c:out value="${}" /

    Dear Friend If I query in a database and the database return a url and with this url  I like to generate an image in jspx.
    *The syntax work ok with the jsp <img src=<c:out value="${abc.xyz}" />*
    *But with jspx it shows syntax error of < What you people recommend for it.*

    I stored all pix in my Tomcat web server where the url of them is as
    http://localhost:8080/pix/anna.jpg etc.
    and I stored the same url in the database table.
    <?xml version="1.0"?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:c="http://java.sun.com/jstl/core"
    xmlns:sql="http://java.sun.com/jstl/sql"
    version="1.2">
    <jsp:directive.page contentType="text/html"/>
    <jsp:directive.page import="java.util."/>
    <jsp:directive.page import="java.text."/>
    <html>
    <head>
    <title>Snap Diary</title>
    </head>
    <body bgcolor="white">
    <sql:query var="img">
    SELECT snap FROM snap_pix
    WHERE name =?
    <sql:param value="${param.name}" />
    </sql:query>
    <img src="${img.snap}" />
    <p>
    <form action="recentsnap.jsp" method="post" >
    <input type="submit" value=" Recent Snap " />
    </form>
    <form action="oldsnap.jsp" method="post" >
    <input type="submit" value="Old Snap" />
    </form>
    </p>
    </body>
    </html>
    </jsp:root>
    the right click on image show this url http://localhost:8080/Snap_Diary/${img.snap}
    where the actual folder in which I stored snap is http://localhost:8080/pix/ and the url which I stored in the database
    is also as http://localhost:8080/pix/anna.jpg etc...
    Query should return the value as http://localhost:8080/pix/anna.jpg not as http://localhost:8080/Snap_Diary/${img.snap}.

  • How can I block a url from accessing my browser?

    I want to block a url from accessing my browser. The url in question, djbsaqja.co.cc, flashed a pop-up saying that my computer was infected with a dangerous virus and that "Windows Security" required that I download a program to fix it.
    I maintain realtime virus protection, but ran a manual scan anyway, which proved that I was clean.
    The url listed above would not let me out of an unending chain of popups, demanding that I download their tool.
    Instead, I opened a new Firefox session (it was the only way I could re-enter Firefox without this rogue url taking control), then cleared out my history, cache and cookies.
    I'm clean...and now I'm back in control with, I believe, no damage. But since I wrote down the url, is there a way that I can block from accessing my browser again?
    Thanks for the help.

    You can add it to your hosts file - http://allthingsmarked.com/2006/08/28/howto-block-websites-using-the-hosts-file
    Sites like that pop up on a regular basis, but will often get taken down quite quickly. I have just checked and the site appears to have been taken down.

  • Get URL from within a Ejb-Container

    Hi all,
    I try to realize a WD-Application with Hibernate ORM. Now it seems , that from within the Ejb the hibnerate.cfg.xml couldn't be found.
    No I try to read the URL from hibernate.cfg.xml. There I did some test with the getResource()-Function. At least I managed to get a URL from a zip-archive, but I'm not able to found the URL from something inside the archive, <b>and my configuration is in an archive!!!</b>
    See the following tests:
      URL myurl11 = cl.getClass().getResource("/"); //works
      URL myurl12 = cl.getResource("/"); //works not! (without getClass())
      URL myurl2 = cl.getClass().getResource("/version.txt"); //works
      URL myurl3 = cl.getClass().getResource("version.txt");//works not (relativ)
      URL myurl4 = cl.getClass().getResource("/apps/sap.com/dc~oracle~ear/src/java/src.zip");//works
      URL myurl5 = cl.getClass().getResource("/apps/sap.com/dc/oracle/ear/src/java/src.zip");//works not
      URL myurl6 = cl.getClass().getResource("/apps/sap.com/dc~oracle~ear/src/java/src.zip/de/pa/ejb/systeme/SystemeDao.java");//works not
      URL myurl7 = cl.getClass().getResource("/apps/sap.com/dc~oracle~ear/src/java/src.zip/de.pa.ejb.systeme/SystemeDao.java");//works not
      URL myurl8 = cl.getClass().getResource("/apps/sap.com/dc~oracle~ear/src/java/src.zip/de.pa.ejb.systeme.SystemeDao.java");//works not 
    As you can see with "myurl14" it works for a zip-file but not futher. How can I get Into an archive? Or even adress things relative?
    Can anybody help me?
    Thanks
    Richard

    Hi Joe,
    Thanks a lot for ur reply,
    But the LD_LIBRARY PATH is set to the user that runs the App Server, Since it is throwing a UnsatisfiedLinkError, there must be a problem with the link only(i.e calling native method).
    The flow of data is as follows
    1 A method from ejb calls another java method in an other java class which is in the same jar file,passing the actual arguments.
    2 That java method calls the Native methos residing in the same class file
    3 The Native mentod calls a c function as usual
    My ejb is working fine up to the Native Method call, at this point it is throwing an error
    All my java files are in a package, and my .h file contains package name in the prototype of c function
    If you get any ideas please mail me ASAP
    ThanQ
    Kiran

  • Help needed with IMG SRC

    Can anyone please help me with this: I have created my own website on IWeb and now I want to use some of my banners on other websites. Problem is: there is something wrong when I fill in the img src code. The banner does not appear, only a question mark. I do not know the answer to that: am I using the wrong URL code or is it something else? I have placed my banners in the public folder, but that makes no difference. Thank you in advance for your help.

    Welcome to the discussions. Assuming your image is in the top level of your iDisk's Public folder, the HTML should look similar to this:
    <IMG SRC="http://idisk.me.com/membername-Public/Image.jpg"/>
    ...If the above doesn't help, post back here with the HTML you're using. You can convert it to character entities for display in this forum via _this site_.

  • Local "img src" in JComboBox

    I've got a JComboBox where one of the elements are added with this text:
    "<html><body style=\"padding:0px;margins:0px;\"><table style=\"padding:0px;margins:0px;\"><tr style=\"padding:0px;margins:0px;\"><td style=\"width:20px;height:20px;vertical-align:middle;padding:0px;margins:0px;\"><img src=\"resources/image.png\"></td><td style=\"height:20px;vertical-align:middle;padding:0px;margins:0px;\"><b> MANAGER</b></td></tr></table></body></html>"How do I get this to work for local folders? I've tried absolute paths, I've tried relative paths (like above), but I just can't seem to get it to work. Internet URLs do work though, but they seem to make the JComboBox lag.
    Thanks in advance!

    Someone has a solution in this post
    http://forum.java.sun.com/thread.jspa?forumID=257&threadID=290240

  • How to obtain a URL from a path in a class' method?

    Hey everyone!
    Newbie here needing to convert the following method from a jsp page into a class for one of our applications.
    I have a method in a class which takes a path (as a string). However, I can't seem to figure out how to have java output the corresponding URL in a jsp page.
    For example, in the jsp file, I would provide something like:
    "./../../../../../../temp/gfx/" as the path.
    The "getRealPath()" method converts it nicely to a URL. However, I can't seem to figure out how to use this method within a class file. Is there a way to obtain the URL from a class' method? If so, how?
    --- old code below ---
    ServletContext application = getServletConfig().getServletContext();
    String msg = "";//#Either the IMG tag or message to be returned.
    File dir = new File(application.getRealPath(IMAGE_DIRECTORY));

    Thanks for that hint!
    Also, we're using Websphere... is there an easy way to take a partial url passed as a string and find the full path for it?
    Example:
    /images/today/
    and have it automatically converted to:
    F:/Inetpub/wwwroot/images/today/
    automatically in java?
    Or is this something where both a full system path and URL need to be passed?
    Thanks!

  • Javahelp Search -- Failed to create URL from jar

    When I attempt to use my search feature, I get the following message:
    Failed to create URL from jar:file:C:\ulcpen10.jar!/ulcp.hs|C:/src/db/pubs/ulc/javahelp/cp-ulc-generatedid-55.html
    Failed to create URL from jar:file:C:\ulcpen10.jar!/ulcp.hs|C:/src/db/pubs/ulc/javahelp/cp-ulc-odbc-tutorial-s-5132529.html
    Failed to create URL from jar:file:C:\ulcpen10.jar!/ulcp.hs|C:/src/db/pubs/ulc/javahelp/cp-ulsynchronize-library-sesql.htmlpresumably, the files that were found in the search were:
    cp-ulc-generatedid-55.html
    cp-ulc-odbc-tutorial-s-5132529.html
    cp-ulsynchronize-library-sesql.html
    but it seems the URL being built is incorrect. I am building my search like so:
    in the xml:
    <view>
    <name>Search</name>
    <label>Search</label>
    <type>javax.help.SearchView</type>
    <data engine="com.sun.java.help.search.DefaultSearchEngine">
    JavaHelpSearch
    </data>
    </view>
    and in the java:
         _jhIndexer = new com.sun.java.help.search.Indexer();
         //outDir is the directory the help is compiled to -- defined earlier
         String searchName = "JavaHelpSearch";
         String args[] = new String[ 3 ];
         args[ 0 ] = "-db";
         args[ 1 ] = outDir + searchName;
         args[ 2 ] = outDir;
         try {
             _jhIndexer.compile( args );
         } catch( Exception e ) {
             e.printStackTrace();
         //addDirectory copies everything from ourDir/searchName to jar/searchName
         jarFile.addDirectory( searchName, outDir + searchName, null );Any ideas how to fix this?
    Thanks,
    Aarnott

    Yesterday I met with the same problem with you, and I read the Javahelp_Guide for several times and today I solve the problem. I reply the topic and want to share the experience with friends.
    First cofirm that you have created the html pages, .hs file, index file, TOC file, map file, and be sure they all work well. We assume you put the last 4 files in D:\HelpFile, and the html pages in D:\HelpFile\HelpPage
    Now we come to the second step -- generate the Full-Text Search Database.
    1. Open "Start" -> "Run" in windows, and input "cmd" command.
    2. Switch to your help folder, here we assume it as D:\HelpFile
    3. Find the path of the jhindexer in the javahelp\bin folder of the JavaHelp system release, e.g E:\JavaHelp\bin
    4. Input the following command in cmd.exe you just open in step 1:
    E:\JavaHelp\bin\jhindexer HelpPage
    the command means to call the tool jhindexer to generate the Full-Text Search database for the html pages in folder HelpPage
    5. you'll find a new folder named JavaHelpSearch generated in the current folder D:\HelpFile
    6. Pack all the files in folder D:\HelpFile as a jar file and you can use it in your system
    Note: 1. avoid asian character in your folder path, though there's no obvious reason but we should avoid possible error.
    2. Full-Text Search need no programming in your program, just do it as the steps ibid.
    release: Javahelp 2.0.05
    Operation System: Windows XP

  • Help with callback from script src= with jsp processing

    I am trying to understand several different ways to get dynamic content into a system I am building. These include:
    1. <script tags to fetch text from a jsp page
    2. <img to fetch images from a jsp page
    3. AJAX to fetch text from a jsp page.
    (In all cases, the jsp pages will eventually get the data from a MySql database, but right now I am using static code.)
    I am having a problem understanding how to use the <script option.
    I am starting with an html page with a javascript callback function and a <script with the callback passed as a parameter. The callback function is based on a sample that I found that works, but I don't have the code for the called jsp page.
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
      <title>Test javascript WebServiceCalls...</title>
      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
    <script type="text/javaScript">
      function ws_results1(obj)
           alert("in ws_results1");
           var myobj = obj.ResultSet.totalResultsAvailable;
           alert("The result is "+myobj);
           this.document.getElementById("showTest1").innerHTML =  "The result is "+myobj;
    </script>
    </head>
    <body >
    <h2 > #1 <SCRIPT tag with immediate loading..... </h2>
    WebServiceCalls #1: Use <script src="---.jsp?---&callback=---"> <br>
    -----------------------------------------------<br>
    Returned code gets inserted in calling page by callback function.  <br>
    NOTE: <br>
    1. Page will delay loading until response is received. <br>
    2. Target for callback function must preceed the %lt;script tag as it must be loaded first or it will not yet exist when the callback function executes.<br>
    <br>
    The following should be dynamically changed: <br>
    <div id="showTest1">Please wait..</div>
    The above line "Please wait.." should be replaced: <br>
    <script type="text/javascript" src="TestWS1.jsp?callback=ws_results1"></script>
    <br>
    <br>
    Rest of page loaded after return...
    </body>
    </html>The jsp page is below. I am pretty sure that I am missing something here...
    <%
       // TestWS1.jsp:  return a simple string.....
       //    (Other versions will return JSON structures or images)
    // For page imports, wrap each line within a pair to avoid blanks and linefeeds... 
    %><%@ page import="java.lang.String" %><%
    %><%@ page import="java.net.*"  %><%
    %><%@ page import="java.io.*"   %><%
    %><%@ page import="java.util.*" %><%
    %><%@ page import="javax.servlet.*"  %><%
       System.out.println("TestWS1.jsp: begin");
       //  Use PrintStream to allow very long content made up of strings...
       //    thanks to:  http://kickjava.com/1793.htm  
       ByteArrayOutputStream baos = new ByteArrayOutputStream (  ) ;
       PrintStream ps = new PrintStream ( baos ) ;
       ps.println("\"TestWS1: This is the returned string as HTML <br> This can be any HTML code.<br>\"");
       // now write the ByteArrayOutputStream to the outputstream   
       response.setContentType("text/html");
       response.setHeader("Pragma", "no-cache");
       response.setHeader("Cache-Control", "no-cache");
       response.setDateHeader("Expires", 1);
       response.setDateHeader("max-age", 0);
       OutputStream os = response.getOutputStream();
       baos.writeTo(os);
       os.close();
       System.out.println("TestWS1.jsp: done");
    %>When I run TestWS1.jsp, I get the expected entries in the system log and the expected output:
    "TestWS1: This is the returned string as HTML <br> This can be any HTML code.<br>"However, when I run the TestWS1Call.html, I get the entries in the system log but nothing fires the javascript function.
    What am I missing?
    Thank you

    I found a solution to loading dynamic content using the <script src= tag.
    This approach seems to be useful (a) for situations in the jsp content is dependent on client-side characteristics
    (such as window size) and (b) because it seems to work on any browser with javascript and does not require an
    ActiveX for older versions of IE.
    I wrapped the output of the jsp page inside a javascript call to the callback function
       ps.println(callback+"(\"TestWS1: This is the returned string as HTML <br> This can be any HTML code.<br>\")");I also changed the content type to javascript.
       response.setContentType("text/javascript");Now, when the script tag is found, the jsp page returns a javascript function call to the callback function and passes
    the desired content as a single parameter. The callback function then places the content in the appropriate
    location on the page.

  • Dreamweaver CSS Mac writes image links wrong... img src="/www/images/asian_sales_office.jpg"

    Dreamweaver CSS Mac writes image links wrong... <img src="/www/images/asian_sales_office.jpg" width="x" height="x" alt="x"> Took me a bit to find this, now back to hand coding all image links and also checking other code. Any fixes?

    That looks to me like you may have your site definition set up incorrectly and you appear to be using "Site Root Relative" vs "Document Relative"
    Go to Site > Manage Sites > click the  site you are working on > Click the Edit icon > Advanced Settings > Links relative to: should be set as Document, unless you have a very specific reason for choosing Site Root there
    If your server root folder is called www, you'll need to remove that folder from your site root. You are only transferring files from root to root, so the name of your local root folder is not important (the files inside it go to the server root). It is important not to accidentally have a duplicate of the server root folder inside your local root though which would accidentally nest your files within another folder when transferring to the server.

  • Get full caller URL from JSP

    I have several static Web pages calling a JSP page using IFrame src. Is there a way to get the full URL of calling Web pages within the JSP? Below is an example to illustrate what I have to do. I don't have to call JSP from IFrame src if there is another way to make this work.
    JSP is called from:
    http://somewhere.com/home/
    JSP outputs:
    http://somewhere.com/home/
    JSP is called from:
    http://somewhere.com/work/
    JSP outputs:
    http://somewhere.com/work/

    Each (i)frame spawns a new HTTP request. If you want to do it all in single request, use jsp:include instead of iframe.

  • IMG SRC="???" I've read old threads...

    Hello,
    I've spent 2 days pulling my hair out trying to get a servlet to present an image in html the same old boring easy way you would do it in a web page. I have searched this forum and read many threads, trying what each of them suggested, and uniformly failing to get anything going. In a last ditch effort, I am going to bug you folks with what is obviously an old problem. I certainly appreciate any help. By the way, I am a complete newbie to web programming, just in case that wasn't obvious ;)
    Directory Structure
    _________ROOT___________
    | | |
    WEB-INF PotteryPics index.html
    | |
    | _________
    | | |
    | Pottery Utility
    |
    | | |
    classes lib web.xml
    | |
    | catalina-root.jar
    |
    org
    |
    apache
    |
    jsp
    In total desperation I tried the following code just to see if it would work on the server machine. It did indeed produce a perfect looking page, but, of course, it failed when accessed from the web:
    "<IMG SRC=\"C:/jakarta-tomcat-5.0.24/webapps/ROOT/PotteryPics/Pottery/Picture.jpg\">"
    This also worked:
    "<IMG SRC=\"C:\\jakarta-tomcat-5.0.24\\webapps\\ROOT\\PotteryPics\\Pottery\\ Picture.jpg\">"
    This, however, and MANY other attempts similar to it uniformly fail:
    "<IMG SRC=\"../PotteryPics/Pottery/Picture.jpg\">"
    I'll refrain from saying anything more for now...no sense in repeating everything I tried with moving directories etc.
    Thanks for you time,
    Keith Myers

    Non-mangled version ( I hope )
                                                 _________ROOT___________
                                                |          |             |
                                            WEB-INF    PotteryPics    index.html
                                                |          |
                                                |       _________
                                                |      |         |
                                                |   Pottery    Utility
                                                |
                                       |        |          |
                                   classes     lib      web.xml
                                       |        |
                                       |    catalina-root.jar
                                       |
                                      org
                                       |
                                    apache
                                       |
                                      jsp

  • Open URL from a report

    Hi, I need to make a connection to URL from a report. Is it posible? thanks.

    hi jose,
    please try the following.
    CALL FUNCTION 'GUI_RUN'
      EXPORTING
      command ='IEXPLORE.EXE'
      PARAMETER ='WWW.YAHOOMAIL.COM'.
    CD =
    IMPORTING
    RETURNCODE =
    and if u want hyperlink then,
    *REPORT ZURL NO STANDARD PAGE HEADING.
    DATA: BEGIN OF URL_TABLE OCCURS 10,
    L(25),
    END OF URL_TABLE.
    URL_TABLE-L = 'http://www.lycos.com'.APPEND URL_TABLE.
    URL_TABLE-L = 'http://www.hotbot.com'.APPEND URL_TABLE.
    URL_TABLE-L = 'http://www.sap.com'.APPEND URL_TABLE.
    LOOP AT URL_TABLE.
      SKIP. FORMAT INTENSIFIED OFF.
      WRITE: / 'Single click on '.
      FORMAT HOTSPOT ON.FORMAT INTENSIFIED ON.
      WRITE: URL_TABLE. HIDE URL_TABLE.
      FORMAT HOTSPOT OFF.FORMAT INTENSIFIED OFF.
      WRITE: 'to go to', URL_TABLE.
    ENDLOOP.
    CLEAR URL_TABLE.
    AT LINE-SELECTION.
    IF NOT URL_TABLE IS INITIAL.
      CALL FUNCTION 'WS_EXECUTE'
           EXPORTING
                program = 'C:\Program Files\Internet Explorer\IEXPLORE.EXE'
                commandline     = URL_TABLE
                INFORM         = ''
              EXCEPTIONS
                PROG_NOT_FOUND = 1.
      IF SY-SUBRC <> 0.
         WRITE:/ 'Cannot find program to open Internet'.
      ENDIF.
    ENDIF.

Maybe you are looking for