What is the difference if jsp code in head section or outside of HTML

I am confused about what is the difference if I include jsp code inside <html><head> jsp code </head><html>, or outside of HTML tag?
What is the difference if I put the jsp code inside head senction or in the body section?
Thank you in advance!

I may want to output some result from my java code to the screen, so I can see some of the variable values.
If I use java code to get some variables before <HTML> tag, can I use <%=variable%> in the other sections like body or head to receive the results?

Similar Messages

  • What is the difference between jsp :include and server side include

    what is the difference between jsp :include and server side include(request dispatcher include method)????
    i understand that both request dispatcher include method and jsp:include take dynamic data,so when would one use request dispatcher include and when jsp:include.
    Is the usage interchangeable?i believe jsp include is used only for jsp/html but include directive can be used to include servlets ,jsp and html....correct me if i m wrong and
    do suggest if u hav ny other diff in this context...

    The difference really is: in what format do you want your inclusions? If your environment has many Java developers and only a few designers that focus mainly on, say, Flash, that might push you more towards the server-side include() directive. Or, if you have a large set of pages that receive dynamic content that is displayed in a consistent fashion (such as a workflow header area on a page).
    If, on the other hand, you have more web designers, there may be a greater desire to deal in markup rather than Java code. Java developers themselves might prefer to view markup (JSP) that more resembles the eventual output than something occuring in Java code.
    Finally, there are considerations of tiering. While it is totally possible to (and I have previously) implement 'view classes' that render markup or generate layout templates, JSP's offer, IMO, a subtle, psychological advantage. By forcing a developer to work in a different format, markup versus Java source, the separation on view from controller and model becomes a bit easier. It is still possible to make mistakes, but if a developer at some point notices, "Wait, I'm in a JSP, should I be importing a java.sql class?", then the choice to use JSP includes has paid off in spades.
    - Saish

  • What are the difference in transaction codes in 4.6 C and ECC 6.0 HCM syste

    Hi
    What are the difference in transaction codes in 4.6 C and ECC 6.0 in HCM SAP.
    Regards,
    Sanjay

    Believe there will not be any change in Tcodes.
    check these links
    http://solutionbrowser.erp.sap.fmpmedia.com/
    http://www.sap.com/solutions/business-suite/erp/pdf/BWP_ERP2006_Upgrade.pdf
    http://service.sap.com/releasenotes
    http://service.sap.com/upgrade for functional
    https://websmp105.sap-ag.de/upgrade

  • What's the difference between jsp and jsf?

    who can tell me what's the difference between jsp and jsf?
    I'm puzzled when I found some of the technology in jsp is so similar to the ones in jsp( javaserver page)

    Hi,
    Find the difference between JSP and JSF
    1. A developer has more control with JSP, but (should) get easier development with JSF
    2. Event handling is done differently in JSP (HTTP) and JSF (Java)
    3. The UI is designed differently (or should be at least) with JSP (markup) and JSF (components).
    4. The end product should also be defined differently - JSP page versus a JSF application.
    Is this the only thing that is need to make a decision for either or? Probably not. There are other pieces that need to be taken in account when deciding which technology to use - tools support, enough components, type of application etc.... At this point there are not enough JSF components (although there are some interesting projects underway - Ajaxfaces, Myfaces, ADF Faces, and WebChart 3d) and enterprise tools support is still limited to a few tools vendor. Looking at our ADF Faces components they are currently available as early access (not production) and demands for these components are stacking up, literally, outside my office doorstep. Although I would love to make them production - now! - it is not a viable solution since we are still checking features and fixing critical bugs.
    All this combined - not enough enterprise level components in production, lacking tools support etc... - leave customers in a vacuum where the decision is either to continue with JSP, since it is mature and has a wide developer base, or move forward with JSF not sure if the support, or the developers will be there. This is particularly sensitive to customers that need to get started now and be production by summer.
    If you are in this vacuum here are some key points promoting JSF:
    1. Fundamental unit is the Component
    2. Built in event and state management
    3. Component sets can be provided by any vendor
    4. Closer to ASP.Net or Swing development
    5. Choice of UI technology
    6. Scale up (rich clients)
    7. Scale down (mobile devices)
    8. Built into J2EE containers in J2EE 5.0 (tentative)

  • What  is the difference between T.CODES  SE10  SE09 SE01

    DEAR EXPERTS
    what  is the difference betweemn T.CODES  SE10  SE09 SE01

    Hi,
    SE09 is the transaction code for workbench organiser.Workbench organiser is the set of utilities for development change management.All Development changes are tracked via Workbench organiser.
    SE10 is for Customosing organiser.Customising organiser is the set of tools for customising change management.All customizing changes are tracked via customising organiser.
    SE01
    Transport Organizer (extended view)
    You call the initial screen of the extended view of the Transport Organizer with Transaction SE01. You can access this transaction from the standard Transport Organizer by choosing Goto ® Transport Organizer (extended view).
    Provided you have configured the system correctly, transportable change requests and Customizing requests automatically ensure that the subsequent systems are supplied consistently with your development work.
    Extra transport types are provided in the extended view to meet any special requirements:
    Piece Lists
    Client Transports
    Delivery Transports (SAP/Partner ® Customer)
    Individual display
    Unlike the Workbench and Customizing requests, there are no automatically assigned transport routes for the transport types described here. Similarly, these requests do not follow configured deliveries.
    Reward If Helpful
    Jagadish

  • What's the difference between *.JSP and *.DO?

    Hi. I'm new to JSP programming and noticed that form actions call something like pageName.do -- what's the difference between the .JSP and .DO? When do you call one vs. the other? Thanks.

    A request including the jsp extension usually refers to a single JSP file on disk that will be loaded and rendered directly.
    A request including the do extension usually refers to a call into a special servlet that will redirect the request to another "controller" class which will in turn do some processing, and then load one or more JSP files to render the response.
    The commonest form of the latter is the usage in the Struts framework. The do extension is not mandatory, it just presents a convenient way to distinguish calls that should be handled by Struts from requests for JSPs and other content that are mostly handled by the container (e.g. Tomcat) directly.

  • What's the difference between JSP 1.0/1.1 and 1.2

    I am looking for a document describing the differences between the various versions of JSP.
    Please advise.
    Thanks
    Bob

    check the links below
    http://www.jguru.com/faq/view.jsp?EID=53596
    http://www.websphere-users.ca/WSASJSP11.pdf

  • What's the difference of Item Class value:Header and Line Item in AME Rule

    Hi All,
    when creating a Rule or Attribute,there is a Item Class property,which contains Header and Line Item two values.
    Can anybody pls help me clarify the difference?
    thx,
    edmund.

    This information can be found in the Approvals Management implementation guide in metalink. The part number for this document is B31622-02
    Regards

  • What're the differences between JSP, Java Script, and Java Applet?

    I am confused by the concepts: JSP (Java Server Page), Java Script, and Java Applet? What are their main differences?

    I don't know about differences, but one of their main similarities is that each of them has a page in Wikipedia.
    JSP
    JavaScript
    [Java applet|http://en.wikipedia.org/wiki/Java_applet]
    There. That should give you enough information.

  • Whats the difference between *.jsp and *.jspx

    Hi
    When I create a new jsf page the first step prompts me for the "type". I am wondering what is the difference between JSP Page and JSP Document? Which should I be using? Are there any white papers or documents that explain the advantages of each?
    Also, someone suggested that I use Facelets, has anyone else used these from inside jdeveloper? Any thoughts / tips would be appreciated.
    Thanks
    troy

    JSPX uses an XML doument for you page code - it is the way we recommend you build your page. Makes for cleaner code and easier customization.
    JSP uses HTML with embedded JSF tags in it.

  • What is the difference between java direct or java bean in JSP?

    What is the difference if I use java code directly in JSP or use java bean in JSP?
    Which class to use for receiving the passed parameter from html or java script? Any difference for java code and java bean in the way receiving the passed data?
    How can I pass string from jsp to html or java script?

    it's generally accepted as better design to separate presentation from logic. meaning, the java code in the jsp should be used to support displaying data, as oppsoed to implementing the application - like database access, etc.
    when the logic is separated from the presentation, it allows you to reuse logic components within several jsp pages.
    if you decide to change the presentation layer in the future (to support wap, for example) you don't need to rewrite your entire application, since the "guts" of the application is outside of the jsps.
    it is also a good idea to separate your business logic from your data layer. adding a "buffer zone" between these layers helps in the same manner as in separating presentation from logic. if you're using flat files for storage now, upgrading to a database wouldn't require rewriting all your business logic, just the methods which write out the data to a file, for example.
    once you feel comfortable with separating the various layers, check out the struts framework at http://jakarta.apache.org/
    to answer your second question, to get parameters passed in from HTML forms, use ServletRequet's getParameter() method.
    in tomcat:
    <% String lastName = request.getParameter( "lastname" ); %>
    to answer your third question: when displaying the HTML from withing a jsp, print out the string to a javascript variable or a hidden form element:
    <% String firstName = "mike"; %>
    <input type="hidden" name="firstname" value="<%= firstName %>">
    <script language="javascript1.2">
    var firstName = "<%= firstName %>";
    </script>
    this jsp results in the following html:
    <input type="hidden" name="firstname" value="mike">
    <script language="javascript1.2">
    var firstName = "mike";
    </script>

  • What's the difference between using java directly in JSP and java bean

    What is the difference if I use java code directly in JSP or use java bean in JSP?
    Which class to use for receiving the passed parameter from html or java script? Any difference for java code and java bean in the way receiving the passed data?
    How can I pass string from jsp to html or java script?

    1 Cleaner pages
    2 you have to write the class and use set and get methods
    3 What do you mean when saying passing string from jsp to html??, do you mean the value you can use <%=variablename%>

  • JSP and Servlets? What's the difference?

    I've got this book, and it's mixing servlet with jsp and then jsp with servlet. Can we just use one and still make a web application? What is the difference between the both? Can anyone give me a basic idea behind these 2 J2ee technologies.

    hi,
    Both use server-side Java to dynamically generate web pages. The source code to a JSP looks like HTML, with Java embedded inside
    (a) normal HTML tags, (b) JSP tags like <jsp:include>, (c) custom tags, (d) scriptlets (Java code surrounded with <% and %>).
    The source code to a servlet looks like Java, with HTML embedded in out.print(...) statements. Both use the Servlet API to communicate with the web server and the client. In fact, a JSP gets compiled into a servlet, so they're almost identical in terms of expressive power. The choice is, whether you're more comfortable coding your pages in Java or in JSP-style HTML; and since you can call a JSP from a Servlet and vice versa, you don't have to make an either-or decision.
    Karthick PalaniChamy

  • What Is The Difference In The Following Code Snippet?

    public class Test12 {
         Test12(){
              Test12();//Compiler Error
    and
    public class Test12 {
         Test12(){
              new Test12();//Runtime Error after the 1GB of Ram space is used
    }Can you please explain as to what is the difference b\w the above code snippet?
    Edited by: The_Matrix on Feb 15, 2008 8:19 AM

    public class Test12 {
         Test12(){
              Test12();//Compiler Error
    }This is not valid because you cannot call a contractor this way. However you can replace it with following code and it will work but it is a infinite recursion.
    public class Test12 {
         Test12(){
              this(); // We have now no error. Yahooo...
    }The second part of code is also an infinite recursion. I mean following one
    public class Test12 {
         Test12(){
              new Test12();//Runtime Error after the 1GB of Ram space is used
    }Edited by: HowToDoIt on Feb 15, 2008 8:52 AM

  • HT201209 What is the difference between iTunes Gift Card & iTunes Digital Code?

    What is the difference between iTunes Gift Card & iTunes Digital Code?

    iTunes gift cards are cards that you can purchase in the Apple Store or authorized retail store. After redeeming an itunes gift card, your account should have some store credits that is equal to the worth of the gift card that you redeemed. It's as good as money in the store.
    An iTunes digital code is a code that comes with a specific item when you redeem it. You do not have any choices for the item that you will get for the code. It can be a movie code or a video code.

Maybe you are looking for

  • Home Wireless Network & Backup

    Hello- Can anyone suggest some helpful resources (e.g., websites) for configuring a home wireless network where different users (e.g., family members) can backup their files via the network instead of having to physically connect their computers to a

  • Integration of share point web services from Jdeveloper 11.1.1.4

    Hi All, Could you suggest me approach to integrate with share point from jdeveloper IDE 11.1.1.4. Regs, Ramesh

  • # appearing in standard text.

    Hello, I have created a standard text and using the text in a smartform. There are many words with apostrope in them. For eg consumer's. But when it is printed in the smartform , the text is printed as consumer#s. Other standard texts which contains

  • Dell E176FP monitor won't work with os 9.2

    Hi I bought a dell 17 inch E176FP monitor but there is no display with my powermac g4 running os 9.2 It works fine when I plug it into my Dell inspiron laptop (awful product) and a smaller viewsonic model works fine with my G4. I've done a factory re

  • How To Split File In to Multiple Files With out using B.P.M

    Hi Guys, How To Split File In to Multiple Files With out using B.P.M. Thanks in advance Regards's KIran.B