JSP PROBLEM...THEORETICAL QUESTION

Hi as you all know by now im quite new to jsp and have struggled so far to get something decent working but now that i have im happy :D
quick question for you all...
imagine this scenario. when you submit an application for something...i.e. a job...your application status is 'pending' and when moved to the interview stage the status is changed to 'interview' and then if successful changes to 'job offer'
these 3 'status' would be done as final int data types in java...ive done it before and thats not a problem. however how is one to approach that using jsp?? can it be done...if so, how??
also when the user logs in to check the current status of his/her application they should be presented with this status either pending/interivew/job offer.
any ideas??
at the moment all i have done is an application submission which gets stored in an access database. i am nowworking on the part which manipulates the submitted applications according to criteria
thanks!

Level_ID Level_Name
0 Pending
1 Interview
2 Offer
3 Rejection
how would i make a user who logs in to see his status
as the word pending rather than 0?? i.e. how can i
point the Level_ID in Login_Details table to find its
corresponding Level_Name in the Levels table?Create a HashMap at init of your Main Servlet that is populated by this data, keyed by Integer. Make this table reloadable via an HTTP call, that way if you want to update the names you can do so without needing to restart your webserver.
Then when its time to show the name, rather than the number, do :
<%= servlet.statusTable.get( new Integer( user.getStatus() ) ) %>
Probably would be a good idea to put this into a method so you can verify that the object exists, etc., call it showStatus(user)

