IF a jsp page shows xml  data then is that coded in jsp?

Suppse a jsp page showing following data .. what will the code like ..
is it code in jsp ?
or it embeded XML
can u figure out this ?
<monitorservice>
  <site name="FD">
    <description>FordDirect</description>
  </site>
  <dependency name="PBMMonitor" status="PASS" time="Thu Feb 01 22:02:53 EST 2007" elapsedmilliseconds="63" id="0">
    <description>PBM monitored : tps with timeout of 600000 ms.</description>
  </dependency>
  <dependency name="PBMMonitor" status="PASS" time="Thu Feb 01 22:02:53 EST 2007" elapsedmilliseconds="47" id="1">
    <description>PBM monitored : RGSImporter with timeout of 600000 ms.</description>
  </dependency>
  <dependency name="DBConnection" status="PASS" time="Thu Feb 01 22:02:53 EST 2007" elapsedmilliseconds="0" id="2">
    <description>Database monitored : tps</description>
  </dependency>
  <dependency name="DBConnection" status="PASS" time="Thu Feb 01 22:02:53 EST 2007" elapsedmilliseconds="0" id="3">
    <description>Database monitored : tpsactive</description>
  </dependency>
  <dependency name="PBMMonitor" status="PASS" time="Thu Feb 01 22:02:53 EST 2007" elapsedmilliseconds="31" id="4">
    <description>PBM monitored : email_popper with timeout of 600000 ms.</description>
  </dependency>
  <dependency name="TPSQueueMonitor" status="PASS" time="Thu Feb 01 22:02:53 EST 2007" elapsedmilliseconds="2281" id="5">
    <description>TPSQueueMonitor
Processing current queue length: 299 with TransactionID of '8801EB0B129401108043EA0200000000' in the queue for 29.928 minutes.
Sent to Dealix current queue length: 216 with TransactionID of '8801EB0B097C011051C648E26EE70000' in the queue for 6.928 minutes.
</description>
  </dependency>
  <dependency name="PBMMonitor" status="PASS" time="Thu Feb 01 22:02:55 EST 2007" elapsedmilliseconds="47" id="6">
    <description>PBM monitored : steve with timeout of 600000 ms.</description>
  </dependency>
  <dependency name="SteveQueueMonitor" status="PASS" time="Thu Feb 01 22:02:55 EST 2007" elapsedmilliseconds="47" id="7">
    <description>SteveQueueMonitor
Received from Dealix current queue length: 41 with TransactionID of '8801ED7D07440110803433D400000000' in the queue for 4.563 minutes.
Sending to Dealer current queue length: 16 with TransactionID of '8801EB110BA7011051BBCE5659E50000' in the queue for 2.313 minutes.
Compass send queue length: 1
Fax send queue length: 0
SalesPoint send queue length: 5
TOC send queue length: 3
ALM send queue length: 0
</description>
  </dependency>
  <dependency name="FD3ImportMonitor" status="PASS" time="Thu Feb 01 22:02:55 EST 2007" elapsedmilliseconds="0" id="8">
    <description>FD3Import monitored : with max unimported lead count of 300 leads</description>
  </dependency>
</monitorservice>thiis is the entire webpage looks like !!

That is not a webpage, the JSP is most likely used as a Plain Old Xml (POX) transaction page. So it acts as a sort of webservice.
Suppse a jsp page
is it code in jspBit of a nobrainer, wouldn't you think? It would be hardly of any use if that XML was static content.

