CGI to JSP Conversion

I was wondering if I had a message board similar to this one that was built in C++ CGI, how long would it take to convert, on average, to a JSP forum. I am basically looking for some kind of conversion time frame from CGI to JSP. Opinions are welcome...

I cannot give you any estimate or anything in terms of an actual number.
However I do know that your time will be significantly affected in the desired direction by using software such as Jive http://www.jivesoftware.com

Similar Messages

  • Including CGI in JSP

    well, With SSI, i can do things like < ! cgi exec="script.cgi" >
    but, < jsp : include="script.cgi" > or < %@ include file = "script.cgi" % > just display the source code of the cgi program instead of the result. any simple method i can use?

    /Bad elty ! <slaps hand> you are about 2 counts away from a time out Mister :p !!!!
    /cgi shiver

  • URGENT ASP - JSP conversion

    Im looking at diffrent software that converts ASP/VB to JSP/Java.
    I would appreciate any insights, info etc.
    Im especially interested how would that software deal with VB dll's, COM+ objects,
    ASP and JavaScript. Any help GREATLY appreciated.

    I would appreciate any insights, info etc.
    Im especially interested how would that software deal
    with VB dll's, COM+ objects,
    ASP and JavaScript. Do a manual rewrite, and use a Java-2-COM-Bridge,
    eg from IBM alphaWorks. Don't hope you'll be able
    to do the conversion automatically.

  • Forms to JSP conversion

    Hi all,
    I have some forms developed in Oracle 9i forms builder.
    I want to convert them in JSP.
    Can I do this by using JHeadStart?
    I have downloaded JHeadStart 10G.
    But I can not use it with JDeveloper 9i
    What else can I use for converting 9i forms to JSP???
    Thanks in advance.
    Reagards,
    MK

    I should read http://www.oracle.com/technology/products/forms/htdocs/10g/FormsJavaSOD.html first of all.
    Regards
    Grant Ronald
    Forms Product Management

  • Swings to JSP conversion

    We have a huge swing application which was developed long back, Is there any tool where in we can convert the swing GUI into JSP. We need only the frontend to be changed , the business logic remains same in the back end

    yeah, JSP is not a front end GUI... HTML is the front end GUI. And there's sure no simple way to convert Swing to HTML. There's not very many overlapping components, except labels, text fields and comboboxes. If you could write a converter to do that, I bet you could make some money off it.

  • Sending parameter between JSP and CGI

    How to send parameters from CGI to JSP ? And how to receive returned value from JSP to CGI?

    When you mention "rest of params" as a parameter, would the request not include all of the parameters within that bean????
    You might be calling ur bean from the JSP right, for
    eg assume your bean name is "myBean".
    From JSP you pass the request object ie,
    myBean.executeTransaction(request,<rest of the
    params you need>)Your bean should be like
    import javax.servlet.*;
    //methods
    public String executeTransaction(HttpServletRequest
    request, <rest of the paramss){
    //do you check here
    //if request.getParameter("actionPerformed")==null(?)

  • Error While Opening JSP in Report Builder converted from RDF

    Hi,
    I am using Oracle reports 9i to convert rdf into jsp and invoke this jsp using OC4J to get HTML report.
    The problem i am facing is that while converting RDF to JSP conversion went on successfull but when iam trying to open the JSP in Report builder it gives me error REP-2: Unable to retrieve string from message file.
    When i want to see the paper layout it is not present and datamodel is also corrupted. In the data model sources for some fileds become null and one addtional group is appearing with no column in it.
    Urgent help is needed.
    For any help Thanks in advance.
    Regards
    Sanjay Tripathi

    Hello Sanjay,
    There are some known issues in Reports 9i due to which XML/JSP reports do not open correctly in Builder, and throw the REP-0002 error. These bugs are currently being looked into, and will be addressed soon.
    1. If your report is using ref cursor queries, and you are hitting the above error, please ensure you connect to a database before you open the report.
    2. If your report has summary/formula columns, please try to create the JSP report without these columns and then try to open it in Builder.
    Thanks,
    The Oracle Reports Team.

  • I have a requirement with select and text boxes. JSP / JDBC

    I have a Combo Box which iswritten by a JSP by connecting to DB!
    When i click on a <option> corresponding the other two text boxes must be loaded with data!
    if i have list of EmpID in <select>, in one text box i should get his CITY and other Occupation !
    What i thought is .... getting all the data from database. select empid from emp and write a combo and select city,occupation from emp, intp ARRAYLISTs!
    function updatData(){
    var index=document.projalloc.associateid.selectedIndex;
    }if i onSelect=updateData(), (i will get index of empid,as it is a combobox) using which i have to retrieve the values of city and occupation !!
    BUT HOW !
    I am gettin the index of empid but how to get the data into textbox !!!!

    well there are many ways of doing this.
    1).Render all the data corresponding to each employee at a time.By making a javascript arrays and try to get back the data from there.
    2).Save the ArrayList of DTO beans in the scope of session.Use AJAX call a CGI(Servlet/JSP action) fetch the values from the session render the response as XML now parse the XML data using javascript DOM and then update the consecutive textboxes.
    Just as an example checkout my answer in the below post.It was an example given for a dependent drop downs.however, we can definately use the same concept to update textboxes too.
    http://forum.java.sun.com/thread.jspa?threadID=5209661&messageID=9844137#9844137
    Hope that might help :)
    REGARDS,
    RaHuL

  • Custom JSP Tags for Weblogic

    Hi,
              I have several questions regarding this topic:
              1) Does Weblogic 5.1 supports Custom Tags ? If so, are there any known
              problems ?
              2) Does Weblogic come with any tag libraries (for loops, if, etc) and where
              can I get them ?
              3) Are there any tag libraries out there (JRun, for example) that have been
              successfully run on Weblogic ?
              Any help would be much appreciated.
              Thanks,
              Jamie
              

    As there seems to be general interest, a link would probably be a great
              help.
              Regards
              Daniel Hoppe
              -----Original Message-----
              From: Michael Girdley [mailto:[email protected]]
              Posted At: Friday, August 25, 2000 8:03 AM
              Posted To: jsp
              Conversation: Custom JSP Tags for Weblogic
              Subject: Re: Custom JSP Tags for Weblogic
              Please see the documentation:
              http://www.weblogic.com/docs51/resources.html
              Michael Girdley
              BEA Systems Inc
              "Jamie" <[email protected]> wrote in message
              news:[email protected]...
              > Update
              > =======
              >
              > Weblogic Portal has some Tag libraries. I've downloaded the trial
              version
              > of
              > the Weblogic Commerce Server. How do I get the tag libraries and use
              them
              > on WL 5.1 ?
              >
              > Answers to original post still wanted
              >
              > Thanks,
              >
              > Jamie
              >
              > Jamie <[email protected]> wrote in message
              > news:[email protected]...
              > > Hi,
              > >
              > > I have several questions regarding this topic:
              > >
              > > 1) Does Weblogic 5.1 supports Custom Tags ? If so, are there any
              known
              > > problems ?
              > >
              > > 2) Does Weblogic come with any tag libraries (for loops, if, etc)
              and
              > where
              > > can I get them ?
              > >
              > > 3) Are there any tag libraries out there (JRun, for example) that
              have
              > been
              > > successfully run on Weblogic ?
              > >
              > >
              > > Any help would be much appreciated.
              > >
              > > Thanks,
              > >
              > > Jamie
              > >
              > >
              >
              >
              

  • Why am I getting two _releaseTag() methods in my JSP (Weblogic 6.1)?

    Hi,
              I am getting two _releaseTag() methods in the Java code that Weblogic 6.1 produces on my JSP. Does anyone know why this might happen? I have tried 5 times to include the JSP code with this post, but it has refused to send any of it (so, please e-mail me if you need a code sample).
              This JSP works correctly under Tomcat 4.0.
              Allen
              

    Hi,
              We have seen this too, I try to get input from our web-tier engineers
              when they saw this. I think it was something strange, like a page
              directive with an encoding (do you have one? could you try without?),
              but I'm not sure.
              I'll let you know if I find out more.
              Daniel
              > -----Original Message-----
              > From: Allen [mailto:[email protected]]
              > Posted At: Saturday, January 12, 2002 8:01 AM
              > Posted To: jsp
              > Conversation: Why am I getting two _releaseTag() methods in my JSP
              > (Weblogic 6.1)?
              > Subject: Why am I getting two _releaseTag() methods in my JSP
              > (Weblogic
              > 6.1)?
              >
              >
              > Hi,
              >
              > I am getting two _releaseTag() methods in the Java code that
              > Weblogic 6.1 produces on my JSP. Does anyone know why this
              > might happen? I have tried 5 times to include the JSP code
              > with this post, but it has refused to send any of it (so,
              > please e-mail me if you need a code sample).
              >
              > This JSP works correctly under Tomcat 4.0.
              >
              > Allen
              >
              

  • Replacing WL6.1 JSP Engine with someone elses

              Hello:
              I was wondering if anyone has tried to run a different JSP implementation on top
              of the WL servlet container. Has anyone tried this. Is it possible? I'm really
              curious. The reason I as is that WL6.1 currently breaks reponse post processing
              with a filter when a request is made to a jsp page.
              Scott
              

    Hi,
              you can do this. Check e.g. Resin (www.caucho.com), I think they have an
              integration guide available.
              Daniel
              > -----Original Message-----
              > From: Scott Resnik [mailto:[email protected]]
              > Posted At: Thursday, January 03, 2002 7:08 PM
              > Posted To: jsp
              > Conversation: Replacing WL6.1 JSP Engine with someone elses
              > Subject: Replacing WL6.1 JSP Engine with someone elses
              >
              >
              >
              > Hello:
              >
              > I was wondering if anyone has tried to run a different JSP
              > implementation on top
              > of the WL servlet container. Has anyone tried this. Is it
              > possible? I'm really
              > curious. The reason I as is that WL6.1 currently breaks
              > reponse post processing
              > with a filter when a request is made to a jsp page.
              >
              > Scott
              >
              

  • Useful Code of the Day:  Multipart Form File Upload

    So, you want to upload files to your web server, do ya? Well, I've seen this topic posted a few times in the last month or so and many of the response I've seen here haven't included definitive answers. Of course, the actual problems vary, but ultimately, a bunch of people want to do file upload from an applet or application to an existing file upload script (CGI, PHP, JSP, etc.) on a web server. And invariably, there are problems with formatting the HTTP request to get things working.
    Well, I had a need to do the same thing. I realize there are other solutions out there, such as some sample code that comes with Jakarta Commons Upload. But since we all like reusable code, and we also all seem to like reinventing wheels, here's my go at it: MultiPartFormOutputStream!
    MultiPartFormOutputStream is a specialized OutputStream-like class. You create your URLConnection to the server (a static method included can do this for a URL for you, as some of the settings, doInput and doOutput specifically, seem to confuse people). Then get the OutputStream from it and create a boundary string (a static method to create one is provided as well) and pass them to the constructor. Now you have a MultiPartFormOutputStream which you can use to write form fields like text fields, checkboxes, etc., as well as write file data (from Files, InputStreams or raw bytes).
    There are some convenience methods for writing primative type values as well as strings, but any higher level objects (aside from Files or InputStreams) aren't supported. (You can always serialize and pass the raw bytes.)
    Sample usage code is below. Also, any recommendations for improvement are requested. The code was tested with the Jakarta Struts.
    import java.io.*;
    import java.net.*;
    * <code>MultiPartFormOutputStream</code> is used to write
    * "multipart/form-data" to a <code>java.net.URLConnection</code> for
    * POSTing.  This is primarily for file uploading to HTTP servers. 
    * @since  JDK1.3
    public class MultiPartFormOutputStream {
          * The line end characters. 
         private static final String NEWLINE = "\r\n";
          * The boundary prefix. 
         private static final String PREFIX = "--";
          * The output stream to write to. 
         private DataOutputStream out = null;
          * The multipart boundary string. 
         private String boundary = null;
          * Creates a new <code>MultiPartFormOutputStream</code> object using
          * the specified output stream and boundary.  The boundary is required
          * to be created before using this method, as described in the
          * description for the <code>getContentType(String)</code> method. 
          * The boundary is only checked for <code>null</code> or empty string,
          * but it is recommended to be at least 6 characters.  (Or use the
          * static createBoundary() method to create one.)
          * @param  os        the output stream
          * @param  boundary  the boundary
          * @see  #createBoundary()
          * @see  #getContentType(String)
         public MultiPartFormOutputStream(OutputStream os, String boundary) {
              if(os == null) {
                   throw new IllegalArgumentException("Output stream is required.");
              if(boundary == null || boundary.length() == 0) {
                   throw new IllegalArgumentException("Boundary stream is required.");
              this.out = new DataOutputStream(os);
              this.boundary = boundary;
          * Writes an boolean field value. 
          * @param  name   the field name (required)
          * @param  value  the field value
          * @throws  java.io.IOException  on input/output errors
         public void writeField(String name, boolean value)
                   throws java.io.IOException {
              writeField(name, new Boolean(value).toString());
          * Writes an double field value. 
          * @param  name   the field name (required)
          * @param  value  the field value
          * @throws  java.io.IOException  on input/output errors
         public void writeField(String name, double value)
                   throws java.io.IOException {
              writeField(name, Double.toString(value));
          * Writes an float field value. 
          * @param  name   the field name (required)
          * @param  value  the field value
          * @throws  java.io.IOException  on input/output errors
         public void writeField(String name, float value)
                   throws java.io.IOException {
              writeField(name, Float.toString(value));
          * Writes an long field value. 
          * @param  name   the field name (required)
          * @param  value  the field value
          * @throws  java.io.IOException  on input/output errors
         public void writeField(String name, long value)
                   throws java.io.IOException {
              writeField(name, Long.toString(value));
          * Writes an int field value. 
          * @param  name   the field name (required)
          * @param  value  the field value
          * @throws  java.io.IOException  on input/output errors
         public void writeField(String name, int value)
                   throws java.io.IOException {
              writeField(name, Integer.toString(value));
          * Writes an short field value. 
          * @param  name   the field name (required)
          * @param  value  the field value
          * @throws  java.io.IOException  on input/output errors
         public void writeField(String name, short value)
                   throws java.io.IOException {
              writeField(name, Short.toString(value));
          * Writes an char field value. 
          * @param  name   the field name (required)
          * @param  value  the field value
          * @throws  java.io.IOException  on input/output errors
         public void writeField(String name, char value)
                   throws java.io.IOException {
              writeField(name, new Character(value).toString());
          * Writes an string field value.  If the value is null, an empty string
          * is sent (""). 
          * @param  name   the field name (required)
          * @param  value  the field value
          * @throws  java.io.IOException  on input/output errors
         public void writeField(String name, String value)
                   throws java.io.IOException {
              if(name == null) {
                   throw new IllegalArgumentException("Name cannot be null or empty.");
              if(value == null) {
                   value = "";
              --boundary\r\n
              Content-Disposition: form-data; name="<fieldName>"\r\n
              \r\n
              <value>\r\n
              // write boundary
              out.writeBytes(PREFIX);
              out.writeBytes(boundary);
              out.writeBytes(NEWLINE);
              // write content header
              out.writeBytes("Content-Disposition: form-data; name=\"" + name + "\"");
              out.writeBytes(NEWLINE);
              out.writeBytes(NEWLINE);
              // write content
              out.writeBytes(value);
              out.writeBytes(NEWLINE);
              out.flush();
          * Writes a file's contents.  If the file is null, does not exists, or
          * is a directory, a <code>java.lang.IllegalArgumentException</code>
          * will be thrown. 
          * @param  name      the field name
          * @param  mimeType  the file content type (optional, recommended)
          * @param  file      the file (the file must exist)
          * @throws  java.io.IOException  on input/output errors
         public void writeFile(String name, String mimeType, File file)
                   throws java.io.IOException {
              if(file == null) {
                   throw new IllegalArgumentException("File cannot be null.");
              if(!file.exists()) {
                   throw new IllegalArgumentException("File does not exist.");
              if(file.isDirectory()) {
                   throw new IllegalArgumentException("File cannot be a directory.");
              writeFile(name, mimeType, file.getCanonicalPath(), new FileInputStream(file));
          * Writes a input stream's contents.  If the input stream is null, a
          * <code>java.lang.IllegalArgumentException</code> will be thrown. 
          * @param  name      the field name
          * @param  mimeType  the file content type (optional, recommended)
          * @param  fileName  the file name (required)
          * @param  is        the input stream
          * @throws  java.io.IOException  on input/output errors
         public void writeFile(String name, String mimeType,
                   String fileName, InputStream is)
                   throws java.io.IOException {
              if(is == null) {
                   throw new IllegalArgumentException("Input stream cannot be null.");
              if(fileName == null || fileName.length() == 0) {
                   throw new IllegalArgumentException("File name cannot be null or empty.");
              --boundary\r\n
              Content-Disposition: form-data; name="<fieldName>"; filename="<filename>"\r\n
              Content-Type: <mime-type>\r\n
              \r\n
              <file-data>\r\n
              // write boundary
              out.writeBytes(PREFIX);
              out.writeBytes(boundary);
              out.writeBytes(NEWLINE);
              // write content header
              out.writeBytes("Content-Disposition: form-data; name=\"" + name +
                   "\"; filename=\"" + fileName + "\"");
              out.writeBytes(NEWLINE);
              if(mimeType != null) {
                   out.writeBytes("Content-Type: " + mimeType);
                   out.writeBytes(NEWLINE);
              out.writeBytes(NEWLINE);
              // write content
              byte[] data = new byte[1024];
              int r = 0;
              while((r = is.read(data, 0, data.length)) != -1) {
                   out.write(data, 0, r);
              // close input stream, but ignore any possible exception for it
              try {
                   is.close();
              } catch(Exception e) {}
              out.writeBytes(NEWLINE);
              out.flush();
          * Writes the given bytes.  The bytes are assumed to be the contents
          * of a file, and will be sent as such.  If the data is null, a
          * <code>java.lang.IllegalArgumentException</code> will be thrown. 
          * @param  name      the field name
          * @param  mimeType  the file content type (optional, recommended)
          * @param  fileName  the file name (required)
          * @param  data      the file data
          * @throws  java.io.IOException  on input/output errors
         public void writeFile(String name, String mimeType,
                   String fileName, byte[] data)
                   throws java.io.IOException {
              if(data == null) {
                   throw new IllegalArgumentException("Data cannot be null.");
              if(fileName == null || fileName.length() == 0) {
                   throw new IllegalArgumentException("File name cannot be null or empty.");
              --boundary\r\n
              Content-Disposition: form-data; name="<fieldName>"; filename="<filename>"\r\n
              Content-Type: <mime-type>\r\n
              \r\n
              <file-data>\r\n
              // write boundary
              out.writeBytes(PREFIX);
              out.writeBytes(boundary);
              out.writeBytes(NEWLINE);
              // write content header
              out.writeBytes("Content-Disposition: form-data; name=\"" + name +
                   "\"; filename=\"" + fileName + "\"");
              out.writeBytes(NEWLINE);
              if(mimeType != null) {
                   out.writeBytes("Content-Type: " + mimeType);
                   out.writeBytes(NEWLINE);
              out.writeBytes(NEWLINE);
              // write content
              out.write(data, 0, data.length);
              out.writeBytes(NEWLINE);
              out.flush();
          * Flushes the stream.  Actually, this method does nothing, as the only
          * write methods are highly specialized and automatically flush. 
          * @throws  java.io.IOException  on input/output errors
         public void flush() throws java.io.IOException {
              // out.flush();
          * Closes the stream.  <br />
          * <br />
          * <b>NOTE:</b> This method <b>MUST</b> be called to finalize the
          * multipart stream.
          * @throws  java.io.IOException  on input/output errors
         public void close() throws java.io.IOException {
              // write final boundary
              out.writeBytes(PREFIX);
              out.writeBytes(boundary);
              out.writeBytes(PREFIX);
              out.writeBytes(NEWLINE);
              out.flush();
              out.close();
          * Gets the multipart boundary string being used by this stream. 
          * @return  the boundary
         public String getBoundary() {
              return this.boundary;
          * Creates a new <code>java.net.URLConnection</code> object from the
          * specified <code>java.net.URL</code>.  This is a convenience method
          * which will set the <code>doInput</code>, <code>doOutput</code>,
          * <code>useCaches</code> and <code>defaultUseCaches</code> fields to
          * the appropriate settings in the correct order. 
          * @return  a <code>java.net.URLConnection</code> object for the URL
          * @throws  java.io.IOException  on input/output errors
         public static URLConnection createConnection(URL url)
                   throws java.io.IOException {
              URLConnection urlConn = url.openConnection();
              if(urlConn instanceof HttpURLConnection) {
                   HttpURLConnection httpConn = (HttpURLConnection)urlConn;
                   httpConn.setRequestMethod("POST");
              urlConn.setDoInput(true);
              urlConn.setDoOutput(true);
              urlConn.setUseCaches(false);
              urlConn.setDefaultUseCaches(false);
              return urlConn;
          * Creates a multipart boundary string by concatenating 20 hyphens (-)
          * and the hexadecimal (base-16) representation of the current time in
          * milliseconds. 
          * @return  a multipart boundary string
          * @see  #getContentType(String)
         public static String createBoundary() {
              return "--------------------" +
                   Long.toString(System.currentTimeMillis(), 16);
          * Gets the content type string suitable for the
          * <code>java.net.URLConnection</code> which includes the multipart
          * boundary string.  <br />
          * <br />
          * This method is static because, due to the nature of the
          * <code>java.net.URLConnection</code> class, once the output stream
          * for the connection is acquired, it's too late to set the content
          * type (or any other request parameter).  So one has to create a
          * multipart boundary string first before using this class, such as
          * with the <code>createBoundary()</code> method. 
          * @param  boundary  the boundary string
          * @return  the content type string
          * @see  #createBoundary()
         public static String getContentType(String boundary) {
              return "multipart/form-data; boundary=" + boundary;
    }Usage: (try/catch left out to shorten the post a bit)
    URL url = new URL("http://www.domain.com/webems/upload.do");
    // create a boundary string
    String boundary = MultiPartFormOutputStream.createBoundary();
    URLConnection urlConn = MultiPartFormOutputStream.createConnection(url);
    urlConn.setRequestProperty("Accept", "*/*");
    urlConn.setRequestProperty("Content-Type",
         MultiPartFormOutputStream.getContentType(boundary));
    // set some other request headers...
    urlConn.setRequestProperty("Connection", "Keep-Alive");
    urlConn.setRequestProperty("Cache-Control", "no-cache");
    // no need to connect cuz getOutputStream() does it
    MultiPartFormOutputStream out =
         new MultiPartFormOutputStream(urlConn.getOutputStream(), boundary);
    // write a text field element
    out.writeField("myText", "text field text");
    // upload a file
    out.writeFile("myFile", "text/plain", new File("C:\\test.txt"));
    // can also write bytes directly
    //out.writeFile("myFile", "text/plain", "C:\\test.txt",
    //     "This is some file text.".getBytes("ASCII"));
    out.close();
    // read response from server
    BufferedReader in = new BufferedReader(
         new InputStreamReader(urlConn.getInputStream()));
    String line = "";
    while((line = in.readLine()) != null) {
          System.out.println(line);
    in.close();------
    "Useful Code of the Day" is supplied by the person who posted this message. This code is not guaranteed by any warranty whatsoever. The code is free to use and modify as you see fit. The code was tested and worked for the author. If anyone else has some useful code, feel free to post it under this heading.

    I have a weird problem here. I'm using the Java POST (slightly altered for my purposes) mechanism but the receiving script doesn't receive any form variables (neither files nor regular form fields). If I try using the same receiving script with a regular upload form, it works. Because I've been pulling my hair out, I even went so far as to analyze the ip-packets. I can see that the file is actually sent through the Java POST mecahnism. Anybody any ideas. Here's the ip-packet of the failing upload:
    ----- Hypertext Transfer Protocol -----
    HTTP: POST /fotoxs/upload.cfm HTTP/1.1
    HTTP: Connection: Keep-Alive
    HTTP: Content-Type: multipart/form-data; boundary=-----------------------------fb2649be18
    HTTP: User-Agent: Mozilla/4.7 [en] (WinNT; U)
    HTTP: Accept-Language: en-us
    HTTP: Accept-Encoding: gzip, deflate
    HTTP: Accept: image/gif, image/jpeg, image/pjpeg, */*
    HTTP: CACHE-CONTROL: no-cache
    HTTP: Host: newmarc
    HTTP: Content-Length: 15511
    ----- Hypertext Transfer Protocol -----
    HTTP: -----------------------------fb2649be18
    HTTP: Content-Disposition: form-data; name="uploadFile"; filename="out.jpg"
    HTTP: Content-Type: image/jpeg
    HTTP: Data
    ....[data packets]
    The one that works (from the regular post) is as follows:
    ----- Hypertext Transfer Protocol -----
    HTTP: POST /fotoxs/upload.cfm HTTP/1.1
    HTTP: Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-gsarcade-launch, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
    HTTP: Referer: http://localhost:8500/fotoxs/test.cfm
    HTTP: Accept-Language: nl
    HTTP: Content-Type: multipart/form-data; boundary=---------------------------7d41961f201c0
    HTTP: Accept-Encoding: gzip, deflate
    HTTP: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
    HTTP: Host: newmarc
    HTTP: Content-Length: 59022
    HTTP: Connection: Keep-Alive
    HTTP: Cache-Control: no-cache
    ----- Hypertext Transfer Protocol -----
    HTTP: -----------------------------7d41961f201c0
    HTTP: Content-Disposition: form-data; name="FiletoUpload"; filename="D:\My Documents\My Pictures\fotomarc.jpg"
    HTTP: Content-Type: image/pjpeg
    HTTP: Data
    ----- Hypertext Transfer Protocol -----
    HTTP: HTTP/1.1 100 Continue
    HTTP: Server: Microsoft-IIS/5.0
    HTTP: Date: Sun, 07 Mar 2004 17:14:41 GMT
    ....[data packets]
    One detail worth mentioning is that I don't read a file from harddisk, I'm streaming it directly to the connection outputstream from an image compression utility. But I can see the data in the ip-packets, and even if that somehow didn't work right, it doesn't explaing the fact that the receiving scripts reports no form fields whatsoever.
    Thanks,
    Marc

  • PPATH directive ignored in obj.conf

    I just upgraded to 7.0 u3 from 6.1 sp3. Now it appears as if my ppath directives are ignored. This is supposed to use basic authentication. It works in 6.1 but not in 7.0. below is what my obj.conf looks like. Any help would be greatly appreciated.
    <Object name="reverseproxyspeller">
    ObjectType fn="force-type" type="magnus-internal/passthrough"
    Service fn="service-passthrough" servers="http://prod-fs.alumniconnections.com:8080"
    </Object>
    <Object name="default">
    <Client uri="*olclogin.app">
    AuthTrans fn="set-variable" keep-alive="disabled" http-downgrade="1.0"
    </Client>
    AuthTrans fn="olc-cookie-auth"
    AuthTrans fn="nsOLCauth"
    AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    NameTrans fn="assign-name" from="*/aspell_setup.php" name="reverseproxyspeller"
    NameTrans fn="assign-name" from="*/spell-check-logic.php" name="reverseproxyspeller"
    NameTrans fn="assign-name" from="*/spell-check-savedicts.php" name="reverseproxyspeller"
    NameTrans fn="nsOLCsetrc"
    NameTrans fn="strip-params"
    NameTrans fn="nsOLCrestrict"
    NameTrans fn="substring-replace" replace="/mycontacts.cgi" search="/app.sph/mydirectory.app"
    NameTrans fn="substring-replace" replace="/directory.cgi" search="/app.sph/old.app"
    NameTrans fn="substring-replace" replace="/memberupdate.cgi" search="/app.sph/memberupdate.app"
    NameTrans fn="substring-replace" replace="/networking.cgi" search="/app.sph/networking.app"
    NameTrans fn="substring-replace" replace="/olclogin.cgi" search="/app.sph/olclogin.app"
    NameTrans fn="substring-replace" replace="/mycontacts.cgi" search="/mydirectory.cgi"
    NameTrans fn="substring-replace" replace="/directory.cgi" search="/old.cgi"
    NameTrans fn="ntrans-j2ee" name="j2ee"
    NameTrans fn="pfx2dir" from="/mc-icons" dir="/WWW/ns-home/lib/icons" name="es-internal"
    PathCheck fn="uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-index-j2ee"
    PathCheck fn="find-index" index-names="index.html,index.htm,index.cgi,index.jsp,home.html"
    ObjectType fn="type-j2ee"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    Service method="(GET|HEAD)" type="magnus-internal/imagemap" fn="imagemap"
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
    Service fn="send-cgi" type="magnus-internal/cgi" user="$user" group="$group" dir="$dir" chroot="$chroot" nice="$nice"
    Service fn="shtml_send" type="magnus-internal/parsed-html" method="(GET|HEAD)" opts="noexec"
    Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
    Service fn="sapphire-form" method="(GET|POST)" type="magnus-internal/sapphire"
    Error fn="error-j2ee"
    Error reason="Unauthorized" fn="query-handler" path="/usr/olc/cgi-bin/invalidlogin.cgi"
    Error reason="Server Error" fn="query-handler" path="/WWW/olc/cgi-bin/servererrorhandler01.cgi"
    Error reason="Not Found" fn="send-error" path="/WWW/ns-home/docs/errorpages/notfound.html"
    AddLog fn="flex-log"
    </Object>
    <Object name="j2ee">
    Service fn="service-j2ee" method="*"
    </Object>
    <Object name="cgi">
    ObjectType fn="force-type" type="magnus-internal/cgi"
    Service fn="send-cgi" user="$user" group="$group" chroot="$chroot" dir="$dir" nice="$nice"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="send-compressed">
    PathCheck fn="find-compressed"
    </Object>
    <Object name="compress-on-demand">
    Output fn="insert-filter" filter="http-compression"
    </Object>
    <Object ppath="/WWW/ns-home/docs/olc/pub/*">
    PathCheck realm="Alumni Connections Community" fn="require-auth" auth-type="basic"
    </Object>
    <Object ppath="/WWW/ns-home/docs/olc/admin/*">
    PathCheck fn="require-auth" realm="Alumni Connections Community" auth-type="basic"
    </Object>
    <Object ppath="/WWW/ns-home/docs/olc/admin/*">
    PathCheck fn="require-auth" realm="Alumni Connections Community" auth-type="basic"
    </Object>
    <Object ppath="/WWW/ns-home/docs/olc/membersonly/*">
    PathCheck fn="require-auth" realm="Alumni Connections Community" auth-type="basic"
    </Object>
    <Object ppath="/WWW/ns-home/docs/olc/membersonly/*">
    PathCheck realm="Alumni Connections Community" fn="require-auth" auth-type="basic"
    </Object>

    Add in default object as the first PathCheck directive (just above PathCheck fn="uri-clean")
    <If $ppath =~ "/WWW/ns-home/docs/olc/pub/" or $ppath =~ "/WWW/ns-home/docs/olc/membersonly/" or $ppath =~ "/WWW/ns-home/docs/olc/admin/">
    PathCheck fn="require-auth" realm="Alumni Connections Community" auth-type="basic"
    </If>Assuming your Web Server document root is "/WWW/ns-home/docs/" you can try this as well:
    <If $uri =~ "/olc/pub/" or $uri =~ "/olc/membersonly/" or $uri =~ "/olc/admin/">
    PathCheck fn="require-auth" realm="Alumni Connections Community" auth-type="basic"
    </If>Edited by: mv on Oct 10, 2008 8:13 AM

  • What are Struts?? How they can be Used?

    HI anyone
    what are struts? are they different from JSP?
    tks

    You should refer to the Struts FAQ which starts with questions like yours:
    http://jakarta.apache.org/struts/userGuide/kickstart.html
    Bottom line is that Struts I believe is designed to enforce more disciplined coding which makes code easier to read and maintain. JSP conversely can be misused wherein developers fill up JSP pages with Java code and there is no separation of presentation from business logic.

  • Web application Designer - RFC Exception

    Hy guru, i have a serious problem: when open or execute a web templat on web application designer 7.0 i receive a error type RFC Exception.
    Could you hlep me? Thank's a lot.
    This is the content of bex_trace file:
    -EXCEPTION-START- : Open Save Services Failure. Breaking the Action. ---
    Exception Message: Check: RFC Exception
    Exception    at com.sap.bi.et.BExOpenSaveServices.OSDataProvider70.RFCGetMessages(String& piLastNCalls, BExMessages& peMsgList)
       at com.sap.bi.et.BExOpenSaveServices.OSDataProvider70.ClearServerMessageHandler()
       at com.sap.bi.et.BExOpenSaveServices.OSDialog.GetHistory(BExObjectType pObjType, BExMessages& peMessages)
       at com.sap.bi.et.wad.WADBackend.WADOSDialogues.GetHistoryTemplateList()
    Full Stack:
         at com.sap.bi.et.wad.Debug.WriteTraceToFile(Level, String, Exception)
         at com.sap.bi.et.wad.Trace.Exception(Exception, String)
         at com.sap.bi.et.wad.WADBackend.WADOSDialogues.GetHistoryTemplateList()
         at com.sap.bi.et.wad.man.WADTemplateController.GetHistoryForDisplay()
         at com.sap.bi.et.wad.man.WADfrmMDIInitialSelection.renderHistory()
         at com.sap.bi.et.wad.man.WADfrmMDIInitialSelection.Refresh()
         at com.sap.bi.et.wad.man.WADfrmMainWindow.RefreshInitialTemplateList()
         at com.sap.bi.et.wad.man.WADTemplateController.OnTemplateOpened(WebTemplate)
         at com.sap.bi.et.wad.pageobjects.TemplateOpenedEventHandler.Invoke(WebTemplate)
         at com.sap.bi.et.wad.pageobjects.WebTemplateFactory.AddTemplateOrLibrary(WebTemplate)
         at com.sap.bi.et.wad.pageobjects.WebTemplateFactory.RegisterTemplateOrLibrary(IWebTemplate)
         at com.sap.bi.et.wad.man.WADTemplateController.LoadTemplate(EnumLoadMode, String, String, Boolean, String, Boolean, Boolean)
         at com.sap.bi.et.wad.man.WADTemplateController.DoLoadTemplateFromBW(String)
         at com.sap.bi.et.wad.man.WADfrmMainWindow.Menu_OpenSelectOH(BExOpenHistoryEventArgs)
         at com.sap.bi.et.common.BExOH.BExOpenHistory.RaiseSelectOpenEntry(dtaBExOHRow)
         at com.sap.bi.et.wad.man.WADfrmMDIInitialSelection.StartTemplate(dtaBExOHRow)
         at com.sap.bi.et.wad.man.WADfrmMDIInitialSelection.lblLinkName_LinkClicked(Object, EventArgs)
         at System.Windows.Forms.Control.OnClick(EventArgs)
         at System.Windows.Forms.Control.WmMouseUp(Message&, MouseButtons, Int32)
         at System.Windows.Forms.Control.WndProc(Message&)
         at System.Windows.Forms.Label.WndProc(Message&)
         at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
         at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
         at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
         at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
         at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32, Int32, Int32)
         at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32, ApplicationContext)
         at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32, ApplicationContext)
         at System.Windows.Forms.Application.Run(Form)
         at com.sap.bi.et.wad.BexWebApplicationDesigner.Launch.Main()
    -EXCEPTION-END----
    END com.sap.bi.et.wad.WADBackend.WADOSDialogues.GetHistoryTemplateList ##########
    --> com.sap.bi.et.wad.WADBackend.WADBackendTemplateServices.ValidateTemplateOnServer ##########
    -EXCEPTION-START- : DEBUG ### JSP-Conversion:  ---
    Exception Message: RFC_ERROR_SYSTEM_FAILURE
    Exception    at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode)
       at SAP.Connector.Rfc.RfcClient.RfcInvoke(SAPClient proxy, String method, Object[] methodParamsIn)
       at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn)
       at com.sap.bi.et.Communication.RSWAD.BExGeneratedRSWAD.RSWAD_WEBPUB_CALL_SERVICE(String I_ACTION, String I_CONTEXTDESCRIPTION, String I_CONTEXTFRAGMENT, String I_NODEFRAGMENT, String I_TEMPLATE, String I_TMPLID, String& E_MAX_MESSAGE_TYPE, String& E_MESSAGES, String& E_RESULT, Int32& E_SUBRC, BICS_PROV_T_MESSAGE& E_T_MESSAGE)
       at com.sap.bi.et.Communication.RSWADrfc.RSWAD_WEBPUB_CALL_SERVICE(String& I_ACTION, String& I_CONTEXTDESCRIPTION, String& I_CONTEXTFRAGMENT, String& I_NODEFRAGMENT, String& I_TEMPLATE, String& I_TMPLID, String& E_MAX_MESSAGE_TYPE, String& E_MESSAGES, String& E_RESULT, Int32& E_SUBRC, BICS_PROV_T_MESSAGE& E_T_MESSAGE)
       at com.sap.bi.et.wad.WADBackend.WADBackendTemplateServices.ValidateTemplateOnServer(WebTemplate iTemplate)
    Full Stack:
         at com.sap.bi.et.wad.Debug.WriteTraceToFile(Level, String, Exception)
         at com.sap.bi.et.wad.Debug.Exception(String, Exception)
         at com.sap.bi.et.wad.WADBackend.WADBackendTemplateServices.ValidateTemplateOnServer(WebTemplate)
         at com.sap.bi.et.wad.man.WADTemplateManipulator.ValidateTemplate(WebTemplate)
         at com.sap.bi.et.wad.man.WADfrmMainWindow.itmValidateOnTheServer_Click(Object, EventArgs)
         at Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.OnItemClicked(EventArgs)
         at Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.PerformClick()
         at Syncfusion.Windows.Forms.Tools.XPMenus.MenuGrid.NotifyItem(BarItem)
         at Syncfusion.Windows.Forms.Tools.XPMenus.MenuGrid.HidePopup(PopupCloseType)
         at Syncfusion.Windows.Forms.Tools.XPMenus.MenuGrid.ProcessItemClick(BarItem)
         at Syncfusion.Windows.Forms.Tools.XPMenus.MenuGrid.OnMouseUp(MouseEventArgs)
         at System.Windows.Forms.Control.WmMouseUp(Message&, MouseButtons, Int32)
         at System.Windows.Forms.Control.WndProc(Message&)
         at Syncfusion.Windows.Forms.ScrollControl.WmMouseUp(Message&)
         at Syncfusion.Windows.Forms.ScrollControl.WndProc(Message&)
         at Syncfusion.Windows.Forms.Grid.GridControlBase.WndProc(Message&)
         at Syncfusion.Windows.Forms.Tools.XPMenus.MenuGrid.WndProc(Message&)
         at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
         at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
         at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
         at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
         at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32, Int32, Int32)
         at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32, ApplicationContext)
         at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32, ApplicationContext)
         at System.Windows.Forms.Application.Run(Form)
         at com.sap.bi.et.wad.BexWebApplicationDesigner.Launch.Main()
    -EXCEPTION-END----
    : DEBUG ### False - RSWAD_WEBPUB_CALL_SERVICE:V:Validate on Server returned e_subrc=99
    END com.sap.bi.et.wad.WADBackend.WADBackendTemplateServices.ValidateTemplateOnServer ##########
    --> com.sap.bi.et.wad.WADBackend.WADOSDialogues.OpenObject ##########
    -EXCEPTION-START- : Open Save Services Failure. Breaking the Action. ---
    Exception Message: Check: RFC Exception
    Exception    at com.sap.bi.et.BExOpenSaveServices.OSDataProvider70.RFCGetMessages(String& piLastNCalls, BExMessages& peMsgList)
       at com.sap.bi.et.BExOpenSaveServices.OSDataProvider70.ClearServerMessageHandler()
       at com.sap.bi.et.BExOpenSaveServices.OSDialog.OpenObject(BExObjectType pServiceObjType, BExObjectType[] pSelectableSubObjTypes, Form pParentForm, String pDlgTitle, BExMessages& peMessages)
       at com.sap.bi.et.wad.WADBackend.WADOSDialogues.OpenObject(Form parent, String iType)
    Full Stack:
         at com.sap.bi.et.wad.Debug.WriteTraceToFile(Level, String, Exception)
         at com.sap.bi.et.wad.Trace.Exception(Exception, String)
         at com.sap.bi.et.wad.WADBackend.WADOSDialogues.OpenObject(Form, String)
         at com.sap.bi.et.wad.WADBackend.WADOSDialogues.OpenSimpleObject(BExObjectType, String&, String&, Form)
         at com.sap.bi.et.wad.man.WADTemplateController.DoLoadTemplateFromBW(String)
         at com.sap.bi.et.wad.man.WADfrmMainWindow.itmOpenWebTemplate_Click(Object, EventArgs)
         at Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.OnItemClicked(EventArgs)
         at Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.PerformClick()
         at Syncfusion.Windows.Forms.Tools.XPMenus.BarRenderer.OnMouseUp(MouseEventArgs)
         at Syncfusion.Windows.Forms.Tools.XPMenus.BarControlInternal.OnMouseUp(MouseEventArgs)
         at System.Windows.Forms.Control.WmMouseUp(Message&, MouseButtons, Int32)
         at System.Windows.Forms.Control.WndProc(Message&)
         at Syncfusion.Windows.Forms.Tools.XPMenus.BarControlInternal.WndProc(Message&)
         at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
         at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
         at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
         at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
         at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32, Int32, Int32)
         at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32, ApplicationContext)
         at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32, ApplicationContext)
         at System.Windows.Forms.Application.Run(Form)
         at com.sap.bi.et.wad.BexWebApplicationDesigner.Launch.Main()
    -EXCEPTION-END----
    -EXCEPTION-START- : Open Save Services Failure. Breaking the Action. ---
    Exception Message: Check: RFC Exception
    Exception    at com.sap.bi.et.BExOpenSaveServices.OSDataProvider70.RFCGetMessages(String& piLastNCalls, BExMessages& peMsgList)
       at com.sap.bi.et.BExOpenSaveServices.OSDataProvider70.ClearServerMessageHandler()
       at com.sap.bi.et.BExOpenSaveServices.OSDialog.OpenObject(BExObjectType pServiceObjType, BExObjectType[] pSelectableSubObjTypes, Form pParentForm, String pDlgTitle, BExMessages& peMessages)
       at com.sap.bi.et.wad.WADBackend.WADOSDialogues.OpenObject(Form parent, String iType)
    Full Stack:
         at com.sap.bi.et.wad.Debug.WriteTraceToFile(Level, String, Exception)
         at com.sap.bi.et.wad.Trace.Exception(Exception, String)
         at com.sap.bi.et.wad.WADBackend.WADOSDialogues.OpenObject(Form, String)
         at com.sap.bi.et.wad.WADBackend.WADOSDialogues.OpenSimpleObject(BExObjectType, String&, String&, Form)
         at com.sap.bi.et.wad.man.WADTemplateController.DoLoadTemplateFromBW(String)
         at com.sap.bi.et.wad.man.WADfrmMainWindow.itmOpenWebTemplate_Click(Object, EventArgs)
         at Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.OnItemClicked(EventArgs)
         at Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.PerformClick()
         at Syncfusion.Windows.Forms.Tools.XPMenus.BarRenderer.OnMouseUp(MouseEventArgs)
         at Syncfusion.Windows.Forms.Tools.XPMenus.BarControlInternal.OnMouseUp(MouseEventArgs)
         at System.Windows.Forms.Control.WmMouseUp(Message&, MouseButtons, Int32)
         at System.Windows.Forms.Control.WndProc(Message&)
         at Syncfusion.Windows.Forms.Tools.XPMenus.BarControlInternal.WndProc(Message&)
         at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
         at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
         at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
         at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
         at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32, Int32, Int32)
         at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32, ApplicationContext)
         at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32, ApplicationContext)
         at System.Windows.Forms.Application.Run(Form)
         at com.sap.bi.et.wad.BexWebApplicationDesigner.Launch.Main()
    -EXCEPTION-END----

    Andrea,
    Try using ST22 to see if it gives you a detailed error message. If it is listed it will tell you what it is missing.
    Cheers,
    Rusty

Maybe you are looking for