Converting SSJS to JSP

Are there any tools that automate the conversion of SSJS to JSP?"
What about a "wrapper" servlet to run the SSJS, do they exist? We are upgrading to Iplanet Web Server 6.0 and are looking for alternatives to a re-write.
Alternatively is their any way to "enhance" 6.0 to get ssjs support? (iplanet is dropping ssjs support)
[email protected]

Hi,
"Converting SSJS Applications" section of "iPlanet Web Server, Enterprise Edition Programmer's Guide to Servlets"
contains information about converting Server-Side JavaScript applications to JSPs .
You can find more information on this at
http://docs.iplanet.com/docs/manuals/enterprise/50/servlets/xlwconv.htm
Hope this helps.
Best Regards
Gayam_Slash

Similar Messages

  • Are there any tools that automate the conversion of SSJS to JSP?

    What about a "wrapper" servlet to run the SSJS, do they exist? We are upgrading to Iplanted Web Server 6.0 and are looking for alternatives to a re-write

    Rhino is an implementation of JS written in Java. I have only a limited amount of knowledge about it, but my understanding is that it might be helpful both in terms of a migration path (allowing you to execute JS from within Java) and in terms of code conversion (converting JS to Java).
    http://www.mozilla.org/rhino/
    Let me know if it is helpful.
    David

  • Help me to convert Java and Jsp Files into WAR File!!!!

    I need someone to help me to convert some java servlet files and jsp files into a WAR file. I need it URGENTLY and I'll be very grateful to anyone who is willing to help me! My email is [email protected] Thanks!!!!

    Are the Oracle JDBC drivers 11g used?
    oracle.jdbc.driver.OracleDriver is not supported in 11g drivers.
    Please replace with:
    oracle.jdbc.OracleDriver

  • Converting Applet to JSP or JSF

    Hello All,
    I have a web application with Applet and Corba. It is rather old so I
    want to migrate my Applets to a modern web application, with JSP or
    JSF.
    However number of applets is very huge. So I am looking a way to
    convert my Applet to JSF/JSP etc. automatically.
    Is there anyway to do that?
    Thanks,
    aduran

    Hello cotton.m,
    Thanks for the answer. You are right. But at least, is there any way to convert GUI (awt to JSP/JSF etc.) from applet to HTML look, without business logic or any other stuff.

  • Converting PHP to JSP

    For work I need to convert a code that I wrote in PHP to JSP in order for it to run on our windows server.
    Trouble is, I know very little java. The script is a very simple, short email script located here: http://pastebin.com/m7b4b4e96
    Any help would be greatly appreciated.

    Perhaps this one?
    http://www.amazon.com/Murachs-Java-Servlets-Andrea-Ste
    elman/dp/1890774189/ref=pd_sim_b_5_img/002-0859111-900
    5647I have read many many JSP and Servlet books in the past and the book you mentioned (Murachs-Java-Servlets book by Andrea Steelman) is the best by far above any other books.

  • COnverting class to jsp

    I'm new to jsp and was just wondering how I go about adding my classpath to the jsp page... for example, I have a class like:public class testDriver{
       public static void main(String args[]){
          MyOtherClass other = new MyOtherClass();
          System.out.println(other.ReturnAString());
    }Ok. Now MyOtherClass does all sorts of hoobadeedoo, and I need to run my testDriver class with:"java -classpath .\;%AXISPATH%;%XERCESPATH%;%UDDI4JPATH% testDriver"As you can see, I have lots of classes - the AXISPATH, for example, points to 8 .jar files in the axis directory.
    My question is, How can I turn the testDriver class into a jsp page? Do I have to copy ALL of the .jar files to my \WEB-INF\lib directory? Am I missing the point here?!
    As you can see, Im pretty new to this so any help would be appreciated!
    Thanks,
    nmoog

    Well, copying all the .JAR files works! Im happy!
    But is this the best way? do I need to copy them for every project that I use them in?

  • What should I take note when converting Servlets to JSPs files?

    Hi Everyone,
    I have a web application that currently runs using Servlets and JSP, but i intend to change every servlet file into JSP.
    What should I take note?
    Please advice and comment.
    Thanks in advance

    Ok, I can see your logic, but I don't agree with it.
    It may SEEM like you'll save time, but I'm pretty sure you wouldn't in the end.
    So you don't have to restart the Tomcat server so much.
    That still doesn't justify writing java code into a JSP.
    Whatever you gain from not restarting the server you will lose 10 times over from stupid compile errors/typos that come from writing scriptlet code in a JSP.
    Java code belongs in a java class, where you can take advantage of all of the assistance of the IDE for code completion, formatting, compiling, syntax checking etc.
    Also if you write your code in classes, you can test them with Junit tests - something harder to do when your logic is embedded in JSPs
    Write your java code where it is meant to be. In java classes. Beans/Servlets/whatever.
    A JSP is for one purpose only - to produce an HTML page.
    Just my 2 cents.
    evnafets

  • 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.

  • How to convert a .jsp page in to the .txt page with a click of the button

    Hi Sir,
    Here the main thing is that in order to print a web page(.jsp page) in dotmatrix printer i need to first convert that webpage (.jsp page) in to .txt page.But my doubt is that can you convert a .jsp page in to .txt page with a click of a button so that whatever there in .jsp page has to be completely transferred in to .txt page if so then in that .txt page i need a button when i click it the page need to be send to the printer without using the file menu print option.First i need to know whether it is possible in java?If so please do help me by providing the exact code.If it is not possible in java pls.do provide other option.It is very urgent.Thank U.
    Regards,
    m.ananthu

    We can convert a .JSP page content into a .txt file by using MIME type conversion. In this scenario we cannot provide a button, because its an .txt file (not .JSP).
    If you want to print JSP content into a .txt content along with a button to print that page can also be done.
    -Chandra

  • 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

  • Converting Excel file to JSP

    I have a excel file that needs to be converted to a JSP page.
    I know this is possible, but not sure what the fastest way is.

    There are two ways I know of to read in an Excel file:
    1. open an ODBC data source to the file. you can do this dynamically by passing in the right connection string to the file. After that, you can do a SELECT statement against the file. There are tons of examples on how to do this on the site. I think I even posted one as well.
    NOTE: The Microsoft JDBC-ODBC driver to read Excel files is VERY flaky. For instance, if some of your Excel cells have text and some have numeric values, the driver will convert the entire column to one or the other based on what the first few values are. This causes major problems for some people. I've also found that empty cells, lines, etc... cause errors that are hard to recover from.
    2. Use a package such as ExcelRead. This free package is very clever, and reads the Excel file very reliably. It is very easy to use as well.
    Michael

  • Convert a JSP to PDF

    Hi everybody!
    can any one help me in converting the dynamic JSP page to a PDF file including the dynamic content of the page on fly.
    Please give the saple code too
    thanks

    You can also use FOP from apache.
    By the way, this topic is asked, and answered frequently. Search the forum before asking the question and you may find the answers faster
    http://search.java.sun.com/search/java/index.jsp?col=javaforums&qp=%2Bforum%3A45&qt=%2BPDF+%2Bjsp

  • How to send a Mail using JSP using browser.

    Dear friends
    I could write a code to send a mail and execute it from a command prompt using a class file, but the same code, I converted into a JSP tags to run from a browser. I am getting compilation error. Can you please help me in solving this problem.
    I am using javamail API 1.3,JAF1.0.2
    Win2000,Websphere 3.5,HostPublisher server 3.5,IE6.0
    I shall be thankful if someone shows me the solution.

    Hello
    I hope that this is useful
    I'm using Tomacat 4.0.4 and J2SDK1.4.0_01
    Setting on conf\Server.xml
    <Resource name="mail/Session" auth="Container"
                        type="javax.mail.Session"/>
              <ResourceParams name="mail/Session">
                <parameter>
                  <name>mail.smtp.host</name>
                  <value>your hostmail server</value>
                </parameter>
              </ResourceParams>Setting on web.inf/web.xml
    <servlet>
        <servlet-name>SendMailServlet</servlet-name>
        <servlet-class>SendMailServlet</servlet-class>
      </servlet>
    <servlet-mapping>
        <servlet-name>SendMailServlet</servlet-name>
        <url-pattern>/SendMailServlet</url-pattern>
      </servlet-mapping>
    <resource-ref>
        <res-ref-name>mail/Session</res-ref-name>
        <res-type>javax.mail.Session</res-type>
        <res-auth>Container</res-auth>
      </resource-ref>jsp page example:
    <html>
    <head>
    <title>Example Mail Sending Form</title>
    </head>
    <form method="POST" action="../../SendMailServlet">
    <table>
      <tr>
        <th align="center" colspan="2">
          Enter The Email Message To Be Sent
        </th>
      </tr>
      <tr>
        <th align="right">From:</th>
        <td align="left">
          <input type="text" name="mailfrom" size="60">
        </td>
      </tr>
      <tr>
        <th align="right">To:</th>
        <td align="left">
          <input type="text" name="mailto" size="60">
        </td>
      </tr>
      <tr>
        <th align="right">Subject:</th>
        <td align="left">
          <input type="text" name="mailsubject" size="60">
        </td>
      </tr>
      <tr>
        <td colspan="2">
          <textarea name="mailcontent" rows="10" cols="80">
          </textarea>
        </td>
      </tr>
      <tr>
        <td align="right">
          <input type="submit" value="Send">
        </td>
        <td align="left">
          <input type="reset" value="Reset">
        </td>
      </tr>
    </table>
    </form>
    </body>
    </html>SendMailServelet.java:
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.mail.Message;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeMessage;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class SendMailServlet extends HttpServlet {
        public void doPost(HttpServletRequest request,
                           HttpServletResponse response)
            throws IOException, ServletException
            // Acquire request parameters we need
            String from = request.getParameter("mailfrom");
            String to = request.getParameter("mailto");
            String subject = request.getParameter("mailsubject");
            String content = request.getParameter("mailcontent");
            if ((from == null) || (to == null) ||
                (subject == null) || (content == null)) {
                RequestDispatcher rd =
                    getServletContext().getRequestDispatcher("/jsp/mail/sendmail.jsp");
                rd.forward(request, response);
                return;
            // Prepare the beginning of our response
            PrintWriter writer = response.getWriter();
            response.setContentType("text/html");
            writer.println("<html>");
            writer.println("<head>");
            writer.println("<title>Example Mail Sending Results</title>");
            writer.println("</head>");
            writer.println("<body bgcolor=\"white\">");
            try {
                // Acquire our JavaMail session object
                Context initCtx = new InitialContext();
                Context envCtx = (Context) initCtx.lookup("java:comp/env");
                Session session = (Session) envCtx.lookup("mail/Session");
                // Prepare our mail message
                Message message = new MimeMessage(session);
                message.setFrom(new InternetAddress(from));
                InternetAddress dests[] = new InternetAddress[]
                    { new InternetAddress(to) };
                message.setRecipients(Message.RecipientType.TO, dests);
                message.setSubject(subject);
                message.setContent(content, "text/plain");
                // Send our mail message
                Transport.send(message);
                // Report success
                writer.println("<strong>Message successfully sent!</strong>");
            } catch (Throwable t) {
                writer.println("<font color=\"red\">");
                writer.println("ENCOUNTERED EXCEPTION:  " + t);
                writer.println("<pre>");
                t.printStackTrace(writer);
                writer.println("</pre>");
                writer.println("</font>");
            // Prepare the ending of our response
            writer.println("<br><br>");
            writer.println("<a href=\"jsp/mail/sendmail.jsp\">Create a new message</a><br>");
            writer.println("</body>");
            writer.println("</html>");       
    }Ciao
    Riccardo

  • Custom converter for h:selectManyCheckbox, no getAsObject call

    Hello.
    I have a strange problem with my PersonConverter. This converter should convert object of type Person. Implementatin of these classes is not important. So I defined it to faces-config.xml:
    <converter>
      <converter-for-class>x.y.Person</converter-for-class>
      <converter-class>x.y.PersonConverter</converter-class>
    </converter>In my jsp page I have:
    <!-- List<Person> Bean.getSelectedPersons() -->
    <h:selectManyCheckbox id="xyz" value="#{bean.selectedPersons}">
      <!-- List<SelectItem> Bean.getPersons() -->
      <!-- SelectItem oneItem = new SelectItem(person, person[i].getName()) -->
    <f:selectItems value="#{products.persons}"/>
    <h:message for="xyz"/>
    </h:selectManyCheckbox>
    When I access this page I get requested result, eg. checkboxes with names. There are printlns in  getAsString() and getAsObject() so I see that getAsString() was called. However when I submit page I cannot see call to getAsObject() (eg. the println) and on page I get:Conversion Error setting value 'Thomas' for '#{bean.selectedPersons}'. (Assuming that I checked checkbox with label 'Thomas', If I don't check anything, there is '').
    What am I doing wrong please?
    I also tried giving the converter id and adding <f:converter id="personConverterId"/> between h:selectManyCheckbox tags, but it was same.
    Thank you.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Thanks for your support.
    I found that #{bean.selectedPersons} evaluated to Set so I added selectedPersonsList property which just creates ArrayList from Set. This is pretty stupid, I'm sorry. Next time I'll look twice before posting.
    By the way, thanks for tutorials on your blog. It helped me a lot with understanding JSF.

  • 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

Maybe you are looking for