A simple web server !!! Help needed ...

Well, I was trying to create a simple web server. It just accept a request from a browser and send a response.
But I just cannot send the response to the browser. I am able to receive the request from the browser. Can anyone give me a clue what is wrong or what i have to do in order to send response to the browser? I am really puzzled !!!
Here is the code
=============
package service;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.SocketException;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Listener implements Runnable {
private InputStream is;
private OutputStream os = null;
boolean connected = false;
ServerSocket server=null;
Socket client=null;
public Listener() throws SocketException, IOException {
server = new ServerSocket(2772);
client = server.accept();
System.out.println("Connected to :" + client.getInetAddress().getHostAddress() + " @" + client.getPort());
is = client.getInputStream();
os = client.getOutputStream();
Thread t = new Thread(this);
t.start();
public void run() {
String b = "";
while(true) {
try {
int c = is.read();
if (c!=-1) {
b +=(char)c;
System.out.print((char)c);
} else {
System.out.println(b);
break;
//System.out.println(b);
if (b.contains("keep-alive") && !connected) {
connected = true;
System.out.println("request recieved sending response");
String lineSep = System.clearProperty("line.separator");
String data = "<html><head><title>URA DHURA</title></head><body>HHH</body></html>";
String res = "HTTP/1.1 200 OK" + lineSep + "Connection: close" + lineSep + "Date: Thu, 06 Aug 1998 12:00:15 GMT" + lineSep;
res = res + "Server: WebApplication" + lineSep + "Last-Modified: Mon, 22 Jun 1998 09:23:24 GMT" + lineSep + "Content-Length: " + (data.length()-1) + lineSep;
res = res + "Content-Type: text/html;" + lineSep + data;
System.out.println("<" + res + ">");
os.write(res.getBytes());
os.close();
// Thread.sleep();
} catch (IOException ex) {
Logger.getLogger(Listener.class.getName()).log(Level.SEVERE, null, ex);
=======
When ever i entered the url from the browser i get this output :
OUTPUT
======
Connected to :127.0.0.1 @2143
GET / HTTP/1.1
Host: localhost:2772
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; bn-BD; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: UTF-8,*
Keep-Alive: 300
Connection: keep-aliverequest recieved sending response
<HTTP/1.1 200 OK
Connection: close
Date: Thu, 06 Aug 1998 12:00:15 GMT
Server: WebApplication
Last-Modified: Mon, 22 Jun 1998 09:23:24 GMT
Content-Length: 65
Content-Type: text/html;
<html><head><title>URA DHURA</title></head><body>HHH</body></html>>
===========
Can any one give a clue???
Thanks.

Well, I was trying to create a simple web server. It just accept a request from a browser and send a response.
But I just cannot send the response to the browser. I am able to receive the request from the browser. Can anyone give me a clue what is wrong or what i have to do in order to send response to the browser? I am really puzzled !!!
Here is the code
=============
package service;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.SocketException;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Listener implements Runnable {
private InputStream is;
private OutputStream os = null;
boolean connected = false;
ServerSocket server=null;
Socket client=null;
public Listener() throws SocketException, IOException {
server = new ServerSocket(2772);
client = server.accept();
System.out.println("Connected to :" client.getInetAddress().getHostAddress() " @" client.getPort());
is = client.getInputStream();
os = client.getOutputStream();
Thread t = new Thread(this);
t.start();
public void run() {
String b = "";
while(true) {
try {
int c = is.read();
if (c!=-1) {
b =(char)c;
System.out.print((char)c);
} else {
System.out.println(b);
break;
//System.out.println(b);
if (b.contains("keep-alive") && !connected) {
connected = true;
System.out.println("request recieved sending response");
String lineSep = System.clearProperty("line.separator");
String data = "<html><head><title>URA DHURA</title></head><body>HHH</body></html>";
String res = "HTTP/1.1 200 OK" lineSep "Connection: close" lineSep "Date: Thu, 06 Aug 1998 12:00:15 GMT" lineSep;
res = res "Server: WebApplication" lineSep "Last-Modified: Mon, 22 Jun 1998 09:23:24 GMT" lineSep "Content-Length: " (data.length()-1) lineSep;
res = res "Content-Type: text/html;" lineSep + data;
System.out.println("<">");
os.write(res.getBytes());
os.close();
// Thread.sleep();
} catch (IOException ex) {
Logger.getLogger(Listener.class.getName()).log(Level.SEVERE, null, ex);
{code}
=======
When ever i entered the url from the browser i get this output :
OUTPUT
======
Connected to :127.0.0.1 @2143
GET / HTTP/1.1
Host: localhost:2772
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; bn-BD; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: UTF-8,*
Keep-Alive: 300
Connection: keep-aliverequest recieved sending response
<HTTP/1.1 200 OK
Connection: close
Date: Thu, 06 Aug 1998 12:00:15 GMT
Server: WebApplication
Last-Modified: Mon, 22 Jun 1998 09:23:24 GMT
Content-Length: 65
Content-Type: text/html;
<html><head><title>URA DHURA</title></head><body>HHH</body></html>>
===========
Hello endasil,
Actually I got a sudden idea of developing a web application which allows the content to be accessed from a web browser. Its user interface will be accessible through browser. Of course you can say I could use PHP, JSP as the frontend and at the back end USE the application.
But I just want to explore and learn.
Any way,
Thank you for your reply.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • IOS as a simple web server

    Dear Community!
    I would like to use a Cisco router as simple web-server hosting an automatic proxy configuration script file. Is is possible to configure HTTP AAA to allow access without username / password authentication?
    See the test configuration below:
    aaa new-model
    aaa authentication login CISCO_HTTP_AUTH none
    aaa authorization exec CISCO_HTTP_AUTH none
    aaa authorization commands 15 CISCO_HTTP_AUTH none
    access-list 99 permit host [***Host IP***]
    ip http server
    ip http access-class 99
    ip http authentication aaa login-authentication CISCO_HTTP_AUTH
    ip http authentication aaa exec-authorization CISCO_HTTP_AUTH
    ip http authentication aaa command-authorization 15 CISCO_HTTP_AUTH
    no ip http secure-server
    ip http path flash:
    Router#dir
    Directory of flash:/
        1  -rw-    22855564                    <no date>  [*** IOS Image ***]
         2  -rw-        3877   Sep 2 2010 13:15:09 +02:00  ipproxy
    33030140 bytes total (10170568 bytes free)
    Router#
    Thanks in advance!
    Regards
    Belabacsi

    Define an authentication method using "none" then apply it to the http authentication configuration.
    e.g.
    aaa authentication login example none
    ip http authentication aaa login-authentication example
    Please be aware of the security implications of this.

  • Simple web server setup - missing something

    I am trying to use 10.9 OS X Server to set up a simple test web server.  Simple PHP sites to be tested on this standalone server.  Here is what I have done:
    1) Set up the OS X Server DNS services to resolve a test domain name (name.test) to 10.0.1.255
    2) Set up OS X Server Website Services adding the domain name, sending it to a directory on the Mac (listening on any IP address port 80).  Checked enable php but I can not get far enough to worry about that now.
    3) In Network Setting given the Mac a static IP address 10.0.1.225
    4) In Network Settings set the DNS server to 10.0.1.225
    Based on my limited knowledge I would think that is it. 
    But then on that same server when I enter the domain name into safari it just goes out and does a google search on the name.  Clearly the linkage is not being made.
    Safari works for surfing, so it appears the basic network settings work.
    When I go to 10.0.1.255 I get the Welcome to OS X Server page.
    Any help would be appreciated.  Am I missing something simple, or is my basic reasoning flawed about how this should work?

    Safari searches the name on google because .test is not an ICANN domain name. To have it not search you have to add http:// (http://name.test).
    Don't add .local to hosts, as bonjour handles all .local domain names.
    The following should work for you.
    1. Start DNS service and add only one entry pointing to your server, Name it whatever you like but .com, .org, .net , etc... Are more appropriate as they are ICANN domain names. (If your servers ip is 10.0.1.255, it should point to 10.0.1.255)
    2. Enable DNS forwarding to a public DNS server (8.8.8.8 for google's)
    3. In network settings make DNS 127.0.0.1.
    4. Server may add an alert saying the hostname has changed, make sure you update all services. Using scutil to update the hostname is a good idea too
    5. Enable the web service, you should be able to connect to it by typing in your domain name. If it is not a ICANN name you have to have http"// before the domain name. You have to type in the name exactly, do not at www. unless you put www. in the DNS server configuration.
    I hope that all makes sense

  • Silent install of Sun Web Server help

    I tried to do a silent install of the Sun Web Server and I get the following errors....
    while doing /path.../setup -s -f /path..../install.inf
    after checking this is the error log I saw...I dont even see a SUNWwbsvr folder created under /opt.
    [05/09/11:18:09:38] - [Setup] Info Start...
    [05/09/11:18:09:38] - [Setup] Info Start silent installation...
    [05/09/11:18:09:38] - [Setup] Fatal No components are specified to be installed.
    [05/09/11:18:09:38] - [Setup] Fatal ServerRoot is not specified.
    [05/09/11:18:09:38] - [Setup] Fatal Can't initialize installation!
    [05/09/11:18:09:38] - [Setup] Info DONE
    Can anyone help me on what needs to be done??
    Thanks!
    Anand

    Did you follow the supported way for the silent install ? ===>
    For windows :
    http://docs.sun.com/source/819-0131/win.html#wp25280
    For UNIX :
    http://docs.sun.com/source/819-0131/unix.html#wp28818

  • New to EJB (Server Help Needed)

    I am new to EJB and I'm learning through a few books and online tutorials. The only problem is that when I try to use them, I get errors. I've done some researching and I think it has to do with my server setup. Here is what I have running and successfully configured:
    Apache Web Server
    Tomcat Container
    Java 2 SDK 1.4.0_01
    Java XML Pack (Winter 2002)
    I have Sun Studio 4 installed and I think that it installs J2EE but I'm not sure. Can someone help me understand where to go next? What do I have to install/configure to get the EJBs to work? Thanks, Jeremy

    Hello,
    J2EE is roughly about two things: Web applications beeing build out of Servlets, Jsp and HTML pages and a server-side component modell to deploy business logic in EJBs.
    Now for the Web part (generating dynamic HTML content etc.) you have what you need. Tomcat is doing just find. To deploy EJBs, you need an application server which has an EJB container. I don't know the Studio 4 but my understanding is that it is an IDE helping you to develop software, not an application server. You have to install such an appserver.
    My recommendation: go and download BEAs Weblogic 7.0 (www.beasys.com).This is a commercial product but it comes with a 30 day trial license. BEA provides a rather good online docu. Play with this appserver and deploy some EJBs.
    Alternatively there is also a free appserver: JBoss (www.jboss.org) but I have never used it. Yet, they have also online docu and forums to help you through.
    good luck,
    einar

  • I need to Health check for Web server and need report on daily basis

    Hello,
    How to monitor Web servers  ?
    It would be great for administrators to have a daily alert using power shell script for web server
    Can anyone have any scripts that triggers email like IIS services , etc.. are up and running.
    Thanks
    Pushparaj
    Thanks, Pushparaj

    Hi Pushparaj, this forum is not for sharing or building script based on request
    You check the below code and build your script
    $Service = Get-WmiObject -Class Win32_Service -ComputerName SERVERNAME | ?{$_.Name -eq 'IISADMIN'}
    Send-MailMessage -From 'mailID' -To 'mailID' -SmtpServer 'XXXX.DOMAIN.XXX' -Body $Service.State `
    -Subject 'IIS Service'
    Search Script
    Request Script
    See this script and modify as per your needs
    Regards Chen V [MCTS SharePoint 2010]

  • Darwin Steaming Server On A Linux Web Server - HELP ASAP

    Hello,
    I'm wanting to install Darwin Streaming Server on my Linux Web Server.
    How do I do this? I've uploaded the files and not sure what to do now?
    Any help will be great...thanks!

    Hi Jacques,
    think I'm having a similar type pf problem you experienced way back in May.
    Did the below suggestion fix your issue.
    I'm running Red Hat Ent 5.0 with MySQL and BOXI 3.1.
    I get the error
    A database error occured. The database error text is: {Driver Manager} Data source name not found, and no default driver specified. (WIS 10901)
    I know my unixODBC can't be working correctly since my isql doesn't work.
    I've been hanging out in these forum's the past few days and your problem seems to match the one I'm experiencing at the moment.
    I'd appreciate it if you can remember how you overcame the issue and could share your learnings.
    Thank you, Ed

  • Web server help

    Hi!
    I just started studying the web server technology. I downloaded the Web Server 6.1 from Sun,
    and installed it on my PC (Win XP). When I try to start the server, the system complains that
    some
    net
    program is not executable or available... I suspect the path must be fixed! where is this thing I need to make
    the server start? Thanks!!!!
    Nicla

    The error message is in italian, but means:
    net is not recognized as an internal or external command, an executable or a batch file.
    This happens when I type
    startsvr.bat
    in C:\Sun\WebServer6.1\https-admserv
    actually, typing startsvr.bat produced, before the error:
    net start https-admserv61
    Thanks!!!

  • Installing CGI on SunOne Web Server - Help!

    I'm new to the SunOne WebServer and am trying to get CGI/Perl to work. I've tried all I know at the CGI directory page but still can't get Hello World to show up.
    Running it as *.cgi shows a 405 - Method Not Allowed Error.
    Running it as *.pl prompts me to save the file - you only get that when path to Perl is not correct, no?
    What else do I need to know/change on the web server to get it to run?

    You have not indicated the web server version and OS that you are using. Anyway, the error that you report is probably because the CGI is not configured correctly on this server. Here are the docs for Web Server 6.1 to enable CGI:
    http://docs.sun.com/source/819-0130/agprgrm.html#wp21207
    Thanks
    Manish

  • Simple web server

    I am trying to write a web server that accepts a directory and port number as command line arguments and then serves the contents of that directory as requested over the specified port.
    It must be able to handle binary files. It must also cache the contents of the directory using a HashMap or something similar. All requests must also be written to simple logfile detailing request, content type/size, result etc.
    Can anyone point me towards any sample code? I am having difficulty especially with the caching and handling of binary files. I think this can be done together....i.e. when the contents of the directory are read into the Hash Map I want to check if it is a binary and text file and to store this info.
    If anyone has done something similar before I would be VERY grateful for any sample code or pointers. I am under real pressure at work and this is an assignment for a part time Masters I am undertaking.

    Because binary files such as .doc cannot simply be
    handled in the same way as a text file.Why not? (I never implemented a webserver, so there might be a good reason. But I don't see it so far.)

  • UCM Web Form, help needed

    Hi,
    I just have started working on Oracle UCM. I am majorly stuck with web form (HCSF).
    Below is the form code,
    <form name="CommentsPageForm" method="POST" action="<!--$HttpCgiPath-->">
              <input type=hidden name="IdcService" value="SUBMIT_HTML_FORM">
              <input type=hidden name="dID" value="<!--$SourceID-->">
              <input type="hidden" name="RevisionSelectionMethod" value="Latest">
              <input type=hidden name="FormDocTitleScript" value="<!--$UserName--><!--$formTitle-->">
              <input type="hidden" name="RedirectURL" value="<!--$HttpCgiPath-->?IdcService=GET_FILE&dDocName=<!--$ref:dDocName-->&Rendition=Web&RevisionSelectionMethod=Latest">
    <!-- All input fields and conditional code -->
    </form>
    If I keep the dID input field then it throws an error message like following
    Content Server Request Failed
    Unable to submit HTML form. The HTML form is not the latest revision.
    If I remove the dID input field then it throws an error message like following
    Unable to execute service (null) and function computeDocID.
    (System Error: Either dID must be specified or RevisionSelectionMethod must not force the choice of a dID.)
    I have tried to remove and add other input fields but nothing has worked.
    Please help me out with this. Please point out where I made the mistake. I copied
    codepieces from Bex Huff's book, that too had same error.
    Regards
    Udita

    hi All,
    I'm facing the same issue, I have a soap request which will update the metadata field on the service call.
    The request url is coded as
    var requestUrl = httpCgiPath + "?IdcService=UPDATE_DOCINFO" + "&dID=" + datafileID +"&dDocName=" + datafileDocName + "&xComments=" + inputComments.value + "&dDocTitle=" + inputTitle.value + &idcToken=#active.IdcToken" + "&IsSoap=1";
    When I fetch the dynamic url and tried in browser then I get following error:
    Content Server Request Failed
    Unable to update the field. The authorization token is invalid. It has either expired or is not appropriate for the current request.
    You may need to reload an earlier page in order to proceed.
    See I have added idcToken as you guys suggested still token issue :(
    Any pointer for this issue will be helpful.
    Thanks

  • Simple HTML page HELP needed

    Hi all,
    Here's my dilemma:
    I've got this simple html page that I've made with
    dreamweaver CS3. On the starting page I want to put a section
    called "NEWS", under which there would be essentially a texfield
    with the news. Now, I don't want to put the news text in the html
    code. Rather, I'd like the code to somehow take this text from a
    separate text file which I could edit at will and simply overwrite
    on the host server so that changes are seen in browsers.
    I don't need a real CMS (besides, CMS is way over my head).
    Just this one text field. I've tried with the textfield/text
    area/HTML object/etc. in the 'insert' tool but none worked. Can
    this be done at all? Appreciate any help.

    macioo1 wrote:
    > Now, I don't want to put the news text in
    > the html code. Rather, I'd like the code to somehow take
    this text from a
    > separate text file which I could edit at will and simply
    overwrite on the host
    > server so that changes are seen in browsers.
    You can do this with a server-side include. The first thing
    you need to
    do is to find out whether your hosting company has enabled
    server-side
    includes, or if you have access to a server-side language
    such as ASP or
    PHP. The way that you create a server-side include is
    slightly different
    in each type of setup.
    When you have found what your remote server supports, someone
    can give
    you further instructions.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Upgrading Mail from 10.3.9 to 10.4.8 Server - Help Needed, Please

    Hi
    I posted a message a few weeks back with regard to this topic, but have had no replies. I don't seem to be any further on in solving this on my own, so I'm posting again in the hope that someone will be able to assist.
    I have an Xserve G4 running 10.3.9 which is a Open Directory Master, PDC and also acts as a Mail Server for our domain. The system software is installed on one 60gb drive in the Xserve and the Mail Store is on a second drive. All the Windows clients can log into the domain and their mail is on IMAP using Outlook as their client.
    I am now installing a second server in another office, and obviously this will be a new XServe running 10.4. I would like to make this an Open Directory Replica but now need to upgrade the first server to 10.4 before I can do this.
    Each attempt has been at the start of a weekend when staff have gone home, so that I can shutdown Mail and clone the Mail Store before proceeding.
    My first attempt was to install a new 10.4 installation onto a drive module and then attempt to upgrade the Mail. I removed the original 10.3.9 startup drive and I cloned the mail store drive before attempting and then followed the instructions given in this article:-
    http://docs.info.apple.com/article.html?artnum=301656
    When running the first part of this script, I get a socket error and don't seem to be able to get beyond this point.
    Next, I atttempted a straightforward upgrade. To do this, I again cloned the Mail Store onto another Drive Module, and so that I could roll back in case of problems, I also cloned the startup drive. Once this was done, I then removed the original drives for safety, booted and proceeded to upgrade the Server software from 10.3.9 to 10.4 performing all updates along the way.
    When I first booted, I had quite a lot of errors, DNS zones hadn't come over, and I had to kerberize the system, but after doing this and several restarts to cure other problems, all seemed to be OK, but then when I invoked Windows services and tried to log into the domain from a PC client, it failed saying the Domain Controller wasn't available, and the server log shows "Broken Pipe" errors and I cannot seem to resolve these issues. Server admin, also now loses connection with various services at intermittant times and I have to reboot.
    So, my conclusion is that the 10.3.9 installation on this server is way too flaky to be upgraded and I must find another way.
    Ideally, what I would like to do, is install a brand new 10.4 system onto the server, setting up DNS, Open Directory etc etc ensuring that my clients can log into the domain (copying their profile to the new account if necessary) and then upgrade the Mail once it is all stable. Can anyone help me with this by giving me a step by step guide? I am willing to pay for someone who knows how to do this if they can help me with a guide or perhaps even provide remote assistance.
    Thanks in advance
    Paul
    PowerBook G4 17"   Mac OS X (10.4.8)   G4 Xserve 1GHz, 1.5GB RAM, 10.3.9 Server

    They've never heard of a G4? That's shocking, perhaps you shouldn't go there anymore :P.
    OS X 10.5 requires at least an 867 MHz G4, unfortunately. You can upgrade to OS X Tiger (10.4) though (Just run software update after installation to get to 10.4.11).
    You can find Tiger cheap on eBay or the likes, note you must buy the full retail version which looks like this:
    http://jimbox.homedns.org/rants/images/uploads/tiger1.jpg

  • Simple BIP Report help needed

    Hi All ,
    I am bit new to BI Publisher,I have done plenty of Oracle reports 6i and 10g.
    Have read the BIPublisher Guide as well,but could not understand a few points.
    suppose I want to build a very very simple report like
    Sysdate Sysdate Sysdate
    16-Oct-08 16-Oct-08 16-Oct-08
    step 1) I will write the following query in the Data Model and store/save it.
    select sysdate ,sysdate,sysdate from dual.
    Step 2) In the layout model I want to use .rtf layout .So in the MS word .rdf document I create /insert
    a table with 2 rows and 3 columns,where 1st row will have Sysdate in all 3 columns as header.
    Now to fetch date 3times(the data) from the above query,WHAT is going to be my next steps ????
    I am not able to understand the link between the layout(.rtf document) and XML document.
    Please can someone reply to this question and let me know ?
    Regards
    Sunny

    I added a useless parameter just so you could see where parms should go...
    Datatemplate:
    <dataTemplate name="A_SIMPLE_REPORT">
         <properties>
              <property name="xml_tag_case" value="upper"/>
         </properties>
         <parameters>
              <parameter name="P_PARM" dataType="character"/>
         </parameters>
         <dataQuery>
              <sqlStatement name="QUERYNAME">
                   <![CDATA[
    select sysdate SYSDATE1
    , sysdate SYSDATE2
    , sysdate SYSDATE3
    from dual
    where 'XYZ' = nvl(:P_PARM, 'XYZ')
    ]]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="G_UPPERGROUP" dataType="varchar2" source="QUERYNAME">
                   <element name="SYSDATE1" dataType="varchar2" value="SYSDATE1"/>
                   <element name="SYSDATE2" dataType="varchar2" value="SYSDATE2"/>
    <element name="SYSDATE3" dataType="varchar2" value="SYSDATE3"/>
              </group>
         </dataStructure>
         <dataTrigger name="afterReportTrigger" source="A_SIMPLE_REPORT.afterreport()"/>
    </dataTemplate>
    XML OUPUT:
    <?xml version="1.0" encoding="UTF-8" ?>
    <A_SIMPLE_REPORT>
    <LIST_G_UPPERGROUP>
    <G_UPPERGROUP>
    <SYSDATE1>2008-10-16T18:20:19.000-05:00</SYSDATE1>
    <SYSDATE2>2008-10-16T18:20:19.000-05:00</SYSDATE2>
    <SYSDATE3>2008-10-16T18:20:19.000-05:00</SYSDATE3>
    </G_UPPERGROUP>
    </LIST_G_UPPERGROUP>
    </A_SIMPLE_REPORT>
    Hope this helps,
    Scott
    PS If you have been doing reports for as long as you say you prob. know this already...but I NEVER* trust Oracle to convert my dates. I convert them all to char, pass them and convert them on "the other side" (if needed). But, you can change the data type to date if you feel brave, but don't say I didn't warn you. ;-)

  • Problem with clustering with JBoss server---help needed

    Hi,
    Its a HUMBLE REQUEST TO THE EXPERIENCED persons.
    I am new to clustering. My objective is to attain clustering with load balencing and/or Failover in JBoss server. I have two JBoss servers running in two diffferent IP addresses which form my cluster. I could succesfully perform farm (all/farm) deployment
    in my cluster.
    I do believe that if clustering is enabled; and if one of the server(s1) goes down, then the other(s2) will serve the requests coming to s1. Am i correct? Or is that true only in the case of "Failover clustering". If it is correct, what are all the things i have to do to achieve it?
    As i am new to the topic, can any one explain me how a simple application (say getting a value from a user and storing it in the database--assume every is there in a WAR file), can be deployed with load balencing and failover support rather than going in to clustering EJB or anything difficult to understand.
    Kindly help me in this mattter. Atleast give me some hints and i ll learn from that.Becoz i could n't find a step by step procedure explaining which configuration files are to be changed to achieve this (and how) for achiving this. Also i could n't find Books explaining this rather than usual theorectical concepts.
    Thanking you in advance
    with respect
    abhirami

    hi ,
    In this scenario u can use the load balancer instead of fail over clustering .
    I would suggest u to create apache proxy for redirect the request for many jboss instance.
    Rgds
    kathir

Maybe you are looking for

  • Problem with classpath for XP

    i've made a java applet with three classes, two of which are classes to construct variables needed for the main interface to work. but the interface class cannot recognise that the other two classes exist. it gives out the cannot resolve system error

  • Text in transparent

    I create text by using transparent as a caption type. I set it show in no transition for every slides. Some slides it shows but some is not. Anybody know why ? Thanks.

  • How to handle help function type in a dynpro

    Hello I've made a button with the functiontype H ( Help Function) and now I'd like to react on this button. But in the POV AND POH I can't call a module, because for this I need an input-/outputfield. (FIELD "FIELDNAME" MODULE "MODULENAME"). My quest

  • Can't edit masks or shapes after creation..?

    I have no idea why... it used to work fine. When I make a mask, and finish connecting it, I can't edit it afterwards...I can't select anything, any of the corners, I can move it around but that's about it. Yes I'm using the right tool, and I have han

  • Where are the iBooks bookmark stored ?

    Well I had like to know where they are stored ? in your mobileme accounts ? In you itunes account ? Where ?