Multiple inlcude in jsp.

Can multiple files be included in jsp?
I m doing like this,
<%@include file="topMenu.jsp" %>
<%@include file="navMenu.jsp" %>
but it gives me error,
Page directive: can&#39;t have multiple occurrences of language

You can have multiple includes but you have to be sure that there are no duplication of certain items. I think that the message " Page directive: can't have multiple occurrences of language" might be saying that you have duplicates of something like:
<%@ page language="java" %>If that is your problem, just get rid of this. It isn't really needed since this is the default.

Similar Messages

  • How to get multiple selections from jsp page in my servlet

    Hello Everyone,
    I've a list that allows users to make multiple selections.
    <select name=location multiple="multiple">
        <option>
             All
        </option>
        <option>
             Hyd
        </option>
        <option>
             Dub
        </option>
        <option>
             Mtv
        </option>
      </select>I want to get the selections made by user in jsp page from my servlet, selections can be multiple too.
    ArrayList locList = new ArrayList();
    locList = request.getParameter("location");when I do so, I get compilation error as the request returns string type. How do I then get multiple selections made by the user.
    Please let me know.

    For those kind of basic questions it would help a lot if you just gently consult the javadocs and tutorials.
    HttpServletRequest API: [http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpServletRequest.html]
    Java EE tutorial part II: [http://java.sun.com/javaee/5/docs/tutorial/doc/]
    Coreservlet tutorials: [http://courses.coreservlets.com/Course-Materials/]

  • Method to pass multiple values from jsp

    Hi All,
    There are multiple rows in the jsp form with each having a unique id.
    I want to update some fields in all the rows. Then pass all the data to the controller. From the controller all the data should go to the database one row at a time .How do i do this........
    Any help would be appreciated
    Thanks

    You can make use of ArrayList
    In CO
    OAApplicationModlue am = pageContext.getApplicationModule(webBean);
    ArrayList values = (ArrayList) am.invokeMethod("PassArray");In AM
    public ArrayList PassArray
    ArrayList values = new ArrayList();
    values.add("value")
    values.trimToSize();
    return values;
    }Thanks
    AJ

  • Single Sign-on with Multiple Servlets and JSPs

    I am in the midst of attempting to logically tie together a number of our
              web applications under a single sign-on "umbrella". What we want is the
              following: for any n applications a user may have access rights for up to n
              of them. Once signed in, she has rights to visit any app to which she has
              permissions as long as her session is valid. Unfortunately, I'm having
              trouble seeing how to make this work given the documentation that I have.
              I've read thru the newsgroup in search of a solution, but I haven't seen
              anything geared toward this specific approach.
              Currently, each "application" (servlet) has a list of valid users via ACLs
              (we've implemented a RealmExtender, so we're not going via props file
              entries), and we let the browser pop-up window enforce the sign-on. This
              has worked exactly as we wish (single sign-on, etc.), for testing, but we'd
              really rather have our own form-based sign-on for production.
              To that end, we've done the following:
              1) implemented a JSP form-based sign-on (basically ripped off from the
              example provided by BEA), which does a "ServletAuthentication.weak()" check
              to confirm identity.
              2) placed the following code (essentially) within the service() method of
              our servlet superclass, which I thought would force another check. My
              intention is to disallow the user from "jumping into" an app thru a
              shortcut, and thereby bypassing security.
              HttpSession session = request.getSession(true);
              if (session.isNew()) {
              response.sendRedirect(welcomeURL);
              However, we can't get the form-based approach to mimic the functionality of
              the default browser pop-up: the sign-in doesn't seem to "follow" the user
              the way it did with the pop-up. Instead, when I come in thru our login
              page, the browser pop-up is still appearing when I click the link for an
              app for which to which I have permissions.
              Is the default browser pop-up doing something different that I should know
              about? Seems like this should be simple to do, but it's surprisingly subtle
              (or maybe I'm just clueless).
              TIA
              

    Well, if you want to hear my personal opinion:
    better stick to the cookie specification (http://wp.netscape.com/newsref/std/cookie_spec.html) and accept the constraint that cookies will only be send to domains that tail-match the domain-constraint specified in the set-cookie http response.
    Although this specification is not an official internet standard most browsers are implementing the cookie mechanism according to this specification.
    Unfortenately there's no option to specify that a cookie should be send to a list of servers and/or sub-domains.
    However one physical server can have multiple (FQDN) hostnames. So if you intend to send the cookie to a group of servers the best approach is to create a new (DNS) (sub-)domain exclusively for those servers.
    Theoretically (and also practically) it is possible to set cookies for multiple domains (by using a webservice that will set cookies on request of a caller). But that approach is dangerous:
    (1) not the server but the http client is defining the content of the cookie (= part of the http server response)
    (2) (unintended) many servers can obtain the cookie which will be send to all servers that reside in all (tail-matching sub-)domains; although most likely only one or two servers of each domain are intended recipients
    Regards, Wolfgang

  • Sending mail with multiple attachments in jsp

    hi .I wrote a code to send a mail in jsp.but now i need to send mails with multiple attachments.how can i send mail with multiple attachment.

    Create a separate MimeBodyPart object for each attachment, rather than reusing
    the same one over and over.

  • Inserting multiple records in JSP and setting date format

    Hi,
    I'm looking at the possibilities for using JSP's as a web application.
    I've got a few questions about it:
    1) Is it possible to insert multiple records in the detail block of my JSP. Normally when I click the 'insert button', an insert JSP comes up, which is a html form with the possiblity of inserting only one record.
    2) Is it possible to change the format of a date field. Now a date field is displayed as 'YYYY-MM-DD'. My nls_date_format is something else.
    3) I can't get the static combo box working for the class EditCurrentRecord. The normal use combo box is no problem. Probably, I don't have the syntax correct. Could anyone provide an example for this.

    2) Just use the Calendar object. You can format the date any way you want. I am assuming that you are talking about how the date appears after a .toString() call.
    Here is how I do it (this code will probably look very bad I am trying to type into a very small space so bear with me):
    public static String traceDate(java.sql.Timestamp dt)
    try
    if (dt == null)
    return " ";
    else
    Calendar clFmt = Calendar.getInstance();
    clFmt.setTime(dt);
    return
    String.valueOf(clFmt.get(Calendar.MONTH) + 1) + "/" +
    String.valueOf(clFmt.get(Calendar.DAY_OF_MONTH)) + "/" +
    String.valueOf(clFmt.get(Calendar.YEAR)) + " " +
    String.valueOf( (clFmt.get(Calendar.HOUR) == 0) ? 12 : clFmt.get(Calendar.HOUR) ) + ":" +
    padLt(String.valueOf(clFmt.get(Calendar.MINUTE)),2) + ":" +
    padLt(String.valueOf(clFmt.get(Calendar.SECOND)),2) + " " +
    (clFmt.get(Calendar.AM_PM) == Calendar.AM ? "AM" : "PM");
    catch (Exception e)
    throw new RuntimeException(e.getMessage());
    (padLt is a custom function that just pads 0s to the left of the number)

  • Edit and update multiple records in JSP buisness components

    Hi everybody,
    I'm building BC4J components using entities and views and JSP buisness components.
    how can I edit and update multiple records
    at a time in the jsp file
    Note using the databean
    "oracle.jbo.html.databeans.EditCurrentRecord"
    one can view one record at a time
    thank you

    do you have a sample code? thanks
    Hi
    There are several options. One of them could be
    1) use <input name=rc[j] value="..."> instead of
    display a raw text
    2) parse parameters in doPost method of your servlet
    to update appropriate values.
    3) Make a empty row enable inserts
    Regards
    Jan

  • Multiple Rows in JSP

    Hi
    I have a JSP page which displays multiple rows from the database. In those two fields are editable and I have a button to save in each row. Since I am running a loop and setting the value in the text field, the name of the text field is same for all the rows. But when I update a row, it always takes the values from the first row. I am using struts ActionForm to get and set the values from JSP. Somewhere i need to say this button corresponds to this row. Can somebody help me on this

    Somewhere i need to say
    this button corresponds to this row. Can somebody
    help me on thismy guess would be to make a counter and increment it as you loop through, and the id for each record could include that number appended to the name/id, do you think that will work for you?

  • Multiple xml sources - JSP

    Hi to all,
    Ok this is my situation. I have XML data that is coming from servlets. I need to build a JSP page that will output the XML data, but from multiple servlets. Is there anyway to do this? I have XSLT that transforms the XML data, but it has to be linked at runtime, since the servlets only outputs the data (I need a clear separation between data presentation and the data itself)
    Coul somebody she some light plz...
    Thanks

    Well, not exactly.
    Let's say I have two HTML lists in my JSP page that needs to be outputted. Each of these lists get their data from different servlets. These servlets outputs the XML data. I have this JSP page that needs to take the 2 XML outputs (from each servlets), link the XML data with their respective XSLT file (dynamically!) and render it in HTML.
    So I have multiple XML sources, not just one. That is exactly what I don't want because the XML data combinaison is irrelevant. I want to be able to use this output with other pages. (So joining the 2 sources is not acceptable)
    Thank you

  • Multiple Includes in JSP

              Hi,
              I'm getting a parsing exception when I try to include multiple jsps in the one
              jsp page. Any help would be greatly appreciated!
              The jsp code causing the error is:
                             <%@ include file="mbrDspProfileTravellerInfoPersonal.jsp" %>
                             <%@ include file="mbrDspProfileTravellerInfoAirPref.jsp " %>
                             <%@ include file="mbrDspProfileTravellerInfoCarPref.jsp " %>
                             <%@ include file="mbrDspProfileTravellerInfoHotelPref.jsp " %>
              and the error in the weblogic.log is:
              <16-Jan-02 09:25:00 GMT> <Error> <HTTP> <[WebAppServletContext(8046543,DefaultWebApp,/DefaultWebApp)]
              Root cause of ServletException
              weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamException:
              Could not include mbrDspProfileTravellerInfoAirPref.jsp
                   at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1017)
                   at weblogic.servlet.jsp.JspParser.doit(JspParser.java:78)
                   at weblogic.servlet.jsp.JspParser.parse(JspParser.java:181)
                   at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
                   at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255)
                   at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:327)
                   at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
                   at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:154)
                   at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:368)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:304)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
                   at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
                   at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

              Thank you so much!!!
              Maeve
              "Michael Reiche" <[email protected]> wrote:
              >Remove the space between the 'p' and the closing quote.
              >
              >Mike
              >
              >
              >"Maeve Loughnane" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> Hi,
              >> I'm getting a parsing exception when I try to include multiple jsps
              >in the
              >one
              >> jsp page. Any help would be greatly appreciated!
              >>
              >> The jsp code causing the error is:
              >>
              >> <%@ include file="mbrDspProfileTravellerInfoPersonal.jsp" %>
              >> <%@ include file="mbrDspProfileTravellerInfoAirPref.jsp " %>
              >> <%@ include file="mbrDspProfileTravellerInfoCarPref.jsp " %>
              >> <%@ include file="mbrDspProfileTravellerInfoHotelPref.jsp " %>
              >>
              >> and the error in the weblogic.log is:
              >>
              >>
              >>
              >> <16-Jan-02 09:25:00 GMT> <Error> <HTTP>
              ><[WebAppServletContext(8046543,DefaultWebApp,/DefaultWebApp)]
              >> Root cause of ServletException
              >> weblogic.utils.ParsingException: nested TokenStreamException:
              >antlr.TokenStreamException:
              >> Could not include mbrDspProfileTravellerInfoAirPref.jsp
              >> at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1017)
              >> at weblogic.servlet.jsp.JspParser.doit(JspParser.java:78)
              >> at weblogic.servlet.jsp.JspParser.parse(JspParser.java:181)
              >> at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
              >> at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255)
              >> at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:327)
              >> at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
              >> at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:154)
              >> at
              >weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:36
              >8)
              >> at
              >weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              >:242)
              >> at
              >weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              >:304)
              >> at
              >weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              >:200)
              >> at
              >weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              >ntext.java:2456)
              >> at
              >weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              >:2039)
              >> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              >> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              >
              

  • Passing Multiple values from jsp to servlet

    Dear all,
    I am trying to do a very simple thing. I need to pass names of all products that have been added to the cart.
    Below is my jsp. Basically I am trying to make something very basic using ajax, and later actually build it.
    heres my code with 2 questions... all I need to do is to pass the names of the products.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <META name="GENERATOR" content="IBM Software Development Platform">
    <TITLE>ShowCart.jsp</TITLE>
    </HEAD>
    <script>
    xhr = null
    var flag = false;
    var amount = 0;
    function getData(url,divid,prodName){
              var as = "added"+divid // this is the divid
              if (document.getElementById(as)!=null)
                   document.getElementById(as).innerHTML ="adding"
           if (window.XMLHttpRequest){
             xhr=new XMLHttpRequest()
           else if (window.ActiveXObject){
             xhr=new ActiveXObject("Microsoft.XMLHTTP")
           if (xhr){
              xhr.onreadystatechange=callback       
             xhr.open("GET",url,true)
             xhr.send(null)
             setDivid(as);
             updateCart(divid,prodName);
           else{
             alert("XMLHTTP not supported")
    function setDivid(as){
    if(flag){
         document.getElementById(as     ).style.backgroundColor = "RED";
            document.getElementById(as).innerHTML = "item added";
    function updateCart(divid,prodName){
    amount += divid;
    document.getElementById("amount").innerHTML = "price is "+amount;
    udpateSubmitData(prodName);
    function updateSubmitData(prodName){
    var = document.getElementById("Hidden"+prodName).value;
    //do I need to do something here to submit the data ? ------------------1
    function callback(dd){
           // when finished
           if (xhr.readyState==4){
                  //  OK
                  if (xhr.status==200){
                 // process the result.
                  flag = true;
           else{
                  alert("error")
    </script>
    <BODY>
    <P>Place content here.</P>
    The products are :
    <%
    if(request.getAttribute("Products")!= null){
    java.util.ArrayList list = new java.util.ArrayList();
    list = (java.util.ArrayList)request.getAttribute("Products");
    for(int i=0; i<list.size(); i++){
    com.deere.sc.bean.ProductBean pb1 = new com.deere.sc.bean.ProductBean();
    pb1 = (com.deere.sc.bean.ProductBean)list.get(i);;
    %>
    <table>
    <td>
    <% out.println(pb1.getProductName());
         out.println(pb1.getProductPrice());
         %> <td> <div id="added<%= i %>"> </div> </td>
    <td>     <a href = "javaScript:getData('/SC/AddToCart?name=<%= pb1.getProductName() %>',<%= i %>,<%= pb1.getProductName() %>);"> add to cart</a>  </td>
         <input type="hidden" id="Hidden<%= pb1.getProductName() %>" value ="<%= pb1.getProductName() %>">
         </td>
         <%
    }//end for
    }//end if
    %>
    </table>
    Thank you for shopping at the looters .. heh ;)
    Total amount of money in your cart is <div id ="amount"> </div>
         <a href = "/SC/CheckOut">Check out cart</a>
    <!-- OR may be just add Hidden tags here ?  ______________________2 -->
    </BODY>
    </HTML>Any help on tips for proceeding from here will be helpful.
    thanks in advance

    Dear all,
    I am trying to do a very simple thing. I need to pass names of all products that have been added to the cart.
    Below is my jsp. Basically I am trying to make something very basic using ajax, and later actually build it.
    heres my code with 2 questions... all I need to do is to pass the names of the products.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <META name="GENERATOR" content="IBM Software Development Platform">
    <TITLE>ShowCart.jsp</TITLE>
    </HEAD>
    <script>
    xhr = null
    var flag = false;
    var amount = 0;
    function getData(url,divid,prodName){
              var as = "added"+divid // this is the divid
              if (document.getElementById(as)!=null)
                   document.getElementById(as).innerHTML ="adding"
           if (window.XMLHttpRequest){
             xhr=new XMLHttpRequest()
           else if (window.ActiveXObject){
             xhr=new ActiveXObject("Microsoft.XMLHTTP")
           if (xhr){
              xhr.onreadystatechange=callback       
             xhr.open("GET",url,true)
             xhr.send(null)
             setDivid(as);
             updateCart(divid,prodName);
           else{
             alert("XMLHTTP not supported")
    function setDivid(as){
    if(flag){
         document.getElementById(as     ).style.backgroundColor = "RED";
            document.getElementById(as).innerHTML = "item added";
    function updateCart(divid,prodName){
    amount += divid;
    document.getElementById("amount").innerHTML = "price is "+amount;
    udpateSubmitData(prodName);
    function updateSubmitData(prodName){
    var = document.getElementById("Hidden"+prodName).value;
    //do I need to do something here to submit the data ? ------------------1
    function callback(dd){
           // when finished
           if (xhr.readyState==4){
                  //  OK
                  if (xhr.status==200){
                 // process the result.
                  flag = true;
           else{
                  alert("error")
    </script>
    <BODY>
    <P>Place content here.</P>
    The products are :
    <%
    if(request.getAttribute("Products")!= null){
    java.util.ArrayList list = new java.util.ArrayList();
    list = (java.util.ArrayList)request.getAttribute("Products");
    for(int i=0; i<list.size(); i++){
    com.deere.sc.bean.ProductBean pb1 = new com.deere.sc.bean.ProductBean();
    pb1 = (com.deere.sc.bean.ProductBean)list.get(i);;
    %>
    <table>
    <td>
    <% out.println(pb1.getProductName());
         out.println(pb1.getProductPrice());
         %> <td> <div id="added<%= i %>"> </div> </td>
    <td>     <a href = "javaScript:getData('/SC/AddToCart?name=<%= pb1.getProductName() %>',<%= i %>,<%= pb1.getProductName() %>);"> add to cart</a>  </td>
         <input type="hidden" id="Hidden<%= pb1.getProductName() %>" value ="<%= pb1.getProductName() %>">
         </td>
         <%
    }//end for
    }//end if
    %>
    </table>
    Thank you for shopping at the looters .. heh ;)
    Total amount of money in your cart is <div id ="amount"> </div>
         <a href = "/SC/CheckOut">Check out cart</a>
    <!-- OR may be just add Hidden tags here ?  ______________________2 -->
    </BODY>
    </HTML>Any help on tips for proceeding from here will be helpful.
    thanks in advance

  • How to pass multiple parameters from jsp to servlet using iframe

    function updGrade(grd,actDetID,sID)
    updateFrame.location="/clucas/updateServ?s_id="+sID.value+" &act_ID="+actDetID.value+" &grade="+grd.value+";
    hi, i have this javascript on my jsp and try to send those three params to updateServ servlet inorder to update a grade value to database, but for some reasons it does not work. It is only work when I pass one parameter only.
    Can anybody help me with this please?
    thanks

    You have spaces before the & signs. They can't be there:
    function updGrade(grd,actDetID,sID)
      updateFrame.location="/clucas/updateServ?s_id="+sID.value+
                                           "&act_ID="+actDetID.value+
                                            "&grade="+grd.value;
    }

  • Upload multiple files in jsp using input file

    hi i have been trying to upload multiple 3 iamges max into the server.by adding the path into the database.
    <%@page import=" java.io.*"%>
    <%@page import=" javax.servlet.*"%>
    <%@page import=" javax.servlet.http.*"%>
    <%@page import=" java.sql.*"%>
    <%response.setContentType("text/html");
    String pid = request.getParameter("id");
    System.out.println(pid);
    int propid=Integer.parseInt(pid);
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn= DriverManager.getConnection("jdbc:odbc:rama");
    String contentType = request.getContentType();
    if ((contentType != null) && (contentType.indexOf("multipart/form-data") >= 0)) {
    DataInputStream in = new DataInputStream(request.getInputStream());
    int formDataLength = request.getContentLength();
    byte dataBytes[] = new byte[formDataLength];
    int byteRead = 0;
    int totalBytesRead = 0;
    while (totalBytesRead < formDataLength) {
    byteRead = in.read(dataBytes, totalBytesRead, formDataLength);
    totalBytesRead += byteRead;
    String file = new String(dataBytes);
    String saveFile = file.substring(file.indexOf("filename=\"") + 10);
    saveFile = saveFile.substring(0, saveFile.indexOf("\n"));
    saveFile = saveFile.substring(saveFile.lastIndexOf("\\") + 1,saveFile.indexOf("\""));
    saveFile=saveFile.substring(saveFile.lastIndexOf("."),saveFile.length());
    saveFile= pid + saveFile;
    //out.print(dataBytes);
    int lastIndex = contentType.lastIndexOf("=");
    String boundary = contentType.substring(lastIndex + 1,contentType.length());
    int pos;
    pos = file.indexOf("filename=\"");
    pos = file.indexOf("\n", pos) + 1;
    pos = file.indexOf("\n", pos) + 1;
    pos = file.indexOf("\n", pos) + 1;
    int boundaryLocation = file.indexOf(boundary, pos) - 4;
    int startPos = ((file.substring(0, pos)).getBytes()).length;
    int endPos = ((file.substring(0, boundaryLocation)).getBytes()).length;
    String saveFilepath="upload/" + saveFile;
    FileOutputStream fileOut = new FileOutputStream(saveFilepath);
    //fileOut.write(dataBytes);
    fileOut.write(dataBytes, startPos, (endPos - startPos));
    fileOut.flush();
    fileOut.close();%>
              <center>     
              <table border="4" width="50%" bgcolor="#2C9FE6" bordercolor="#3C6B9E" id="table16">
                        <tr>
                             <td><%out.println("File saved as " +saveFile);%></td>
                        </tr>
                   </table></center><br>
    <%
    Statement st=conn.createStatement();
    int q=st.executeUpdate("update addprop set imagepath='"+saveFilepath+"' where propid="+propid+" ");
    System.out.println(q);
    %><%}%>
    this code uploades one image i want to upload max 3 how to do itt help

    Hi Sandesh,
    this is simply not supported, not in WebDynpro nor in standard HTML.
    A workaround is to upload a ZIP with all files and on server side unpack the ZIP and operate on the single files.
    I hope it will  help u..
    ----------------------OR-------------------------
    As you know using File upload UI element we can upload only one file at a time. There may be a scenario where user may want to upload any no of files at a time which is not determined at design time. This can be acheived using the ACF UpDownload UI element which requires a security whiltelist to be created
    http://scn.sap.com/docs/DOC-2270
    ----------------------OR-------------------------
    You can use Table UI element.
    Regards,
    Deepak Singh

  • Multiple buttons in jsp page

    Hi to all
    afteradminlogin.jsp:--
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
          <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <h4>Select your Department</h4>
    <br>
    <html:link forward="adminbooks">Java</html:link>
    <br>
    <br>
    <html:link forward="adminbooks">.Net</html:link>
    </body>
    </html>in this page when we click on java link it has to move to the adminbooks .but it is not moving it is showing empty page in that place
    adminbooks.jsp:--
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
          <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <input type="hidden" name="method">
    <h4>Welcome To Selection</h4>
    <table border="1">
    <tr>
    <th>
    sno
    </th>
    <th>
    Book Name
    </th>
    <th>
    Author
    </th>
    <th>
    Available No.of Books
    </th>
    <th>
    Select
    </th>
    </tr>
    </table>
    <html:submit name="add" value="add" >Add</html:submit>
    <html:submit name="edit" value="edit">Edit</html:submit>
    </body>
    </html>in this above jsp page i am using two buttons .in this page when we click on add button it has to go to another page and after submit that page that data has to add the the above table how can done that one
    where add button jsp page
    adminaddbooks.jsp:--
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
        %@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <br>
    Book Name <input type="text" name="bookname">
    <br>
    <br>
    Author <input type="text"  name="author">
    <br>
    <br>
    Available No.of Books <input type="text" name="availablebooks">
    <br>
    <br>
    <input type="submit"  value="submit" name="submit">
    </body>
    </html>strutsconfig.xml:--
    <struts-config>
        <form-beans>
        <form-bean
               name="AdminForm"
               type="org.struts.library.admin.AdminForm">
    </form-beans>
    <global-forwards>
    <forward   
                     name="userlogin"
                     path="/Logon.do"/>
            <forward
                     name="adminlogin"
                     path="/adminlogin.do"/>   
           <forward name="adminbooks"
                    path="/adminbooks.do"/>         
            <forward
                name="home"
                path="/home.do"/>
        </global-forwards>
    <action-mappings>
    <action
             path="/adminlogin"
             forward="/pages/adminlogin.jsp"/>
             <action
                  path="/adminaction"
                  type="org.struts.library.admin.AdminAction"
                  name="AdminForm"
                  scope="request"
                  validate="true"
                  input="/pages/adminlogin.jsp">
             <forward   name="success"
                        path="/pages/afteradminlogin.jsp"/>
             <forward    name="failure"
                         path="/pages/adminlogin.jsp"/>
                         </action>        
                  <action path="/adminbooks"
                         type="org.struts.library.admin.AdminBooksAction"
                        forward="/pages/adminbooks.jsp">
                  <forward name="add"
                          path="/pages/adminaddbooks.jsp"/>
                  <forward name="edit"
                           path="/pages/admineditbooks"/>
                         </action>                           
                  </struts-config>

    if you link to an action doesnt work then maybe your action is wrong but you didnt post it.
    You cannot submit a form if you dont use a form in your code
    Other general advice:
    Study Struts better and make sure you know HTML/JSP
    Get an example running and then start with a simple "Hello Struts" test with an Action that doesnt do much

  • Multiple Vendor URL JSP Request Source Code Disclosure Vulnerability

              Has anybody heard about this vulnerability in weblogic web server? If so, is there
              a fix now or is BEA planning one soon? This is a potentially serious security
              hole.
              The problem exists in the way the web server handles decoding a requested URL.
              If the URL contains hex encoded values for characters in a filename, the contents
              of the requested file will be served to the client. If the requested file type
              is jsp the source will be sent to the client instead of the compiles version.
              If anybody has a fix, please post.
              

              Check Weblogic developer center, where you can find some security patches (including
              the one you mention) on right pane.
              http://developer.bea.com
              "Jay Reynolds" <[email protected]> wrote:
              >
              >Has anybody heard about this vulnerability in weblogic web server? If
              >so, is there
              >a fix now or is BEA planning one soon? This is a potentially serious
              >security
              >hole.
              >
              >The problem exists in the way the web server handles decoding a requested
              >URL.
              > If the URL contains hex encoded values for characters in a filename,
              >the contents
              >of the requested file will be served to the client. If the requested
              >file type
              >is jsp the source will be sent to the client instead of the compiles
              >version.
              >
              >If anybody has a fix, please post.
              

Maybe you are looking for

  • Looking for help with respect to configuring MS Exchange server to handle attachments over 10 MB for forwarding to Salesforce (Email-to-case).

    Looking for help with respect to configuring MS Exchange server to handle attachments over 10 MB for forwarding to Salesforce (Email-to-case). Problem - SFDC does not create cases from emails that have more than 10 MB of attachments. Our clients will

  • I can't open a video in cs5.

    I have cs5 and also cs4 and a codec, a quick time player. when I try to open a video file through import video frames to layers this comes up. I tried so many things, but nothing works, does anyone know any resolutions that actually WORK?

  • Event handling to listen directory file changes?

    I want to write a Java program that watches directories for changes. If there are any new files, or files are deleted in a directory, notify the user. I think this is a multi-thread program that watches files changes in specific directories. But I do

  • Owb problem with mapping

    I want create one user (user1) and write to other schema(ex. schema1 and schema2), not in my schema (user1) in owb mapping. It is possible??

  • Multiple Libraries problem

    So I am trying to separate some of my images into different libraries to relieve some space on my hard drive. I tried to export an album as a new library to a Western Digital ext. HD, but I got an error message that said "The library could not be cre