How to convert text values acceses from jsp page into an xml file?

/* this is the jsp page which i want to convert it into an xml file
please help me , i thank in advance*/
<html>
<head>
<title> xml test</title>
</head>
<body>
<form action="testxml2.jsp" method = post>
<ul>
<li>
<ul>NAME:
<br>
<li>First Name:<INPUT NAME="firstName" TYPE=text SIZE=20><br>
<li>Middle Name:<INPUT NAME="middlename" TYPE=text SIZE=20><br>
<li>Last Name:<INPUT NAME="lastname" TYPE=text SIZE=20><br>
<li>t Name:<INPUT NAME="tname" TYPE=text SIZE=20><br>
</ul>
<br>
<ul>Role:</b><p><input type="radio" name="role" value="buyer">Buyer<p>
          <input type="radio" name="role" value="seller">Seller<p>
          <input type="radio" name="role" value="thirdparty">Third Party<p>
</ul>
<ul>
Qualification:<br>
<li>Highest Degree:<INPUT NAME="degree" TYPE=text SIZE=20><br>
<li>Percentage: <INPUT NAME="percentage" TYPE=text SIZE=20><br>
</ul>
<ul> Adress:
<li> streetName:<INPUT NAME="street" TYPE=text SIZE=20><br>
<li>cityName:<INPUT NAME="city" TYPE=text SIZE=20><br>
<li>StateName:<INPUT NAME="state" TYPE=text SIZE=20><br>
</ul>
</ul>
<b>
<INPUT TYPE=SUBMIT VALUE="ENTER" >
</body>
</html>

hi there,
In the MCV there is a part about struts, this is a descent way to do this.
how to do it:
create an actionform containing all the properties of the page.
then when you submit your form use an method in the actionforms (that you have written) that makes sets your data in a xml file.
this works very quickely and i use it in production...
you can choose if you want the xml to generaded hard coded or via a parser.
greetings

