How to apply ajax / XMLHttpRequest in jsp

Hi,
I would like to know how to apply the above in my jsp page. I did not use xml tag
for example:
I have 3 fields in the form. after user chosen the selected value from the listbox of the first field, the program will have to retrieve the data from the database based on the value user selected on the first field and display on the 2nd listbox and so on.
I cannot ask user to submit each time he has chosen the value, therefore I guess ajax can perform this.
pls help and provide me the example on how to do the above.
TQ

In a JSP use AjaxTags.
Ajax may also be implemented ina JavaScript/HTML page.
http://www.regdeveloper.co.uk/2006/06/09/ajax_web_tutorial/
http://www.regdeveloper.co.uk/2006/06/20/ajax_web_tutorial_part2/

Similar Messages

  • Hi, how to use URL encoding in jsp

    hi, how to apply URL encoding in jsp for a string, could u pls suggest some ideas to use URL encoding in jsp
    thank you in advance

    hi, thnx for the reply, but my problem is to use url encoding method
    i would u like to know how to represent in jsp program i have asp code some thing like this
    href='/project/tel_number.asp?team=<%=DbRecTeam("id")%>&name=<%=Server.URLEncode(DbRec("name"))%>'
    i would like to know how replace that Server.URLEncode stmt in jsp, could u pls suggest some equivalent method for the above stmt
    thanx in advance

  • How to use  SSL Technology in JSP.

    Can anybody Tell me that How to use SSL Technology in JSP ?
    I am using Apache Tomcat 5.0.28 Server.
    How to configure the Tomcat server so that it will access any web application supported by Tomcat via SSL ?
    Thank you very much in advance.

    The JSP does not need to know that the request is coming over SSL. If the application must be over SSL, but the server also allows non-SSL communication, then, like I said, you need to build in a Filter that will check if the incoming request is an https or http request and redirect to the https url if the request was http. And you can do that using the method listed in the previous post. As far as setting up the SSL certificate for Tomcat to use, refer to the Tomcat Documentation that comes with the server. Other than those two things, you don't need to know anything else about SSL inorder to run an SSL application through a Tomcat server (or any other enterprise server either, for that matter), but do an internet search for SSL and maybe one or two other keywords that apply to your situation and you should find plenty that will help.

  • How to use extends attribute in jsp page directive

    Can anybody tell how to extend a existing .jsp file from another .jsp file. I have tried but it gives error.
    I have used Extends attribute of page directive as below:
    <%@ page extends = "MyAnotherJsp.jsp"%>
    I also tried : <%@ page extends = "MyAnotherJsp"%>
    I am using Tomcat as a web server
    Also tell where to put those files.
    Thanks.

    Hi I am using Netbeans 5.5, Sun Java System Application Server 9.
    ABC.java
    package javapackage;
    public class ABC{
    public String show(){
    return "Sandip Gaikwad";
    index.jsp
    <%@ page extends="javapackage.ABC" %>
    <html>
    <head>
    <title>JSP Page</title>
    </head>
    <body>
    <h1>JSP Page </h1>
    </body>
    </html>
    Above code throws following exception at runtime:-
    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: Unable to compile class for JSP
    Generated servlet error:
    [javac] F:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\Page_Extends_Attribute_Example\org\apache\jsp\index_jsp.java:36: getPageContext(javax.servlet.Servlet,javax.servlet.ServletRequest,javax.servlet.ServletResponse,java.lang.String,boolean,int,boolean) in javax.servlet.jsp.JspFactory cannot be applied to (org.apache.jsp.index_jsp,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,,boolean,int,boolean)
    [javac] pageContext = _jspxFactory.getPageContext(this, request, response,
    [javac] ^
    [javac] 1 error
    Server log
    StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    [javac] F:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\Page_Extends_Attribute_Example\org\apache\jsp\index_jsp.java:36: getPageContext(javax.servlet.Servlet,javax.servlet.ServletRequest,javax.servlet.ServletResponse,java.lang.String,boolean,int,boolean) in javax.servlet.jsp.JspFactory cannot be applied to (org.apache.jsp.index_jsp,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,<nulltype>,boolean,int,boolean)
    [javac] pageContext = _jspxFactory.getPageContext(this, request, response,
    [javac] ^
    [javac] 1 error
    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:94)
    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:384)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:461)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:528)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:507)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:530)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:412)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:318)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    If I delete the line <%@ extends="javapackage.ABC"%> it works fine. Please tell me what is wrong with this line.

  • How to apply different CSS styles to different table cells?

    I have an h:dataTable table and I would like to apply different CSS styles to different table cells depending on their content. If I were doing JSP I would probably have a <c:if> test on the cells, and give them a style name depending on contents, and then define the styles in a separate style sheet. Is there a way in JSF to do the equivalent? Thanks.

    mitchgart wrote:
    BalusC wrote:
    How to achieve a cell-specific style is already answered in my 1st reply of this topic.That tells how to apply a style to the text (or other content) inside a cell but not how to apply a style to the <td> as a whole. It would work for something like text font or text color but not cell border.
    I'm thinking I can mark the content somehow and then have javascript traverse the DOM, find marked content, and traverse outward to the enclosing <td>. Is there a better way?BalusC already spoke about rowClasses and columnClass attributes, I assume those are insufficient.
    The Tomahawk dataTable component has the rowStyleClass and rowStyle attributes for assigning CSS to the HTML tr tag. One is allowed to reference the row data variable when assigning values to these. However, see https://issues.apache.org/jira/browse/TOMAHAWK-523 for workarounds to bugs in some implementations.
    The Tomahawk column component has the styleClass and style attributes for assigning CSS to the HTML td tag. These also may reference the row data variable.

  • How to Use Ajax Framework with Netbean6.0

    Hello Friends....
    I am using netbeans IDE to develop Java enabled web application
    now i want to use ajax technology in my webapp.
    So how can i use ajax with netbeans.
    I add Jmaki plugins in netbeans and i got various jmaki component but i dont know how to use them.....!
    Please somebody help me.........

    vasim_saiyad2000 wrote:
    Yes My Friend in the past i made a web application and all html, jsp and java code was written in notepad.
    I want that how to use ajax with java. IDE does not matter i wrote about netbeans because now i am very good aware of netbeans and i am using netbeans ide to develop my app.
    You just tell me how to use ajax with java like .net has some ajax toolkit in its palette..
    How can we use same thing in java /netbeans.Uh, look for a plugin which does that? Or, better, just write code yourself inside Netbeans.
    Can u tell one most import thing .......Suppose when user log in i have created session.
    Suppose user does not logout manually by clicking LOGOUT link its close directly browser so can be I sure that session may have been expired......!
    Please solve my this doubt.....!Implement HttpSessionListener and do the desired task in sessionDestroyed() method.

  • How to print new line in jsp page

    hi
    how to print new line in jsp page
    thanks

    \n - new line character is in java specific not HTML
    specific.Well, if the correct line separator sequence (by far not always \n) would be used, it does add a new line to the HTML output. Too bad that you don't want to see HTML but formatted text. The BR tag is a formatting element for the displayed text, not a line break in HTML. ;)

  • Urgent....How can i redirect to my jsp page from servlet in init() method..

    How can i redirect to my jsp page from servlet in init() method..Becoz that servlet is calling while server startsup..so im writing some piece of code in init() method..after that i want to redirect to some jsp page ...is it possible?
    using RequestDispatcher..its not possible..becoz
    RequestDispatcher rd = sc.getRequestDispatcher("goto.jsp");
    rd.foward(req,res);
    Here the request and response are null objects..
    So mi question can frame as how can i get request/response in servlet's init method()..

    Hi guys
    did any one get a solution for this issue. calling a jsp in the startup of the servlet, i mean in the startup servlet. I do have a same req like i need to call a JSP which does some data reterival and calculations and i am putting the results in the cache. so in the jsp there in no output of HTML. when i use the URLConnection i am getting a error as below.
    java.net.SocketException: Unexpected end of file from server
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:707)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:612)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:705)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:612)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:519)
    at com.toysrus.fns.alphablox.Startup.callJSP(Unknown Source)
    at com.toysrus.fns.alphablox.Startup.init(Unknown Source)
    at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
    so plz do let me know how to call a jsp in the start up of a servlet.
    Thanks
    Vidya

  • Macbook pro system running slow - etrecheck shows issues - any idea how to apply fixes?

    Hi I normally consider myself pretty web savvy but I'm totally lost on what to do here. This computer has been running slow since I got it, but the harddrive went sideways recently. I've never worked with a recovered drive - which I apparently have as my terminal lists my workfolder-2 so....I'm guessing I'm pretty screwed. I learned about etrecheck through the forums here but don't understand how to apply it
    Would anyone help me understand what I need to do?
    Here's my etrecheck:
    Problem description:
    very slow osx system even with only one or two apps open - standard 2013 macbook pro
    EtreCheck version: 2.1.5 (108)
    Report generated January 1, 2015 9:52:46 PM EST
    Click the [Support] links for help with non-Apple products.
    Click the [Details] links for more information about that line.
    Click the [Adware] links for help removing adware.
    Hardware Information: ℹ️
      MacBook Pro (13-inch, Mid 2012) (Verified)
      MacBook Pro - model: MacBookPro9,2
      1 2.5 GHz Intel Core i5 CPU: 2-core
      4 GB RAM
      BANK 0/DIMM0
      2 GB DDR3 1600 MHz ok
      BANK 1/DIMM0
      2 GB DDR3 1600 MHz ok
      Bluetooth: Good - Handoff/Airdrop2 supported
      Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
      Intel HD Graphics 4000 - VRAM: 512 MB
      Color LCD 1280 x 800
    System Software: ℹ️
      OS X 10.8.5 (12F45) - Uptime: 4 days 8:16:35
    Disk Information: ℹ️
      APPLE HDD HTS545050A7E362 disk0 : (500.11 GB)
      disk0s1 (disk0s1) <not mounted> : 210 MB
      Macintosh HD (disk0s2) / : 499.25 GB (310.25 GB free)
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
      HL-DT-ST DVDRW  GS31N disk1 : (369.9 MB)
      disk1s1 (disk1s1) <not mounted> : 54 MB
      disk1s2 (disk1s2) <not mounted> : 26 MB
      disk1s3 (disk1s3) <not mounted> : 34 MB
      disk1s4 (disk1s4) <not mounted> : 33 MB
      disk1s5 (disk1s5) <not mounted> : 65 MB
      disk1s6 (disk1s6) <not mounted> : 29 MB
      disk1s7 (disk1s7) <not mounted> : 26 MB
      disk1s8 (disk1s8) <not mounted> : 20 MB
      disk1s9 (disk1s9) <not mounted> : 36 MB
      disk1s10 (disk1s10) <not mounted> : 12 MB
      disk1s11 (disk1s11) <not mounted> : 35 MB
    USB Information: ℹ️
      Apple Inc. FaceTime HD Camera (Built-in)
      Apple Inc. Apple Internal Keyboard / Trackpad
      Apple Inc. BRCM20702 Hub
      Apple Inc. Bluetooth USB Host Controller
      Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
      Apple Inc. thunderbolt_bus
    Configuration files: ℹ️
      /etc/hosts - Count: 2
    Gatekeeper: ℹ️
      Mac App Store and identified developers
    Kernel Extensions: ℹ️
      /Applications/VMware Fusion.app
      [not loaded] com.vmware.kext.vmci (90.4.18) [Support]
      [not loaded] com.vmware.kext.vmioplug.10.1.24 (10.1.24) [Support]
      [not loaded] com.vmware.kext.vmnet (0104.03.86) [Support]
      [not loaded] com.vmware.kext.vmx86 (0104.03.86) [Support]
      [not loaded] com.vmware.kext.vsockets (90.4.23) [Support]
      /System/Library/Extensions
      [loaded] at.obdev.nke.LittleSnitch (4228 - SDK 10.8) [Support]
      [loaded] com.globaldelight.driver.BoomDevice (1.1 - SDK 10.1) [Support]
      [not loaded] com.waltop.iokit.driver.USBAtTablet (1.1.0) [Support]
    Problem System Launch Agents: ℹ️
      [failed] com.apple.accountsd.plist
      [failed] com.apple.CalendarAgent.plist
      [failed] com.apple.coreservices.appleid.authentication.plist
      [failed] com.apple.pbs.plist
      [failed] com.apple.printtool.agent.plist
      [failed] com.apple.tccd.plist
    Problem System Launch Daemons: ℹ️
      [failed] com.apple.wdhelper.plist
    Launch Agents: ℹ️
      [running] at.obdev.LittleSnitchUIAgent.plist [Support]
      [not loaded] com.adobe.AAM.Updater-1.0.plist [Support]
      [loaded] com.google.keystone.agent.plist [Support]
      [running] com.penpad.penpadtablet.plist [Support]
      [loaded] org.chromium.chromoting.plist [Support]
    Launch Daemons: ℹ️
      [running] at.obdev.littlesnitchd.plist [Support]
      [loaded] com.adobe.fpsaud.plist [Support]
      [invalid?] com.adobe.SwitchBoard.plist [Support]
      [loaded] com.github.GitHub.GHInstallCLI.plist [Support]
      [loaded] com.google.keystone.daemon.plist [Support]
      [loaded] com.microsoft.office.licensing.helper.plist [Support]
    User Launch Agents: ℹ️
      [loaded] com.adobe.AAM.Updater-1.0.plist [Support]
      [loaded] com.adobe.ARM.[...].plist [Support]
      [failed] homebrew.mxcl.postgresql.plist [Support]
    User Login Items: ℹ️
      Boom Application (/Applications/Boom.app)
      iTunesHelper Application (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
    Internet Plug-ins: ℹ️
      JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
      o1dbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Support]
      AdobeExManDetect: Version: AdobeExManDetect 1.1.0.0 - SDK 10.7 [Support]
      Silverlight: Version: 5.1.20513.0 - SDK 10.6 [Support]
      FlashPlayer-10.6: Version: 15.0.0.246 - SDK 10.6 [Support]
      WidevineMediaOptimizer: Version: 6.0.0.12757 - SDK 10.7 [Support]
      QuickTime Plugin: Version: 7.7.1
      Flash Player: Version: 15.0.0.246 - SDK 10.6 Mismatch! Adobe recommends 16.0.0.235
      googletalkbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Support]
      AdobePDFViewer: Version: 10.1.1 [Support]
      Autodesk123D32: Version: Autodesk123D32 1.0.6 - SDK 10.7 [Support]
      DirectorShockwave: Version: 12.1.3r153 - SDK 10.6 [Support]
    Safari Extensions: ℹ️
      Searchme [Installed] Adware! [Remove]
    3rd Party Preference Panes: ℹ️
      remoting_host_prefpane  [Support]
      Flash Player  [Support]
    Time Machine: ℹ️
      Time Machine not configured!
    Top Processes by CPU: ℹ️
          3% coreaudiod
          2% Activity Monitor
          1% WindowServer
          1% activitymonitord
          1% Google Chrome
    Top Processes by Memory: ℹ️
      168 MB Google Chrome
      49 MB Google Chrome Helper
      34 MB mds
      30 MB WindowServer
      26 MB Finder
    Virtual Memory Information: ℹ️
      93 MB Free RAM
      1.39 GB Active RAM
      1.35 GB Inactive RAM
      1.45 GB Wired RAM
      48.43 GB Page-ins
      17.53 GB Page-outs

    Searchme [Installed] Adware! [Remove]
    Start by going to Safari/Preferences/Extensions and un-install the above.
    17.53 GB Page-outs
    Adding some RAM would help. Even though you haven't restarted for 4+ days, this is a little high. The 2 places I’ve seen recommended most to buy reliable RAM are below. I have purchased RAM several times from Other World Computing and have always been very satisfied with the product and service. They have on-line instructions on how to replace the RAM. OWC has also tested RAM above what Apple states is the maximum. I now have 6GB installed on a machine supposedly limited to 4 GB.
    Crucial
    Other World Computing
    Activity Monitor – Monitor Performance Problems  
    Performance Guide
    Why is my computer slow
    Why your Mac runs slower than it should
    Slow Mac After Mavericks
    Things you can do to resolve slowdowns  see post by Kappy

  • How to apply an Outlook 2013 Open license to a pre-installed Office Home and Business 2013 installation for Email Auto Archiving functionality

    We're deploying new Dell pc's.
    Unfortunately we have a large existing install base of Office Home and Business in the field due to customers buying Office bundled on Dell machines.  Buying Open License Outlook licenses is more cost effective than upgrading to Office Pro Plus for all
    these users and is our preferred path.  We aren’t sure how to apply these Open License Outlook licenses since the Home and Business installations work off a single license key for all the applications

    Hi,
    Isn't the Office bundled on Dell machines already activated?
    If it's the OEM version that has been installed on the machines and you want to use retail product keys to activate the Office, it's not possible. You will need to uninstall the OEM version and install the retail version.
    You can check the OEM licensing system here:
    http://www.microsoft.com/OEM/en/licensing/productlicensing/Pages/office-2013-licensing-packaging.aspx
    To find more help about OEM depolyment, I should recommend you to get contact with the OEM Reseller Support System
    http://www.microsoft.com/OEM/en/Pages/contactus.aspx
    If I misunderstood anything, please feel free to post back.
    Regards,
    Melon Chen
    TechNet Community Support

  • How to enable the EL in jsp page

    hi can u tell 'how to enable the EL in jsp page'?

    *I am getting below exception in tomcat when i inclued +<%@ page isScriptingEnabled="true" isELEnabled="true"%>+*
    org.apache.jasper.JasperException: /index.jsp(1,1) Page directive has invalid attribute: isScriptingEnabled
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198)
         org.apache.jasper.compiler.JspUtil.checkAttributes(JspUtil.java:311)
         org.apache.jasper.compiler.Validator$DirectiveVisitor.visit(Validator.java:106)
         org.apache.jasper.compiler.Node$PageDirective.accept(Node.java:590)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2394)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
         org.apache.jasper.compiler.Validator.validate(Validator.java:1700)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:178)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

  • How to call BPEL process in JSP page

    Hi
    I am new to BPEL.please help me how to call BPEL process in JSP page.
    Thank You...

    Check this thread ....
    How can i call asyncronous BPEL process from Java Class????
    Tom..

  • How to Hightlight the Data in Jsp Page

    How to Hightlight the Data in Jsp Page,
    I am doing doing search page,based on values given search page those are sent to servlet,in servlet based on some conditions if particuler id i am getting then i am redirecting to Respective jsp page with highlight the data from database..
    Thanks in advance...

    "Highlighting data in JSP sounds strange".
    Without looking at your search specific algorithms I feel you are finally going to display a page (HTML content) to user which contains highlighted text. Highlighting is not directly related to server side language you use (JSP, ASP, PHP etc.). This is purely HTML and CSS. However, server side script (such as JSP) should generate HTML content for getting highlight effect.
    Following HTML shows highlighted text using background-color property on span element.
    <html>
      <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
      </head>
      <body>
          <p style="font-size:1.1em">This is a long paragraph which contains <span style="background-color: yellow;">highlighted text</span> and non highlighted text.</p>
      </body>
    </html>Thanks,
    Mrityunjoy
    Edited by: mrityunjoy on 14 Jun, 2010 3:30 AM

  • How to apply album cover picture to all songs on cd not just one at a time?

    i found agreat website with free cd covers for my songs that will show up in the corner of my ipod. but i can figure out how to apply the picture to all the songs in an alubm an dnot just one, i can only drag the picture into the box in itunes one by one.

    I highly recommend Album Cover Finder
    http://www.amphonicdesigns.com/albumcoverfinder/
    It's not free, but it's worth the small investment of 9 bucks.
    I just point it to my iTunes library and it batch uploads the artwork to every file automatically.

  • Can any one give me hint how to create(dsplay) calendar in jsp 1.2

    can any one give me hint how to create(dsplay) calendar in jsp 1.2
    friends
    i wants to display calendar (not the date) in tabular way please give me hint how to create it

    Hi,
    i would just add my question cos it looks similar , how can i add calendar of the whole year and let the user browse and select it
    thanX in advance

Maybe you are looking for

  • Print PDF file in Adobe Reader from Galaxy Tab 2 to HP Printer?

    Can someone please tell me an easy way to do this?  I've tried Cloud Print and Printer Share and neither one are very user friendly.  When I open my PDF in Adobe Reader on my tablet 2, the only printer listed is the Cloud Print.  This is a pain in th

  • 2 iTunes questions/issues

    I had to recently reinstall Snow Leopard, now I have to issues. 1) when I double click on songs in my iTunes the music doesn't play. I have to right click and then hit play, how do I enable double click again? 2) my iTunes is now set as my default in

  • Spotify Connect with remote- Can't pause

    I like using the Spotify app on my iPhone as a remote when I use Spotify playing from Desktop or iPad. However, I've never been able to pause a song. If I do, it instantly loses the connection to the main device. If I try to reconnect it says "Spotif

  • Executing ddl statment in pl/sql block

    Hi all, could anyone pls help in method for executing ddl statment in pl/sql block other than 'execute immediate' ?

  • Mail: return to the sender...

    Since I installed Lion I miss very much the possibility to return a mail to the sender. I wonder if it there´s any way to do it now. Regards.