Urgent ! HyperLink in JSP

Dear fellows,
What i want to do is
for example :
I have following JSP page which look like
FormID DepartmentID ViewDetails
cs101 dcs viewdetails (this is hyperlink)
and FormID and DepartmentID are fatched from database
what i want to is when is click that (viewdetails) hyperlink go to next page where data will be fatched from database according to formID.
Thanks.
if any don't understand. just mail me at [email protected]

It looks like you have posted this last week too.
In ViewDetails link, call do action which will bring values from the database.
View Details
have an actionmapping in your struts-config.xml for details.do, which will have forwarding page.

Similar Messages

  • How to display record in hyperlink in JSP?

    Does any knows how to display the records in hyperlink? That's mean when I retrieve data from one database....two records...let's say peter and thomas....then i want the two records display in hyperlink....that's mean two records can be clicked by the user....and after the user clicked on either one of the record.....the record's value will be able to pass to the other page for use...
    Can anyone pls help me of this?Thank in advanced....

    This will pass the Value from the DB as Query Parameters to the Target JSP.
    Peter
    Thomas

  • How to do the hyperlink in JSP?

    Hi,
    I have a category jsp page which select category name from database.
    <%
      CategoryEntity CurCategoryEntity = new CategoryEntity();
      CategoryItem[] AllCategory = null;
      AllCategory = CurCategoryEntity.GetCategoryList();
      if(AllCategory==null)
        out.println("No category in our system!");
      else
        String ReferenceURL = "/servlet/category.CategoryServlet";
        int CategoryListSize = AllCategory.length;
        for(int i=0; i < CategoryListSize; i++)
          String CategoryName = AllCategory.getCategoryName();
    out.println("<font size=2><font face=Verdana, Arial, Helvetica, sans-serif>" + CategoryName +"</font></font><br><br>");
    %>
    The for loop statement lists out all category names in category table of DB.
    e.g.
    Adventure
    Cooking
    Music
    Travelling
    Dancing
    How can I make the hyperlink on them in the above for loop statement? And, how can the user clicks the "Cooking" category, all products under "Cooking" will list out?
    How should the jsp pass the valuable and how should the servlet handle it and pass it to entity?
    Any free online tutorial?
    Thanks

    Hi,
    The first one works fine, but the second PrepareStatement throws Exception.
    javax.servlet.ServletException
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
         at org.apache.jsp.Productlist$jsp._jspService(Productlist$jsp.java:118)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:536)
    What's wrong with my code? I did replace the '?' with item in the SQL statement.
    Thanks for help.

  • URGENT help with JSP

    Any help with this will be really appreciated. I'm new to programming.
    If I search for an ssn in a database, I want to view all records relating to that ssn. However, I am getting all the records in the table.
    eg.
    at the prompt for ssn, let's say I enter 111111111
    I would like to see
    111111111 abc xyz etc
    111111111 pdg ppp etc
    however, I am getting
    000000000 utt tui etc
    111111111 tug etg etc
    How do I make limit the search to the ssn I want?
    The related code is below.
    Thanks.
    Java Code
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    if (checkLoginSessionPresent(request, response)) {
    loadTable("/esoladm/TaxView.jsp", request, response);
    else {
    checkLoginSessionRedirect("/esoladm/ESOLAdminMain.jsp", request, response);
    JSP Code
    <% while (MyTaxSuppress != null) { %>             
    <% String sPlanCode = MyTaxSuppress.getPlanCode(); %>
    <% String sSSN = MyTaxSuppress.getSSN(); %>
    <% String sTaxYear = MyTaxSuppress.getTaxYear(); %>
    <% String sDistCode = MyTaxSuppress.getDistCode(); %>
    <% double sGrAmount = MyTaxSuppress.getGrAmount(); %>
    <% String sStmtType = MyTaxSuppress.getStmtType(); %>
    <% boolean bNewSuppress = MyTaxSuppress.getNewSuppress(); %>
    <% String rowID = sPlanCode; %>
    <% rowID += sSSN; %>
    <% rowID += sTaxYear; %>
    <% rowID += sDistCode; %>
    <% rowID += sStmtType; %>
    <% rowID += sGrAmount; %>
    <% System.out.println( "Do While lp exiti" + rowID);%
    <% if (bNewSuppress) { %>
    <% out.println( "<TD> %>
    <% <img BORDER='0' SRC='/esoladm/ESOLNew2.gif' %>
    <% ALT='' WIDTH='50' HEIGHT='20'> </TD >"); %>
    <% } else { %>
    <% out.println( "<TD></TD>"); %>
    <% } %>
    <TD><%= sPlanCode %></TD>
    <TD><%= sSSN %></TD>
    <TD><%= sTaxYear %></TD>
    <TD><%= sDistCode %></TD>
    <TD><%= sGrAmount %></TD>
    <TD><%= sStmyType %></TD>
    <TD><input TYPE="checkbox" name="<%=rowID %>" ></TD>
    <% MyTaxSuppress = MySuppressTaxList.getNext(); %>
    <% } // end of while loop %>

    I don't see anywhere in your code where you conditionally output a tuple from your database. You seem to be outputting everything.
    Maybe you need:
    <% if (sSSN==input_value){ %>
    <TD><input TYPE="checkbox" name="<%=rowID %>" ></TD>
    <% } %>

  • Urgent Help in JSP for multiple records update

    I have a Order Placement form for the dealers. Here they place their orders online and submit the form. The details they enter are stored in Orders table in a database. This order is sent for processing. This is an external operation for the users of our products.
    This table has two extra fields AccptNo and DelDate, which are filled in by the Admin of the Stores Dept of our company. The Admin then logs in and views the new orders. He sees the new orders displayed in the following format. The data shown is from the Orders table.
    He is then reqd to just fill in the Accpt No and Del Date against the requisite Order.
    Having finished filling up all the details he clicks the Submit button which updates the Orders table. i.e the existing records are updated with the accptno and del dates or rather the records are overwritten.
    <html>
    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>New Page 1</title>
    </head>
    <body>
    <p><b><font size="3" face="Arial Unicode MS" color="#FF0000">Orders - Admin
    Page.</font></b></p>
    <b><font size="2" face="Verdana" color="#0000FF">
    Following are the new pending orders.</font></b>
    <form method="POST" action="updtOrd.jsp">
    <div align="center">
    <center>
    <table border="1" cellspacing="0" width="68%" bordercolor="#000080">
    <tr>
    <td width="13%" align="center"><font size="2" face="Arial Unicode MS"><b>Dealer
    Id</b></font></td>
    <td width="11%" align="center"><font size="2" face="Arial Unicode MS"><b>Product</b></font></td>
    <td width="13%" align="center"><font size="2" face="Arial Unicode MS"><b>Quantity</b></font></td>
    <td width="10%" align="center"><font size="2" face="Arial Unicode MS"><b>Value</b></font></td>
    <td width="53%" align="center"><font size="2" face="Arial Unicode MS"><b>Acceptance
    No.</b></font></td>
    <td width="53%" align="center"><font size="2" face="Arial Unicode MS"><b>Delivery
    Date</b></font></td>
    </tr>
    <tr>
    <td width="13%"><font size="2" face="Verdana">d0116033</font></td>
    <td width="11%"><font size="2" face="Verdana">ABC</font></td>
    <td width="13%"><font size="2" face="Verdana">100</font></td>
    <td width="10%"><font size="2" face="Verdana">100000</font></td>
    <td width="53%"><input type="text" name="T1" size="20"></td>
    <td width="53%"><input type="text" name="T6" size="20"></td>
    </tr>
    <tr>
    <td width="13%"><font size="2" face="Verdana">d0116065</font></td>
    <td width="11%"><font size="2" face="Verdana">XYZ</font></td>
    <td width="13%"><font size="2" face="Verdana">160</font></td>
    <td width="10%"><font size="2" face="Verdana">16000</font></td>
    <td width="53%"><input type="text" name="T2" size="20"></td>
    <td width="53%"><input type="text" name="T5" size="20"></td>
    </tr>
    <tr>
    <td width="13%"><font size="2" face="Verdana">d0116058</font></td>
    <td width="11%"><font size="2" face="Verdana">PQR</font></td>
    <td width="13%"><font size="2" face="Verdana">300</font></td>
    <td width="10%"><font size="2" face="Verdana">3000000</font></td>
    <td width="53%"><input type="text" name="T3" size="20"></td>
    <td width="53%"><input type="text" name="T4" size="20"></td>
    </tr>
    <tr>
    <td width="153%" colspan="6">
    <p align="center"><input type="submit" value="Submit" name="B1"></td>
    </tr>
    </table>
    </center>
    </div>
    </form>
    </body>
    </html>
    I hope this makes the scene clear still you may eat my head for more clarifications but please help me.
    Can mail me at [email protected]
    ThanQ

    Name your textfields for accetance number and del date as your primary key that must be dealer id in your case.
    You can do this by writing <input type=text name=<%=<something>%>>
    Then you can get all the parameters in jsp to which you are going to submit your request by using function getParameterNames(). That will return you all the primary keys posted as name of your textfield. Then get the parameter value from parameter name and run the sql.

  • URGENT: sp6 and JSP compiling/classpath problem?

    Hi,
              We installed sp6 on our production site a little over a week and started
              seeing this problem on our logs with regards to any JSP with an include tag,
              such as:
              <%@ include file="/inc/insideHeadTag.jsp" %>
              INTERMITTENTLY, we will get the following error in the page on the client
              side at runtime:
              < ! -- cannot include file '/inc/insideHeadTag.jsp', resource not
              found -- >
              I grepped this newsgroup and noticed a previous unanswered post of the same
              nature, "Static compiles do not seem to include JSP's". Except in our case,
              this problem also manifest for dynamic JSP compiles, happens sporatically,
              and only started with sp6.
              Bug???
              Gene Chuang
              Join Kiko.com!
              

              Just to clarify - I'm not from BEA, I'm from EA - short a letter.
              As far as I know, there is no synchronization between WL instances in a cluster regarding the
              the compiling of JSPs. So when you start up two WL instances that share the same workingDir,
              and each WL instances gets a hit on your shiny new index.jsp, they both need to compile it. So the first
              one compiles it and writes index.class, the second does the same, overwriting the first _index.class,
              possibly at the same time that the first instance is trying to load _index.class into memory. And you
              get a mysterious 'class not found' error. Not likely, but possible.
              "Gene Chuang" <[email protected]> wrote:
              >Hmm, interesting... I thought Weblogic strongly recommends clustered
              >servers sharing the same file system?
              >
              >So you're saying the system-wide, cluster and node specific directories can
              >reside on the shared drive, but workingDirs should reside on local drives?
              >
              >--
              >Gene Chuang
              >Join Kiko.com!
              >
              >"Mike Reiche" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> Make sure that your WLS instances are NOT sharing the workingDir. If two
              >instances
              >> try to compile the same JSP at the same time, bad things can happen.
              >>
              >> Mike
              >>
              >> "Gene Chuang" <[email protected]> wrote:
              >> >Hi Jong,
              >> >
              >> >Thanks for the reply; but I wish the solution is as simple as that.
              >Yes,
              >> >my .jsps are in the proper directory. They have been working properly
              >for
              >> >the past 6 months, since we were running WL 4.5.1. Only when I switched
              >to
              >> >WL 5.1 sp6 did this bug start showing up. Plus, like I said in my
              >original
              >> >post, this bug is sporatic. SOMETIMES the included jsp is found by
              >Weblogic
              >> >and the includer jsp compiles correctly; other times it isn't found and
              >the
              >> >includer jsp leaves a gap! What's going on?
              >> >
              >> >We are running clustered web servers in Solaris 2.7 with a shared file
              >> >system. This sporatic behavior may be because some nodes aren't working
              >> >properly???
              >> >
              >> >--
              >> >Gene Chuang
              >> >Join Kiko.com!
              >> >
              >> >"Jong Lee" <[email protected]> wrote in message
              >> >news:[email protected]...
              >> >>
              >> >> "Gene Chuang" <[email protected]> wrote:
              >> >> >Hi,
              >> >> >
              >> >> >We installed sp6 on our production site a little over a week and
              >started
              >> >> >seeing this problem on our logs with regards to any JSP with an
              >include
              >> >tag,
              >> >> >such as:
              >> >> I assumed insideHeadTag.jsp is in
              >> >> YOUR_DOCUMENT_ROOT/inc/insideHeadTag.jsp
              >> >>
              >> >> if you haven't read the spec of relative URI please do so:
              >> >> jsp spec 1.1 - section 2.5.2
              >> >>
              >> >> Jong
              >> >>
              >> >> >
              >> >> > <%@ include file="/inc/insideHeadTag.jsp" %>
              >> >> >
              >> >> >INTERMITTENTLY, we will get the following error in the page on the
              >client
              >> >> >side at runtime:
              >> >> >
              >> >> > < ! -- cannot include file '/inc/insideHeadTag.jsp', resource not
              >> >> >found -- >
              >> >> >
              >> >> >I grepped this newsgroup and noticed a previous unanswered post of the
              >> >same
              >> >> >nature, "Static compiles do not seem to include JSP's". Except in our
              >> >case,
              >> >> >this problem also manifest for dynamic JSP compiles, happens
              >> >sporatically,
              >> >> >and only started with sp6.
              >> >> >
              >> >> >Bug???
              >> >> >
              >> >> >Gene Chuang
              >> >> >Join Kiko.com!
              >> >> >
              >> >> >
              >> >> >
              >> >>
              >> >
              >> >
              >>
              >
              >
              

  • Urgent:JMS AND JSP

    I am working with an architecture which has JSP pages talking to JMS message bean and in turn message bean talks to EJB, which persists the user data.
    I am quite new to JMS. My understanding is that JMS is used for Asynchronous operations. The requirement is a user can enter some data using form and the jsp page is supposed invoke a message bean which goes through other layers to store the info in the DB and should display a user An ID from the DB. How do I implement a mechanism to get message back from the Message Bean? I am using WebLogic Appserver 6.1. Please help

    First of all, you need to realize that your client and users are not the same thing. All your web requests come thru the webserver and into a certain application space, and your message queue is associated with that application, not each web user. So you only have one client to the message queue.
    Clearly you need to identify each web user in a unique way.
    Generate a sequential and unique ID for each web user and keep this is a hashtable. Remove it from the hashtable once the web user has no longer used it after a certain timeout period. If you are using Servlets then use the Session ID which is sent and received in cookies and used to link the broken session of web browsing.
    Send this unique ID with your message. And then link it back up to the original web user, once you have received a response from the queue.
    It does'nt sound like you need message queues though, since you want to return an immediate response to your client. However, look into Session.CLIENT_ACKNOWLEDGE which provides a synchronous receiver. I doubt if it will solve your problem as this works on the session level and not the message level. But check it out.
    I dunno, your question is vague, you need to provide more info.

  • Urgent : Trees in JSP

    hii guys
    i am very new to jsp..i want to display a employee hierachy structure( who reports to whom)..
    current i am using java swing tree and loading it in applet..but this is giving me problem because of the large size of driver file..
    i would like to know if i can embed swing tree or any other tree which jsp supports.i want to update the tree dynamically i.e when the user clicks on a employee i wnat to expand it to show who reports under him...
    plzzz reply very soon..thanks
    sairam

    JSP has no native support for displaying trees. Hence I have created a tag library to solve the problem
    http://www.jenkov.dk/projects/treetag/treetag.jsp
    Jakob Jenkov
    www.jenkov.dk

  • Urgent: array on jsp

    hi
    can you please help me. i want to create an array, i get my data which is stored on the array on mysql database. here is my code:
    <% String[] subjects = {rsstudents.getObject("subj1"), rsstudents.getObject("subj2"), rsstudents.getObject("subj3"), rsstudents.getObject("subj4"), rsstudents.getObject("subj5")}; %>
    its giving me an error which says
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\home_jsp.java:138: '}' expected
    i will glad if you can help

    this is bcas u have not typecasted it to string
    do it this way
    <%
    String[] subjects = {(String)rsstudents.getObject("subj1"), (String)rsstudents.getObject("subj2"), (String)rsstudents.getObject("subj3"), (String)rsstudents.getObject("subj4"), (String)rsstudents.getObject("subj5")};
    %>

  • If i click hyperlink field in jsp what the steps i want to take in struts

    If i click hyperlink in jsp what is the action i want to take in struts if the click the hyperlink display the record of that field

    If i click hyperlink in jsp what is the action i want to take in struts if the click the hyperlink display the record of that field

  • Urgent ...... jsp help

    hi.
    i need an urgent help with jsp and the database query.
    i have a combo box that has the list of products (this is a query) that i get when a customer logs in to our system with proper authorization. when a person clicks on a product, i need to do a query to get all the brands of that product and form another combo box.
    for example:
    i have a combobox that has products like monitors, soundscard, harddisk, floppy, etc...
    now when i click on say monitor, i have to generate a combobox with the list of monitors like, dell, compaq, viewsonic, etc... on the same page. how do i do that? does this have to be done using javascript using onChange()? if yes, then how do i do it? can we do sql query using javascript?
    any help will be highly appreciated.
    kushan

    No, you can't execute SQL queries using Javascript. You can, however, use the onChange to repost the page and load the correct brands into the new ComboBox. While this is not the most elegant solution (it usually results in a quick screen flash to the user), it is fairly easy and effective.
    Alternately you could use some extensive Javascript to pull all the potential products and brands ahead of time and populate the combobox, resulting in a slightly more seamless transition. This is slightly harder to accomplish, and the original query will take longer since all the possibilities must be returned from the database.

  • When using hyperlink, how to build the URL?

    I open a report using followin URL
    http://machine_id:portnum/reports/rwservlet?report=C:\oracle_reports\test.jsp&USERID=uid/pwd@db&DESTYPE=cache&mode=bitmap&desformat=html&pagestream=yes&paramform=yes
    then this will open a report
    I want to add a hyperlink within this report to create another report named test2.jsp (in same folder as test.jsp)
    because within this report (test.jsp) I don't know how to get machine_id(or IP adress), portnum, path of the file, and all.
    I just know file name to be opened from the hyperlink (test2.jsp)
    Is there any way to get the URL used to open current report within the report running.
    What i'm trying to say is, when i open the test.jsp, I know the ip address, portnumber, path of the file and file name, and all parameters, so I can open test.jsp, but when i open test2.jsp from test.jsp, I don't have have those info, so how do i get those info within running report of test.jsp.
    also second question is, i wanna create a link to display current report in pdf format. In order to do that, i need to create a hyperlink exactly same as above except for desformat=pdf
    is there any easy way to achieve this task? (actually first question's answer can be same answer for this question)
    Thanks

    Hi Hanjoo,
    I am assuming for this reply that your test.jsp and test2.jsp are deployed on the SAME host machine.
    In that case, as the first step, put the file path (C:\oracle_reports) in the REPORTS_PATH environment variable on your machine.
    Then you can use a hyperlink like this inside test.jsp:
    /reports/rwservlet?report=test2.jsp&USERID=uid/pwd@db&DESTYPE=cache&mode=bitmap&desformat=html&pagestream=yes&paramform=yes
    For a PDF report output, you can use
    /reports/rwservlet?report=test.jsp&USERID=uid/pwd@db&DESTYPE=cache&mode=bitmap&desformat=pdf&pagestream=yes&paramform=yes
    The machine name and port number will automatically be pre-pended to the above hyperlink at runtime.
    Hope that helps.
    Navneet.

  • Hyperlink to local file

    This is very simple, and incredibly frustrating :-) I want to call a local file from a hyperlink (say c:\test.txt) but putting this in a hyperlink url does absolutely nothing, the link is completely dead.
    On a colleagues machine his link url gets a ";jsessionid=...." string appended to his which doesn't happen on mine either but neither machine can call a local file of any sort. Surely this is a bug of some sort? Or am I blind to some obvious reason it can't be done?

    Hi AidanM,
    I have exactly the same problem like you and I tried this (using creator):
    I inserted following JS code into the ui:head tag of the jsp:
    <ui:head binding="#{Page1.head1}" id="head1">
    <script type="text/javascript">
    function openHelpHTML() {
    window.location.href("C:/tmp/test.html");
    </script>
    then I set the target property of the hyperlink to "new window" (customer's requirement) and the onClick property to openHelpHTML(). When I click the hyperlink, the JSP ist reloaded and in the background a second browser window is opening and displaying the HTML-page.
    My second problem now is that I cannot write something like that:
    <ui:head binding="#{Page1.head1}" id="head1">
    <script type="text/javascript">
    function openHelpHTML() {
    window.location.href("#{ApplicationBean1.helpPath}");
    </script>
    I wanted to write the path into the web.xml as parameter, so that I can change it later (if needed). but it does not work.
    I�m not sure if this "solution" suits my (customer`s) needs but maybe it�s ok for you?
    cheers
    I�ve just found out that window.location.href (C:/tmp/test.html) does not work in IE because it`s a local html-file and I got an error:
    "Access denied".
    It worked in my test-project because I had set the path to H:\tmp\help.html and H: is a network drive.
    So I decided to change the path to the path of the webserver (in my case Tomcat 6.0):
    window.location.href("http://localhost:8080/help/test.html");
    where "help" is a folder in webapps folder of Tomcat.
    Message was edited by:
    dan_k

  • Need Regular Expression to convert URL to Hyperlink

    I need Help Please..........
    I am fairly new to Java and really new to Reg Exp. I have a String that has normal text and may contain a URL. I would like to display the URL as A hyperlink using JSP.
    Can anyone help.

    This is actually not that hard, if you know where the text is located? Using the regex you can find the beginning and ending pattern of text that you are looking for. Then extract the data and put it into a variable. add stuff to it if you need by concatenating it like: "http://"+variable+".com" what every you need.
    something like this will help.
    String page = new String("");
              String inputLine;
              // This is sorta strange, but I use the concat to put the whole string on one line.
              // besides it is just for looking through. I use the trim() to get rid of whitespace.
              while ((inputLine = in.readLine()) != null)
                  page = page.concat(inputLine.trim());
             // The "URL:" is basically a pattern match to find in your text file.
             // and the font tags are where the data is to be extracted between, by using the split()
             //  I used this to extract data from Websites, but you can use it on text files, xml files, etc...
             // as long as you can pattern match.
              String urlString = (String)(page.split("\\<[Bb]\\>URL:\\</[Bb]\\>")[1].split( 
              "\\<font size=\"-1\"\\>")[1].split("\\</font>")[0].trim()); 

  • Hyperlink problum in oracle http server

    Hi
    i have problum that my hyperlinks in jsp pages are not working
    properly (hyperlink works after 2 clicks),and also 1 more
    problum is that if i clicks on another link after single click
    on previous link then page opens (strange, but im facing)
    Theme of the story is alternate clicks works.
    where may be the problum...........?
    possible causes...? pl help in this regard.
    Thanks
    Amit

    In summary:
    You need to create a new wallet with CSR (certificate signing req)
    Send this to your certificate authority and get the signed server certificate.
    Now import the signed server cert and the trusted root cert in to the wallet that you created newly.
    Modify ssl.conf to point to the new wallet location.
    To create wallet refer to : http://docs.oracle.com/cd/E25054_01/core.1111/e10105/wallets.htm#CHDGIJDC
    Further reference: http://docs.oracle.com/cd/E25054_01/core.1111/e10105/sslconfig.htm#CBDGIJDF
    Dont mind if this doc is 500 pages ;)

Maybe you are looking for

  • How to Install Solaris 10 on Sun Server

    Dear All, Can any one help me to Install Solaris 10 on Sun Server. Or if you guys can suggest me which document i can refer for Solaris 10 installation. Thnaks in advance to all. Rgds, Shrinet

  • Work around for capturing 24p in FCE

    I am working on a clients system its a new Mac Power Book Pro running FCE 4. Shot some HD footage at 24p. I have discovered that FCE does not natively capture 24p. Anyone suggest a good work around? trying to capture at 29.97 the footage stuters pixi

  • OS X freezes whenever I cannot force quit an application

    About twice a week I have an application that will hang. Usually when I close my MacBook Pro while the app is running. The app will not quit or force quit, if I try to restart the OS, it hangs and I have to hold the power button down to shut it off.

  • Peculiar problem in LDB ADA with company code selection

    <h5>Hello Colleagues, </h5> Faced a peculiar problem with company code selections in LDB ADA. Entered depreciation area, dep posting perios, lower and higher value of company code and would like to except few companies from selections. On pressing ex

  • Converting Master Text Templates from 1280 to 720

    Is there a way to do this? I'm looking to convert the HD master Templates that I use to my 720 x 480 project. Probably something simple, I'm just missing it. Thanks!