How to combine servlet and jsp

I'm doing a project. My friend using jsp. and i using servlet..
we are confused, how to combine servlet and jsp. or we can just use redirect??
but it's still doesn't work properly...thanks for your helpp

You can use RequestDispatcher interface for calling a JSP from a Servlet, or vice-versa.
Following is the code for sending output to a JSP page from a servlet:
javax.servlet.RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(�/Ashu.jsp�);
request.setAttribute(�Name�,�Ashutosh�);
dispatcher.forward(request,response);
- Ashutosh

Similar Messages

  • How to use servlets and JSP for my homepage?

    servlets and JSP are server-side program. If my homepage is on some web-hosting websites, can I upload the servlets and JSP to run it? if possible, where can I find such a web-hosting place?
    sraiper

    Not many hosts offer JSP or Servlet support (and some do but then stop and never give you a refund, grrrrrrr!!!!).
    Also, ones that do support it can often be more expensive. There are some free ones but all the one's I've come across have problems that made them unsuitable for my needs.
    Here is a list of hosts that support Java:
    http://www.thejspbook.com/resources/category.jsp?id=1005&name=JSP+web+hosting
    I can't comment on any from that list, however I use http://www.positive-internet.com they are a bit pricey but they have excellent support and are always happy to help with any Tomcat (the JSP/Servlet server they use)configuration issues or needs that you may have.

  • How to install servlet and jsp on win xp?

    I am new in jsp and servlets. I would like to follow some jsp books and examples. The j2eesdk-1_4-dr-windows-eval.exe is already installed on my computer. I can write and run java codes. I downloaded the jsp-2_1-edr-api.zip file from http://java.sun.com. I extracted and moved to dir:\Sun\AppServer\ folder. When I search, I cannot see any jsp.jar file as some documents say, nor servlet.jar. How can I install jsp and servlet on windows xp? Any help? I will be very grateful.

    For starters, you would probably have better luck getting an answer on the general Java forums, since this a very general question- it is hard to see how this is specific to the Web Application Framework technology, except of course that it uses JSP and servlets naturally,
    But to try to help you here, more information is needed: from exactly where are you do\wnloading the file jsp-2_1-edr-api.zip and what is the product title of this file? I ask this since a general search of sun.com returns no evidence of the existence of this file.
    Also, what documents are being referred to here?
    Thanks

  • How to run servlet and jsp in Eclipse

    i am trying to run a jsp and servlet file in Eclipse its showing error in editor its self.

    yep, eclipse can do that. I've never done it, but
    Tomcat needs to have remote debugging enabled, which
    means you need to use the tomcat that WASN'T
    installed by an installer. don't ask me why, ask the
    boys at Jakarta! eclipse attaches itself to the
    debugger in some way or other. I dunno. there's a
    book called Eclipse Distilled that only costs about
    ?10 or so and has a chapter on doing exactly this, if
    you're using Eclipse for fairly advanced stuff like
    this, I'd invest in a copy of that. well worth the
    moneyTry [url http://www.eclipse.org/webtools/]WTP★ plugin (Web Tools Platform). I am using this plugin, and as far as I know it is free. You just have to install Tomcat normally, and configure WTP plugin to pointing that Tomcat. You can run, debug, do everything you want.

  • Apache web server / run Servlets and JSP

    Hello. I need to know how to run servlets and JSP's with Apache web server

    install Tomcat and use it alongise of apache. Apache cannot serve either servlets or jsp's on its own

  • Servlet and JSP combination and design issue

    My task is to generate the list box dynamically based on the input XML file.
    I create a JSP page and a servlet.
    http://www.myserver.com/page1.jsp
    In page1.jsp, I have the following to call servlet from JSP page
    <jsp:include page="myproj.TableGeneration"/>
    In my case, I think I don't need servlet at all, but just Java Bean
    class to generate the table. And JSP page call that Java Bean class.
    But in what situation we need the combination of servlet and JSP?
    What do you think? Any ideas? Thanks!

    Trying to keep the data separate from the view is always a good idea
    I have used XML in a similar way - the XML is the data, this is read and it is uses to populate various page beans - the beans are then simply used in the JSP page to get the information only

  • Creating FOrums with Servlet and JSP

    Hi everyone,
    Is there a good resource that explains how to build a forum using servlets and JSP technology?
    Regards,
    Basil Mahdi

    please let me know here if you find any useful resources...I am in the process of writing my own searchable threaded forum for my company with JSP's/servlets. It's a very slow process at the moment though...if I ever finish it, I'll gladly share it.

  • InterMedia Java Classes for Servlets and JSPs and Netscape

    I am using the interMedia Java Classes for Servlets and JSPs to upload and retrieve multimedia data. I have found that it is much more performant in Internet Explorer (5.5) than in Netscape Communicator (4.7). In fact, I cannot upload images larger than 10K at all using netscape. However, the same image can be uploaded into the same application using IE. Is this a known issue?
    Thanks in advance.

    Hi,
    We have successfully uploaded multimedia data in the giga-byte range (Quicktime and AVI files) at the same speed with both the Netscape (4.7n) and MS IE (4.n and 5.n) browsers. One thing we have noticed is that its very important to set the manual proxy settings correctly if you have an environment with a proxy server. If you don't, then uploads can go via the proxy server and, for some reason, that seems to take considerably longer. For example, suppose you are in the www.xyzco.com domain and are connecting to a host named webserver.www.xyzco.com, then specify webserver and webserver.www.xyzco.com (to cover both cases) in the "Do not use proxy servers for..." box in the manual proxy server configuration screen. Also, if you're using a tool such as JDeveloper that uses the host IP address in the debugger environment, then you also need to add the numeric-based (nnn.nnn.nnn.nnn) IP address to this list.
    Hope this helps.
    In order to better understand the variety of ways in which our customers are using interMedia, we'd be very interested in knowing a little more about your application, the interMedia functionality that you are using, and how you are developing and deploying your application. If you are able to help us, please send a short email message with some information about your application, together with any comments you may have, to the Oracle interMedia Product Manager, Joe Mauro, at [email protected] Thank you!
    Regards,
    Simon
    null

  • JDBC installation for servlets and jsp

    Hello All,
    I am trying to use JDBC for my web application. i have a book but not very detailed and cannot find a good search on google.
    they have said that the ODBC-JDBC bridge driver comes with jdk1.2 or forward. and ask me to set up an ODBC data source. so i went in control panel/systems tab and then try to add SQL and then when click finish it asks me how to connect to sql server, i entered my usename and password but says connection failed.
    This is my worst nightmare. please help so i can start building web application using servlets and jsp.

    Let me tell you right now, you have BORING nightmares.

  • What do I need to compile and run Servlets and JSP?

    Hi there,
    What do I need to run Servlets and JSP? I am developing on a Windows platform.
    As far as I know, Tomcat and JDK is needed. My JDK (1.3rc1) cannot seem to compile servlet files (javax.servlet.* not found)
    Can anyone please advise?
    Thank you in advance.

    If you mean "in a month", then the answer is "afaik, no.", sorry.
    If you need something comfortable, you better should buy one of these heavy-weighters like Weblogic, or WebSphere. Cost some $$$$'s, though (between 2000-10000. I guess).
    For servlets (and ejb's too), there is no "easy and quick" solution. You probably should think about buying a freelancer or such, which already has the appropriate know-how.

  • How to combine sales and delivery data

    hi
    i have requirement to make a report from sales as well as deliveries. Important fields in report are sales document , material , plant , sales document type , country key , sold to party , ordered quantity , delivered quantity , price from vakon ( KBETR ), actual goods issue date.
    The required extractors are 2LIS_11_VASCL, 2LIS_11_V_SSL ,2LIS_11_VAKON.
    Problem is how to combine sales and delivery data as V_SSL has different key figures.Multicube is not the solution as dont have plant , sold to party and many other fields in V_SSL.
    Kindly suggest how to combine sales and deivery data.
    Regards,
    Monika

    I guess you do have shipping point in delivery.
    In most scenarios shipping point may not(or) may be same like order plant.
    Although they are different you can still roll up the delivery information to order level by plant since you have order # available as reference key in delivery.
    With this reference key you can convert all delivery information to order (item) level.
    I guess you can use one merge ODS with one cube (or) with 2 ODS for each at order level for validation.
    You may have to map delivery type to order type as per R3 configuration as well.
    speak with any Logistics guys for help.
    cheers
    Martin

  • Servlet and JSP in OAS

    I'm developing web application with OAS
    4.0.8.1 and JDeveloper 3.0 and I want to call
    JSP from servlet using "RequestDispatcher".
    I downloaded JSP for OAS from www.olab.com.
    In the Release note, there is a description
    about RequestDispatcher, but I cannot
    understand about details.
    In what configuration can I use servlet and
    JSP together with RequestDispatcher. Anyone
    scceeded about that?
    null

    wan (guest) wrote:
    : Hi everyone,
    : I am using OAS 4.0.8 on Solaris 2.6. After viewing servlet
    : and JSP samples, I am kind of confuse whether OAS supports the
    : following options
    : 1. JSP
    : 2. servlet chaining
    : 3. running JDeveloper DB Servlet wizard
    : (oracle.jdeveloper.servlet.*) and Java Business Objects
    : (oracle.jbo.rt.cs)
    : Thank you for your time.
    I found a white paper 408newfead.pdf, that says under "Future
    Directions" that it will add jsp support. I read somewhere (I
    can't remember where exactly :( ) that said 4.0.8.1 would
    support
    JSPs. I don't know if this release is out yet.
    I wish Oracle would get with the times and put out a product that
    is consistent with the technology they are touting as the
    future.
    Having us download Suns server to run servlets and JSP is
    ridiculous for the worlds second largest software company!
    null

  • Serving Java Servlets and JSP

    I have a small hosting company and was wondering what is required to be installed on a Win2k Server to host Java Servlets and JSP pages for a client of mine?

    Ah, so you just want to add a servlet engine to IIS5?
    Tomcat can be used as a plugin for IIS. Check out the Tomcat FAQs - somewhere in there you should find one relating to using Tomcat as an IIS plugin. They're far more comprehensive than I could ever hope to be on the matter!

  • Eclipse Plugins for Servlets and JSP.

    Hi Guys,
    Can any one suggest where i can get the eclipse plugins for Servlets and JSP. May i am wrong posting this question in this forum. I already browsed thru all the forum to get the info but in vain. so any help will be appreciated.
    Thank You,
    cheers,
    thrinath.j

    [url http://www.eclipse.org/webtools/]http://www.eclipse.org/webtools/
    Regards

  • When to use servlets and jsp in an application like  shoping cart?

    Hi All
    I m going to design and implement a web application using servelts and jsp. I am still at its requirements analyze stage.
    The application is almost likely a shopping cart. So if any of you have the deep knowledge about this domain with servlets and jsp please help me for a good design. What I realy need to know is that
    1. what are the core requirements for a shoping cart ?
    2. use cases ?
    3. best way to follow mvc with servlets and jsp for it?
    you can answer to this at the abstract level. no need to go in detail.
    if you have any documents like design and use cases mail me to [email protected]
    your cooperation is highly appreciated in this regards.

    Look into this kid
    http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-Session-Tracking.htm

Maybe you are looking for

  • Problem with iPod Touch Rebooting - Restore No Worky

    Out of nowhere my ipod touch started turning off on it's own. To turn it back on I can hit the power button on top, but after the white apple is displayed it shuts off agian. Never makes it to the home scrren. The only way to keep it on is to plug it

  • HTTP POST works on browser but not socketically

    I can post info using a simple html but i cant post using sockets.. InetAddress addr = InetAddress.getByName(hostname);             Socket socket = new Socket(addr, port);             String path = postpath;             BufferedWriter wr = new Buffer

  • Cairo-compmgr + Openbox + xf86-video-intel + mouse clicks issue

    When I start cairo-compmgr with Software Rendering, I face issue of clikable items not being highlighted when I hover mouse over them. Also, I have the issue of first item being selected automatically when I right click on certain apps. Is there anyt

  • Sql Loader - varchar with \n

    Hello, I don't know how to set SQL Loader contorl file to import following data. I have three columns: integer and varchar and integer. File to import looks like: <EXAMPLE datafile.txt> 1, 'Hello world', 111 2, 'Oracle Technology Network', 222 3, NUL

  • Row colored based on db field

    Hi there. 1st, thanks for taking time to read this and hopefully help. I have been given this website to work on an its pretty much done in java. Unfortunately I know very little about Java. Over the weeks I have been learning more and more, however