Similar Messages

  • Convert jsp page into xml  or dom for search

    Hello everyone,
    I have to build an application that searches for message beans in all jsp page. I did it the traditional way, using scanner and string methods. Its working but its not perfect. So i want to convert all my jsp page into xml format and then process them. My jsp pages are quite complicated. I used some jars that convert them into jspx . But its not working. Please help
    Thanks in advance

    Well its like this.I need to develop a program that reads all the message bean keys.. We have lots of struts webapps. All messages in the jsp pages have been externalised and internationalised. Now i have to build a program that given a webapp path prints out all the message bean keys used in the webapp. I have developed the program using the Plexus Directory scanner to filter all the jsp pages and java util Scanner to read line by line and used String functions to search for keys.
    Now thats not the best soultion. The best way, imo, is to cinvert the jsp into xml pages and then we can parse the xml pages easily. The' problem is to find a way to convert the jsp pages(jstl +javascript) into xml.
    Can you help me out?
    Thanks

  • HOW DO I STOP MY JSP PAGE FROM INSERTING DATA IN DATABASE EACH TIME REFRESH

    Hi,
    HOW DO I STOP MY JSP PAGE FROM INSERTING DATA IN DATABASE EACH TIME REFRESH?
    Thanks

    emekaco wrote:
    Hi,
    HOW DO I STOP MY JSP PAGE FROM INSERTING DATA IN DATABASE EACH TIME REFRESH?
    ThanksSTOP SHOUTING!
    now, while displaying the form generate some random number, or take the current time in millis or whatever. Put that number in a hidden field. Insert that unique number along with the real data into the database, but before you do check if the number already exists. If it does you can be pretty sure this is a resubmit of the same data, so don't allow it. This is one way of many to prevent resubmission of existing data.
    A good way to prevent a refresh from resubmitting altogether is to do a redirect to a result page right after you deal with the POST request. When the user presses refresh then, he/she will refresh the redirect and not the form submit.

  • Build jsp pages in Meta-data level?

    Hello! I want to know if in JDeveloper is possibility to build jsp pages from meta-data? That is if I define a new attribute somewhere, then the attribute will be defined in DB an all jsp pages in which I want?
    Best regards!

    Duplicate of JSP templates in Jdeveloper

  • Jsp page shows old information

    Hi, does anyone knows what is the proplem?
              I have a jsp page that reads data from database and some how it shows me old date information, and after refreshing the page it shows new modified date, allthought I have cleared temporary from browser ???
              thanks
              

    That is not a webpage, the JSP is most likely used as a Plain Old Xml (POX) transaction page. So it acts as a sort of webservice.
    Suppse a jsp page
    is it code in jspBit of a nobrainer, wouldn't you think? It would be hardly of any use if that XML was static content.

  • Problem in sending drop down list value to jsp page showing  null value

    i am trying to send a drop down list value from client side to a jsp page but getting null value
    this is first page where i have accessed data from database and putted it in a drop down list
    <select name="sub">
         <%
         while(rs2.next())
         cat=rs2.getString(1);
         %><option value="<%=cat%>"><%=cat%></option><%
         }%></select>
    <input type="submit" value="Go"></input>
    now on submit i am going to another page
    where i want the selected value from drop down list to be printed
    i have used there
    <%
    String subject= request.getParameter( "sub.value" );
    out.println(subject);
    %>
    but it is printing null here what is the problem that i m facing
    thanx & reagrds
    sweety

    how to generate dynamically names for text boxes
    i am generating text boxes in while loop when selecting data from database
    while(rs1.next())
    name=rs1.getString(1);%>
    <tr>
    <td>1</td>
    <td><%out.println(name);
    //i am printing here stud_id a unique key and want to update records from following text boxes to particular stud_id
    %></td>
    <td><input type="text" name="????"></input></td>
    <td><input type="text" name="????"></input></td>
    <td><input type="text" name="????"></input></td>
    <td><input type="text" name="????"></input></td>
    </tr><%
    the structure is like
    stud_id | attended theory | conducted theory | ateended practical | conducted practical
    where attended theory, conducted theory............. are to be inputed manually for all students and then update in database
    so i am facing problem in generating names for textboxes how to do that
    so that those can be updated in database for particular student
    Thanx & Regards
    sweety

  • How to send the jsp page with the data as attachment

    hi
    my application is to display all the datas from the database.In the same page. i'm having a option to select mail address from the combo box and to send the page with the same format thru mail as an attachment .
    <%      String from="192.168.10.1";
              String to=request.getParameter("to");
              System.err.println(to);
              String mailhost="localhost";
             System.err.println("hiiiiiiiii");
              try
                   System.err.println("byeeeeeee");
                   Properties prop=System.getProperties();
                   prop.put("mail.smtp.host", mailhost);
                   Session ss=Session.getInstance(prop,null);
                System.err.println("session props");
                   Message message = new MimeMessage(ss);
                   System.err.println("message");
                   message.setFrom(new InternetAddress(from));
                   System.err.println("form not null");
                   message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
                   System.err.println("from and to r set");
                   message.setSubject("Hello JavaMail Attachment");
              // Create the message part
                   BodyPart messageBodyPart = new MimeBodyPart();
              // Fill the message
                   messageBodyPart.setText("have u got the attachement?");
                   Multipart multipart = new MimeMultipart();
                   multipart.addBodyPart(messageBodyPart);
              // Part two is attachment
                   messageBodyPart = new MimeBodyPart();
                   DataSource source = new FileDataSource("C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/MgmtTool/emsReport.jsp");
                   messageBodyPart.setDataHandler(new DataHandler(source));
                   messageBodyPart.setFileName("emsReport.jsp");
                   multipart.addBodyPart(messageBodyPart);
              // Put parts in message
                   message.setContent(multipart);
                   System.err.println("ready");
              // Send the message
                   Transport.send(message);
                   out.println("mail was sent successfully");
              catch(Exception e)
              {out.println(e);}
              %>
    by using this code i 'm sending the emsreport page as attachment
    i'm recieving only the tabular format but i cant able to get those data which are present on that page
    i dont know wat to do???
    kindly help me
    thank u in advance

    Some of the points might help you in thinking towards right direction, you might already know this but doesn't look like you are following in your code anyway.
    1. The JSP that you are emailing is uncompiled source file. It need JVM environment to be able to run on.
    2. The JSP is a view technology so try to separate the view logic from the business.
    3. Try to put entire business logic in a Bean and use that in your JSP to start off with.
    You may need to write the HttpServletResponse#content on to the Writer and then persist it on the filesystem. and then send that persisted file as an attachment.
    Have a look at http://java.sun.com/j2se/1.5.0/docs/api/java/io/Writer.html
    It provide different type of writer implementations.
    HttpServletResponse#getWriter() provides PrintWriter instance.
    Does it make sense?

  • Page shows different data when saved after few minutes

    Hi,
    I have a peculiar problem to describe.
    I have a page which contains af:table inside af:panelCollection layout. I use a af:commandLink to drilldown to another page using setCurrentRowWithKey method.
    I am able to drill down to the correct data in another page which contains data that is editable. Once after editing the page when i click save button, i am able to save the data. This is working fine.
    But the problem is, once i drilled down to this edit page and edit some fields and save it after few minutes, say 5 minutes later, it is not saved. Also, the page is refreshed to bring some random record.
    Can anyone let me know why is this happening and how to resolve it?
    Thanks

    Hi Timo,
    Which jdev version?I am using jdev 11.1.1.3.0.
    Is it possible that the data has changed (e.g. by an other user) after you drilled to the one record you want to change?There is a possibility that the data can be changed by other user as well. But, for the time being we have implemented for the single user environment.
    When you click save after some time, do you get any error (on the screen or in the logs)?Yes. On the screen, it is displayed as "oracle.jbo.JboException: Document type mismatch (source INVOICE, type Sales)". It is a validation exception thrown at viewRowImpl level by me. But it validates the data perfectly when saved immediately after editing
    Which session timeout do you have configured in your web.xml?Session-timeout is given as 240
    Have you tried your use case with the HR schema?Yes. when i reproduce the situation in HR schema, it is getting saved perfectly
    Regards

  • Single signon between JSP page and Net.Data page

    I am trying to setup a single signon between a JSP page hosted on a tomcat server, and a Net.Data page hosted on an IBM HTTP server. Both of these servers are running on an AS400. The JSP page (www.jsppage.com/menu) contains a link to the Net.Data page (www.netData.com/page2). In order to access www.jsppage.com/menu the user needs to login. Once this happens I want them to be able to go back and forth between the two pages without having to log in when they switch servers. Page navigation is handled through myServlet.java so that when a user clicks on a link the request is forwarded on to myServlet.java where the servlet determines where to redirect the user to. The servlet uses
    RequestDispatcher requestDispatcher = getServletContex().getRequestDispatcher(url);
    requestDispatcher.forward(request, response);
    to forward the user to the correct page. This works fine for the JSP pages but when I forward to www.netData.com/page2 I get an error telling me the address doesn't start with a /. I also need to send the user name and password for the net.data pages to avoid the second login window to popup.
    I understand that the requestDsipatcher.forward() method directs the browser to a page that is relative to the current root directory. If I try to use response.sendRedirect(url) I get sent to the right page but the signon window pops up. I would appreciate any help.

    I am trying to setup a single signon between a JSP
    page hosted on a tomcat server, and a Net.Data page
    hosted on an IBM HTTP server. Both of these servers
    are running on an AS400. The JSP page
    (www.jsppage.com/menu) contains a link to the Net.Data
    page (www.netData.com/page2). In order to access
    www.jsppage.com/menu the user needs to login. Once
    this happens I want them to be able to go back and
    forth between the two pages without having to log in
    when they switch servers. Page navigation is handled
    through myServlet.java so that when a user clicks on a
    link the request is forwarded on to myServlet.java
    where the servlet determines where to redirect the
    user to. The servlet uses
    RequestDispatcher requestDispatcher =
    getServletContex().getRequestDispatcher(url);
    requestDispatcher.forward(request, response);
    to forward the user to the correct page. This works
    fine for the JSP pages but when I forward to
    www.netData.com/page2 I get an error telling me the
    address doesn't start with a /. I also need to send
    the user name and password for the net.data pages to
    avoid the second login window to popup.
    I understand that the requestDsipatcher.forward()
    method directs the browser to a page that is relative
    to the current root directory. If I try to use
    response.sendRedirect(url) I get sent to the right
    page but the signon window pops up. I would
    appreciate any help.You can't do that without passing username and password.
    The servers keep track of the user by storing a cookie on the clients computer. The cookie is only valid for the domain that created it.
    So, to make this work you need to send the username and password as part of the sendRedirect. the forward() method won't work.
    What you could do is create some code on the .net machine that accepts username, password and target URL as input. Once it receives those parameters it should perform the .net login procedure and redirect to the correct page.
    In your servlet you should pass those parameters on to the .net machine and the user should get the correct page without ever seeing any login windows.
    Make sure to use https if you decide to follow this scheme since http will transmit the username/password in cleartext.
    /Christopher

  • Showing XML data

    Hi all,
    i have to create a table in the DDIC where i have to store some XML data and informations.
    ID -> char
    date -> date field
    desc -> char
    xml -> ????
    What datatype shall i use to store my XML Data ?
    Later in a Dynpro i need to show this XML Data. What type of control shall i use to show this XML Data ?
    Can i use the browser control ? If so ... how can i pass my xml data to this control ??
    Greetings
    Henning

    You can create a field of data type STRING if you are planning to store your XML in string or RAWSTRING if you are planning to store your data in XSTRING.
    You can use the Simple CL_GUI_HTML_VIEWER to display your XML data stored in STRING or XSTRING. Take a look at the FM DISPLAY_XML_STRING.
    Regards,
    Naimesh Patel
    Edited by: Naimesh Patel on Feb 12, 2009 10:19 AM

  • JSP Documents (JSP pages in XML format) and Namespaces

    I have 1 set of XSLT stylesheets that takes XML and outputs JSP documents.
    This 1 set of XSLT supports numerous clients (customers).
    I have a new customer that uses a new namespace, let's call it "xyz".
    This namespace is the TLD for xyz custom tags.
    So, it would look something like this in the resulting jsp:root tag --> xmlns:xyz = "/xyzTagLib".
    Where /xyzTagLib has a corresponding entry in web.xml that points to the xyz.tld that is delivered in WEB-INF/TLD.
    However, most customers do not have the xyz application installed.
    Thus, I added the exclude-namespace-prefixes="xyz" in the xsl:stylesheet tag to conditionally add the xmlns:xyz only if an xyz tag exists. However, this does not add it to the jsp:root tag, but only to each individual xyz tag in the resulting document.
    However, the resulting JSP does not work in the runtime environment because it does not recognize the xyz tags.
    Is there a known bug with jsp documents declaring namespaces "in line" instead of at the jsp:root level? Is there a way around this?
    Thanks,
    Brian

    Hi Tridib,
    the XML content is stored in the .xml file. You'll have to access it in a way that doesn't cause the XML-to-HTML transformation to take a peek at the format. You could probably do this by accessing the repository in question via WebDAV. If you're on a later SP, you should be able to go to /irj/go/km/docs/ in your browser to access the repository via WebDAV. Otherwise, take a look in the details pane of the folder that contains the .xml file in question. Under properties, there'll be a URL to access the folder via WebDAV.

  • Designing the structure of jsp pages using xml

    how can i design the structure of the jsp using xml file?

    The structure of the JSP? I don't know what that means. Perhaps you can explain why you thought using XML for that would be a good idea, that might help us comprehend the question.

  • How to show flexible date in a time component in JSP

    According to Steven Muench about How to handle Flexible Date Format
    on Feb 28,2001. I create the FlexiDate Domain and create a FlexiDate.class in the
    howto.common package. Then in Employees entity on the Attribute Setting page I select Hiredate attribute and change its datatype from Date to howto.common.FlexiDate.
    But in JSP when I edit a record the time component(LOV) only show YYYY-MM-DD and I can not select HH and MM. After select a day I want to append HH and MM by hand, but I can not enter HH and MM at all.
    Another problem: I need to calculate interval between two time columns and get hours. For example the interval between 2002-10-10 12:10 and 2002-10-11 14:10 is 26.
    I am pleading for help!

    To edit the time format, you need to:
    1. select the simple date formatter in the attribute's control hints and use a format string that includes a time format.
    2. Change your entity attribute to be of type 'timestamp' since the Date type doesn't allow editing the time portion of your field.

  • How to Display string array in jsp page using netui-data:repeater tag ??

    hi,
    I am trying to display a string array in a table using the netui-data:repeater tag.
    I have to use a page flow controller Array(1 Dimensional) to be displayed in the jsp.
    Can any one tell me how to print the array in a table of 3rows & 5 columns.
    Here is the code on which I am crrently working on.
    <netui-data:repeater dataSource="{pageFlow.strWorkObject_Array}">
    <netui-data:repeaterHeader>
    <table cellpadding="4" border="1" class="tablebody">
    </netui-data:repeaterHeader>
    <netui-data:repeaterItem>
    <tr>
    <td><netui:label value="{container.item}" >
    </netui:label></td>
    <td><netui:label value="{container.item}">
    </netui:label></td>
    <td><netui:label value="{container.item}">
    </netui:label></td>
    </tr>
    </netui-data:repeaterItem>
    <netui-data:repeaterFooter>
    </table>
    </netui-data:repeaterFooter>
    </netui-data:repeater>

    weblogic.developer.interest.workshop
    Mansoor Naseem wrote:
    I would like to know where the pageflow newsgroup is.
    These are all the groups in weblogic.developer.interest:
    weblogic.developer.interest.60beta.* (5 groups) weblogic.developer.interest.management
    weblogic.developer.interest.61beta.* (2 groups) weblogic.developer.interest.misc
    weblogic.developer.interest.clustering.* (1 group) weblogic.developer.interest.performance
    weblogic.developer.interest.commerce weblogic.developer.interest.personalization
    weblogic.developer.interest.ejb.* (3 groups) weblogic.developer.interest.portal
    weblogic.developer.interest.environment weblogic.developer.interest.rmi-iiop
    weblogic.developer.interest.jdbc weblogic.developer.interest.security
    weblogic.developer.interest.jms weblogic.developer.interest.servlet
    weblogic.developer.interest.jndi weblogic.developer.interest.tools
    weblogic.developer.interest.jsp weblogic.developer.interest.weblogicenterprise
    MN

  • Re:re:how to show flexible date in a time component in JSP

    Thank Juan Oropeza.
    I have tried it according to your solution. In edit.jsp the timefield show
    YYYY-MM-DD 12:00 then I can change HH and MM by hand. but after I changed it
    YYYY-MM-DD 11:30 and updated. In browse.jsp the timefield is only YYYY-MM-DD 12:00
    I am not sure whether the time only be 12:00
    I am pleading for your help!!!

    You should change database column type too (only in JDeveloper, it doesn't mind what you have physically inside database) - for example to DATETIME or TIME.
    (See Re: Photo does not display for more details...)

Maybe you are looking for

  • Calendar not working after update to iOS 5

    Not able to add events in calendar and not able to add new contacts. The + is not there in either app? No updates available for either. Built in apps that are on iPad when purchased.

  • Can I run a backup when iOS beta has expired?

    Hi, I'm traveling overseas and have been unable to install IOS 6 after the latest beta. I was trying to backup my phone, but the Internet here is bad, so it kept failing. Is there a way to still do a backup before restoring to the release version of

  • Data merge issues in InDesign CS4

    Hello I'm having an issue with a data merge document that I've made. The issue  I'm having is when ever I "update content in data fields" items are  deleted off of the page. I have rebuilt it several times but always get  the same issue, any ideas? C

  • How to use built-in iSight & external Firewire iSight simultaneously?

    The solutions I've found here and elsewhere, about launching iChat first so it "controls" the internal iSight and will force the firewire iSight to work, does not work. With Quicktime and Photo Booth, I stll get the feed from the internal camera. iCh

  • [SOLVED] Hibernate Windows or boot Archlinux, can't do both.

    Hi, I couldn't hibernate Windows, when I tried to the computer locks up. But I fixed it executing "diskmgmt.msc" and marking the C: partition as active. Now I can hibernate, but when I power on the computer I can't see syslinux boot screen. What can