Similar Messages

  • HOW to send a value to another jsp page

    HOW to send a value to another jsp page, like user name in one jsp page to another jsp page

    In the most simplest form...
    // pageA.jsp
    <html>
    <body>
    <form action="pageB.jsp" method="post">
    <b>First Name:</b> <input type="text" name="FNAME" value="Joe">
    <input type="submit" value="Submit">
    </form>
    </body>
    </html>
    // pageB.jsp
    <html>
    <body>
    <b>Name:<b> <%=request.getParameter("FNAME")%>
    </body>
    </html>

  • How can I share values between different jsp pages?

    Hi,
    I'm doing a jsp, bc4j application (JDeveloper 9.0.3), and I need to share some values between different jsp pages. To do this,
    I have used the tag <jsp:usebean.....></jsp:usebean> in this way:
    on pageone.jsp
    <jsp:useBean id="param" scope="session" class="MyPackage.Parameters" ></jsp:useBean>
    on pagetwo.jsp     
    <jsp:useBean id="param" scope="session" class="MyPackage.Parameters" ></jsp:useBean>
    and so on, in order to refer to the same instance of the class "Parameters".
    After deploying, the application works well only if the client is the same pc where the AS resides, otherwise the variables of "Parameters" are null.
    Please, could you help me?
    Thanks
    Nunzio.

    I am seeing an indication on 9.0.3 that static includes are not static, but instead always dynamic. The compiler generates a call to the included page, and doesn't include the content in the calling page as it should.

  • How do I extract multiple tracks from a CD into a single file in Audition CS6?

    I use Audition to edit my Pastor's messages. The message CD is made with five minute tracks. I want to extract the tracks from the CD into a single file for editing and altering the track lengths. I have done this before in Audition CS6, but I haven't been able to find instructions for it. I only found a note stating this is available in AuditionCC.

    I have discovered an answer to my problem. The way to bring multiple tracks into Audition CS6 from a CD is to use the FILE / OPEN APPEND / TO NEW command. This brings the separate tracks into a single file in Audition CD6. Thanks to everyone who commented.

  • How export a pie graph(displayed in jspx page) into a PPT file.

    I am trying to export a pie graph(displayed in jspx page) into a PPT file using Apache POI. But I am facing a problem when I calling the below mentioned code from a button.
    Code:
    SlideShow slideShow = new SlideShow();
    Slide slide = slideShow.createSlide();
    FileOutputStream out = new FileOutputStream("slideshow.ppt");
    slideShow.write(out);
    out.close();
    The above mention code is working and a blank ppt file is created when I am running the code from a standalone java class. But when it is called from button in an adf project code is not throwing any exception but the ppt file is not created.

    Hi,
    sorry but the code snippet alone doesn't help to solve the problem. Did you debug the code to see if it works? My assumption is that the file gets written, just not in the directory you are looking at
    Frank

  • How to get the value in one JSP page to another?

    Hi,
    I have problems in passing the value around in JSP. I have two JSP pages as below:
    test1.jsp
    I try to get the vaule from my textbox by using:
    String strUser = request.getParameter ("strUserName");
    Then i print out by using: out.print(strUser); then i can get the value and put on my page (For example, i get ABC on my page).
    test2.jsp
    Next, i want to get the value from strUser (which mean that the one i already display on page in test1.jsp, ABC) to insert into my table by using INSERT INTO statement. Then i try by using
    String strUser1 = request.getParameter ("strUser");
    Is it possbile for me to do that? I cannot get anything to insert into my table. Then i tried out.print(strUser1); then i found that i get NULL value.
    Could you please give me some guidance?
    Thanks you very much for any advise you may give me.
    Kimsan

    Hi,
    Thank you very much for your help. It's working fine if i just get a one value to another page, however, i have problem while i pass the value in my loop to another page because i always get the last record. I try with the following code:
    logged_page.jsp
    <html>
    <head>
    <title>Welcome to the online Auction...</title></head>
    <body>
    <%@ page language ="java" import = "java.io.*, java.lang.*, java.sql.*" %>
    <% try
         String strUsername = request.getParameter("username");
         session.setAttribute("myUserName", strUsername);     
         String strPassword = request.getParameter("password");
         Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
         Connection myConn = DriverManager.getConnection("jdbc:odbc:Driver={MicroSoft Access Driver (*.mdb)};DBQ=C:/Auction/Auction.mdb");
         String strSQL = "SELECT [UserName], [Password] FROM tblUserDetails where [UserName] = ? and [Password] = ?";
         PreparedStatement statement = myConn.prepareStatement(strSQL);
         statement.setString(1, strUsername);
         statement.setString(2, strPassword);
         ResultSet myResult = statement.executeQuery();
         if(myResult.next())
         //out.println("Login Succesful! A record with the given user name and password exists");
         out.print("<center><h1>");
         out.print("Welcome  ");
         out.print(strUsername);
         out.print("</h1></center>");
         out.print("<center>");
         out.print("<BR><BR>");
         out.print("<font font face = Viner Hand ITC size= 5>Products on sales</font>");
         out.print("<BR><BR>");
         Statement myStatement = myConn.createStatement ();
         ResultSet myResult1 = myStatement.executeQuery("SELECT * FROM tblProduct");
         ResultSetMetaData myResultSet = myResult1.getMetaData();
         out.println("<font face=Tahoma>");
         out.print("<table border=1 CELLSPACING=0>");
         out.print("<TR>");
         out.print("<TD width = 200> Item Title");out.print("</TD>");
         out.print("<TD width = 200> Description");out.print("</TD>");
         out.print("<TD width = 200> Current bid");out.print("</TD>");
         out.print("<TD width = 200> Available Time");out.print("</TD>");
         out.print("<TD width = 200> Place Bid");out.print("</TD>");
         out.print("</TR>");
         out.print("</table>");
         while(myResult1.next())
              String strProName = myResult1.getString(1);
              session.setAttribute("myProName", strProName);          
              out.print("<table border=1 CELLSPACING=0>");
              out.print("<TR>");
              out.print("<TD width = 200>");
              out.println(strProName);
              out.print("</TD>");
              out.print("<TD width = 200>");
              out.println(myResult1.getString(3));
              out.print("</TD>");
              out.print("<TD width = 200>");
              out.println(myResult1.getString(2));
              out.print("</TD>");
              out.print("<TD width = 200>");
              out.println(myResult1.getString(4));
         out.print("</TD>");
         out.print("<TD>");
              out.print("<form action=bid_page.jsp method=post>");
              out.print("<input type=text name=place_bid>");
              out.print("<input type=submit name=okfunc value=Bid>");
              out.print("</TD>");
              out.print("</form>");
              out.print("</TR>");
              out.print("</table>");
              out.println("</font>");
              out.print("</center>");          
         else
              out.print("<center>");
              out.print("Sorry ");
              out.print("<font color = RED size = 5>");
              out.print(strUsername);
              out.print("</font>");
              out.print(" could not be found.");
              out.print("</center>");
         myResult.close();
         statement.close();
         myConn.close();
         catch(SQLException e)
         out.println(e);
    %>
    </body>
    </html>
    bid_page.jsp
    <HTML>
    <HEAD>
    <TITLE>Welcome to the online Auction...</TITLE>
    </HEAD>
    <BODY>
    <%@ page language ="java" import = "java.io.*" import = "java.lang.*" import = "java.sql.*" %>
    <% try
         String thisUserName = (String) session.getAttribute("myUserName");
         String thisProName = (String) session.getAttribute("myProName");
              Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
         Connection myConn = DriverManager.getConnection("jdbc:odbc:Driver={MicroSoft Access Driver (*.mdb)};DBQ=C:/Auction/Auction.mdb");
         PreparedStatement myStatement = myConn.prepareStatement("INSERT INTO tblHistory VALUES ('"+thisUserName+"', '"+thisProName+"', '"+request.getParameter("place_bid")+"')");
              myStatement.executeUpdate();
              myConn.commit();
              myStatement.close();
              myConn.close();
              catch(Exception e){}
    %>
    </BODY>
    </HTML>
    When i click on the BID button in the logged_page.jsp then i always get the last record and save into my table and that is not what i want to. i want to get the result on the same row as the BID button that just click and save to my table.
    Could you please advise?
    Thanks you very much for your time and any consideration you may give me.
    Best Regard,
    Kimsan

  • How to convert a JSP page into a PDF file?

    I am calculating and generating a bill in JSP?
    I want the output JSP page from the server to get converted to a PDF file.
    How to do this?
    Please help me doing this!

    Hai CeciNEstPasUnProgrammeur
    Actually I didnt mean what you are asking?
    I will put it in this way,
    I am having a JSP output.
    If I save that page in the browser it should get
    saved as a PDF File,
    This is my problem,As far as I can see, you have two options:
    1) Ensure you have some kind of rendering tool installed on the server, render your JSP to that engine, capture the output as an image and transform the image to a PDF. Or a variation on that server-side theme.
    2) Take the data you would be/are pushing into a JSP, offer a "download" facility that just takes that data and wraps it into a PDF. Your server then serves out that PDF file.
    To save the browser view (your JSP) as a PDF each client machine would need to be set up with some mechanism to capture and save as PDF. You can't control that.
    I've had to do something similar in the past. In that case though we had a simplar task of just generating a stored HTML file that we could store in the DB and lock down. Our approach was to use XSLT over the generated XML data structure.
    I'd advise you doing the same and generating an XML file and then running an XSLT/FO process over it to generate your PDF file. Don't try to do all the fancy stuff on the client environment, that's an environment you usually have very little control over.

  • How to set an 'alias' for a JSP page in web.xml

    Hi
    Suppose I have a JSP page called SimplePage.jsp and I want to refer to it by someother name while running the application how do I do this in the web.xml file. I have used <servlet-mapping> to do this in the case of a servlet. However I am not sure how to do this with a JSP
    Could somebody show me how to do this. I would be very much grateful.
    All help appreciated and acknowledged.
    thanks in advance
    ilango

    It worked. The correct web.xml version is as below:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app SYSTEM "http://java.sun.com/dtd/web-app_2_3.dtd" [
    ]>
    <web-app>
    <!-- Define servlets that are included in the example application -->
    <servlet>
    <servlet-name>ControllerServlet</servlet-name>
    <servlet-class>ControllerServlet</servlet-class>
    <init-param>
    <param-name>base</param-name>
    <param-value>http://localhost:8080/MVCIIapp/servlet/ControllerServlet</param-value>
    </init-param>
    <init-param>
    <param-name>jdbcDriver</param-name>
    <param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value>
    </init-param>
    <init-param>
    <param-name>imageUrl</param-name>
    <param-value>http://localhost:8080/MVCIIapp/images/</param-value>
    </init-param>
    <init-param>
    <param-name>dbUrl</param-name>
    <param-value>jdbc:odbc:Burnaby</param-value>
    </init-param>
    <init-param>
    <param-name>ilangocal</param-name>
    <param-value/>
    </init-param>
    <init-param>
    <param-name>mangla</param-name>
    <param-value/>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>Header</servlet-name>
    <jsp-file>/MVCIIapp/jsp/Header.jsp</jsp-file>
    </servlet>     
    <servlet-mapping>
    <servlet-name>ControllerServlet</servlet-name>
    <url-pattern>/Master</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Header</servlet-name>
    <url-pattern>/Opener</url-pattern>
    </servlet-mapping>     
    </web-app>
    I have other jps files too.I am going to try and put aliases for them and see how they perform.
    I hope I have not spoken too soon by saying that the aliases work. Let me wait and watch with bated breath.
    But thanks a lot for your suggestions without which this would not have been possible
    ilango

  • How do I copy different parts of the page into separate pdf files?

    I have Adobe Acrobat 9 Pro and an assortment of very large pdfs that I want to make into about a thousand individual pdfs.  The pages contain text and I want to be able to copy parts of the page into separate different pdfs.  It would be really nice if I could split up the page into the required sections by highlighting all the different sections on the page and then save each section to individual pdfs all at once.  Acrobat has so many features that I am hoping that it can do something like this.  Thanks  Anewbie282

    With the number of pages you are talking about, there is no real easy solution. However, try extracting the page(s) you want in a new file. After the extracted file exists, try using the object select tool to remove the parts you do not want. You might find using the redaction tool to zero out the parts you don't want might work better. Unfortunately, a PDF is not a word processor type data file and the editing is likely not going to be easy.

  • How to convert text values in a popup menu to numerical values?

    Hi there,
    I am trying to create a table in Numbers where one cell needs to have a numerical value inserted into it based upon the value chosen in a popup menu in another cell, and I'm not sure how to go about it.
    To be more specific, I have a cell containing a popup menu with the items "Bronze", "Silver", "Gold" and "Platinum". Depending on which value is chosen, I need another cell to be populated with a value of 1,1.5,2 or 2.5 respectively, as I will then use this value to perform a multiplication elsewhere in the table. I have tried using the IF function in the 2nd cell but I can only get that to match one value and not an array of values.
    Could anybody advise on the most effective way of accomplishing what I am trying to do?
    Many thanks in advance.

    Michael Quayle wrote:
    (1) Hopefully you're not looking for points for being helpful, because all you're doing here is patronising me from the looks of it.
    "The fact to be a newbie doesn't prevent someone to have a quick look, at least to the list of available functions, to know what may be done with the tool."
    (2) This was *obviously* the first thing I did, followed by a Google search. When those avenues were exhausted I tried here. However, like I said, having "a quick look" is useless if you are not familiar enough with spreadsheets to know what it is you are looking for! MY choice of language to describe what I was trying to achieve was obviously not compatible with any search I performed, which is why I had to resort to asking a person rather than a manual. And frankly, the language used within the documentation is often rather alien to me. Having read the documentation for VLOOKUP I still don't fully understand its application. I'm a musician for heaven's sakes - everybody knows we can't read!
    "The users guides were designed to help users, not to help helpers to help users "
    (3) Are all your posts this condescending? I came here to ask a question, not to be accused of being lazy and not reading documentation. Like I said, my own searches through the manual were fruitless, so I came here for help. Are all the responses on this forum so cold and terse?
    (1) Don't worry, I'm not here to grab points.
    (2) Searching in the existing threads with the available tool seems more logical than searching in Google.
    (3) I write what I want, the way I want.
    In the cell C2 of the main table, the formula is :
    =IF(ISBLANK(B2),"",VLOOKUP(B2,vlook_up :: A:B,2,FALSE))
    Apply fill down to fill other cells.
    Yvan KOENIG (VALLAURIS, France) jeudi 4 août 2011 12:55:03
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How to convert U32 value obtained from color control of front panel to float(SGL) for use with IMAQ Draw ?.

    I am trying to get user color inputs from front panel and use it in IMAQ Draw. I need to draw an oval of a certain color in a background of another color. Both these color values are user input. The problem is IMAQ Draw requires SGL color value and the color controls of front panel give U32. I have tried conversion VI's which hasn't worked. HELP !!!

    Jake,
    I think the color control can be wired directly to the input, but I am not positive. I don't know of any color conversions that would help.
    Make sure your image is a color image. You can't draw colors on a grayscale image.
    You might want to consider using overlays, which appear on top of the image but are not part of the image.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • How to call cystal report8 report file from jsp page

    hi guys
    present i am using cystal report8 already i am having ReportViewer.jar and ReportviewerBean.jar files
    using that please send me sample code how to call that report from jsp page..
    and how to pass the parameters from jsp page to crystalreport8 report file.
    it was very urgent task to me..so please send sample code on above topic..
    or send me crystalreport8 API
    thanks
    regards

    Hi,
    I also want to work on crystal report but i dont have the ReportViewerBean.jar and ReportViewer.jar. So, please tell from where will i get those jar files.
    Thanks in advanced.

  • JSP Servlet and convert the result set of an SQL Query To XML file

    Hi all
    I have a problem to export my SQL query is resulty into an XML file I had fixed my servlet and JSP so that i can display all the records into my database and that the goal .Now I want to get the result set into JSP so that i can create an XML file from that result set from the jsp code.
    thisis my servlet which will call the jsp page and the jsp just behind it.
    //this is the servlet
    import java.io.*;
    import java.lang.reflect.Array;
    import java.sql.*;
    import java.util.ArrayList;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.naming.*;
    import javax.sql.*;
    public *class *Campaign *extends *HttpServlet
    *private* *final* *static* Logger +log+ = Logger.+getLogger+(Campaign.*class*.getName());
    *private* *final* *static* String +DATASOURCE_NAME+ = "jdbc/SampleDB";
    *private* DataSource _dataSource;
    *public* *void* setDataSource(DataSource dataSource)
    _dataSource = dataSource;
    *public* DataSource getDataSource()
    *return* _dataSource;
    *public* *void* init()
    *throws* ServletException
    *if* (_dataSource == *null*) {
    *try* {
    Context env = (Context) *new* InitialContext().lookup("java:comp/env");
    _dataSource = (DataSource) env.lookup(+DATASOURCE_NAME+);
    *if* (_dataSource == *null*)
    *throw* *new* ServletException("`" + +DATASOURCE_NAME+ + "' is an unknown DataSource");
    } *catch* (NamingException e) {
    *throw* *new* ServletException(e);
    protected *void *doGet(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
    Connection conn = *null*;
    *try* {
    conn = getDataSource().getConnection();
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("select post_id,comments,postname from app.posts");
    // out.println("Le r&eacute;sultat :<br>");
    ArrayList <String> Lescomments= *new* ArrayList<String>();
    ArrayList <String> Lesidentifiant = *new* ArrayList<String>();
    ArrayList <String> Lesnoms = *new* ArrayList <String>();
    *while* (rs.next()) {
    Lescomments.add(rs.getString("comments"));
    request.setAttribute("comments",Lescomments);
    Lesidentifiant.add(rs.getString("post_id"));
    request.setAttribute("id",Lesidentifiant);
    Lesnoms.add(rs.getString("postname"));
    request.setAttribute("nom",Lesnoms);
    rs.close();
    stmt.close();
    *catch* (SQLException e) {
    *finally* {
    *try* {
    *if* (conn != *null*)
    conn.close();
    *catch* (SQLException e) {
    // les param&egrave;tres sont corrects - on envoie la page r&eacute;ponse
    getServletContext().getRequestDispatcher("/Campaign.jsp").forward(request,response);
    }///end of servlet
    }///this is the jsp page called
    <%@ page import="java.util.ArrayList" %>
    <%
    // on r&eacute;cup&egrave;re les donn&eacute;es
    ArrayList nom=(ArrayList)request.getAttribute("nom");
    ArrayList id=(ArrayList)request.getAttribute("id");
    ArrayList comments=(ArrayList) request.getAttribute("comments");
    %>
    <html>
    <head>
    <title></title>
    </head>
    <body>
    Liste des campagnes here i will create the xml file the problem is to display all rows
    <hr>
    <table>
    <tr>
    </tr>
    <tr>
    <td>Comment</td>
    <td>
    <%
    for( int i=0;i<comments.size();i++){
    out.print("<li>" + (String) comments.get(i) + "</li>\n");
    }//for
    %>
    </tr>
    <tr>
    <td>nom</td>
    <td>
    <%
    for( int i=0;i<nom.size();i++){
    out.print("<li>" + (String) nom.get(i) + "</li>\n");
    }//for
    %>
    </tr>
    <tr>
    <td>id</td>
    <td>
    <%
    for( int i=0;i<id.size();i++){
    out.print("<li>" + (String) id.get(i) + "</li>\n");
    }//for
    %>
    </tr>
    </table>
    </body>
    </html>
    This is how i used to create an XML file in a JSP page only without JSP/SERVLET concept:
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*" %>
    <%
    // Identify a carriage return character for each output line
    int iLf = 10;
    char cLf = (*char*)iLf;
    // Create a new empty binary file, which will content XML output
    File outputFile = *new* File("C:\\Users\\user\\workspace1\\demo\\WebContent\\YourFileName.xml");
    //outputFile.createNewFile();
    FileWriter outfile = *new* FileWriter(outputFile);
    // the header for XML file
    outfile.write("<?xml version='1.0' encoding='ISO-8859-1'?>"+cLf);
    try {
    // Define connection string and make a connection to database
    Connection conn = DriverManager.getConnection("jdbc:derby://localhost:1527/SAMPLE","app","app");
    Statement stat = conn.createStatement();
    // Create a recordset
    ResultSet rset = stat.executeQuery("Select * From posts");
    // Expecting at least one record
    *if*( !rset.next() ) {
    *throw* *new* IllegalArgumentException("No data found for the posts table");
    outfile.write("<Table>"+cLf);
    // Parse our recordset
    // Parse our recordset
    *while*(rset.next()) {
    outfile.write("<posts>"+cLf);
    outfile.write("<postname>" + rset.getString("postname") +"</postname>"+cLf);
    outfile.write("<comments>" + rset.getString("comments") +"</comments>"+cLf);
    outfile.write("</posts>"+cLf);
    outfile.write("</Table>"+cLf);
    // Everything must be closed
    rset.close();
    stat.close();
    conn.close();
    outfile.close();
    catch( Exception er ) {
    %>

    Please state your problem that you are having more clearly so we can help.
    I looked at your code I here are a few things you might consider:
    It looks like you are putting freely typed-in comments from end-users into an xml document.
    The problem with this is that the user may enter characters in his text that have special meaning
    to xml and will have to be escaped correctly. Some of these characters are less than character, greater than character and ampersand character.
    You may also have a similiar problem displaying them on your JSP page since there may be special characters that JSP has.
    You will have to read up on how to deal with these special characters (I dont remember what the rules are). I seem to recall
    if you use CDATA in your xml, you dont have to deal with those characters (I may be wrong).
    When you finish writing your code, test it by entering all keyboard characters to make sure they are processed, stored in the database,
    and re-displayed correctly.
    Also, it looks like you are putting business logic in your JSP page (creating an xml file).
    The JSP page is for displaying data ONLY and submitting back to a servlet. Put all your business logic in the servlet. Putting business logic in JSP is considered bad coding and will cause you many hours of headache trying to debug it. Also note: java scriptlets in a JSP page are only run when the JSP page is compiled into a servlet by java. It does not run after its compiled and therefore you cant call java functions after the JSP page is displayed to the client.

  • How to get the URL parameter value when navigating from JSP Page to portal

    Hi All,
    I have web Dynpro application with one button, while clicking that button It will navigate to JSP page as external window. In the JSP page I have a input field and Button.
    In the JSP page input field I will enter some values and press submit button, it will navigate to Portal page by passing some URL parameter with values.
    Once user entering to portal by default WD page displayed, the same WD page I try to get the URL Parameter which I have passed from JSP page, but I am not able to get the URL parameter value.
    If same application running in without portal, I can able to get the URL parameter values. I am getting the URL parameter by interface view default inbound plug parameter.
    How do we resolve this problem?
    Regards,
    Boopathi M

    Hi
    Please try  these link might helpful for you
    1.[How to call WebDynPro application from JSP |/thread/452762 [original link is broken];
    2.[How to get the previous page url from abstract portal component? |/thread/1289256 [original link is broken];
    3.[how to launch and pass a parameter |/thread/5537 [original link is broken];
    Best Regards
    Satish Kumar

  • How to get the form reference in .js page from .jsp page

    hi
    i have written one form in jsp page omething like:-
    <html:form action="/shopping" onsubmit="return false;">
    can anybody tell me,how to get the form reference in .js page from .jsp page ,
    i have tried:-
    var formRef = document.forms[0];
    butits not working.
    Thanks.

    Its very simple......y cant u prefer google...Bad
    c this example...
    function submit()
    alert("textbox"+ document.forms[0].name.value);//to get textbox value in js
    document.forms[0].submit();//to submit jsp page using js
    <html:html>
    <html:form action="/shopping" onsubmit="submit()">
    <html:text property=name>
    learn to search in google..
    </html:form>
    </html:html>

Maybe you are looking for

  • Spry Menu Bar and IE 7.0

    The spry menu bar use in http://www.riversway.org/index_new.html is not displaying the correct orientation. Any ideas why it is doing that. Also, I'm trying to understand the comments in the CSS file that the menu bar uses. Can anyone tell me where I

  • Psc 1315 all-in-one​.missing text when using scanning window

    hello everyone, i am new to all this forum stuff...i have a psc hp 1315 all-in-one printer..it works fine when i print a document THROUGH my pc, as the computer automatically aligns the page...but when i place a document on the viewing window under t

  • Data Migration (FI/CO)

    Hi, Kindly let me know the process for data migration from legacy to SAP system. The client wants us to migrate not only the open items but also all the line items (since there are not much transactions as the company was newly incorporated). We are

  • How can i force a mail link to open in the viewer and not in the Mail App?

    Hello to everybody! I've a trouble about the mail links in a digital pubblication. I've to force a mail link to open inside the viewer. A normal mail link causes the exit of the app and switch into the iPad Mail App... Is it possible force to open th

  • Laptop working at a crawling speed

    Out of nowhere, my macbook pro has come to a crawl at best, to process or do anything, i get the spinning wheel and working with files in lightroom takes 10-15 mins just for file to populate. Really have no idea what happened, how to troubleshoot or