I have problem in jsp page

i have build jsp page using javascript and java for the database connectivity .....i have dbtest.java in which i write the sql quiry and set the sql column in setter and getter another java class.in dbtest.java i pass a date from jsp which restrict the sql query according to that date.this date when i write hard coded its works but when i pas i from jsp calender it not works.Now i want to print the Date value in dbtest.java to test whether  the date is passed corect or not.How i can do once,  If i want to print the date in XML how i can do it.Beacuase i have xml file to print the data return from the
dbtest.java???

First i would suggest to print the date which you are passing from jsp to java, in java class where you executing your query.
Second : For data not coming when passed the calender date, i would suggest to check the date format.

Similar Messages

  • History problem in jsp page,internet explorer back button

    hi everyone
    i have a jsp page suppose a.jsp.in which i am using dropdown menu to displays:list of data from database,one submit button i am using name select and click here.after selecting the value from dropdown menu ,again some other data will be displayed from some other table in same a.jsp page.
    my problem is:
    when user selects one value from drop down menu ,it is diplaying the value in same page .upto here is ok
    and i click back button from I.E only one page back it is showing
    but when user select the value form drop down menu 2nd time ,and after data get dipalyed in same apge a.jsp.then
    whne i click back button ,now it is showing two a.jsp page .history is not going .
    this is the problem.i dont want to this morw than one page get displayed in back button.only one page a.jsp
    if anyone has understood my problem ,please help.
    thanku

    thanks java2006
    but it is not working .i will try to explain once again
    1. one page called a.jsp.this page contains one drop drown menu list box ,and one submit button.
    2.data in drop dropdown is coming from db.as the user select value from drop down box .relalted value is diplayed on same a.jsp page.
    3.again user select the 2ndvalue from drop down box ,related value is displayed.
    this i explained about my a.jsp page.
    problem is
    4.when user select the 1st value and clcik on submit button related value is displaying.upto here its ok.and in back button of Internet explorer it is showing only one a.jsp page
    5.but whenever i am trying to see 2nd or 3rd or more value from drop down after related value is being diplayed in same a.jsp page.
    the back button of internet exlorer showing two a.jsp page after clcicking submit button
    .as u have told the code aso but it is not working
    i have added ur code indisde html tags .

  • Java Mail Problems within JSP Page

    Hi all,
    I'm encountering the following problem. I hava a jsp file named common.jsp with holds all common functions like write header and footer and also a send mail function. i include this page in all my other jsp pages. In the signup page - i need to send out 2 emails, one to the administrator and the other to the user who signed up. so i call that send mail function twice. the first call works(meaning it sends out the email) but the second call gives me a No SMTP Provider exception. Can anyone help me with this.
    thx a bunch
    p.s: i have included the sendEmail Function below
    public void sendEmail(String emailServer, String sEmail, String sName, String rEmail,
         String subject, String strmsg) throws Exception {
         java.util.Properties props = new java.util.Properties();
         props.put("mail.host", emailServer);
         javax.mail.Session mailConn = javax.mail.Session.getInstance(props, null);
         javax.mail.Message msg = new javax.mail.internet.MimeMessage(mailConn);
         javax.mail.Address sender = new javax.mail.internet.InternetAddress(sEmail, sName);
         javax.mail.Address receiver = new javax.mail.internet.InternetAddress(rEmail);
         msg.setContent(strmsg,"text/html");
         msg.setFrom(sender);
         msg.setRecipient(javax.mail.Message.RecipientType.TO, receiver);
         msg.setSubject(subject);
         javax.mail.Transport.send(msg);
    }

    This is what i use and it works just fine
    import java.io.*;
    import java.net.InetAddress;
    import java.util.Properties;
    import java.util.Date;
    import javax.mail.*;
    import javax.mail.internet.*;
    public class sendMail {
    public sendMail(String To,String Subject,String message) {
    String to = To, subject = Subject, from = null,
              cc = null, bcc = null, url = null;
         String protocol = null, host = null, user = null, password = null;
         boolean debug = false;
         try{
    Properties props = System.getProperties();
         Session session = Session.getDefaultInstance(props, null);
         Message msg = new MimeMessage(session);
         if (debug)
              session.setDebug(true);
    msg.setFrom(new InternetAddress("[email protected]"));
         msg.setRecipients(Message.RecipientType.TO,
                             InternetAddress.parse(to, false));
         msg.setSubject(subject);
    msg.setText(message);
         msg.setHeader("Mail","test.com");
         msg.setSentDate(new Date());
         Transport.send(msg);
         System.out.println("\nMail was sent successfully.");
         } catch (Exception e) {
         e.printStackTrace();

  • Problems with JSP pages and BC objects

    Hi all. I have a new problem. I'm creating an application based on a database, using BC and JSP pages. I created entity objects from tables and then view objects. I put these view objects in an Application Module. When I test my view objects from This Application Module all works, but when I create a new JSP, I can't drag and drop any view objects in it. I'm using Jdev 10.1.2.
    Is there any one who can help me?
    Thank you,
    Caterina.

    I'm using the MVC pattern, so I have a Model directory that contains my BC, and a ViewController directory in which I want to create JSP pages with a Struts page flow.

  • EL problem in JSP page, boolean vs. String

    We are migrating from WebSphere 6 to WebLogic 11g and are receiving the following error from the JSP pages where we use EL to determine if an element is readonly or not:
    The method setReadonly(boolean) in the type BaseHandlerTag is not applicable for the arguments (String)
    In doing some testing I can simplify the problem to this:
    works (just using EL to set tab index)
    jsp:
    <c:set var="myTabIndex" value="765" />
    <html:text property="user.email" size="28" tabindex="${myTabIndex}" readonly="true" />
    source output:
    <input type="text" name="user.email" size="28" tabindex="765" value="[email protected]" readonly="readonly">
    doesn't work (added EL to set readonly attribute)
    jsp:
    <c:set var="myTabIndex" value="765" />
    <c:set var="myReadOnly" value="true" />
    <html:text property="user.email" size="28" tabindex="${myTabIndex}" readonly="${myReadOnly}" />
    error output:
    userProfile.jsp:60:86: The method setReadonly(boolean) in the type BaseHandlerTag is not applicable for the arguments (String)
    <html:text property="user.email" size="28" tabindex="${myTabIndex}" readonly="${myReadOnly}" />
    I'm not sure what is going on here and have spent two days researching this and trying different things to no avail. I don't believe any casting should be necessary. I thought for a while EL was not enabled but in my working sample EL is being used to determine tab index. The 'does not work' code works ok in WebSphere 6 and Tomcat 6, so it is just WebLogic we are having an issue with.
    Thanks in advance for any help that can be provided.
    Michael

    Found more output in the log file that might be helpful (this is output from the real code, not the sample code I mentioned previously):
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /WEB-INF/modules/ContactTile.jsp
    ContactTile.jsp:241:17: The method setReadonly(boolean) in the type BaseHandlerTag is not applicable for the arguments (String)
    readonly="${displayonly}"
    ^--------------^
    at weblogic.servlet.jsp.JavelinxJSPStub.reportCompilationErrorIfNeccessary(JavelinxJSPStub.java:226)
    at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:162)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:256)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:216)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:243)
    Truncated. see log file for complete stacktrace
    Michael

  • Problems with JSP-Pages in more than 1 Frame

    I have 4 Frames on my Page and every Frame is a JSP-Page. Every Page has different Data Tags, different View Objects etc.
    I could run each of the 4 Pages without getting an error-message, but after starting the Frameset-Page, I get the Error-Message:
    Error Message: JBO-27022: Failed to load value at index 1 with java object of type
    java.lang.String due to java.sql.SQLException.
    Now I press the Reload-Button of my Browser and it works !!!
    Could anyone help me ?

    Um, what am I missing? What is the work around? Is it impossible to use frames and data tag JSPs? Heino, how did you get around this problem?
    Do I have to create separate App Modules for each frame (yuck)
    Thanks!

  • Problem in jsp page

    hai everybody,
    I wrote a html page and jsp. In HTML we will take values and gets calculated in the jsp ,but jsp page is not working "CAN U GUYS HAVE A LOOK AND TELL ME"
    Thank you in advance.
    this is the html page.
    Specify the quantity you want to buy :
    CD Writer: $0.50/each :
    Floppy Disks: $10.99/package:
    Music CD: $15.50/each :
    this is jsp code:
    <%@ page language ="java"%>
    <%@ page import = "java.io.*"%>
    <HTML>
    <HEAD>
    <TITLE>Invoice process </TITLE>
    </HEAD>
    <BODY>
    <tr><td align=right><h2> Item Unit price Quantity SubTotal </h2></td>
         </tr><br><br>
    <%
         String x="0";
         String y="0";
         String z="0";
         double t1;
         double t2;
         double t3;
         x = request.getParameter("cd");
         y= request.getParameter("flopy");
         z = request.getParameter("cdmusic");
         t1 = (Integer.parseInt(x)) * 0.50;
         t2 = (Integer.parseInt(y)) * 10.99;
         t3 = (Integer.parseInt(z)) * 15.50;
    %>
         CDR      $0.50 <%= t1 %><br><br>
         Disks     $10.99 <%= t2 %><br><br>
         Music     $15.50 <%= t3 %><br>
    </BODY>
    </HTML>

    hai thanks for u r help, but now I am getting 0
    sorry, I don't know
    <%@ page language ="java"%>
    <%@ page import = "java.io.*"%>
    <HTML>
    <HEAD>
    <TITLE>Invoice process </TITLE>
    </HEAD>
    <BODY>
    <tr><td align=right><h2> Item Unit price Quantity SubTotal </h2></td>
         </tr><br><br>
    <%!
         String x="0";
         String y="0";
         String z="0";
         double t1;
         double t2;
         double t3;
    %>
    <%
              x = request.getParameter("cd");
              if (request.getParameter("cd")!=null)
              x= request.getParameter("cd");}
              else
              x= "0";
              y= request.getParameter("flopy");
         if (request.getParameter("flopy")!=null)
              y= request.getParameter("flopy");}
              else
              y= "0";
         z = request.getParameter("cdmusic");
         if (request.getParameter("cd")!=null)
              z= request.getParameter("cdmusic");}
              else
              z= "0";
    %>
         <%
         t1 = (Integer.parseInt(x)) * 0.50;
         t2 = (Integer.parseInt(y)) * 10.99;
         t3 = (Integer.parseInt(z)) * 15.50;
         %>
         CDR      $0.50 <%= t1 %><br><br>
         Disks     $10.99 <%= t2 %><br><br>
         Music     $15.50 <%= t3 %><br>
    </BODY>
    </HTML>

  • Problem in Jsp page it  doesnt shows users from database

    hi dear all...
    in my project i am creating new user by user registration(filling all details UserId,Passwd,retypepwd,name,emailid,dob,mob.no.,images-browse) so it will stored in my backend database oracle which is shown by using sql commands i.e.select * from userdetails until its ok BUT I FACE PROBLEM WHEN I CLICK VIEWUSERS IN MY JSP PAGE IT DOESNOT SHOW THE USERS...IN ECLIPSE10 I GOT ERRRO AS BELOW..
    log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.BeanUtils).
    log4j:WARN Please initialize the log4j system properly.
    in registerDAO connection is .oracle.jdbc.driver.T4CConnection@15c998a
    in dao dob5-Mar-2013
    qqqloginid
    photo=C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Winter.jpg
    fole=105542
    java.lang.NullPointerException
         at com.multistep.action.RegisterAction.doPost(RegisterAction.java:76)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Thread.java:619)
    ANY HELP APPRICIATED.....
    -AVINASH

    You should format that date. See SimpleDateFormat in Java API.

  • Plugin problem in JSP page with applet

    i am using applets in my jsp page. the applet works properly if the java plugin is installed. it is not working with the default jvm.
    my question is
    if any client who does not have java plug in, views the page the plugin should be downlaoded automaticllly.
    how do i get this happen.
    Need support from Applet Gurus
    Cheers!!!!!!!!!!!!!!

    If you are using the <applet> tag, then it will not try to download the plugin. You should use the <object> and <embed> tags, which will only use the plugin, not the default JVM.
    See the bottom of this page...
    http://java.sun.com/products/plugin/1.3/docs/intranet.html
    Only IE has a JVM built-in (and Netscape 4.x, if anyone still uses it). And in either case, that JVM is version Java 1.1.4, so it's very old.

  • Problems opening JSP pages through netbeans

    I recently upgraded from netbeans 5.5RC1 to netbeans 5.5 and am no longer able to open JSP pages. I am still able to edit java pages and I am still able to compile/build packages, however I get the following error when attempting to open the JSP pages. Any input/help would be appreciated.
    Thanks,
    java.lang.StackOverflowError
         at java.io.Win32FileSystem.normalizePrefix(Win32FileSystem.java:76)
         at java.io.Win32FileSystem.normalize(Win32FileSystem.java:107)
         at java.io.Win32FileSystem.normalize(Win32FileSystem.java:170)
         at java.io.File.<init>(File.java:196)
         at org.netbeans.modules.masterfs.ResourcePath.getFile(ResourcePath.java:64)
         at org.netbeans.modules.masterfs.MasterFileObject.isValid(MasterFileObject.java:86)
         at org.netbeans.modules.masterfs.Cache.get(Cache.java:68)
         at org.netbeans.modules.masterfs.Cache.getOrCreate(Cache.java:89)
         at org.netbeans.modules.masterfs.MasterFileObject.getParent(MasterFileObject.java:537)
         at org.openide.filesystems.FileUtil.isParentOf(FileUtil.java:971)
         at org.netbeans.modules.java.freeform.Classpaths.findClassPathImpl(Classpaths.java:139)
         at org.netbeans.modules.java.freeform.Classpaths.access$000(Classpaths.java:85)
         at org.netbeans.modules.java.freeform.Classpaths$1.run(Classpaths.java:123)
         at org.openide.util.Mutex.readAccess(Mutex.java:227)

    This happens very frequently during development, I just do ctrl+F5 in IE to keep refreshing till I finally get a response back from the jsp or servlet... usually it takes about 2-4 refreshes to get the jsp to respond and after that its smooth till you change the jsp or restart Apache. Also this problem, in my experience, is associated with Apache forwarding requests to OSE via mod_ose and I dont see this problem if I access the jsp directly using the database listener http endpoint.
    Hope this helps.

  • All of a sudden I have problems printing web pages wwith Firefox 3.6.8 (XP), but printing pdf pages is still fine (printing with other software as well)

    Suddenly I can't print web pages with Firefox 3.6.8 anymore, but pdf pages pose no problem - the same applies to printing with any other software

    Thanks edmeister for your trouble!
    I guess I should have written that I had tried the tips on 'reset printer' and 'does not print to paper at all' before I posted the question - to no avail.
    The printer starts as normal: it's the right printer selected, the dialogue window shows the progress of sending the data to the printer - and after that: that's it. It simply vanishes from the queue, and nothing happens.

  • Occasional problem loading JSP page

    Sometimes the server cannot load a JSP. This is a problem that comes and goes. One minute it will work, and the next minute it will not. Has any one else seen sporadic behaviour like this?Here is an excerpt from the weblogic.log:Mon Nov 20 09:42:12 EST 2000:<E> <ServletContext-Servlets> Error loading servlet: jsp._ps._synchrony._sales._funNewMon Nov 20 09:42:12 EST 2000:<E> <ServletContext-Servlets> java.lang.ClassNotFoundException: jsp/_ps/_synchrony/_sales/_funNewat java.lang.ClassLoader.findSystemClass(Compiled Code)at weblogic.utils.classloaders.GenericClassLoader.parentLoadClass(Compiled Code)at weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Compiled Code)at weblogic.utils.classloaders.GenericClassLoader.loadClass(Compiled Code)at weblogic.utils.classloaders.GenericClassLoader.loadClass(Compiled Code)at weblogic.servlet.internal.ServletContextImpl.loadClass(Compiled Code)at weblogic.servlet.internal.ServletStubImpl.prepareServlet(Compiled Code)at weblogic.servlet.internal.ServletStubImpl.getServlet(Compiled Code)at weblogic.servlet.internal.ServletStubImpl.isStale(Compiled Code)at weblogic.servlet.JSPServlet.getStub(Compiled Code)at weblogic.servlet.JSPServlet.service(Compiled Code)at javax.servlet.http.HttpServlet.service(Compiled Code)at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)at weblogic.servlet.internal.RequestDispatcherImpl.forward(Compiled Code)at sync.server.util.ServletUtils.forward(Compiled Code)at sync.server.bs.CAHandlerServlet.doPost(Compiled Code)at javax.servlet.http.HttpServlet.service(Compiled Code)at javax.servlet.http.HttpServlet.service(Compiled Code)at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)at weblogic.socket.MuxableSocketHTTP.invokeServle
              

    Sometimes the server cannot load a JSP. This is a problem that comes and goes. One minute it will work, and the next minute it will not. Has any one else seen sporadic behaviour like this?Here is an excerpt from the weblogic.log:Mon Nov 20 09:42:12 EST 2000:<E> <ServletContext-Servlets> Error loading servlet: jsp._ps._synchrony._sales._funNewMon Nov 20 09:42:12 EST 2000:<E> <ServletContext-Servlets> java.lang.ClassNotFoundException: jsp/_ps/_synchrony/_sales/_funNewat java.lang.ClassLoader.findSystemClass(Compiled Code)at weblogic.utils.classloaders.GenericClassLoader.parentLoadClass(Compiled Code)at weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Compiled Code)at weblogic.utils.classloaders.GenericClassLoader.loadClass(Compiled Code)at weblogic.utils.classloaders.GenericClassLoader.loadClass(Compiled Code)at weblogic.servlet.internal.ServletContextImpl.loadClass(Compiled Code)at weblogic.servlet.internal.ServletStubImpl.prepareServlet(Compiled Code)at weblogic.servlet.internal.ServletStubImpl.getServlet(Compiled Code)at weblogic.servlet.internal.ServletStubImpl.isStale(Compiled Code)at weblogic.servlet.JSPServlet.getStub(Compiled Code)at weblogic.servlet.JSPServlet.service(Compiled Code)at javax.servlet.http.HttpServlet.service(Compiled Code)at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)at weblogic.servlet.internal.RequestDispatcherImpl.forward(Compiled Code)at sync.server.util.ServletUtils.forward(Compiled Code)at sync.server.bs.CAHandlerServlet.doPost(Compiled Code)at javax.servlet.http.HttpServlet.service(Compiled Code)at javax.servlet.http.HttpServlet.service(Compiled Code)at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)at weblogic.socket.MuxableSocketHTTP.invokeServle
              

  • In 10.0.7 have problem with Title "Page Type" Remaining on Title Page Editing area.  How do I fix this?

    This problem remains even though I keep removing it....every time I add new Title to the clip, it adds the Page Type to All my titles in the project (edit) area.  I use several in my film clips.  How do I fix it?

    Maybe you know, but just to be clear, you can get rid of it (one by one) - by editing the "Name" field under the Info tab on the title clip
    But please make a suggestion - http://www.apple.com/feedback/finalcutpro.html
    I've requested they take this strange feature away as well.
    I'm still trying to imagine how anyone could find it useful - who cares what the "type" of the title is, enough to show it at the expense of the title itself?

  • Syntax problem in JSP page (PDKSTRUTS tag)

    I have got a Struts project inside JDev 10.1.2.
    Here is a part of my source code project:
    <a href="procedure.do?event=DrillDown&procName=<c:out
    value=${Row['Name'}"/>">click here
    I am deploying this project inside Portal, so I am using PDK-STRUTS tag for
    rewriting some specific tags (error, form, a, ...).
    This part of source code must be replaced using LINK tag:
    <pdkstruts:link action="procedure.do?event=DrillDown&procName=<c:out
    value="${Row['Name']}"/>">click here</pdkstruts:link>
    The following error message appears at compilation:
    Error(31): Attribute: ${Row['Name']}"/ is not a valid attribute name
    I think that this is a problem with the "dynamic" part of my link, generated by
    <c:out value="${Row['Name']}"/> command.
    I have also tried to following: (<c:out value=\"${Row['Name']}\"/>)
    Compilation is ok but the <c:out> tag is not interpreted.
    The question is : How can I translate this URL for preventing this error and
    correctly interpretating the <c:out> tag ?

    one thing i noticed from your codes, you missed the < ) > character.. try to look at your codes

  • I have problem loading Facebook page.

    Recently I'm getting trouble when I log onto my Facebook page, the rest of the browsing is ok, not 100% as it should but not as worse as Facebook page. I contacted Facebook and they say that is safari's fault. what should I do ?

    Woo-hoo! No replies after a year! Go Apple! Really helpful.
    Not.

Maybe you are looking for

  • Error in installing XL reporter PL 30

    Hi All,                when i am installing XL reporter PL 30 in windows server 2003. it is throwing error at the time of connection to SQL server. screen of XL-reporter installation error is : SQL server login. where we have to give the server login

  • Help for a Designer

    I have a quad core imac with os 10.7.2. I am using Flash Builder 4.5 with the latest AIR sdk. I am trying to create an app that can convert and manipulate a collada file. Papervision, Flartoolkit and the ColladaAIR Viewer is installed in FB. I am usi

  • Crystal Reports 8.5 - Mad request

    Hi guys, I'm here for asking a "mad" question (I know that Crystal Reports 8.5 is a 10+ years old version). A software (written in VB6) developed by the software house where I work still uses Crystal Reports 8.5 and, at the moment, I can't upgrade Cr

  • How to design extractor can have only current Fiscal Year data.

    Dear Experts, I require a full upload DSO , which can have only current fiscal year data . I have created view putting there certain conditions for minimising the data size. How i can restrict it , to have only current fisacal year data for YTD repor

  • Unable to see Macintosh HD with Alt Option

    Hi, I am novice user in OSX Systems, and i trying to install the OS from the scratch but i don t know why ... i dont see the internal HDD to install I tried two diffrent options, after erase the HDD with GUID partition using the Disk Utility Option.