Content search over jsp pages

          Hi,
          I am using IIS indexing server to do the content search, but the site is writetn
          in jsp page, so i need to produce the same file in html to be searched. It is
          pain to modify the content. Is there a way to search jsp pages?
          Thanks
          

Well, Servlet and JSP both are server side technologies and both can be used in web applications. You can write web pages using both servlet and JSP. In fact, your JSP pages are converted to Servlet by container while serving requests. However, writing a JSP page is relatively easier and requires minimal Java knowledge.
When you will develop real world java based web applications you will find that you are writing more JSP pages than servlet.
In a typical MVC (Model View Controller) architecture a single servlet is used as controller and JSP pages are used to generate web content.
Thanks,
Mrityunjoy

Similar Messages

  • How to display a document content in a JSP page

    Hi friends,
    I am trying to display a document's content in a JSP page after user authentication.For that I mapped a jsp file with extension ".sens" in Content Management SDK manager,and put the file in the directory '/ifs/jsp-bin' of webstarterapp,but it is not working.Please help me to solve the probleb as earliest.
    Regards
    Prasenjit

    under view put a new tag
    <f:view>
    <ui:script url="page.js"/>
    and thats it

  • Exporting Content of a JSP page into Excel Spread Sheet

    I am trying to export the content of a JSP page into an excel spread sheet. I know this issue had been posted before, but if you any one has the source code of a sample that's working please send it to me at [email protected]
    Your help is appreciated.
    Jamais.

    http://forum.java.sun.com/thread.jspa?threadID=664249

  • How to show an xml content in a Jsp page?

    I use <jsp:include page=".....xml" /> tag in a jsp file to include an xml file. When this jsp page is open, only the text content in the xml file shows up with plain text. I want this xml file shows up like in IE (with xml format). Does anyone know how to do it? Thanks.
    northcloud

    Thank you, BalusC & evnafets. Someone told me to use <c:import> to load the XML file into a scoped variable, and then use <c:out> to display it. The <c:out> will automatically convert the markup to HTML entities. I tried it, it works. It shows the content in the xml file as plain text (a long string). Any one give me some suggestion to make it looking better, for example, show each element in seperated lines. Thanks.

  • Refreshing the Content on a JSP page

    Hi,
    I am developing an application where a JSP page (index.jsp) is displaying some data from the database. There is an HTML form on the JSP page too. When the user fills in the data and clicks submit, he is redirected to a servlet (via form's action)... the servlet inserts the data into the database and the user is redirected back [Response.sendRedirect("index.jsp")] to the original JSP page.
    The problem I am facing here is that when the user is back on the original index.jsp page, the newly inserted data is not being displayed on the page. The user MUST refresh the page manually in order to view the new data.
    How can I display the new data automatically, without the user refreshing the page?
    PS: I have already tried <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">... but it is not working...
    Any help will be greatly appreciated.
    Thanks.

    Thanks for info... Have you got any idea of dynamic updation of JSP page? I have been debugging the problem since 2 days and I have tried various methods but nothing seem to help. I have tried to use meta http-equiv and javascript as well for the refresh but its of no use...
    My business logic is pretty simple...
    index.jsp
    =======
    [Connect to database]
    [Fetch  & Display data]
    [HTML Form] ---> submit to Servlet 'test'
    test.java (Servlet)
    ======
    [Fetch the request parameters sent by JSP page]
    [Insert the record into database]
    [response.sendRedirect("index.jsp");]

  • Save content of a JSP page to word document

    I am using jsp page to fill data to the page & download the page as a word file
    response.setContentType("application/vnd.ms-word");
    response.setHeader("content-disposition","attachment; filename=Application.doc");
    This page download asking open save dialog box.
    when we open this it gives other save dialog box.
    Can u help me.
    Thanks

    Hello Boris!
    You can use the WordRpt_NewPage function to add a new page into an opened word document.
    Here is some documentation about this function: http://zone.ni.com/reference/en-XX/help/370051Y-01​/toolslib/functionreference/cviwordrpt_newpage/
    You'll also find useful hints on how to use it in the sample program that ships with CVI: <samples>\activex\word\wordrpt.prj.
    Best regards!
    - Johannes

  • How to implement content caching for jsp page ?

    Hello everyone,
    I am reading an article <Servlets and Jsp Best Practice>,at
    http://developer.java.sun.com/developer/technicalArticles/javaserverpages/servlets_jsp/#author, on one section it is saying :
    "Cache content: You should never dynamically regenerate content that doesn't
    change between requests. You can cache content on the client-side, proxy-
    side,or server-side. "
    Now I am working on a project. For every user, some of the content servlet generated will be the same for at least a week . I am thinking if I implement caching for these jsp pages, that would increase performace a lot.
    But I have no idea how to implement it either client-side or server-side, can someone give me a hint ?
    Thanks,
    Rachel

    You mean actually you are caching the response stream
    and the key to distinguish between different response
    streams are made of user's different request
    parameters. And the filter's function is to intercept
    the request to see if this request parameter's
    combination already exists in the Hashmap,then either
    use the cached response or forward to
    servlet.....really interesting...Do I get it right ?Yes that's it in a nutshell.
    >
    Then how do you build those response streams in
    advance ? You did it manually or have some mechanism
    to build it automatically ?
    The data gets cached the first time somebody visits the page.
    Find some examples on Filters, and take a look at the HttpServletResponseWrapper class. You need to cache response headers as well as the body. Another pitfall that you might run into is handling an If-modified-since header on the request. Don't cache the results of those requests.
    -Jonathan
    >
    Thanks again !
    Rachel

  • Subject content missing access JSP page on Unix

    Hi, everyone:
              I've got a problem when I access my JSP page on unix system.The
              problem is that when I transfer a varable from one page to next. Some
              content are missing. But when I access this page on PC, no this
              problem.
              

    Hi Joseph,
              I have two JSP pages: messages page which has a reply link, it can
              link to replies page.
              <a href = "messages.jsp?CatName=<%= sCatName %>&CatID=<%= sCatID
              %>&MsgID=<%= sMsgID %>"><%=sHeader%></a>
              In this statement, sHeader will go to replies page. It should display
              on the Subject textbox, it is like our message reply interface. But on
              the replies page, only the first word be displayed, the following
              words is gone.
              Sorry, I don't understant what is WLS. And the Unix system which I
              used don't have JVM. Thanks for your reply.
              Joey Fan
              "Joseph Nguyen" <[email protected]> wrote in message news:<[email protected]>...
              > Hi Joey,
              >
              > What do you mean by "transfer" of a variable? Can you please elaborate and
              > provide the WLS version and service pack level along with the Unix
              > vendor/brand/version (and also JDK information)?
              >
              > Thanks,
              > Joseph Nguyen
              > BEA Support
              >
              > "joey" <[email protected]> wrote in message
              > news:[email protected]..
              > > Hi, everyone:
              > > I've got a problem when I access my JSP page on unix system.The
              > > problem is that when I transfer a varable from one page to next. Some
              > > content are missing. But when I access this page on PC, no this
              > > problem.
              

  • SharePoint 2013 Content Search Web Part Pager

    My problem is why the pager does not work when i change the content query????
    It shows the first page but when i click Next there was no results displays
    Any Idea?
    Omar Attari

    Can you check the URL on your 1st and 2nd page.
    I assume it has something to with string you pass. Try to add fiddler trace if possible

  • How to display a document content in JSP page

    Hi friends,
    I am trying to display a document's content in a JSP page after user authentication.For that I mapped a jsp file with extension .sens in Content Management SDK manager,and put it the file in the directory '/ifs/jsp-bin' of webstarterapp,but it is not working.Down I am giving the code snippet,please help me.I need this to be done fast.
    <HTML>
    <HEAD>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="oracle.j2ee.connector.Login" %>
    <%@ page import="oracle.ifs.adk.filesystem.IfsFileSystem"%>
    <%@ page import="oracle.ifs.adk.http.HttpUtils"%>
    <%@ page import="oracle.ifs.beans.LibrarySession"%>
    <%@ page import="oracle.ifs.beans.DirectoryUser"%>
    <%@ page import="oracle.ifs.beans.PublicObject"%>
    <%@ page import="oracle.ifs.beans.Document"%>
    <%@ page import="java.io.*"%>
    <jsp:useBean id="login" scope="page" class="oracle.j2ee.connector.Login">
    <TITLE>FileExtension.jsp</TITLE>
    </HEAD>
    <BODY BGCOLOR="SILVER">
    <%
    String theDisplay = "initialized";
    String theHidden = "initialized";
    boolean theAdminRights = false;
    try
    login = (Login) request.getSession(true).getValue("IfsHttpLogin");
    LibrarySession ifsSession = login.getSession();
    IfsFileSystem ifsFile = new IfsFileSystem(ifsSession);
    DirectoryUser du = ifsSession.getDirectoryUser();
    String path = HttpUtils.getIfsPathFromJSPRedirect(request) ;
    PublicObject po = ifsFile.findPublicObjectByPath(path);
    if(po instanceof Document)
    Document doc =(Document) po;
    InputStream in= ifsFile.getDocumentContent(doc);
    int i=in.read();
    while(i!=-1)
    out.write(i);
    in.close();
    out.flush();
    out.close();
    theAdminRights = du.isAdminEnabled();
    theDisplay = po.getAttributeByUpperCaseName("DISPLAY").toString();
    theHidden = po.getAttributeByUpperCaseName("HIDDEN").toString();
    catch (Exception e)
    e.printStackTrace();
    %>
    Here is some static content.
    <P>
    The Display Value: <%= theDisplay %>
    <P>
    <%
    if (theAdminRights)
    %>
    The Hidden Value: <%= theHidden %>
    <%
    %>
    </jsp:useBean>
    </BODY>
    </HTML>

    these may help you.
    Google map integration to EBS

  • Database content not showing in JSP page

    hi guys,
    I am having problems with showing the database content in a JSP page.
    I check my database and see that the content do exists.
    Can someone pls kindly advise.
    Below is my code:
    <TABLE BORDER=1 CELLPADDING=0 CELLSPACING=0>
    <TR>
    <TD>Last</TD>
    <TD>First</TD>
    <TD>Phone</TD>
    </TR>
    <% try {
    Class.forName("com.pointbase.jdbc.jdbcUniversalDriver");
    Connection conn = DriverManager.getConnection("jdbc:pointbase:server://localhost:9092/hour17);
    Statement st = conn.createStatement();
    ResultSet rs = st.executeQuery("SELECT * FROM CONTACTTABLE");
    while(rs.next()) {
         String last = rs.getString("LAST");
         String first = rs.getString("FIRST");
         String phone = rs.getString("PHONE"); %>
         <TR>
         <TD><%=last%></TD>
         <TD><%=first%></TD>
         <TD><%=phone%></TD>
         </TR>
    <% }
         rs.close();
         st.close();
         conn.close();
    } catch(Exception e) {
         System.out.println("Error: " + e.getMessage());
    %>

    pardon me but that is servlet tags or jsp tags?
    I haven't touch much on jsp tags(custom) yet cos I was stuck with the JDBC part of JSP.
    Thanks anyway.

  • Vector to JSP Page

    Hello,
    I have a certain Vector within my servlet class that i retrieve from my logic unit tier.
    I wish to pass this Vector to the JSP page to view and use the following statements to do this :-
    Vector aucItems = logic.getAuc() ;
    request.setAttribute("aucItems", aucItems) ;
    rd.forward(request, response);how would i go about displaying the contents in my JSP page ? i am aware i should use request.getAttribute("aucItems") to retrieve the Vector but how would i go about traversing the vector and extracting and displaying the information using the .getName() method on each object of the Vector
    Thanx,
    - FaeLLe

    It thinks that your items variable aucItems is a
    string, and is iterating through each character in
    the string in this loop.
    Put the ${  } signs around aucItems to tell it
    otherwise.
    ie:
    <c:forEach var="aucItem" items="${aucItems}">
    Cheers,
    evnafetsHi,
    I tried that just now
    My new JSP file looks like this
    <html>
    <head>
    <title>ITEMS ON AUCTION</title>
    </head>
    <body>
    <%@page import="auction.*" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <jsp:useBean id="aucItems" scope="page" class="java.util.Vector" />
    <jsp:useBean id="aucItem" scope="page" class="auction.Auction" />
    <table>
    <c:forEach var="aucItem" items="$(aucItems)">
      <tr><td>Item Number : </td><td><c:out value="${aucItem.itemNo}"/></td></tr>
      <tr><td>Name : </td><td><c:out value="${aucItem.name}"/></td></tr>
      <tr><td>Description : </td><td><c:out value="${aucItem.desc}"/></td></tr>
      <tr><td>Current Bid : </td><td><c:out value="${aucItem.bid}"/></td></tr>
      <tr><td>Maximum Bidder : </td><td><c:out value="${aucItem.maxBidder}"/></td></tr>
      <tr><td>Seller Id : </td><td><c:out value="${aucItem.sellerId}"/></td></tr>
      <tr><td>Maximum Time Of Auction : </td><td><c:out value="${aucItem.maxTime}"/></td></tr>
      <tr><td>Auction Start Hour</td><td><c:out value="${aucItem.startHour}"/></td></tr>
      <tr><td>Auction Start Min </td><td><c:out value="${aucItem.startMinute}"/></td></tr>
      <tr><td>Auction Start Seconds </td><td><c:out value="${aucItem.startSeconds}"/></td></tr>
    </c:forEach>
    </table>
    </body>
    </html>I tried a lot of things for over eight hours now it always thinks it is a String.
    Kindly assist.
    Could it be because i have to perform a getAttribute() on the request parameter ?

  • How to include a JSP page contained in a JAR file ?

    Hello,
    I have a Servlet in which I would like to include, in the Response, the content of a JSP page contained in an external JAR file included in my lib directory ?
    Could someone help me please ?
    Thanks in advance.
    bgOnline

    I don't think thats possible with the standard j2ee server.
    There are probably ways around it, but it would involve a large component of custom coding.

  • Reading a properties file in a servlet and passing its contents to a JSP pa

    Hi all,
    I'm totally new to Servlet pgmg n JSP. Please can ne1 tell how to read a simple properties file (in a servlet) and pass its contents to a JSP page.Actually the reason is to fill a combo box in a JSP page with the contents of a properties file.If calling a servlet for the same is d best way to do that, plz can ne1 tell me :
    1> whether to override the doPost method in the servlet in which to read d file using FileInputStream
    2> Putting the contents in an array and then how to pass this array to the JSP page.
    Thanks,
    deepthy.

    I'm using a properties file to let my web application know what the name of the database is. I'm using an abstract class GeneralDao which will be extended by all the DAO's (Data Access Objects or java classes containing SQL statements).
    Here's the code :
    protected Connection getDatabaseConnection()
              throws Melding
         Connection dbconn = null;     
         ResourceBundle resBundle;
         try
         Class.forName("com.mysql.jdbc.Driver").newInstance();
         resBundle = ResourceBundle.getBundle("gcoConfig");
         String dbConnectie = resBundle.getString("databaseconnection");
         gcoLogger.debug("lezen databaseconnection in resourceBundle " );
         dbconn = DriverManager.getConnection(dbConnectie);
         } catch (InstantiationException exc)The ResourceBundle is used to read the properties file, named gcoConfig.properties.
    With the getString() command I read the content of the string named databaseconnection.
    The gcoConfig.properties file is placed inside the folder C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\gco\WEB-INF\classes
    The GeneralDao is placed in the folder C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\gco\WEB-INF\classes\org\gertcuppens\cluifDao.
    So this class is placed some folder below the WEB-INF\classes folder of gcoConfig.properties.
    And the content of the properties file is just one line :
    databaseconnection=jdbc:mysql://localhost/cluif
    If you want to let the JSP know what's inside the properties file, wrap the content in a Javabean, put it in the request or even the session and pass the control to the JSP.

  • How to convert a Jsp page in a Pdf

    Hi!
    I have a problem. I need to convert the content of a Jsp page in a pdf , clicking a link.
    Anybody knows how i can do it?
    Bye

    Google for iText.

Maybe you are looking for

  • Calendar and call not showing in Notification Centre in iOS 6.0.1 in iPhone 4S

    After i updated my 4S to iOS 6.0.1,Calendar Events and Call wont show up in the Notification Centre. I need to personally edit the Calendar Events fr them to show up. P

  • My ipod shuffle isn't recognized by windows.

    When I connect my shuffle to my computer, it runs "autorun" indefinately. I can't run restore to fix it because the updater doesn't recognize the drive. In MyComputer, the drive shows up, but when I click it, MyComputer freezes and I have to use task

  • Queries on Web Dynpro

    Hi All I have few queries 1. Is it possible to launch an external web application in new browser using suspend plug? If yes can you please share the details how can we do it? 2. Is there any API available in Web DynPro which I can use to launch an ex

  • System tables

    Hello all, From my oracle dossiers, some of the system tables don't appear in the tables tab in toad; for instance all_tables. I'm able to use these tables in select clause, but it would still be very practical to get a list of these. Can someone ple

  • Version of BW

    Hi, Guys - how i can verify what version of BW i am running and what version of Business Content is installed in my system? Thanks.