Similar Messages

  • FCP ISL theoretical question

    Hi,
    I' ve got a theoretical question about the behaviour of ISL at Cisco MDS switches:
    I heard, that during a transfer (a continuous sequence of frames) between a target and an initiator (each of them are on seperated switches, which are connected with only one ISL), no other end device can use the ISL. When the sequence of frames (same OX ID, RX ID) is transfered, another end device can use the ISL.
    There is no "multiplexing" of the ISL.
    Q1: Is this true?
    Q2: If yes, what happend, if you tranfer a lot of data between one target & one initiator. Is there a congestion on the isl for all other devices?
    Regards
    Markus

    Markus,
    The MDS doesn't transfer entire exchanges at a time on a given ISL.  Meaning OXID1, OXID2 etc... It will transmit the frames as they arrive.  Such that you could transfer over the ISL:
    OXID1Frame1, OXID2Frame1, OXID1Frame2, OXID1Frame3
    The second problem could occur in a situation in which the receiver's buffers were full and thereby the TX port on the switch egress frames out of the switch, then the Virtual Output Queue could fill up (for which there is one assigned to every input port for every output port) and eventually the TX side of the ISL would run out of buffers.  To completely avoid this, you would need per flow buffer 2 buffer credits.  As a note the number of and depth of VOQ was designed to help avoid this situation as explained in this whitepaper and illustrated below.
    -Seth

  • Two theoretical questions

    Hi there!
    I'm designing an authentication system. Two theoretical questions have evolved. I am not so sure about it. Hope you can help me out =)
    1. First sign or first cipher?
    What is best practice here? Is it a risk to a symmetrical cryptosystem, if there's also a hash of the plaintext available? Or should the cipher text be signed? I am afraid that this might cause a security risk for the hash: The ciphertext's entropy should be lower than the plaintext's, which might cause lower entropy of the hash value that makes it more likely to find possible collusions.
    2. Challenge Response Authentication
    This is an hypotectical one: Is it of matter, if a (one-side) Challenge Response Authentication is done reverse: Bob sends Alice f(RAND), Alice deciphers it and sends RAND back to Bob.
    Thanks for your help!

    ManuelBreu wrote:
    I'm sorry, my questions were not precise: By entropy I meant the ciphertext's nature that 0 and 1 will have (almost) the same likeliness, which is not the case in the plaintext. This depends very much on the nature of the cleartext. If your cleartext is alpha numeric ASCII then it is certain that the most significant bit of any byte will be a zero with some bias in the other bits (I have never looked at it so I don't know to what extent).
    But you are right: I am affraid, that the uncertainty of the key might be negatively affected by fact, that there is also a hashvalue of the plaintext available.The extra information in the form of the hash means that there is less uncertainty but I would take the resultant entropy as near to the minimum of(hash entropy, key entropy, cleartext entropy).

  • JSP to Excel question

    Hi,
    I have a jsp page that renders data from a result set (queried from database).
    A button on this pages calls a 2nd page that I want to re-query and open excel with the data.
    This all works except that there are a number of blank likes at the top of the excel page, prior to my data. These relate to declatations at the top of my page. i.e
    <%@ page import="java.io.*" %>
    and
    <jsp:useBean id="AccountDetailsBean" class="com.xxx.yyy.zzz.AccountDetailsBean" scope="session" />
    This will give 2 blank lines. I assume that this is because they are essentially being treated as HTML comment lines.
    How can I avoid this? Can I declare these within the main JSP servlet?
    Thanks for any assistance.

    However, remember that the parameters in GET requests are logged in the
    server log so whatever information you send to the server via a GET, remains
    logged and available to whoever has access to your logs. Shouldn't be many,
    but should that information get to the people who run a log analyzer to get
    statistics on the server usage?
    POST is better because the parameters are sent in the body of the request
    and the body is not logged.
    SSL needs to be used in both cases.
    "Dror Avinun" <[email protected]> wrote in message
    news:3affe4b3$[email protected]..
    >
    All the SSL encryption is done in the socket layer and all of the HTTPcommunication
    is encrypted. This means that both the request (yout "GET" command) andresponse
    are secured.
    cheers,
    Dror
    "Asher Bitton" <[email protected]> wrote:
    Hi,
    I'm using https to call from an excel application to a weblogic jsp page,
    my question is whether the url that excel sends (for example:
    "https://mypc:7002/mydir/myfile.jsp?myvar1=val1&myvar2=val2")
    gets also encrypted\secured, what I'm interested to know is whether the
    parameters sent using the http "get" method are secure?
    Where can I find some information regarding the https implementation
    thanks.

  • HT1926 Attempting to update Itunes, received System Error: "program can't start because MSVCR80.dll is missing form computer" try reinstalling the program to fix problem. Question , if reinstall Itunes via download, do I lose my music library?

    Attempting to update itunes, received system error" Program can't start because MSVCR80.dll is missing from computer, try reinstalling the program to fix the problem. Question, I can't access Itunes to backup library, how do I reinstall without loosing music library?

    It doesn't matter and doing a manual install will not fix the problem either.  I'm looking for a solution but no luck yet.  I think Apple has given us a bad update.

  • Some problems and questions using OWB

    For Igor or anyone who can help me :-)
    Hello Igor,
    Thanks for all your help concerning my mapping deployment problem! Now it’s working better ;-)
    I used the OWB Runtime Assistant to create a new runtime target schema and i use the owner of this schema as user while logging to OWB.
    Now i can create and deploy without problems mappings, tables, functions, procedures, packages, dimensions, views, materialized views, process flows (i have installed the Oracle Workflow Client 2.6.2.0.0 with OWF builder and OWF mailer ).
    However I have still some problems and questions :-)
    a) After deploying a mapping or process flow i can execute them from OWB Deployment Manager. How can i schedule the execution of a deployed precess without using OWBDM ? (I want to execute a process every day to perform ETL).
    b) I think i have a problem deploying cubes. I create a cube in OWB, the validation is OK, the deploment succeds, but if i look with OEMC in the tree in the Warehouse OLAP section no cube is created. Only the fact tabe is created. If i look to the scripts from the Pre Deployment generation results i found DDLs only for TABLE, INDEX, UNIQUE KEY, FOREIGN KEY and ANALYZE object types, meanwhile during a dimension deployment i found also a DDL for the DIMENSION type object. WHY ?
    c) If I look in the procedures of the new created OWB Runtime Target Schema I found 3 procedures which are in error and when I try to compile them I receive the following error messages :
    - procedure WB_OLAP_LOAD_CUBE
    PLS-00201: identifier 'DBMS_AWM.CREATE_AWCUBELOAD_SPEC' must be declared
    - procedure WB_OLAP_LOAD_DIMENSION
    PLS-00201: identifier 'DBMS_AWM.CREATE_AWDIMLOAD_SPEC' must be declared
    - procedure WB_OLAP_LOAD_DIMENSION_GENUK
    PLS-00201: identifier 'DBMS_AWM.CREATE_AWDIMLOAD_SPEC' must be declared
    How can solve this problem? Is there any link with the fact that the cube is not generated?
    d) When I first acces the deployed DIM in the OEMC tree I receive a message saying that the dimension does not have complete metadata as needed for use by Oracle OLAP services (because is created either in an earlier version of Oracle database or it was created by an an other application than OEMC) and OEMC automatically generates the default needed metadata. Is this normal ?
    I work in an environment with
    - Oracle 9i Database 9.2.0.1.0
    - Oracle 9i Client 9.2.0.1.0
    - Oracle 9i Warehouse Builder Products 9.2.0.2.8
    Best Regards:
    Vlad
    PS Sorry for my poor English ;-)

    Answered in your "Getting RPE-01008 when deploying mappings" post.
    Regards:
    Igor

  • Some problems and questions

    I have some problems and questions about my MSI MEGA PC 180 system...
    One problem is that MSI live monitor only works one time after every new installation then is just say "The URL is invalid" every other time I try to search for updates.
    One problem is that one of the fans  doesn't turn off when I turn of the computer and the only way to get i to turn off is to turn on the hifi mode and turn it off then the fan stops. And some times the fan can start after a while when the computer has been turned off.
    There are two fans for the cooling of the CPU but PCALERT only shows the speed of one of them.. why? according to the manual one of the is called CPU fan and the other one is called sysfan but only CPU fan showes i PCALERT.
    Are there no other way to control the Tv other than with the Home Teather system than I find way to slow if you use 1280x1024 resolution on the screen like I do. And are there no way to sort and remove channels in home teather? As i is now I can't move the channels in the order I want and I can't remover channels that the auto search thaught was channels but aren't?
    An other thing that I find annoying is that the fullscreen mode of home teather doens't cover all off the screen it doesn't hide the systray and leaves a small but annoying kolumn to the right that showes the backgrund and that is very annoying to watch tv if you have a light backgrund because the kolumn are so bright.

    Welcome Kabbo,
    I see you agree that MC III is far from perfect. Perhaps you can try the combination of Media Portal and Ir2Key. Just read some of the other posts including "WinIRX.ocx internals/usage" by ddookie.  Another possibility is to try Dscaler, but this program is only for watching TV.
    Regarding the processor fans: its normal that only one of the two shows up in PcAlert; when you look closely to both fans you'll see that one has only a two-wired connection.
    The problem of a fan not shutting down is new to me, I suppose you have checked the connections to your mobo?
    Greetz,
    JaDi

  • Checkbox jsp problem

    Hello,
    Situation:
    I a list of checkboxes with the same name but unique value that a user can check if they did something indicated by the checked item. After they check them and click on submit, it goes to a page that then puts a boolean true in a mysql database for the item they checked to indicate they checked the option. When they return to the page, the page uses mysql to see if each item was previously checked and marks it checked if it was.
    Problem: What I want is if the user unchecks it and clicks on submit, the next page will receive an attribute showing that a previously checked box was unchecked so that it can then update the mysql database to change the boolean to false. I am royally confused about how to do this. On the next page I was using:
    String[] ticket;
    ticket = request.getParameterValues("Ticket");
    to receive the checkbox settings. Unfortunately, when you uncheck it, it will not (logically) show up.
    I also tried:
    I created a java bean with a Vector called ticket
    protected Vector ticket = new Vector();
    and made:
    public void setTicket(Vector v) {
    ticket = v;
    public Vector getTicket() {
    return ticket;
    I put the bean in the first page and the second page:
    <jsp:useBean id="tkt" scope="session" class="com.bti.ticketBean" />
    When I did in the page the form goes:
    Vector ticket = tkt.getTicket();
    When I checked ticket with ticket.elementAt(1) for example, it was null whether I checked something or not. I think I would have the same problem anyway with unchecked boxes returning no value.
    Question:
    How can I detect if a user clicks off a checkbox and get that information on the page where the form goes after clicking on submit?
    David

    One way to do this is to store all of the check box values in a cookie as a series of 0's and 1's. When the used submits the form, a javascript function is called to set the cookie. In the servlet you retrieve the cookie, parse it and set all of the database values based on the cookie.
    Here is a sample :
    <html>
    <head>
    <title>Set Load Filters</title>
    </head>
    <body onLoad="loadForm();" >
    <center>
       <form>
           <table>
              <tr>
                 <td>
                    <table>
                         <tr><th>Open State Filters</th></tr>
                         <tr><td><input INPUT TYPE="checkbox" NAME="OF" VALUE="LOADOS1">Creating</td></tr>
    <tr><td><input INPUT TYPE="checkbox" NAME="OF" VALUE="LOADOS2">Closed</td></tr>
    <tr><td><input INPUT TYPE="checkbox" NAME="OF" VALUE="LOADOS3">Opened</td></tr>
    <tr><td><input INPUT TYPE="checkbox" NAME="OF" VALUE="LOADOS4">Reopened</td></tr>
    <tr><td><input INPUT TYPE="checkbox" NAME="OF" VALUE="LOADOS5">Cancelled</td></tr>
    <tr><td><input INPUT TYPE="checkbox" NAME="OF" VALUE="LOADOS6">Reclosed</td></tr>
                      </table>
                 </td>
                 <td style="position:relative;top:0px" >
                    <table style="position:relative;top:0px" >
                         <tr><th>Proximity State Filters</th></tr>
                         <tr><td><input INPUT TYPE="checkbox" NAME="PF" VALUE="LOADPS1">Will Be Inbound</td></tr>
    <tr><td><input INPUT TYPE="checkbox" NAME="PF" VALUE="LOADPS2">Inbound</td></tr>
    <tr><td><input INPUT TYPE="checkbox" NAME="PF" VALUE="LOADPS3">Sitting</td></tr>
                      </table>
                   </td>
                </tr>
           </table>
           <p>
           <input type=button name="Exit" value="Close" onClick="closeWindow();" >
           <input type=button name="Reset" value="Reset" onClick="resetForm();" >
           <input type=button name="Save" value="Set Filter" onClick="processForm();" >
       </form>
    </center>
    </body>
    </html>
    <Script language=JavaScript src="/PnSReportXML/javascript/LoadFilters.js">
    </Script><P>
    In the LoadFilters.js file
    <!--
       function setCookie (name, value) { document.cookie = name + "=" + escape (value) + ";path=/PnSReportXML/"; }
       function getCookie (name) {
                var dcookie = document.cookie;
                var cname = name + "=";
                var clen = dcookie.length;
                var cbegin = 0;
                while (cbegin < clen) { var vbegin = cbegin + cname.length;
                                        if (dcookie.substring(cbegin, vbegin) == cname) {
                                                    var vend = dcookie.indexOf (";", vbegin);
                                                    if (vend == -1) vend = clen;
                                                    return unescape(dcookie.substring(vbegin, vend)); }
                                       cbegin = dcookie.indexOf(" ", cbegin) + 1;
                                       if (cbegin == 0) break; }
                return null;
               }//end  getCookie ()
       function processForm() { var holdName = document.forms[0].elements[0].value.substring(0,6);
                                var holdValue = new String();
                                for (i = 0; i < (document.forms[0].elements.length - 3); i++)  {
                                         if (document.forms[0].elements.value.substring(0,6) == holdName) {
    holdValue = addValue(holdValue, document.forms[0].elements[i]); }
    else { setCookie(holdName, holdValue);
    holdName = document.forms[0].elements[i].value.substring(0,6);
    holdValue = addValue(new String(), document.forms[0].elements[i]); }
    }//end for
    setCookie(holdName, holdValue);
    opener.document.forms[0].submit();
    } //end processForm()
    function loadForm() { var holdName = document.forms[0].elements[0].value.substring(0,6);
    var holdCookie = getCookie(holdName);
    var offSet = 0;
    for (i = 0; i < (document.forms[0].elements.length - 3); i++) {
    if (holdName != document.forms[0].elements[i].value.substring(0,6)) {
    holdName = document.forms[0].elements[i].value.substring(0,6);
    holdCookie = getCookie(holdName);
    offSet = i; }
    if (holdCookie == null) { document.forms[0].elements[i].checked = true; }
    else { if (holdCookie.substring(i - offSet, (i - offSet) + 1) != 0) { document.forms[0].elements[i].checked = true; } }
    }//end for
    } //end loadForm()
    function resetForm() { for (i = 0; i < (document.forms[0].elements.length - 3); i++) {  document.forms[0].elements[i].checked = true; }
    } //end resetForm()
    function closeWindow() { window.close(); }
    function addValue(inHoldValue, inElement) {
    if (inElement.checked) { inHoldValue = inHoldValue + "1"; }
    else { inHoldValue = inHoldValue + "0"; }
    return inHoldValue; }
    //-->
    <P>

  • JDeveloper Business components JSP problem!!

    Hi all,
    First of all sorry for my English language (very poor).
    My question is when I generate Business components JSP Application by JDeveloper 9i
    is running on JDeveloper(oc4j) without any problems but when I using resin server or tomcat I have this exception
    Error Message: �ApplicationModule� is an unknown tag in tag library �/webapp/DataTags.tld�.
    com.caucho.jsp.JspParseException: �ApplicationModule� is an unknown tag in tag library �/webapp/DataTags.tld�.
    at com.caucho.jsp.ParseTagManager.getTag(ParseTagManager.java:144)
    at com.caucho.jsp.java.JavaJspGenerator.getTag(JavaJspGenerator.java:1508)
    at com.caucho.jsp.java.JavaJspBuilder.startElement(JavaJspBuilder.java:199)
    at com.caucho.jsp.JspParser.parseOpenTag(JspParser.java:1204)
    at com.caucho.jsp.JspParser.parseNode(JspParser.java:469)
    at com.caucho.jsp.JspParser.parseJsp(JspParser.java:320)
    at com.caucho.jsp.JspParser.parse(JspParser.java:251)
    at com.caucho.jsp.JspCompilerInstance.compile(JspCompilerInstance.java:335)
    at com.caucho.jsp.JspManager.compile(JspManager.java:182)
    at com.caucho.jsp.JspManager.createPage(JspManager.java:130)
    at com.caucho.jsp.PageManager.getPage(PageManager.java:244)
    at com.caucho.jsp.PageManager.getPage(PageManager.java:181)
    at com.caucho.jsp.QServlet.getSubPage(QServlet.java:289)
    at com.caucho.jsp.QServlet.getPage(QServlet.java:216)
    at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:144)
    at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:173)
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:149)
    at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:256)
    at com.caucho.server.port.WorkerThread.run(WorkerThread.java:126)
    at java.lang.Thread.run(Thread.java:536)
    any ideas please!!

    :(

  • Help me to solve this Jsp problem

    //Class1.java
    package p1.p2;
    public class Class1 implements Serializable
    private String name1,name2;
    public void setName1(String name)
    name1=name;
    public String getName1()
    return name1;
    public void setName2(String name)
    name2=name;
    public String getName2()
    return name2;
    //Class2.java
    package p1.p2;
    public class Class2
    String name1,name2;
    public String insert(Class1 c1)
    name1 = c1.getName();
    name2 = c2.getName();
    return name1;
    //Class3.jsp
    <%@ page import="p1.p2.*" %>
    <html>
    <form action="/bobby/Class3.jsp" method=post>
    Name1 : <input type=text name="cn1">
    Name2 : <input type=text name="cn2">
    <input type=submit value="Click"/>
    </form>
    </html>
    <%! String a,b,c; %>
    <%
    Class1 c1 = new Class1();
    Class1 c2 = new Class2();
    a=request.getParameter("cn1");
    b=request.getParameter("cn2");
    c1.setName(a);
    c1.setName(b);
    c=c2.insert(c1);
    out.println(c);
    %>
    WHEN I RUN THE JSP PROGRAM I GOT THE FOLLOWING ERROR.TELL ME THE SOLUTION TO SOLVE THIS PROBLEM.
    javax.servlet.ServletException:
    p1.p2.Class2.insert(Lp1/p2/Class1;)Ljava/lang/String;
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl .java:825)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.j ava:758)
    org.apache.jsp.Class3_jsp._jspService(Class3_jsp.java:76)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    root cause
    java.lang.NoSuchMethodError: p1.p2.Class2.insert(Lp1/p2/Class1;)Ljava/lang/String;
    org.apache.jsp.Class3_jsp._jspService(Class3_jsp.java:67)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

    First, please put your code inside code tags. There's a nice little button. All you have to do is paste your code, highlight it and press the little code button. Thanks.
    I had to make some adjustments to your original post. Either you had some closing braces in the wrong place, or you hve no idea what you're doing. I'm going to assume that Class1 is in a file named p1/p2/Class1.java and Class2 is in p1/p2/Class2.java.
    //Class1.java
    package p1.p2;
    public class Class1 implements Serializable
        private String name1,name2;
        public void setName1(String name)
            name1=name;
        public String getName1()
            return name1;
        public void setName2(String name)
            name2=name;
        public String getName2()
            return name2;
    //Class2.java
    package p1.p2;
    public class Class2
        String name1,name2;
        public String insert(Class1 c1)
            name1 = c1.getName();
            name2 = c2.getName();
            return name1;
    //Class3.jsp
    <%@ page import="p1.p2.*" %>
    <html>
    <form action="/bobby/Class3.jsp" method=post>
    Name1 : <input type=text name="cn1">
    Name2 : <input type=text name="cn2">
    <input type=submit value="Click"/>
    </form>
    </html>
    <%! String a,b,c; %>
    <%
        Class1 c1 = new Class1();
        Class1 c2 = new Class2(); //<-- problem here, do you see it?
        a=request.getParameter("cn1");
        b=request.getParameter("cn2");
        c1.setName(a);
        c1.setName(b);
        c=c2.insert(c1);
        out.println(c);
    %>Note the I highlighted the problem above. HTH.

  • JSP problem after PDF Form Submit

    Hi,
    Our project team is using a PDF with Acrobat Form fields behind it to post form data to a java servlet, where it is parsed and written to a legacy system.
    Our problem: when we return a jsp confirmation page back to the user, we are getting intermittent responses - sometimes the user will see the page, sometimes not. Also of note - the URL address location in the browser is being changed to "C://TEMP/xxxxxx.html", instead of showing "http://myserver/myapp/confirmPage.jsp". In effect, it doesn't retain the server location from which the form data was submitted - instead, after the jsp on that server is rendered into html, it is being written to a temp location on the local hard drive as an .html page, then displayed from there.
    In my debug testing, I have bypassed the bulk of my application code, submitting into the servlet and returning the jsp right back to the user. It works properly when submitted from an HTML page, but goes to the C://TEMP... route when submitted from the PDF. Therefore, I can conclude that the bug is not in our java code and is not in the jsp code.
    On our PDF we are using an Adobe script submitForm() function, naming our servlet to send to (without appending #FDF on it) and specifying "false" as our second parameter, since we are passing the data as an HttpRequest instead of as FDF data.
    I suspect the problem may be caused by some differences in the headers in the HttpRequest object coming from the PDF. In comparing the Request headers from the PDF submit and those from an HTML page submit:
    From the PDF:
    content-type = application/x-www-form-urlencoded
    user-agent = Mozilla/4.0 (compatible; Adobe Acrobat Control Version 5.00 for ActiveX)
    From an HTML submit:
    content-type = text/html
    user-agent = Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)
    I have tried explicitly setting the headers to match those coming in from an HTML submit but this doesn't seem to make a difference.
    Has anyone experienced a similar problem? Any thoughts?
    jander

    This is a bug from Acrobat !
    The turnover is to send a FDF document with the file tag (/F) referencing the jsp page you want to display

  • Xml/html to jsp - problem with quotes in attribute values

    I am trying to convert a static html document into a jsp using an xsl stylesheet, but run into problems trying to use the jsp expression syntax inside of attribute values.
    Here is a sample of the source file:
    <input type="text" name="firstName" value=""/>
    Here is what I want the resulting jsp file to look like:
    <input type="text" name="firstName" value="<jsp:expression>customer.getField("firstName") </jsp:expression>">
    Here is what part of my stylesheet looks like:
    <xsl:template match="input">
    <xsl:copy>
    <xsl:copy-of select="@type"/>
    <xsl:copy-of select="@name"/>
    <xsl:attribute name="value">
    <xsl:text disable-output-escaping="yes"><jsp:expression></xsl:text>
    <xsl:text disable-output-escaping="yes">customer.getField(</xsl:text>
    <xsl:text disable-output-escaping="yes">"</xsl:text>
    <xsl:value-of select="@name"/> ")
    <xsl:text disable-output-escaping="yes">")</xsl:text>
    <xsl:text disable-output-escaping="yes"></jsp:expression></xsl:text>
    </xsl:attribute>
    </xsl:copy>
    </xsl:template>
    The problem i have is with the <%= customer.getField("firstName") %>. I have tried several different ways of inserting the double quotes around firstName, but no matter what I try, it always uses the entity reference instead of actually putting the " character. The jsp container will not accept the entity.
    I am assuming that the problem is with trying to place double quotes inside of an attribute value. Any ideas how to get around this?
    Thanks
    David

    Which App Server are you using?
    You should just be able to escape the double quotes.
    If that doesn't work, it's a bug in the app-server.
    Alternatively, you can use single quotes around the
    attribute value.
    Hope that helps,
    AlexSorry, I'm an idiot. By escaping you meant the unicode character escape "\u0022". I had not tried that. However, once i realized what you meant, I tried it, and it worked. Thanks for your help.
    David

  • Iplanet webserver 4.1 JSP problem

    Hi I am using iplanet webserver 4.1, whenever i change my jsp file, i have to restart my webserver instance otherwise ia gm getting error..is ther any way i can prevent to restart the webserver?

    this is the script.
    mv /logs/https-`uname -a`-443/access /logs/https-`uname -a`-443/access.yesterday
    compress /logs/https-`uname -a`-443/access.yesterday
    /opt/netscape/server4/https-`uname -a`-443/restart
    the moving and compressing works properly but the restart command doesn't actually kill the and restart the httpd process, and doesn't create the access or error log.
    The restart is a graceful restart will not ask for password, the same setting was working fine for a long time. it suddenly started to give this problem.
    the webserver is working fine(taking requests ,etc) except that the log files are not being written.
    i did a truss and the data collected is above i see that it is giving error #91 ERESTART many times
    there is another server with same settings which is working fine the only difference is that its patch level is lower.

  • JSP Weblogic server question.

              Hi,
              I'm new with Weblogic, and I have running the server already. I'm able to run servlets
              through the browser, however I want to start working with JSP. I created a sample
              jsp file and when trying to launch it through the browser I get a 404 message error.
              So my question is how can I make weblogic to act as a jsp server as well?
              Thank you for any help.
              A.R.
              

    Copy your JSP file into the
              config/mydomain/applications/
              DefaultWebApp directory
              In a web browser, request the JSP file using the following URL:
              http://localhost:7001/sampleJsp.jsp
              "A.R." wrote:
              > Hi,
              > I'm new with Weblogic, and I have running the server already. I'm able to run servlets
              > through the browser, however I want to start working with JSP. I created a sample
              > jsp file and when trying to launch it through the browser I get a 404 message error.
              > So my question is how can I make weblogic to act as a jsp server as well?
              >
              > Thank you for any help.
              > A.R.
              

  • Servlet/jsp problem

    hello i am using netbeans to create a simple login system using a servlet and a jsp. the jsp has the following code:
    <form action="login" method="get">
    <br>UserID <input type="text" name="userID" size="20" maxlength="20">
    <br>Password <input type="password" name="password" size="20" maxlength="20">
    <br><input type="submit" value="Login">
    </form>
    the servlet name is login and located under src/java/login.java
    however when i run it its just giving me this msg that it cannot find the servlet:
    type Status report
    message Servlet login is not available
    description The requested resource (Servlet login is not available) is not available.
    does anyone know what the problem might be?

    How have you defined this servlet in your web.xml ?
    For example it should be something like this:
        <servlet>
            <servlet-name>SomeServletAlias</servlet-name>
            <servlet-class>servletpackagename.ServletClassName</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>SomeServletAlias</servlet-name>
            <url-pattern>/servleturlpattern</url-pattern>
        </servlet-mapping>If you have the URL Pattern as: /servleturlpattern , then in your form's action put action="/servleturlpattern" and not action="servleturlpattern"
    Where ever you reference the servlet, the URL for the servlet should match exactly as you specify it in the URL-Pattern. Otherwise it wont work.

Maybe you are looking for