Requirements for building jsp pages

wht are the basic requirements for building jsp pages
or even 4 wrkin on j2ee..
new to j2ee and hv exp on j2se

It's depends what OS you have:
Windows -- IIS + Tomcat
Linux(FreeBSD) -- Apache + Tomcat (or Resin, but I prefer Tomcat);
Of couse you should have a text editor to edit *.jsp file :-)

Similar Messages

  • (Deployment) Minimum Software required for BUILD server and IIS WebServer

    We have a simple .Net SDK application written using VB-2005 and the Crystal Reports XI (R2) DEVELOPER package.
    The RPT files are posted on our BOE-XI (R2) server, and are called using the View-On-Demand method from the Page Server (similar to the SDK sample application). At some point in the future, our .Net applications may invoke some of the other SDK content types.
    In our environment, the .NET web-applications are checked-in to Clear Case, and then sent to a stand-alone BUILD server to be compiled. The compiled .NET web-applications are then posted to a stand-alone IIS WebServer (not the IIS server that hosts BOE InfoView/CMC).
    The BUILD server and IIS WebServer have to be as "stripped-down" as possible in order to go through our QAT and Impact Analysis process.
    So far we have had success if we deploy the SDK-only install from the Crystal Reports XI (R2) DEVELOPER package, and the service packs, but it doesn't include all the SDK components for other BOE content types.
    If we deploy the Client-only install from the BOE-XI (R2) package, and the service packs - it doesn't seem to include the CR-Viewer which we need. But it does includes a bunch of extra software (eg. UNIVERSE DESIGNER) on the desktop of the BUILD server and IIS WebServer that our QA guys don't like.
    What are the Minimum Software required for BUILD server and IIS WebServer to support CR and BOE SDKs...?
    Are there any install packages that contain JUST those components, and not all the extra software that is not needed to Build/Deploy in .NET...?
    Thanks in advance for the advice.

    Due to the CrystalDecisions.web.dll for the 2.0 framework being left off the BOE CD you will need to install the Crystal XI R2 runtimes as well as the BOE SDK.
    To get the BOE SDK launch the Enterprise XI R2 installer and choose Server Install - not Client Install.  Choose a Custom install.  You'll be presented with a drop down list for the Enterprise components.  Deselect everything and then look for the Developer Components option.  You may have to drill down into one of the levels to find it.  Under Developer Components you'll see the BusinessObjects Enterprise .NET SDK.  Select it to install it.
    Jason

  • Requirements for starting JSP

    Hi,
    I want to run a simple JSP pages.
    Can anyone tell me about the requirements for running JSP and how to configure the server and related stuffs.
    Also if you could let me know about the configurations and softwares required for installing and configuring the server.
    I was suggested to use Tomcat, but what is
    it and is that the only software I'll need
    to run JSP?
    Please be specify in your explanation as Im very new to this.
    Currently, Im using NT and only got JDK 1.3 installed on my PC.
    Thank you very much for your help.
    Regard.
    Tara

    Do the following steps first
    1. Install JavaWebServer2.0 on NT ServerJava Web Server is an outdated/unsupported product and currently not available for downlaod. Use Tomcat (http://jakarta.apache.org) or Resin (http://www.caucho.com) as JSP enabled web server.
    Read the tutorials mentioned at http://www.jspinsider.com
    2. Store your file with .jsp extension in
    "public_html" folder
    3. Start Services as following
    - go to control panel
    - double click on servercis
    - look for JavaWebServer and select it
    - Click on start button
    - close it
    3. Start IE5.0
    4. put the following in URL bar
    http://your_machine_name:8080/yourfilename.jsp
    JSP file
    <html>
    <title>My first Jsp program </title>
    <%
    out.println("<h1> Hello welcome Jsp Prgrms");
    %>
    </html>
    Get in touch, if any other probs.
    Happy learning JSP
    Husami
    /Sreenivasa Kumar Majjil.

  • How to Generate a Java file for a JSP Page

    Hi ,
    I am using weblogic11 .
    I am working on a JSP page which nearly consists of 4000 lines of code.
    I need to debug the file , but weblogic server is not generating the java file for the JSP pages .
    Please let me know how can i genertae Java file for the jsp pages ??

    JSPs are compiled into servlets automatically and those classes are stored in WEB-INF/classes folder. Servlet engine handles servlets.

  • Build jsp pages in Meta-data level?

    Hello! I want to know if in JDeveloper is possibility to build jsp pages from meta-data? That is if I define a new attribute somewhere, then the attribute will be defined in DB an all jsp pages in which I want?
    Best regards!

    Duplicate of JSP templates in Jdeveloper

  • JSP implementation class for a JSP Page

    Hello,
    It is very important for me to know ...
    - Do you consider that a JSP developer should know that each JSP Page becomes at run-time a Java Servlet ? And int the way that the Java code you have wrote in the JSP Page is dispatched in the declaration of this servlet ?
    He should know how the Java code generated by the server looks like ?
    Thank you all for your answers.
    Adriana

    Everybody's going to have their own opinion on this - here's my 2 cents.
    Theoretically, there are at least two roles here.
    #1. An expert in HTML, graphic layout, user interface etc.
    #2. A programmer who understands the technical infrastructure - Java, beans, servlets, database connections etc.
    In the perfect world, Role #1 would build JSPs and would not need to understand Java or the technical architecture. The JSPs would act as templates and not contain any Java code (e.g. scriptlets). Role #2 would build custom tags and beans for use in the JSPs.
    To answer your question, Role #1 should not understand how JSPs are translated to servlets, but Role #2 should.
    In reality, the two roles are often filled by the same person, usually a programmer who may introduce Java elements into the JSP. Once this occurs, then the JSP has become a program rather than a template and knowledge of its translation to servlets is necessary for debugging.

  • Setting Java class parameters for a JSP page

    Hi,
    I have a Java class that has a reference to a Session Id. I want to call a JSP from the class and set the session id to a String variable in the JSP. I am using a URL class to call the JSP. After the actual URL is passed to the URL constructor, I am appending the "?m_sessionId=e_session Id" at the end of the URL. In my JSP, I have the m_sessionId String parameter that i want to set e_sessionId to. What should i do in my JSP to set this? Any answers will be very helpful and I'd like to offer many thanks in advance
      public void loadSessionStuff(String sessionID){
       String e_sessionId = URLEncode.encode(sessionID);
       URL url = new URL("http://localhost:9000/MyJSP.jsp?m_sessionId="+e_sessionId);
       .....MyJSP.jsp looks something like this
       <%!
          String m_sessionId;
          public void setSessionId(){
           m_sessionid = request.getParameter("e_sessionId");    
           public String getSessionId(){
               return m_sessionId;
            other stuff....
        %>Is this the correct way to do things. It's not working.
    Regards
    R

    Hi Rahul,
    Yeah, i got that resolved. Do you know how i can get the thing in reverse gear. What i mean is i can successfully call and get the JSP to do things for me from my Java bean. What about sending stuff back to my bean?
    I want to send the List back to my calling class so i can work with it.
    Thanks
    Regards
    Jeeves
    My Java code is as follows
    Results i_krf = null;
      if(null != getSessionId()){                   
                    String e_sessionId = URLEncoder.encode(this.m_sessionId);
                    String eQuestion = URLEncoder.encode(sQuestion);
                    Object obj;               
                    String URL = "http://"+m_rea.getHostname()+":"+m_rea.getPort()+"/"+"SecondaryInitiator.jsp"+"?m_sessionId="+e_sessionId+"&question="+eQuestion;
                    URL url = new URL(URL);
                             URLConnection urlConn = url.openConnection();
                    ois = new ObjectInputStream(new BufferedInputStream(urlConn.getInputStream()));
                    while((obj = ois.readObject()) != null){
                         System.out.println("From OIS::"+obj.getClass());
                                    i_krf = (Reults) obj;
    <%@ page import = "java.io.*,java.sql.*,java.util.*"%>
    <%
      String m_sessionId;
      String eQuestion;
      System.out.println("In the JSP Page. Scriptlet part");
      m_sessionId = request.getParameter("m_sessionId");
      eQuestion = request.getParameter("question");
      System.out.println("Session Id in JSP::"+m_sessionId+"::"+eQuestion);
      Results i_krf = loadSession(m_sessionId);
      if(null != i_krf){
       System.out.println("NOT NULL::");
       List list = i_krf.getPathList(eQuestion);
       for(Iterator it = list.iterator();it.hasNext();){
        PathKeys pk = (PathKeys) it.next();
        System.out.println("PATH::"+pk.getPathKey());
    %>
    <%!     
         Shopper m_sSession = null;
         Results i_krf;
         public Results loadSession(String m_sessionId){
          if(null != m_sessionId){
            m_sSession = Shopper.findShopSession(m_sessionId);       
            System.out.println("Session ID from JSP"+m_sessionId);
            if(null != m_sSession ){
              i_krf = new ResultsImpl(m_sSession );
          return (null==i_krf?null:i_krf);
    %>

  • How to set an 'alias' for a JSP page in web.xml

    Hi
    Suppose I have a JSP page called SimplePage.jsp and I want to refer to it by someother name while running the application how do I do this in the web.xml file. I have used <servlet-mapping> to do this in the case of a servlet. However I am not sure how to do this with a JSP
    Could somebody show me how to do this. I would be very much grateful.
    All help appreciated and acknowledged.
    thanks in advance
    ilango

    It worked. The correct web.xml version is as below:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app SYSTEM "http://java.sun.com/dtd/web-app_2_3.dtd" [
    ]>
    <web-app>
    <!-- Define servlets that are included in the example application -->
    <servlet>
    <servlet-name>ControllerServlet</servlet-name>
    <servlet-class>ControllerServlet</servlet-class>
    <init-param>
    <param-name>base</param-name>
    <param-value>http://localhost:8080/MVCIIapp/servlet/ControllerServlet</param-value>
    </init-param>
    <init-param>
    <param-name>jdbcDriver</param-name>
    <param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value>
    </init-param>
    <init-param>
    <param-name>imageUrl</param-name>
    <param-value>http://localhost:8080/MVCIIapp/images/</param-value>
    </init-param>
    <init-param>
    <param-name>dbUrl</param-name>
    <param-value>jdbc:odbc:Burnaby</param-value>
    </init-param>
    <init-param>
    <param-name>ilangocal</param-name>
    <param-value/>
    </init-param>
    <init-param>
    <param-name>mangla</param-name>
    <param-value/>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>Header</servlet-name>
    <jsp-file>/MVCIIapp/jsp/Header.jsp</jsp-file>
    </servlet>     
    <servlet-mapping>
    <servlet-name>ControllerServlet</servlet-name>
    <url-pattern>/Master</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Header</servlet-name>
    <url-pattern>/Opener</url-pattern>
    </servlet-mapping>     
    </web-app>
    I have other jps files too.I am going to try and put aliases for them and see how they perform.
    I hope I have not spoken too soon by saying that the aliases work. Let me wait and watch with bated breath.
    But thanks a lot for your suggestions without which this would not have been possible
    ilango

  • Why does people use JSP Tag for their JSP page? (Urgent)

    I don't know what benifit if I am using JSP Tag.
    If anyone knows, pls give me an idea and the advantage of using JSP Tag in JSP Page!
    Thanks in advance!

    You have to read a little about JSP, JSP stands for JavaServer Pages, you can use jsp tags and you can use java code. If you dont want to use jsp tags then you should just write html file, if you just want to use java, then write java class or a servlet.
    The need for jsp arised because people were inserting html code inside a servlet class..a big no no..and a headache. JSP separate model from the view...read a little about MVC-2 model view controller pattern.
    Also read some tutorial on this website...good luck
    K

  • How can i  apply this  java program for  a jsp page?

    import java.io.*;
    import java.util.*;
    public class FileProcessing
      //create a vector container  for the input variables
         Vector variables = new Vector();
      //create a vector container for the constants
         Vector constants = new Vector();
      /*create a string expression container for the equation
         as read from the file */
         String expression = " ";
      //create double result container for the final result
         double result = 0;
         public boolean processFile(String filename,String delim)
          //index for values vector
              int num_values = 0;
          //index for constants vector
              int num_constants = 0;
          //current line being read from the external file.
              String curline = " ";
          //start reading from the external file
              try
                   FileReader fr = new FileReader(filename);
                   BufferedReader br = new BufferedReader(fr);
                   while(true)
                        curline = br.readLine();
                        if(curline == null)
                             break;
                    //determine the type of current interaction
                        boolean variable = curline.startsWith("input");
                        boolean constant = curline.startsWith("constant");
                        boolean equation = curline.startsWith("equation");
                        boolean output = curline.startsWith("result");
                   //on input variables
                        if(variable)
                          StringTokenizer st = new StringTokenizer(curline,delim);
                          int num = st.countTokens();
                          int count=0;
                          while(st.hasMoreTokens())
                               String temp = st.nextToken();
                               if(count==1)
                                    byte b[]= new byte[100];
                                    System.out.println(temp);
                                    System.in.read(b);
                                    String inputval = (new String(b)).trim();
                                    variables.add(num_values,inputval);
                                    num_values++;
                               count++;
                        // on constant values
                        if(constant)
                             StringTokenizer st = new StringTokenizer(curline,delim);
                             int num = st.countTokens();
                             int count = 0;
                             while(st.hasMoreTokens())
                                  String temp = st.nextToken();
                                  if(count==1)
                                       byte b[]= new byte[100];
                                       System.out.println(temp);
                                       System.in.read(b);
                                       String cons = (new String(b)).trim();
                                       constants.add(num_constants,cons);
                                       num_constants++;
                                  count++;
                        // on equation
                        if(equation)
                             StringTokenizer st = new StringTokenizer(curline,delim);
                             int num = st.countTokens();
                             int count = 0;
                             while(st.hasMoreTokens())
                                  String temp = st.nextToken();
                                  if(count==2)
                                       this.expression = temp;
                                  count++;
              // now we are ready to evaluate the expression
                       if(output)
                          org.nfunk.jep.JEP  myparser= new org.nfunk.jep.JEP();
                          myparser.setAllowAssignment(true);
                          for(int i=1;i<variables.size()+1;i++)
                             String name = "arg"+Integer.toString(i);
                             myparser.addVariable(name,new Double(variables.get(i-1)
                                                .toString()).doubleValue());
                          for(int i=1;i<constants.size()+1;i++)
                               String name = "arg" +Integer.
                                         toString(i+variables.size());
                               myparser.addConstant(name,new Double(constants.get(i-1).toString()));
                   //output is obtained as follows
                          myparser.parseExpression(expression);
                          result = myparser.getValue();
                          System.out.println("Assay value: "+result);
              catch(Exception e)
                   System.out.println(e.toString());
              return true;
         public static void main(String[] args)
              FileProcessing fp = new FileProcessing();
              fp.processFile("input.eqn",":");
    }//my text file name is: "input.eqn" (given below)
    input:Enter Value1:arg1
    input:Enter Value2:arg2
    input:Enter Value3:arg3
    constant:arg4
    constant:arg5
    Equation:arg1+arg2+arg3
    result:

    how can i apply this java program for a jsp pagewhy do you want to do this ?
    Your program reads from a file on the disk and formats based on a patterm.
    Jsp is not intended for such stuff.
    ram.

  • How to Use tag in JDeveloper 9i for a JSP Page

    Hi ,
    I am working on JDeveloper 9i. I have a problem that i use JSP page and two tag[b] fmt and core. The uri passed to taglib is http://java.sun.com/jsp/jstl/core and http://java.sun.com/jsp/jstl/fmt. i also have two jar file standard.jar and jstl.jar. when i compile the jsp page, the errors reflect " TAG is not registered". Can any one tell me that how can i use the tags in a jsp page in jdeveloper 9i.
    Thanks

    Hi ,
    I am working on JDeveloper 9i. I have a problem that i use JSP page and two tag[b] fmt and core. The uri passed to taglib is http://java.sun.com/jsp/jstl/core and http://java.sun.com/jsp/jstl/fmt. i also have two jar file standard.jar and jstl.jar. when i compile the jsp page, the errors reflect " TAG is not registered". Can any one tell me that how can i use the tags in a jsp page in jdeveloper 9i.
    Thanks

  • Define a request attribute for a JSP Page

    Where do I need to define the request parameters
    that will be read by my JSP Page?
    If I have a JSP:
    <% String userName = request.getParameter("name") %>Where shud the attribute name be defined so that its value is read
    by the JSP Page?
    Does it need to be defined in the tag lib as an attribute?

    Where do I need to define the request parameters
    that will be read by my JSP Page?It can be a HTML form field in another JSP from which the request comes to this JSP. Alternatively, it can be a parameter passed through the URL like
    http://myhost/myapp/myjsp.jsp?name=Richard

  • Security for a jsp page

    Hi everybody I have a question , I do I give access certain access
              permission to s specific page
              For example , some one come to my site and is at
              A.jsp after validating it takes them to B.jsp. How do I gaurantee that the
              world can't just access the page by typing the url of B.jsp ?
              Thank you
              -John
              

    Put security on B.jsp in your deployment XML file? That's what it is for.
              Check the Servlet spec for details.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              Clustering Weblogic? You're either using Coherence, or you should be!
              Download a Tangosol Coherence eval today at http://www.tangosol.com/
              "John" <[email protected]> wrote in message
              news:3c5f070b$[email protected]..
              > Hi everybody I have a question , I do I give access certain access
              > permission to s specific page
              > For example , some one come to my site and is at
              > A.jsp after validating it takes them to B.jsp. How do I gaurantee that the
              > world can't just access the page by typing the url of B.jsp ?
              > Thank you
              > -John
              >
              >
              

  • How to collect STATISTICS for my jsp pages

    Hola gurus.
    I'd like to collect statistics for my website, for example on my main page and certain other pages. Ideally I'd like to code it myself rather than using an external tool.
    Has anybody done this, or can u recommend an approach ?
    Here's my thoughts so far:
    1. Since I dont want to slow down the presentation of my pages, the first idea is to position the code after the </HTML> tag.
    <HTML>
    </HTML>
    <% MyGreatApp.addStatisticForPageVisit(pageName); %>
    So, even if the action of updating the statistics takes 1 second, my web page won't be delayed by 1 second (right ? or should I multi-thread it ?)
    2. I can keep a memory cache of pages viewed versus session id's, so that my statistics can reflect distinct user sessions (instead of "page visits" which can be misleading if a user clicks 50 times on the one page).
    Maybe there is a neat java caching class that I can use.
    3. I can then "save" my cache of statistics to the db periodically (say, every 5 minutes) to reduce db load. (?) I'm using mysql for my app already.
    Any help / guidance greatly appreciated !
    Thanks for the help java community you r great.

    Sure, we do it. Every time the user requests one of a certain set of pages, we write a record to a table in a database. That's all. No mucking about with threads or caches or anything like that. If you have a database setup where it takes 1 second to write a record, you need to get that fixed right away.
    As for session ID versus user ID, it depends on what you need. We just log the user ID so we can see who is using what applications, but your requirements may differ. There's nothing preventing you from logging both. Also, I do not know whether session ID's are unique over a long period of time, but logging the date and time of access should help you to deal with that problem if it exists. Basically, don't put too much logic into your logging code, just throw records out at the database. Any filtering or selection should be done on the back-end system that analyzes the logs.
    PC&#178;

  • Requirement For Adding Extra page in Final Report

    Hi,
    I am generating a marketing report for the customer. All these reports will be 3-4 pages with last page.
    For certain type of marketing code I need to add a last page for customer approval with some notes.I can not have it as a last page in the same flow as it may not print summary on last page.
    How can I add extra page at the end of report based on conditions.
    Regards
    -Ashutosh

    You may create the last page as subtemplate and call it conditionally. Like
    <?template:lastpage?>
    All thee last page stuff goes here
    <?end template?>
    <?if: condition_to_have_the_last_page?>
    <?call:lastpage?>
    <?end if?>

Maybe you are looking for

  • Why no link to report piracy on Apple's web site?

    The is a user on Dallas Craiglist that is selling brand new iMacs with what must be $10,000 worth of software on it. Unfortunately Apple doesn't have a link to report piracy like Adobe does. http://dallas.craigslist.org/sys/653901964.html

  • No signal from Airport

    new imac has just arrived along with a wireless D-Link G ADSL2+ router from my service provider. I can connecct to the internet using the etehrnet cable connection with the router but not via airport. When I open "internet connect" there is no signal

  • Where is my Theater clip located on my mac, can't seem to find it anywhere but it shows up and plays in my Theatre just fine?

    I have a video clip in Theatre that plays fine, but I can't find the folder and when I try to save it as a file or share it, it brings up a wrong clip.  Where would that file be located if it is showing up in my Theatre library.  I've tried searching

  • What is Module pool??

    Hi What is module pool???? How to create an module pool???Can i have with example please. If any documents on module pool plz forward me to the following address [email protected] Regards Krishna

  • Proxy settings for dynamic ftp send port

    Does anyone have an idea how to configure the proxy settings when using a dynamic send port to connect to an ftp server? When using the FTP send port there is the property 'Server' to specify the proxy settings, but how would this be done with a dyna