Why jsp is converted into servlet?

hi,
Why the jsp is converted into servlet in the container? reason? why cant is evalute as a jsp file itself? why did not they develope a seperate container for jsp?

hi :-)
Why the jsp is converted into servlet in the container? reason? why cant is evalute as a jsp file itself?
JSP is an extension of servlet technology :-)
why did not they develope a seperate container for jsp?
Note: (an excerpt from a book)
"Inside the JSP container is a special servlet called the page compiler.
The servlet container is configured to forward to this page compiler all HTTP
requests with URLs that match the .jsp file extension.
This page compiler turns a servlet container into a JSP container.
When a .jsp page is first called, the page compiler parses and compiles
the .jsp page into a servlet class. If the compilation is successful,
the jsp servlet class is loaded into memory. On subsequent calls,
the servlet class for that .jsp page is already in memory; however, it could have been updated.
Therefore, the page compiler servlet will always
compare the timestamp of the jsp servlet with the jsp page. If the .jsp page
is more current, recompilation is necessary. With this process, once
deployed, JSP pages only go through the time-consuming compilation
process once"
For more info you can refer to the packages: javax.servlet.jsp and
javax.servlet.jsp.tagext
and also the two servlet packages: javax.servlet and javax.servlet.http
you might be asking why refer to servlet packages? because JSP needs it :-)
as i mention earlier, JSP is an extension of servlet technology.
hope other's will also give answer about your question.
regards,

