Coldfusion mark up language vs jsp

Can anyone tell me the pros and cons of developing an application using coldfusion vs jsp.
There is very little on the web about the CONS of ColdFusion's MX release. The ColdFusion language is considered very easy to learn for people with a programming background. ColdFusion Markup Language must have some disadvantages compared with developing in Java. Any resources would be appreciated.
Cheers
Liz

ColdFusion's primary purpose is rapid application development (RAD). And in this area, CFML smokes Java.
Though, it's not like RAD is java's primary purpose. CFMX and Java are both Java languages with different purposes and really shouldn't even be compared. It's like trying to compare pure Java to JSP to EJB's... what's the point? You should instead be looking at what each technology brings to the table and how they can work together to compliment and enhance each other. Remember, it's not a competition or war between the two technologies any more... they're part of the same family now.
For many applications, the Java language is just plain overkill. And for many applications, cfmx won't provide the scalability and power needed. And more times then not, it's not the language or technology that brings forth a better solution, rather the person writing the code and whether he/she knows how to properly use it.

Similar Messages

  • JMSML - XML Based Mark-Up Language for BEA WebLogic JMS and JMX

              JMSML is a Mark-Up language designed and developed to make Java Messaging Service
              (JMS) and Java Management Extensions (JMX) programming easy by hiding all the
              JMS and JMX Java API complexity behind a few, simple, easy to use XML tags.
              Both the White Paper and the binary download are available in dev2dev.beasys.com
              at the link below:
              http://dev2dev.beasys.com/resourcelibrary/whitepapers.jsp?highlight=whitepapers
              Regards
              [email protected]
              

    Hi,
    I finally managed to post a message to ActiveMQ 5.4.2 from WLS 10.3. I created a foreign JMS Server in WLS. I am not sure if you still have this issue, but I was facing this problem and managed to resolve it so posting the reply!
    I placed the activemq-all-5.4.2.jar file in WLS server classpath.
    The settings I used for the Foreign Server are:
    General tab
    JNDI Initial Context Factory: org.apache.activemq.jndi.ActiveMQInitialContextFactory
    JNDI Connection URL: tcp://localhost:61616
    Destinations Tab
    Name: TestQueue
    Local JNDI Name: TestQueue
    Remote JNDI Name: dynamicQueues/TestQueue (I tried with a normal queue, but it didn't work. So used dynamicQueues here. Will try with other queue also)
    Connection Factories Tab
    Name: AMQConnectionFactory (
    Local JNDI Name: AMQConnectionFactory
    Remote JNDI Name: ConnectionFactory (This is default name given by Active MQ, you can change by adding names in jndi.properties file and placing it in config folder of ActiveMQ installation. Please check here: http://activemq.apache.org/jndi-support.html)
    Using this configuration I was able to post message to ActiveMQ queue from Oracle Service Bus. One more issue to be taken care is that if the message type is not "Text" then the message body was coming as blank in ActiveMQ. So set the message type as "Text" explicitly.

  • Strange problem (Korean language in jsp page) - Urgent Please

    Dear friends,
    I have a strange problem.
    in my jsp page, i have to add hangul words also using korean language. (hangul).
    After adding hangul language in jsp page, in browser, it is displaying in some other format.
    how can i display hangul script on browser using a jsp page.
    please help me.
    Thanks in advance
    Yours
    Rajesh

    Dear noahlau,
    Thank you very much.
    I got the solution for this problem
    I used korean encoding char set like this in my jsp program.
    <%@page contentType="text/html;charset=ks_c_5601-1987"%>
    Now it is working fine.
    Thanks once again.
    if you need any help please ask me.
    Yours
    Rajesh

  • Change language (uix jsp)

    How can I change language in uix jsp application? I want labels like NEXT, PREVIOUS,... in language otjer than US!

    Hello, I have a similar problem, but in JSF application and the mine is more frustrating. When I put my language (catalan) in the locate configuration int faces-config like this:
    <application>
    <locale-config>
    <default-locale>ca</default-locale>
    </locale-config>
    <default-render-kit-id>oracle.adf.core</default-render-kit-id>
    <message-bundle>missatgesADF</message-bundle>
    </application>
    the application appears in english instead of catalan. In spide of exist a class called BLAFBundle_ca wich contains the needed texts in catalan for show the ADF components, I coulden't do work. When I put "es_ES" instead of "ca" the components are showed in spanish correctly, and if I put "de" is showed in deutch correctly.
    I decided decompile the class MessageBundle_es_ES from adf-faces-api.jar, put it in my source project without change its package. I modified a validation message and it worked. I decide the same for change the ADF components literals ("expand all", "select all", "next"...) and I found it in BLAFBundle_es_ES, I found it in adf-faces-impl.jar and in uix2.jar (this last not used in my project). I do the same steps with the previous file, but doesn't works !!!

  • Specific other language to JSP

    JSP can specific other language to write script by use language attribute in page directive.
    Is all language can use? Is any restriction? How does it compile to Servlet when it not java?

    "java" is the only possible choice right now.

  • How to check arraylist size greater than 1 using expression language in jsp

    I want to remove the scripplet in jsp, so i am using jstl tags with expression language in it.
    My scripplet is
    <% if (arraylist.size() > 1) {
    ---do something ----
    %>
    i wanted to change this to
    <c:if test="${ somecondition }">
    ---do something ----
    </c:if>
    here "somecondition" is exactly i need to check whether my arraylist size is greater than 1.
    so please can anyone help me how can i do that.

    If you do not mind, you can create a function and package it into a tag library of your own. Then you can use the function just as the existing expressions language construct. You may take a look at the article use functions in jsp expression language.

  • ColdFusion, an outdated language?

    I love coldfusion, Ive had a lot of fun with it since I found
    out about dynamic server side programming. believe it or not, I
    just found out it existed summer of last year. Ive came along way
    and I think Im ready to try and get certified.
    I was randomly looking up some coldfusion articles the other
    day and I came across a forum that asked why is it that coldfusion
    developers are hard to find. And someone replied that Its an
    outdated language and they should try .NET programming. My question
    is, is this true. Dont get me wrong, I love coldfusion, but I havnt
    had the oppurtunity yet to come across a coldfusion developer in
    person to even ask how much coldfusion has benefited them
    financially. The minute I learned what it was about, i bought books
    and immediately started to learn and use the forums. But now Im
    starting to question if Coldfusion is a good investment. Not that
    many web hosting services have Coldfusion servers to offer compared
    to PHP and .NET. I dont want to leave coldfusion, But is it worth
    getting certified and does alot of fortune come out of being a
    coldfusion developer ?? Thanks

    Just been reading some interesting stuff over on the
    hostmysite forums -
    apparently coldfusion is on the decline. However, within the
    hostmysite
    community itself, it is being used more! I think thats the
    key to this whole
    "cf is dead" thing - sure, cf is used far less in general
    terms, but in
    certain places it is on the rise. Ultimately, its safe to say
    thats it's not
    really a mainstream technology anymore but it will live on
    happily within
    its niche areas.
    If you are a general purpose web developer looking for work
    or customers, cf
    is probably a bad choice. But if you want to specialise or if
    you want to go
    for a job with an organisation that you already know supports
    cf use - it
    might be a smart move.
    "numerical07" <[email protected]> wrote in
    message
    news:euje04$10f$[email protected]..
    >I love coldfusion, Ive had a lot of fun with it since I
    found out about
    >dynamic
    > server side programming. believe it or not, I just found
    out it existed
    > summer
    > of last year. Ive came along way and I think Im ready to
    try and get
    > certified.
    >
    > I was randomly looking up some coldfusion articles the
    other day and I
    > came
    > across a forum that asked why is it that coldfusion
    developers are hard to
    > find. And someone replied that Its an outdated language
    and they should
    > try
    > .NET programming. My question is, is this true. Dont get
    me wrong, I love
    > coldfusion, but I havnt had the oppurtunity yet to come
    across a
    > coldfusion
    > developer in person to even ask how much coldfusion has
    benefited them
    > financially. The minute I learned what it was about, i
    bought books and
    > immediately started to learn and use the forums. But now
    Im starting to
    > question if Coldfusion is a good investment. Not that
    many web hosting
    > services
    > have Coldfusion servers to offer compared to PHP and
    .NET. I dont want to
    > leave
    > coldfusion, But is it worth getting certified and does
    alot of fortune
    > come out
    > of being a coldfusion developer ?? Thanks
    >

  • Expression Language in JSP w/ JSTL

    Does expression language decrease performance on the page?

    I was browsing the forums and i came across
    http://forum.java.sun.com/thread.jspa?threadID=349876&messageID=1450081
    The only difference is that I'm using Tomcat 5.0...
    Our pages are running slow and we can't figure out what's wrong...

  • How to write an mark entry  page in jsp

    i am trying to write an web based page in java to get mark entry for students. By selecting a subjectNmae in the combo box present in the page the student list corresponding to the subject should be displayed with rollNo, stdName and a text box corresponding to them for mark entry and an buttton to submit and a button to approve. kindly guide me with some sample code r links where i could find how to code.

    I doubt that you'll find anyone to write the application for you; I won't.
    However, there is code available for each of the separate functions that you mention, in various places. I sugges that you start with Sun's Java Tutorial, here http://java.sun.com/docs/books/tutorial/
    The section titled "Creating Graphical User Interfaces" will be most interesting and useful, although the other sections are involved.
    You can also look at the sample code snippets here:
    http://www.exampledepot.com/

  • Using JSP Get User's Default Language

    Hi!
    I have to get the User's Default language using JSP that the client is accessing website and u want to rederict him automatically to his default language which he is using. Like in google aur other websites.
    If it is also possible in Javascript then it is also acceptable for me.

    this can only be done if the request has the Accept-Language header set. You can read this using either request.getHeader("Accept-Language") or request.getHeaders("Accept-Language") for an enumeration of all the languages that the user will accept. Look at this page for details on the Accept-Language header: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html Note that the user agent (browser) does not have to provide this information (my Netscape browser does not, and I always get English from Google. My IE browser does, so I will get German if my default lang is set for German).

  • Can't usebean in JSP in Java 2 sdk ee1.3 server

    I have created a jsp page which used a bean but everytime I accessed the bean from the J2ee server ..it will always displayed the error that the bean class is not found..
    I have try to deploy the jsp as a web component using the deploytool but got the same error ...
    I am using jdk1.3 and java 2 sdk ee 1.3 in windows 98se
    Where do I have to put the class file?
    Is there something wrong with my classpath
    Do I need the change some of the properties file? if not what other solution is there....
    I am completely lost...I have double check the jsp code and the bean code..they are fine...Just couldn't figure out the solution..
    Pls help me come up with a solution

    Maybe it would be easier if I include the error message that I got and also the files.
    I use J2EE server 1.3 so there is only a public_html folder, I can't find any webapp folder...public_html folder contain the context of the application...where do I put the class file there or the package
    Here is the error that I got while executing the jsp page
    org.apache.jasper.JasperException: Unable to compile class for JSPc:\j2sdkee1.3\repository\default\web\_0002fusebean_jsp.java:61: Class org.apache.jsp.BankAccount not found.
    BankAccount BA = null;
    ^
    c:\j2sdkee1.3\repository\default\web\_0002fusebean_jsp.java:64: Class org.apache.jsp.BankAccount not found.
    BA= (BankAccount)
    ^
    c:\j2sdkee1.3\repository\default\web\_0002fusebean_jsp.java:69: Class org.apache.jsp.BankAccount not found.
    BA = (BankAccount) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "BankAccount");
    ^
    3 errors
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:523)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:175)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:187)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:453)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:254)
         at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:198)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:177)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:255)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:882)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:225)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:882)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2227)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:229)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:882)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:162)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:882)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:875)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:952)
         at java.lang.Thread.run(Thread.java:484)
    here is the bean code:
    import java.io.*;
    import java.sql.*;
    public class BankAccount
         private String sAccountID=" ";
         private String sPin=" ";
         Connection connect=null;
         Statement state=null;
         ResultSet result=null;
         public void setSAccountID(String sAccountID)
              this.sAccountID=sAccountID;
         public String getSAccountID()
              return sAccountID;
         public void setSPin(String sPin)
              this.sPin=sPin;
         public String getSPin()
              return sPin;
         public BankAccount() throws ClassNotFoundException
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         public boolean AccountValidate()
              boolean validate=false;
              String sPinno="";
              try
                   sAccountID=getSAccountID();
                   sPin=getSPin();
                   connect=DriverManager.getConnection("jdbc:odbc:Bank","","");
                   String strquery="select cPin_no from Login where cAccount_id='"+sAccountID+"'";
                   state=connect.createStatement();
                   result=state.executeQuery(strquery);
                   while (result.next())
                        sPinno=result.getString(1);
                   sPinno=sPinno.trim();
                   sPin=sPin.trim();
                   if (sPinno.equals(sPin))
                        validate=true;
              catch(Exception e){}
              return validate;
    here is the jsp :
    <%@ page language="java" %>
    <jsp:useBean id="BA" scope="application" class="BankAccount" >
    <jsp:setProperty name="BA" property="sAccountID" param="accid"/>
    <jsp:setProperty name="BA" property="sPin" param="pin"/>
    </jsp:useBean>
    <html>
    <head><title>result page</title></head>
    <body>
    <%
         String accid=request.getParameter("i1");
         String pin=request.getParameter("i2");
         out.println("welcome "+accid);
         boolean validate=BA.AccountValidate();
         if (validate==true)
              out.println("the user is validated");
         else
              out.println("the user is not valid");
    %>
    </body>
    </html>
    here is the simple html file
    <html>
    <head><title>user validation</title></head>
    <body>
    <form method="post" action="usebean.jsp">
    <table border="0" cellspacing="1" cellpadding="5">
    <tr>
         <td width="100"> </td>
         <td align="right"><h1><font color="red">Welcome to Bank</font></h1></td>
    </tr>
    <tr>
         <td width="100"><b><font color="blue">Account ID:</font></b></td>
         <td align="left"><input type="text" name="sAccountID" size="30"></td>
    </tr>
    <tr>
         <td width=100 align=right><b><font color=blue>Pin Number:</font></b></td>
         <td align=left><input type="password" name="sPin" size="30"></td>
    </tr>
    <tr>
         <td width=100> </td>
         <td align=left><input type=submit value=submit></td>
    </tr>
    </table>
    </form>
    </body>
    </html>
    what changes do you suggest?
    I try testing and creating a simple package just to ensure I can create package and it is accessible but I can't access the package
    Here is what I did...
    I created a file displayclass.java which contains the package declaration as follows
    package mypackage;
    public class displayclass
         public String displaytext()
              return "displaying text";
    I compile it using javac -d . displayclass.java
    I check and the package named mypackage is created under the current directory which is c:\java\jsp
    then I created the usepackage.java which use the mypackage package
    here it is
    import jsp.*;
    public class usepackage
         public static void main(String args[])
              displayclass dc=new displayclass();
              String string=dc.displaytext();
              System.out.println(string);
    Then I set the classpath as "set classpath=%classpath%;c:\java\jsp\mypackage" without the quotation marks ofcourse
    I found to my dismay that when I compile usepackage.java.. the compiler generated the following error message
    usepackage.java:7 cannot displayclass
    bad class file: c:\java\jsp\mypackage\displayclass.class
    class file contain wrong class: jsp.displayclass
    Please remove and make sure it appears in the correctsubdirectory of the classpath
    My brains are already over the limit...the level of frustration at not be being able to make a simple package thing work after facing hurdles after hurdles in JSP...
    What solutions do you suggest for the above 2 problems --the one with the jsp and the one with the package..
    I use jdk1.3 and j2sdkee1.3, windows 98se
    they are all working fine
    I really can't comprehend that the people at sun if they admit that j2sdkee1.3 can work in windows 98 with minor tweakings and instead of leading us to a forum with suggested solutions..why can't they simply support the damn thing in windows98 if it can work on windows98...so much for platform independence..or do they prefer us to upgrade to windows NT or windows 2000 :-)
    I feel that it would be way too simple for them to make the batch file to work properly...I am indeed surprised as it wouldn't take much of a time for them. Don't you all think so?
    As regards the stuff not working without package...it just is too much...I am close to boiling point...why can't they spare a thought for that? I have seen many of my classmates simply throwing up their hands in desperation :-) it is making life a living hell for us---as we are not genius..it depends upon the genius, if at all they are, to make something more userfriendly
    anyway pls help me!....I have to finish my assignments on my home computer...

  • Prob with running jsp Bean

    Hi,
    I am trying to run a bean through a jsp but its giving error at useBean tag of jsp:
    The error is :
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /Quadratic.jsp(7,0) The value for the useBean class attribute com.brainysoftware.Quadratic is invalid.
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)
         org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1227)
         org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Generator.generate(Generator.java:3272)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    My jsp is:
    <HTML>
    <HEAD>
    <TITLE> JSP BEAN Quadratic Example </TITLE>
    </HEAD>
    <BODY>
    <%@ page language="java" %>
    <jsp:useBean id="quadratic" scope="session" class="com.brainysoftware.Quadratic" />
    <jsp:setProperty name="quadratic" property="ia" param="a" />
    <jsp:setProperty name="quadratic" property="ib" param="b" />
    <jsp:setProperty name="quadratic" property="ic" param="c" />
    X1= <%= quad.getDx1( ) %>
    X2= <%= quad.getDx2( ) %>
    End of program
    </BODY>
    </HTML>my bean is:
    package com.brainysoftware;
    import java.io.*;
    class Quadratic{
    int ia;
    int ib;
    int ic;
    String dx1;
    String dx2;
    public int getIa( ) {
    return ia;
    public void setIa( int ii) {
    ia=ii;
    public int getIb( ) {
    return ib;
    public void setIb(int ii) {
    ib=ii;
    public int getIc( ) {
    return ic;
    public void setIc(int ii) {
    ic=ii;
    public String getDx1( ) {
    double detA;
    double result;
    detA= ib*ib -4*ia*ic;
    if(detA<0.0)
    return "Real Roots not possible";
    else {
    result= -ib - Math.sqrt(detA/(2 * ia));
    Double Dresult=new Double (result);
    return Dresult.toString( );
    public String getDx2( ) {
    double detA;
    double result;
    detA= ib*ib -4*ia*ic;
    if(detA<0.0)
    return "Real Roots not possible";
    else {
    result= -ib + Math.sqrt(detA/(2 * ia));
    Double Dresult=new Double (result);
    return Dresult.toString( );
    my directory structure is given below:
    C:\tomcat-5.0.28\jakarta-tomcat-5.0.28\webapps\jsp-examples\WEB-INF\classes\com\
    brainysoftware>dir
    Volume in drive C has no label.
    Volume Serial Number is 4C50-9542
    Directory of C:\tomcat-5.0.28\jakarta-tomcat-5.0.28\webapps\jsp-examples\WEB-IN
    F\classes\com\brainysoftware
    05/22/2005 11:15 PM <DIR> .
    05/22/2005 11:15 PM <DIR> ..
    05/22/2005 11:18 PM 134 CalculatorBean.java
    05/23/2005 12:12 AM 216 Counter.java
    05/24/2005 10:48 PM 358 SimpleJavaBean.java
    06/14/2005 11:16 PM 1,205 Calculator.java
    06/14/2005 11:16 PM 1,323 Calculator.class
    06/16/2005 06:44 PM 534 CalculatorBean2.java
    06/17/2005 08:53 AM 703 CalculatorBean2.class
    06/16/2005 07:00 PM 352 CalculatorBean2.html
    06/17/2005 08:51 AM 588 CalculatorBean2.jsp
    06/17/2005 04:29 PM 97 UploadBean.java
    06/17/2005 04:43 PM 527 FileUploadBean.java
    06/17/2005 04:43 PM 834 FileUploadBean.class
    06/18/2005 12:21 PM 863 Quadratic.java
    06/18/2005 12:21 PM 1,093 Quadratic.class
    14 File(s) 8,827 bytes
    2 Dir(s) 8,615,821,312 bytes free
    C:\tomcat-5.0.28\jakarta-tomcat-5.0.28\webapps\jsp-examples\WEB-INF\classes\com\
    brainysoftware>
    The above clearly shows the presence of Bean in the reqd directory but still I am getting an error. Can somebody help me:
    Zulfi.

    class QuadraticThe class is not public. It is only visible to other classes in the same package as itself, so the servlet (JSP) trying to instantiate and reference it can't see it.
    Make it public.

  • Values are returned as question marks.

    I have set up a UTF-8 database, on my english version of WinXP..
    SELECT * FROM NLS_DATABASE_PARAMETERS;
    .. shows this is correct - UTF8
    I have set up NLS_LANG variable in windows, to be "American.America.UTF8"
    Using SQL*Plus worksheet I can update a row in my database to contain chinese characters. I dont know what the chinese means, but I can copy and paste from another application, and the glyphs looks the same in the source and SQL*Plus worksheet.
    I can then select the row ..
    SELECT * FROM THETABLE WHERE THECOLUMN = '{CHINESECHARS}';
    The correct row is returned, but the column is shown with just question marks, instead of the glyphs I expect.
    (This also happens with the web application I am developing which also seems to return qurestion marks. (PHP not JSP))
    Can anyone shed any light on this problem as I am completely stuck.

    Check these notes# 132453.1, 152260.1 & 158577.1 out on metalink also for further good details. This may/may not work for Chinese yet it should steer you
    in the right direction.. It's the combination of the NLS_LANG and Active
    Code page settings on the client as well as the database characterset. I believe you say the database character set is UTF8. That part should be correct. It's then the client side combo's that do the trick. It's trying differing combo's until he desired results are achieved. Having not worked with Chinese I can
    give you an example of what I've experienced...
    These are the following steps I performed to enable the client SQL*Plus (command line and GUI) and SQL*Worksheet to display/input the euro currency symbol correctly for example...
    1) Search from the top of the registry (regedit) for ALL occurrences of NLS_LANG and make the value AMERICAN_AMERICA.WE8MSWIN1252.
    2) Go to the following registry entry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage\ACP
    and change the active code page (ACP) to 1252. If there is an OEMACP entry there change that also to 1252.
    3) Reboot the PC
    To test .. go to DOS and enter at the prompt..
    E:\>chcp
    Active code page: 1252
    If the above message IS NOT 1252 you must have missed editting the registry entry
    explained above. However you can change it for this session by entering
    E:\>chcp 1252
    - < Set font to Lucida Console (in Properties, Font tab) >
    To get the UNICODE characters you want insert into the database do the following
    E:\>charmap
    You will see a display of different characters.
    If you click on advanced view at the lower right corner a search screen comes up. Enter UNICODE for the character set, ALL for group by and EURO for the search for and the euro currency symbol will come up. This is one way how the user can enter this character into the app. You can copy the character in this function as you can see and then you can paste it elsewhere. Copy whatever character you want to test with. My test was with the euro currency symbol.
    E:\>sqlplus.exe <user>/<pwd>
    SQL*Plus: Release 8.1.7.0.0 - Production on Fri Jul 13 13:22:19 2001
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Connected to: Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option JServer Release 8.1.7.0.0 - Production
    SQL> create table t (a char(3));
    Table created.
    SQL>insert into t values ('');
    1 row inserted. SQL>
    commit;
    SQL> select * from t;
    A
    If the all the registry edits were performed correctly this will work with
    SQL*Plus GUI and SQL*Worksheet.
    Check these notes# 132453.1, 152260.1 & 158577.1 out on metalink also for further details real carefully.

  • When and How to close database connection in JSP?

    Hi there,
    I am using MySQL and JDBC 3.0, in my system, When and How to close database connection in JSP?
    Thanks in advance.
    Lonely Wolf
    <%@ page session="true" language="java" %>
    <jsp:include page="checkauthorization.jsp" />
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    <%--
    Execute query, with wildcard characters added to the
    parameter values used in the search criteria
    --%>
    <sql:query var="availablecomputerList" dataSource="jdbc/Bookingcomputer" scope="request">
    SELECT * FROM computer where status=0
    order by s_code
    </sql:query>
    <html>
    <head>
    <title>Search Result</title>
    </head>
    <body bgcolor="white">
    <center>
    <form action="checkin.jsp" method="post">
    <input type="submit" value="Back to Check-in Page">
    </form>
    <c:choose>
    <c:when test="${availablecomputerList.rowCount == 0}">
    Sorry, no available computer found.
    </c:when>
    <c:otherwise>
    The following available computers were found:
    <table border="1">
    <th>Computer</th>
    <th>Description</th>
    <th>Status</th>
    <c:forEach items="${availablecomputerList.rows}" var="row">
    <tr>
    <td><c:out value="${row.s_code}" /></td>
    <td><c:out value="${row.description}" /></td>
    <td><c:out value="${row.status}" /></td>
    </tr>
    </c:forEach>
    </table>
    </c:otherwise>
    </c:choose>
    </center>
    </body>
    </html>

    when should you close the connection? when you're done with it.
    how should you close the connection? like this: conn.close();
    that said, doing this in a JSP page is bad form and not recommended
    JSP's typically don't contain ANY business or data logic

  • OK.. ha ha funny. But really does ojsp really support jsp:include ?

    I've been reading this list for a month or so now and still have a nagging question.
    Has anyone gotten ojsp to work using an include of the form: <jsp:include page="/somefile.jsp" />?
    According to the Oracle JSP team you should be able to use it:
    <% request.setAttribute("show","script"); %>
    <jsp:include page="/search_navigation.jsp"/>
    [/CODE\
    Similar to the IBM Websphere example.
    <HR></BLOCKQUOTE>
    This sounds nice, but first the syntax above is missing the flush modifier (which ojsp requires to be set to "true"), second the server gives the error:
    A Servlet Error Occurred
    An unexpected error occured attempting to run this servlet.
    The most likely explanation is a problem with the servlet code.
    Please check the server log for a detailed message.
    So can anyone use the <jsp:include> action in ojsp (the current one on OTN)?
    Thanks in advance.

    Thanks for your reply. Answers below:
    <jsp:directive.page language="java" />
    <jsp:include page="/arena/pages/login.jsp" flush="true" />
    <html>
    <body>
    Hello there.
    </body>
    </html>Generates this code:
    package jsptest;
    import oracle.jsp.runtime.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    import java.io.*;
    import java.util.*;
    import java.lang.reflect.*;
    import java.beans.*;
    public class test1 extends oracle.jsp.runtime.HttpJsp {
    public final String _globalsClassName = null;
    // ** Begin Declarations
    // ** End Declarations
    public void _jspService(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
    /* set up the intrinsic variables using the pageContext goober:
    ** session = HttpSession
    ** application = ServletContext
    ** out = JspWriter
    ** page = this
    ** config = ServletConfig
    ** all session/app beans declared in globals.jsa
    JspFactory factory = JspFactory.getDefaultFactory();
    PageContext pageContext = factory.getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);
    // Note: this is not emitted if the session directive == false
    HttpSession session = pageContext.getSession();
    if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) {
    pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, "true", PageContext.PAGE_SCOPE);
    factory.releasePageContext(pageContext);
    return;
    ServletContext application = pageContext.getServletContext();
    JspWriter out = pageContext.getOut();
    test1 page = this;
    ServletConfig config = pageContext.getServletConfig();
    try {
    // global beans
    // end global beans
    out.println( "");
    out.println( "");
    String __url = (String) "/arena/pages/login.jsp";
    // Include
    out.flush();
    pageContext.include( __url);
    if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) return;
    out.println( "");
    out.println( "");
    out.println( "<html>");
    out.println( "<body>");
    out.println( "Hello there.");
    out.println( "</body>");
    out.println( "</html>");
    out.flush();
    catch( Exception e) {
    try {
    if (out != null) out.clear();
    catch( Exception clearException) {
    pageContext.handlePageException( e);
    finally {
    if (out != null) out.close();
    factory.releasePageContext(pageContext);
    }You'll notice the out.flush() just prior to the pageContext.include(). BTW I have to have flush="true" or OAS throws a fit.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Sorry for any inconvenience caused.
    Thanks.<HR></BLOCKQUOTE>
    Thank you.
    null

Maybe you are looking for