Similar Messages

  • Why are images converted into pdfs instead of jpgs?

    When saving an image that's been corrected, as a jpg, it is automatically converted to a PDF.
    Some sites I use will only accept jpg files.  Where can I change this feature in acrobat XI?

    If it is as you describe then this is a problem with the OTHER program. Acrobat can't change how other programs save their files.
    There is another possibility, that the file is actually a JPEG but your system is set up wrong, so that Acrobat is run when you double click JPEGs.
    You can look in File Properties to see which this is. But have you asked in the forum for the "other" program?

  • JSP compiled into servlet

    Whenver u compile a JSP page it is internally converted into servlet.Where will this servlet be stored and by what name?

    <tomcat_home>\work\Catalina\localhost\<Context Name>\org\apache\jsp
    You can find below files in above directory of your PC.
    <jsp file name>_jsp.java
    <jsp file name>_jsp.class
    Example:
    index_jsp.java
    index_jsp.class

  • Blank field getting converted into wrong date

    Dear All,
    I have one date field in SAP table in which there are some entries and some blank entries.
    when Proxy is sending this data from ECC blank entries are converted into 00000000 and through XI in file
    this
    00000000 entry for date getting converted into wrong date like 30.11.0002 in file.
    I have taken data type as string do I need to take data type as date.
    My doubt is if there is no entry in table why it is convertng to  00000000  and after passing from XI why it is converting into
    30.11.0002 .
    Regards

    Hi ,
    My date format like this
    source --yyyyMMDD
    target-DD.MM.YYYY
    so if
    source is
    00000000
    should comes like this
    target
    00.00.0000
    but it is converting into
    30.11.0002
    every where in file values for 00000000 is coming like 30.11.0002
    Regards

  • How to convert this Servlet into JSP

    I am trying to convert this Servlet into JSP page.
    How do I go about doing this?
    Thanks.
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.text.*;
    /** Shows all items currently in ShoppingCart. Clients
    * have their own session that keeps track of which
    * ShoppingCart is theirs. If this is their first visit
    * to the order page, a new shopping cart is created.
    * Usually, people come to this page by way of a page
    * showing catalog entries, so this page adds an additional
    * item to the shopping cart. But users can also
    * bookmark this page, access it from their history list,
    * or be sent back to it by clicking on the "Update Order"
    * button after changing the number of items ordered.
    * <P>
    * Taken from Core Servlets and JavaServer Pages 2nd Edition
    * from Prentice Hall and Sun Microsystems Press,
    * http://www.coreservlets.com/.
    * &copy; 2003 Marty Hall; may be freely used or adapted.
    public class OrderPage extends HttpServlet {
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    HttpSession session = request.getSession();
    ShoppingCart cart;
    synchronized(session) {
    cart = (ShoppingCart)session.getAttribute("shoppingCart");
    // New visitors get a fresh shopping cart.
    // Previous visitors keep using their existing cart.
    if (cart == null) {
    cart = new ShoppingCart();
    session.setAttribute("shoppingCart", cart);
    String itemID = request.getParameter("itemID");
    if (itemID != null) {
    String numItemsString =
    request.getParameter("numItems");
    if (numItemsString == null) {
    // If request specified an ID but no number,
    // then customers came here via an "Add Item to Cart"
    // button on a catalog page.
    cart.addItem(itemID);
    } else {
    // If request specified an ID and number, then
    // customers came here via an "Update Order" button
    // after changing the number of items in order.
    // Note that specifying a number of 0 results
    // in item being deleted from cart.
    int numItems;
    try {
    numItems = Integer.parseInt(numItemsString);
    } catch(NumberFormatException nfe) {
    numItems = 1;
    cart.setNumOrdered(itemID, numItems);
    // Whether or not the customer changed the order, show
    // order status.
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    String title = "Status of Your Order";
    String docType =
    "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 " +
    "Transitional//EN\">\n";
    out.println(docType +
    "<HTML>\n" +
    "<HEAD><TITLE>" + title + "</TITLE></HEAD>\n" +
    "<BODY BGCOLOR=\"#FDF5E6\">\n" +
    "<H1 ALIGN=\"CENTER\">" + title + "</H1>");
    synchronized(session) {
    List itemsOrdered = cart.getItemsOrdered();
    if (itemsOrdered.size() == 0) {
    out.println("<H2><I>No items in your cart...</I></H2>");
    } else {
    // If there is at least one item in cart, show table
    // of items ordered.
    out.println
    ("<TABLE BORDER=1 ALIGN=\"CENTER\">\n" +
    "<TR BGCOLOR=\"#FFAD00\">\n" +
    " <TH>Item ID<TH>Description\n" +
    " <TH>Unit Cost<TH>Number<TH>Total Cost");
    ItemOrder order;
    // Rounds to two decimal places, inserts dollar
    // sign (or other currency symbol), etc., as
    // appropriate in current Locale.
    NumberFormat formatter =
    NumberFormat.getCurrencyInstance();
    // For each entry in shopping cart, make
    // table row showing ID, description, per-item
    // cost, number ordered, and total cost.
    // Put number ordered in textfield that user
    // can change, with "Update Order" button next
    // to it, which resubmits to this same page
    // but specifying a different number of items.
    for(int i=0; i<itemsOrdered.size(); i++) {
    order = (ItemOrder)itemsOrdered.get(i);
    out.println
    ("<TR>\n" +
    " <TD>" + order.getItemID() + "\n" +
    " <TD>" + order.getShortDescription() + "\n" +
    " <TD>" +
    formatter.format(order.getUnitCost()) + "\n" +
    " <TD>" +
    "<FORM>\n" + // Submit to current URL
    "<INPUT TYPE=\"HIDDEN\" NAME=\"itemID\"\n" +
    " VALUE=\"" + order.getItemID() + "\">\n" +
    "<INPUT TYPE=\"TEXT\" NAME=\"numItems\"\n" +
    " SIZE=3 VALUE=\"" +
    order.getNumItems() + "\">\n" +
    "<SMALL>\n" +
    "<INPUT TYPE=\"SUBMIT\"\n "+
    " VALUE=\"Update Order\">\n" +
    "</SMALL>\n" +
    "</FORM>\n" +
    " <TD>" +
    formatter.format(order.getTotalCost()));
    String checkoutURL =
    response.encodeURL("../Checkout.html");
    // "Proceed to Checkout" button below table
    out.println
    ("</TABLE>\n" +
    "<FORM ACTION=\"" + checkoutURL + "\">\n" +
    "<BIG><CENTER>\n" +
    "<INPUT TYPE=\"SUBMIT\"\n" +
    " VALUE=\"Proceed to Checkout\">\n" +
    "</CENTER></BIG></FORM>");
    out.println("</BODY></HTML>");
    }

    Sorry.
    actually this is my coding on the bottom.
    Pleease disregard my previous coding. I got the different one.
    My first approach is using <% %> around the whole doGet method such as:
    <%
    String[] ids = { "hall001", "hall002" };
    setItems(ids);
    setTitle("All-Time Best Computer Books");
    out.println("<HR>\n</BODY></HTML>");
    %>
    I am not sure how to break between code between
    return;
    and
    response.setContentType("text/html");
    Here is my coding:
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException
         String[] ids = { "hall001", "hall002" };
         setItems(ids);
         setTitle("All-Time Best Computer Books");
    if (items == null) {
    response.sendError(response.SC_NOT_FOUND,
    "Missing Items.");
    return;
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    String docType =
    "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 " +
    "Transitional//EN\">\n";
    out.println(docType +
    "<HTML>\n" +
    "<HEAD><TITLE>" + title + "</TITLE></HEAD>\n" +
    "<BODY BGCOLOR=\"#FDF5E6\">\n" +
    "<H1 ALIGN=\"CENTER\">" + title + "</H1>");
    CatalogItem item;
    for(int i=0; i<items.length; i++) {
    out.println("<HR>");
    item = items;
    if (item == null) {
    out.println("<FONT COLOR=\"RED\">" +
    "Unknown item ID " + itemIDs[i] +
    "</FONT>");
    } else {
    out.println();
    String formURL =
    "/servlet/coreservlets.OrderPage";
    formURL = response.encodeURL(formURL);
    out.println
    ("<FORM ACTION=\"" + formURL + "\">\n" +
    "<INPUT TYPE=\"HIDDEN\" NAME=\"itemID\" " +
    " VALUE=\"" + item.getItemID() + "\">\n" +
    "<H2>" + item.getShortDescription() +
    " ($" + item.getCost() + ")</H2>\n" +
    item.getLongDescription() + "\n" +
    "<P>\n<CENTER>\n" +
    "<INPUT TYPE=\"SUBMIT\" " +
    "VALUE=\"Add to Shopping Cart\">\n" +
    "</CENTER>\n<P>\n</FORM>");
    out.println("<HR>\n</BODY></HTML>");

  • Why do we use both servlets & jsps in developing  an application ?

    why do we use both servlets & jsps in developing an application & not only jsps

    Hi,
    It's a pure question of design : Some like it jsp to jsp and others servlet to jsp. It's up to you to decide and it depends of the complexity of your application.
    But the best design is the MVC (servlet and jsp working together) because it helps you separate presentation from logic. It also helps you better maintain you code.
    You can have more info in javaworld.com.
    Good luck
    touco

  • Why can one spot colour convert into two different sets of CMYK values?

    Working within Illustrator CC, I have an EPS file of a logo which has a colour fill value of:
    Pantone 152 U
    CMYK: 0C 51M 100Y 1K
    When I copy and paste this into a new document I get a much duller colour (orange) with colour values of:
    Pantone 152 U
    CMYK: 2C 57M 83Y 2K
    I have enabled 'ask when opening' & 'ask when pasting' for Profile Mismatches in Edit->Color Settings->'Color Management Policies' - no warning shows up.
    I have also tried turning off, changing color management policies.
    I've opened the original eps file and assigned my working space profile (Coated FOGRA39) and then try copy and pasting without success.
    Help!

    In addition to John's useful comments:
    Using Pantone 512U (uncoated) isn't correct for Coated Fogra.
    Why can one spot color convert into two different CMYK sets if converted by the user?
    Assumed, the one spot color is uniquely defined by one Lab set:
    – the CMYK spaces are different
    – the CMYK spaces are the same but the Rendering Intents are different
    – the CMYK spaces are the same but the Black Point Compensations are different
       (on or off for Relative Colorimetric).
    Assumed, the spot colors are equal by name, but valid for different versions, both in Lab:
    – this obviousl at present the most common source of deviations.
    Assumed, the spot colors are defined by CMYK:
    – a chaotic situation which I wouldn't even like to dicuss.
    – CMYK to CMYK conversions should be avoided under all circumstances.
    The solutions:
    If the spot color will be printed always and everywhere by Pantone spot ink:
    – purchase an actual Pantone color fan und discuss with the printer the mixture for the selected ink.
    If the Pantone color is merely a design feature, but the doc will be printed by CMYK:
    – choose such a color and verify by soft proofing that the color is in-gamut for common CMYK spaces. 
    – read the Lab values and proceed as far as possible using Lab.
    – don't use ink names, don't use any reference to Pantone.
    – convert into to a specificic CMYK space in advance to the generation of the specific PDF.
    Best regards --Gernot Hoffmann

  • I'm trying to make a timelapse with 900 pictures converted into 30 fps to get a 30 seconds video but after exporting my movie why is my video length 15 minutes?

    So, I downloaded a slideshow templates and I'm trying to make a timelapse with 900 pictures converted into 30 fps to get a 30 seconds video but after exporting my movie why is my video length 15 minutes?

    What settings are you using to export the video with?  I think 29.97fps is the only one that works with LR 5:
    http://lightroom-blog.com/2013/09/17/timelapse-again-in-lightroom-5-2/
    http://lrbplugins.com/shop/presets/lrb-timelapse-presetstemplates/

  • Move jsp code into servlet, not work!!

    Hi:
    I am new in servlet and java, I can use jdom to read xml file
    into a jsp file, but whan I move jsp code into servlet, they are not work
    have any ideals?
    Thank!

    Hi:
    my.jsp
    <%@ page contentType="text/html"%>
    <%@ page import="java.io.File,
    java.util.*,
    org.jdom.*,
    org.jdom.input.SAXBuilder,
    org.jdom.output.*" %>
    <%
    String Records = "c:/XMl/Quotes.xml";
    SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");
    Document l_doc = builder.build(new File(Records));
    my servlet
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.jdom.*;
    import org.jdom.input.*;
    import org.jdom.input.SAXBuilder;
    import org.jdom.output.*;
    public class XmlJdom extends HttpServlet
    String Records = "c:/xml/Quotes.xml";
    SAXBuilder builder = null;
    Element Author = null;
    Element Text = null;
    Element Date = null;
    * Initializes the servlet.
    public void init(ServletConfig config) throws ServletException
    super.init(config); //pass ServletConfig to parent
    try
    // JDOM can build JDOM trees from a variety of input sources. One
    // of those input sources is a SAX parser.
    SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");
    catch ( org.jdom.JDOMEXception e)
    public void doGet(
    HttpServletRequest request,
    HttpServletResponse response)
         throws IOException, ServletException
         PrintWriter out = null;
         out = response.getWriter();
         try{                
         Document l_doc = builder.build(new File(Records));
    Element root = l_doc.getRootElement();
    //get a list of all recode in my XML document
    String l_pages = root.getChild("quote");
    String Iterator e = l_pages.iterator();
    while ( e.hasNext())
    Element l_quote= (Element) e.next();
         Element l_Author = l_quote.getChild("Date").getChild("Text");
    XMLOutputter l_format = new XMLOutputter();
    String ls_result = l_format.outputString(l_doc);
    out.println(ls_result);
    catch( org.jdom.JDOMException e )
         finally
              if( out != null)
                   out.close();
    Please tell me, what is wrong!!!
    Element root = l_doc.getRootElement();
    /* get a list of all the links in our XML document */
    List l_pages = root.getChildren("quote");
    Iterator Myloop = l_pages.iterator();
    while ( Myloop.hasNext())
    Element l_quote= (Element) Myloop.next();
         Element l_Author = l_quote.getChild("Date").getChild("Text");
    XMLOutputter l_format = new XMLOutputter();
    String ls_result = l_format.outputString(l_doc);
    ls_result = l_format.outputString(l_doc);
    %>
    <html><head><title></title></head>
         <body>
              <pre>
              <%=ls_result%>
              </pre>
         </body>
    </html>

  • Convert existing servlet into portlet

    Hi
    We have a set of Java servlets running on apache and jserv and not using Portal. My task is to be able to convert these into Portal.All of the existing servlets are extends/use our existing set of classes. They display a list of rows in a table as HTML with a URL pointing back to the same servlet or different servlet based on logic, with set of parameter. With my current setup (all on a Win2000 system), I have installed the JPDK samples and it is working fine, but have now got stuck in applying the concepts to my own existing servlets. So can you help me how can i convert an existing Java servlet into Portal?
    First i tried the "how to build your own java portal exercise" and it runs fine. But when i tried to run simple servlet to convert into portlet, i got the following error. I am really confuse about Renderer. Is it nessessary to make Renderer or use Default Renderer? I will really thankful to you if you give me some idea.
    I changed the following in to conf/jserv properties.
    1. set the " <showPage class="AgeServlet"/> " in provider.xml
    2. in zone property
    servlet.AgeServlet.code=oracle.portal.provider.v1.http.HttpProvider
    servlet.AgeServlet.initArgs=provider_root=C:\MyProvider,sessiontimeout=1800000,debuglevel=1
    3. In jserv property
    wrapper.classpath=C:\MyProvider\MyClasses
    Where i put my AgeServlet.class
    4.Stop and Start the Oracle HTTP Server.
    When i try to run url(http://host.domain:port/servlet/AgeServlet) it gives me following error.
    Error!
    javax.servlet.ServletException: Unable to initialize new provider instance: java.lang.reflect.InvocationTargetException
    My servlet is
    // JDK1.2.2 module
    import java.io.*;
    import java.util.*;
    //JSDK modules
    import javax.servlet.*;
    import javax.servlet.http.*;
    * class to promt for the year of birth
    * and calculate the age.
    * @author Vipul Patel [email protected]
    public class AgeServlet extends HttpServlet {
    * method to call doPost
    * @param request
    * @param response
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException {
    doPost(request, response);
    * method to call calculateAge
    * @param request
    * @param response
    public void doPost(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException {
    getAge(request, response);
    * method for display html form for get year
    * and calculate the age
    * @param request
    * @param response
    public void getAge(HttpServletRequest request,
    HttpServletResponse response) {
    response.setContentType("text/html");
    PrintWriter out = null;
    try {
    out = response.getWriter();
    } catch(IOException ex) {
    ex.printStackTrace();
    String age = calculateAge(request, response);
    // create and send html form to user
    out.println("<html>");
    out.println("<body>");
    out.println("<title>Age calculation</title>");
    out.println("<form action=\"/servlets/AgeServlet\" method=get>");
    out.println(age + "<br>");
    out.println("Enter the Year of Birth<input type=\"text\" name=ageyear><br>");
    out.println("<input type=submit value=submit>");
    out.println("<input type=\"reset\" value=\"reset\">");
    out.println(" </form>");
    out.println("</body>");
    out.println("</html> ");
    * calculate the age
    * @param request
    * @param response
    * @return age
    public String calculateAge(HttpServletRequest request,
    HttpServletResponse response) {
    String age= "";
    String year="";
    int curr_year;
    int count_year = 0;
    year = request.getParameter("ageyear");
    Date date = new Date();
    String today_date = date.toString();
    today_date = today_date.substring(24,29);
    curr_year = Integer.parseInt(today_date);
    if((year != null) && (!year.equals("")) ) {
    int get_year = Integer.parseInt(year);
    if(get_year > curr_year) {
    age = "You enterd wrong entry!!!!!";
    } else {
    for (int i=get_year; i<=curr_year; i++) {
    count_year++;
    age ="Your age is: " + String.valueOf(count_year);
    } else {
    age = "Enter the year of Birth";
    return age;
    Thank you very much!!
    Vipul Patel
    null

    Hi
    Now i changed my code and it display my contents on broweser. But when i submit the form i cannot able to forward my request to same page. Any suggestion please.
    Thanks.
    changed code
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    import oracle.portal.provider.v1.*;
    import oracle.portal.provider.v1.http.*;
    public class AgeServlet extends HttpServlet {
    * Initialize global variables
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    * Process the HTTP Post request
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,
    IOException {
    doGet(request,response);
    * Get Servlet information
    * @return java.lang.String
    public String getServletInfo() {
    return "AgeServlet Information";
    * Process the HTTP Get request
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException,
    IOException {
    PortletRenderRequest pr = (PortletRenderRequest)request.getAttribute(HttpProvider.PORTLET_RENDER_REQUEST);
    try {
    renderShow(pr);
    } catch (Exception e) {
    private void renderShow(PortletRenderRequest pr)
    throws PortletException {
    try {
    /*HttpServletRequest request = (HttpServletRequest)
    pr.getAttribute(HttpProvider.SERVLET_REQUEST);
    HttpServletResponse response = (HttpServletResponse)
    pr.getAttribute(HttpProvider.SERVLET_RESPONSE); */
    PrintWriter out = pr.getWriter();
    pr.setContentType("text/html; charset=WINDOWS-1252");
    pr.setContentType("text/html");
    //PrintWriter out = response.getWriter();
    // create and send html form to user
    out.println("<html>");
    out.println("<body>");
    out.println("<title>Age calculation</title>");
    out.println("<form method=\"POST\" action=\""+HttpPortletRendererUtil.htmlFormActionLink(pr,PortletRendererUtil.PAGE_LINK) +"\">");
    HttpPortletRendererUtil.htmlFormHiddenFields(pr,PortletRendererUtil.PAGE_LINK);
    String ageParam = HttpPortletRendererUtil.portletParameter(pr, "ageyear");
    String submitParam = HttpPortletRendererUtil.portletParameter(pr, "mySubmit");
    out.println("Enter the Year of Birth<input type=\"text\" name=\" + ageParam + \"><br>");
    out.println("<input type=\"submit\" name=\" + submitParam + \" value=\"submit\">");
    out.println(" </form>");
    out.println("</body>");
    out.println("</html> ");
    if (pr.getParameter(submitParam) != null ) {
    out.println("You are "+ calculateAge(pr,out));
    } catch (Exception e) {
    * calculate the age
    * @param request
    * @param response
    * @return age
    public String calculateAge(PortletRenderRequest pr, PrintWriter out) {
    String age= "";
    String year="";
    int curr_year;
    int count_year = 0;
    year = pr.getParameter("ageParam");
    Calendar rightNow = Calendar.getInstance();
    curr_year = rightNow.get(Calendar.YEAR);
    if((year != null) && (!year.equals(""))) {
    int get_year = Integer.parseInt(year);
    if(get_year > curr_year) {
    age = "You enterd wrong entry!!!!!";
    } else {
    count_year = curr_year - get_year;
    age = String.valueOf(count_year);
    } else {
    age = "Enter the year of Birth";
    return age;
    Error message
    Wed, 08 Aug 2001 00:04:55 GMT
    No DAD configuration Found
    DAD name:
    PROCEDURE : !null.wwpob_page.show
    URL : http://ntserver:80/pls/null/!null.wwpob_page.show?_pageid=null
    PARAMETERS :
    ===========
    ENVIRONMENT:
    ============
    PLSQL_GATEWAY=WebDb
    GATEWAY_IVERSION=2
    SERVER_SOFTWARE=Oracle HTTP Server Powered by Apache/1.3.12 (Win32) ApacheJServ/1.1 mod_ssl/2.6.4 OpenSSL/0.9.5a mod_perl/1.24
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PORT=80
    SERVER_NAME=ntserver
    REQUEST_METHOD=POST
    QUERY_STRING=_pageid=null
    PATH_INFO=/null/!null.wwpob_page.show
    SCRIPT_NAME=/pls
    REMOTE_HOST=
    REMOTE_ADDR=172.16.0.27
    SERVER_P ROTOCOL=HTTP/1.1
    REQUEST_PROTOCOL=HTTP
    REMOTE_USER=
    HTTP_CONTENT_LENGTH=52
    HTTP_CONTENT_TYPE=application/x-www-form-urlencoded
    HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) RPT-HTTPClient/0.3-2S
    HTTP_HOST=ntserver
    HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
    HTTP_ACCEPT_ENCODING=gzip, deflate, x-gzip, compress, x-compress
    HTTP_ACCEPT_LANGUAGE=en-us
    HTTP_ACCEPT_CHARSET=
    HTTP_COOKIE=portal30=3.0,en,us,AMERICA,7044103775205D94AE891C2EB8EC88ECB9671CC56E5524FFBAE3419299B938639A5159BD1DF60D6A57362DA77173DED757521073FAB521072C6E83A9EDD32D5DD1E3859A48A75
    9C1537468FDD6B2AF6C36692DA501614F9B;
    portal30_sso=3.0,en,us,AMERICA,C62FD25D23E9A2D66948EDCD463B2CCD50050AD8D02B7EF55A61DBC14E253387C44B1A5D9668CC141CE38DD4455FEF3D28188817CC1678D8F0C1F642C95CB0E34406EFC41D4A36E1A2915
    182A5FC121377E258FA76480763
    Authorization=
    HTTP_IF_MODIFIED_SINCE=
    HTTP_REFERER=
    null

  • All videos on my HDD have converted into 1 BDMV file, why?

    Hi everyone!
    I have just noticed that on my external HDD, that all the videos have converted into 1 BDMV folder.
    I can see the size of the file equates to what all the videos would have when they're all added up, however clearly something has gone wrong as they were all separate videos I had recorded on my camera.
    Does anyone know how to reverse this and have them revert back to their original file format?
    Thanks for your help!

    Just how did you create the videos? Add the videos to the HD?
    BDMV is a BluRay file directory
    http://fileinfo.com/extension/bdmv

  • How JSP is faster than Servlets ??????

    can anyone tell me why and how jsp is faster than servlets.
    i want the detailed description of this question.
    thanks in advance..

    Hi simmy1,
    The performance of JSP pages is very close to that of servlets. However, users may experience a perceptible delay when a JSP page is accessed for the very first time. This is because the JSP page undergoes a "translation phase" wherein it is converted into a servlet by the JSP engine. Once this servlet is dynamically compiled and loaded into memory, it follows the servlet life cycle for request processing. Here, the jspInit() method is automatically invoked by the JSP engine upon loading the servlet, followed by the _jspService() method, which is responsible for request processing and replying to the client. Do note that the lifetime of this servlet is non-deterministic - it may be removed from memory at any time by the JSP engine for resource-related reasons. When this happens, the JSP engine automatically invokes the jspDestroy() method allowing the servlet to free any previously allocated resources.
    Subsequent client requests to the JSP page do not result in a repeat of the translation phase as long as the servlet is cached in memory, and are directly handled by the servlet's service() method in a concurrent fashion (i.e. the service() method handles each client request within a seperate thread concurrently.)
    I hope this will help you out.
    Regards,
    TirumalaRao.
    Developer TechnicalSupport,
    Sun Microsystems,India.

  • JSP compiler obfuscates generated servlet debug line numbers

              Here's something that's been baffling me for a couple of days now.
              When WebLogic parses a JSP into servlet Java source, and then compiles the Java
              source into a class, it seems to perform a further step to obfuscate debug line
              numbers in the _jspService method. This converts the debug line numbers from Java
              source code line numbers into JSP line numbers.
              At first sight, this may appear to be useful- it means that when an exception
              is thrown then it references a line number in the original JSP rather than one
              in the generated servlet. However, it actually makes life more difficult when
              you consider included JSPs.
              Suppose you have a file loginresult.jsp, which uses @include to include a header.jsp
              and footer.jsp, both of which contain dynamic content. When WebLogic converts
              line numbers, it ignores the JSP that the code came from, so this causes a many-to-one
              mapping of line numbers. When an error occurs, the exception will tell you the
              line number that it came from, but it won't tell you which JSP caused it. The
              many-to-one mapping ensures a loss of information- and no way of retrieving the
              real line numbers.
              This is an even bigger nuisance when trying to debug JSPs- the debugger hops around
              in the generated servlet file without giving any clue as to whereabouts it really
              is in the code.
              My question is: is there any way of switching off this post-processor behaviour?
              One obvious way would be to locate the WebLogic class that does this post-processing,
              stub it out and run WebLogic with this class higher up in the classpath. But that's
              a last resort.
              Secondly, would there be any other impact in turning off this behaviour? Do other
              parts of WebLogic rely on this?
              Thanks in advance,
              Kevin.
              

    Actually, this option turns line-number table replacement on and off, for example,
              with jsp like this:
              test.jsp
              <%
              throw new Exception();
              %>
              and weblogic.xml:
              <!DOCTYPE weblogic-web-app PUBLIC "-//BEA
              Systems, Inc.//DTD Web Application 7.0//EN"
              "http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd">
              <weblogic-web-app>
              <jsp-descriptor>
              <jsp-param>
              <param-name>debug</param-name>
              <param-value>true</param-value>
              </jsp-param>
              </jsp-descriptor>
              </weblogic-web-app>
              the stacktrace looks like this (note line number 2 - this is JSP line number):
              java.lang.Exception
              at jsp_servlet.__test._jspService(test.jsp:2)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:376)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5360)
              at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2468)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
              and with debug option turned off:
              <!DOCTYPE weblogic-web-app PUBLIC "-//BEA
              Systems, Inc.//DTD Web Application 7.0//EN"
              "http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd">
              <weblogic-web-app>
              <jsp-descriptor>
              <jsp-param>
              <param-name>debug</param-name>
              <param-value>false</param-value>
              </jsp-param>
              </jsp-descriptor>
              </weblogic-web-app>
              exception stacktrace looks like this (note that line number now is from generated .java file):
              java.lang.Exception
              at jsp_servlet.__test._jspService(__test.java:87)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:376)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5360)
              at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2468)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
              Kevin Thomas <[email protected]> wrote:
              > But this isn't useful, as you don't know which JSP the line number is referring
              > to! (did it come from the main JSP, or one of the files that it included?)
              > Turning debug off is not an answer- because that will lose other useful information
              > that is useful to the debugger.
              > Kevin.
              > "Dimitri I. Rakitine" <[email protected]> wrote:
              >>Actually, this is useful when you want to debug .jsp's and not generated
              >>..java files. Did you try setting 'debug' jsp-param in the weblogic.xml
              >>to
              >>false? I think it turns class postprocessing on and off.
              >>
              >>Kevin Thomas <[email protected]> wrote:
              >>
              >>> Here's something that's been baffling me for a couple of days now.
              >>
              >>> When WebLogic parses a JSP into servlet Java source, and then compiles
              >>the Java
              >>> source into a class, it seems to perform a further step to obfuscate
              >>debug line
              >>> numbers in the _jspService method. This converts the debug line numbers
              >>from Java
              >>> source code line numbers into JSP line numbers.
              >>
              >>> At first sight, this may appear to be useful- it means that when an
              >>exception
              >>> is thrown then it references a line number in the original JSP rather
              >>than one
              >>> in the generated servlet. However, it actually makes life more difficult
              >>when
              >>> you consider included JSPs.
              >>
              >>> Suppose you have a file loginresult.jsp, which uses @include to include
              >>a header.jsp
              >>> and footer.jsp, both of which contain dynamic content. When WebLogic
              >>converts
              >>> line numbers, it ignores the JSP that the code came from, so this causes
              >>a many-to-one
              >>> mapping of line numbers. When an error occurs, the exception will tell
              >>you the
              >>> line number that it came from, but it won't tell you which JSP caused
              >>it. The
              >>> many-to-one mapping ensures a loss of information- and no way of retrieving
              >>the
              >>> real line numbers.
              >>
              >>> This is an even bigger nuisance when trying to debug JSPs- the debugger
              >>hops around
              >>> in the generated servlet file without giving any clue as to whereabouts
              >>it really
              >>> is in the code.
              >>
              >>> My question is: is there any way of switching off this post-processor
              >>behaviour?
              >>> One obvious way would be to locate the WebLogic class that does this
              >>post-processing,
              >>> stub it out and run WebLogic with this class higher up in the classpath.
              >>But that's
              >>> a last resort.
              >>
              >>> Secondly, would there be any other impact in turning off this behaviour?
              >>Do other
              >>> parts of WebLogic rely on this?
              >>
              >>> Thanks in advance,
              >>
              >>> Kevin.
              >>
              >>--
              >>Dimitri
              >>
              Dimitri
              

  • Why JSP not move to jhtml direction?

    I have both knowledge of JSP and JHTML (from ATG). I like jhtml much more. The jhtml architecture is far superior than jsp. I just list following features:
    * better component naming, using directory and properties, instead of jsp.
    * excellent Form handling capabilities.
    * support expression
    * droplet is more powerful and simple than those customer tag.
    JSP is not better than MS ASP, which has better infrastructure, such as ADO etc. I don't understand why so many developers are fan of JSP, even Servlet! After a while, I am tired of them.

    I can't speak about jhtml, but I do disagree with you about the MS ASP comparison. There are lots of very important reasons why JSP is better, but I'll list a few:
    1. JSP is compiled, ASP is interpreted.
    This results in faster executing code and less bugs due to compile time checking.
    2. JSP (Java) is strongly typed, ASP is typeless (Variants)
    Typed variables are better with memory and much better with reducing bugs due to discovering incompatible data types. Consider the fact that a simple boolean as a Variant in ASP takes up 16 bytes (last I looked at the actual C struct used under the covers).
    3. JSP is platform independent, ASP only runs on Windows. Also, the are many different JSP containers to choose from, ASP only provides one.
    The competition between Weblogic, Websphere, etc. greatly improves the JSP market since the strongest survive over time. Consider the fact that MS only threw out ASP for ASP.Net because J2EE is affecting their market share.
    4. The scalability of ASP is severely restricted by the thread affinity of single-threaded apartments (STA) that IIS sets up to run non-MTS COM components. For example, you are committing scalability suicide if you keep any references to STA components in session or application state. And VB6 can only create STA components. You need VC++ to create MTS components.
    5. JSP has the ability for standard and custom tag libraries, ASP has no capability.
    Tag libraries are proving to be very valuable in the JSP space. A moderate use of well written tag libraries can severely increase developer productivity as well as reduce costs by shifting some page development from expensive Java developers to web designers.
    6. ASP requires IIS, which has major security holes in the software. Attest to the fact that the Code Red virus alone cost over $4 Billion in wasted productivity alone.
    Do not shrug off the above differences. They are major. They are the reason that developers have moved to the JSP world. If you're still not convinced, analyze why MS threw away ASP and produced ASP.Net. Despite what you read, ASP.Net is NOT simply the next version of ASP. They are architecturally two entirely different beasts. The proof of this is the fact that an ASP and ASP.Net page cannot co-exist in the same ASP application. That is, they do not share session or application state or cannot make calls into functions defined within each other. There's a reason for this.
    Except for item 3 and 6, ASP.Net solves all of the above problems. In fact, if you compare .Net to J2EE, it's frightening how MS did not violate some sort of an architectural copyright, if one exists. .Net is effectively a clone of J2EE.
    .Net is a good platform and will do well since MS is very committed to it. If you're a MS shop, you will be in good hands for new development. Besides being a proprietary platform, the only other problem is the massive amount of capital that will be required to migrate the millions of lines of VB, VC++, and ASP code to .Net. All the migration wizards in the world can never solve this!
    Good luck.

  • Mail attachement converted into payload in xi

    Hi all,
    does anybody have a clue, why sometimes I receive mail attachement sent from MailServer to XI as Attachement (thats correct) and sometimes (2% of all messages) the attachement from Mailserver is converted into payload of xml message in XI.
    If you have some suggestions how to solve the problem or What could cause the problem, please share you opinions.
    Thanx

    It depends whether the mail itself has several parts or it has just one part.
    Check on the mail server the content type. When it is multi-part, then you get an attachment, when it is anything else, for example text/plain, then you have no attachment.
    Regards
    Stefan

Maybe you are looking for

  • To sync WIRED, need to turn off WIRELESS feature on BB. HOW?

    The Desktop Mgr says to turn off the WIRELESS feature on my Curve 8310 in order to sync with my home laptop.  On the BB, where is this nonwireless/wireless feature?  I'm trying to sync thru the USB port with a cable.  Previously this Curve was synche

  • Image Resize into thumbnail

    How to resize a big image (uploaded images) into a thumbnail (size wise as well) on a run time...

  • IOS 4.2.1 & Exchange OWA 2010 - account verified, though empty mailbox

    Hi, We have upgraded our enterprise exchange server from 2003 to 2010 and implemented a new domain. At first when i deleted my old account from the iPhone and re-added my new account (since the OWA address and domain credentials etc had changed)i was

  • What is the correct step of posting to FICO?

    Hi, now my step is : step1: PC00_M99_PA03_RELEA - Release Payroll step2: PC00_M28_CALC - Start Payroll step3:PC00_M99_CIPE - Create Posting Run ,  run "S-Creation of simulation documents" step4:PC00_M99_PA03_END - Exit Payroll step5:PC00_M99_CIPE - C

  • .joboptions error PLEASE HELP! (Adobe 8.1.4)

    Hey all, I'm currently using Acrobat updated to 8.1.4 on my WinXP Home Edition SP3. My Acrobat used to work like a charm, until a recent Windows Update that was installed last night. I believe it was a .Netframework 3.5 something like that, as well a