What's the relationship between JSP and Java?

hi,dear friends here.......^_^ I'm a graphic/web designer,
cause the needed of internet web design, I started to learn html and Java server page.But I never have experience of JAVA programs. It's kind of hard for me to know and use JSP now.Should i need to learn Java first? Or can anyone tell me what's the good way for me to
learn JSP?
I also want to learn how do make a web page as the first page of java.sun.com about "Industry News ".
Thanks !!grace from Taipei,Taiwan

Hi! JSPs allow Java code together with HTML in one document. The servlet engine "compiles" a JSP into a servlet prior to executing it. So, one must know Java prior to dealing with JSPs.
IMVHO, "Thinking In Java" by Bruce Eckel is a very good book for introduction to Java. You can download the electronic version at no charge from http://www.bruceeckel.com.
After you get a good handle on Java, "Professional Java Server Programming" (Wrox Press) can give you good information on servlets and JSPs, along with some other related topics.
Hope this helps!
Cheers!

Similar Messages

  • 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 relationship between BASIS and XI?

    what is the relationship between BASIS and XI?
    whether we have to acquire knowlege to explore BASIS for XI

    HI Gabriel
    BASIS is the administration of SAP system, BASIS team will be responsible for installation, maintenance, transport, authorizations in the SAP system.Taking care of the Server in all the situation,applying Support Packages, patches,fixes, Monotioring the Jobs.Participate in requirements gathering, assessment, design, configuration and testing activities for SAP security and other issues
    XI is also a middleware.
    The work of XI Basis starts from installation of XI server and it inculdes many system related things such as Installing Adapter framework, Maintaining RFC connections, Roles and Authorization, Updating Patches etc....
    Check this link on Management of XI and go through it completely. You will ahve clear idea about the role performed by XI Administrator or XI Basis:
    http://help.sap.com/saphelp_nw04/helpdata/en/a3/c6d931767dbb4d8a2696b9c72431a9/content.htm
    Also refer this thread on XI Basis work:
    Basis activites for XI
    Cheers..
    Vasu
    <b>** Reward Points if found useful **</b>

  • What's the relationship between Flex and AIR?

    What's the relationship between Flex and AIR?
    I only know that Flex is a Framework and the AIR is a runtime,
    Can any one tell me more about these two object in detail,thanks a lot!

    AIR is a runtime that supports a superset of the Flash Player API. You use it to run mobile and desktop applications, as opposed to browser apps.
    Flex is a set of technologies for building either AIR apps or browser apps. It includes a framework of runtime classes (e.g, Button, DataGrid, etc.) to use in your applications, an SDK with a command-line compiler, and an IDE called Flash Builder (formerly Flex Builder) that supports intelligent editing, a design view, and a debugger.
    So, a brief statement of their relationship is that you can use Flex to build AIR apps.
    Gordon Smith
    Adobe Flex SDK Team

  • 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 relationship between Agent and JMX-instrumented applications?

    Hi, I'm a beginner of EM and JMX. I'm trying to integrate my application with EM. After reading some documents, I find I need to make my application JMX-instrumented first and then design the plug-in. But I'm still a little confused about the relationship between the Agent and the JMX-instrumented appliactions.
    Here is what I'm confused:
    1. Should the EM Agent be installed in the host where my JMX-instrumented application is installed? If this is true, then that will mean Agent cannot monitor the remote resource. But it sounds not reasonable.
    2. When making the application JMX-instrumented, we should use the platform MBeanServer or create our own MBeanServer? Do they have a major difference? and will it impact the plug-in design?
    Thanks in advance.

    Answers to your queries:
    1. Should the EM Agent be installed in the host where my JMX-instrumented application is installed? If this is true, then that will mean Agent cannot monitor the remote resource. But it sounds not reasonable.
    Its not necessary that EM Agent should be installed on the same host where JMX-instrumented application is/are installed. EM Agent has a fetchlet (named OJMX) that can be used. Refer to [Management Using Web Services and JMX|http://download.oracle.com/docs/cd/B19306_01/em.102/b16246/web_jmx.htm] for more details on emjmxcli tool, which can help to build the plug-in which can monitor the MBeans. [EM Extensibility Guide|http://download.oracle.com/docs/cd/B19306_01/em.102/b16246/toc.htm] contains all the details for building a plug-in.
    2. When making the application JMX-instrumented, we should use the platform MBeanServer or create our own MBeanServer? Do they have a major difference? and will it impact the plug-in design?
    To best of my knowledge, plug-in design doesn't get impacted

  • What is the relationship between iPhoto and my pictures ?

    I hope you don't mind if I pose another question to you: one that's been bothering me for some time. It has to do with iPhoto and storing photos in general. So far I have been placing my photos in >my mac>my pictures and then working through iPhoto to sort them into categories, events, etc. So far, so good, but I don't understand the relationship between the two. For example, I can create new folders in iPhoto, but that doesn't change my original folders in my pictures at all; so where are the iPhoto folders on my mac? And if I delete from >my pictures, then does that also automatically delete them from iPhoto, or visa versa? The set up that I would ideally like to have is that everything I do in iPhoto automatically updates my actual photos in >my mac>my pictures. Is that possible? Or am I going about this the wrong way? Your input would be appreciated. Thanks. Adrian

    You're going about it the wrong way
    iPhoto is a Database. The entire point of it is that you can manage your photos without recourse to your files. This is more powerful and a whole lot more flexible than files in folders.
    iPhoto can run in two modes: Managed and Referenced.
    In Managed (the default mode) your photos are copied into the iPhoto Library when you import them. I would strongly suspect that this is the case in your set-up. This is the best way to run iPhoto.
    It also means that you now have two copies of the photos - on in the iPhoto Library, the other in your Pictures Folder. (And by the way, there's no "my pictures" folder on a Mac. It's just the Pictures Folder. I'm always amused by the "my" prefix on WIndows folders. Who else's files would they be? If they belong to someone else, shouldn't you have a "their" Pictures Folder too? Any enough of a pointless digressions)
    In Referenced mode iPhoto does not copy the files into the LIbrary. It simply references them where you have put them. I'll add a bit to the end of this post explaining some of the gotchas with this mode.
    How can you tell if you're running a Managed or a Referenced Library? Go to iPhoto -> Preferences -> Advanced. Is the box at Copy Items to the iPhoto Library checked?
    As iPhoto is a database there is
    a: No relationship between the photos in your Pictures Folder and iPhoto if you have a Managed Library
    b: Minimal relationship if you have a Referenced Library.
    For example, I can create new folders in iPhoto, but that doesn't change my original folders in my pictures at all; so where are the iPhoto folders on my mac?
    They are entries in the iPhoto database.
    And if I delete from >my pictures, then does that also automatically delete them from iPhoto,
    Again: depending on whether your Managed or Referenced:
    a: Managed: No it does not, makes no dfference to iPhoto at all.
    b: Referenced: You've just corrupted your iPhoto Library.
    When you use iPhoto it's your "Go To" app for photographs. The point is that you don't manipulate the files in the Finder any more. You use iPhoto to import, iPhoto to organise, share and so on, you use iPhoto to Delete too.
    or visa versa?
    Managed: Deleting from iPhoto also removes the files from the HD.
    Referenced: Deleting Files from iPhoto only removes those elements within the iPhoto Library. You then need to trash the original file yourself. Why? When you elected to Reference the files you said to iPhoto "I want to manage the files myself" So manage them.
    The set up that I would ideally like to have is that everything I do in iPhoto automatically updates my actual photos in >my mac>my pictures. Is that possible?
    That's not possible. That's file organising, and as I said, iPhoto is about Photo organising. Albums, Folders, Slideshows etc in iPhoto are all virtual, that is they are entries in the database. The advantage of this is that a photo can be in 50 albums and use no extra disk space at all. Also, iPhoto has no ability to manage files outside the iPhoto Library Folder.
    So how do you actually get to your files if you want to email, upload etc?
    There are many, many ways to access your files in iPhoto:
    *For Users of 10.5 and later*
    You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    (Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)
    You can access the Library from the New Message Window in Mail:
    Uploaded with plasq's Skitch!
    *For users of 10.4 and later* ...
    Many internet sites such as Flickr and SmugMug have plug-ins for accessing the iPhoto Library. If the site you want to use doesn’t then some, one or any of these will also work:
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. However, if you're using Gmail you can use iPhoto2GMail
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    *If you want to access the files with iPhoto not running*:
    For users of 10.6 and later:
    You can download a free Services component from MacOSXAutomation which will give you access to the iPhoto Library from your Services Menu. Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and later:
    Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    *To work with another editor*
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Note that iPhoto sends a copy+ of the file to Photoshop, so when you save be sure to use the Save command, not Save As... If you use Save As then you're creating a new file and iPhoto has no way of knowing about this new file. iPhoto is preserving your original anyway.
    Finally +On Running a Referenced Library:+
    *How to do it:*
    Simply go to iPhoto Menu -> Preferences -> Advanced and uncheck 'Copy Files to the iPhoto Library on Import'.
    *What Happens:*
    Now iPhoto will not copy the files, but rather simply reference them on your HD. To do this it will create an alias in the Originals Folder that points to your file. It will still create a thumbnail and, if you modify the pics, a Modified version within the iPhoto Library Folder.
    *Some things to consider:*
    1. Importing and deleting pics are more complex procedures. You have to to put the files where they will be stored before importing them. When you delete them you'll need to remove the files from the HD yourself.
    2. You cannot move or rename the files on your system or iPhoto will lose track of them on systems prior to 10.5 and iPhoto 08. Even with the later versions issues can still arise if you move the referenced files to new volumes or between volumes.
    3. Most importantly, migrating to a new disk or computer can be much more complex.
    4. Because iPhoto has no tools for managing Referenced Files, if, for some reason, the path to the photos changes then you could find yourself resolving aliases for +each photo in the Library+ one by one.
    My own opinion:
    I've yet to see a good reason to run iPhoto in referenced mode unless you're using two photo organiser
    I know there's lot there, so by all means post back if you need more
    Regards
    TD

  • What's the relationship between OAAD and J6NA?

    Some OPENTEXT added txns such as J6NA, J6NP and J6NY are used to access documents
    SAP built-in txn OAAD is for the samething?
    If not, what is the difference?
    Thanks!

    Hello Ajay,
    you can use OAAD to check any documents that have been archived to an OT Archive Server for example -
    J6NA is for the administration and configuration of Doculink. There's no direct relatioship between both transactions.
    For general Doculink questions, I would recommend to post your questions in the Open Text Discussion Forum "ECM Suite for SAP":
    https://knowledge.opentext.com/go/17324886 (you need a Open Text Knowledge Center account for accessing the link)
    or having a look into the Open Text Archiving and Document Access for SAP Solutions Scenario Guide

  • What is the diff between jsp and servlet

    is thr any other difference betwwen jsp and servlet, tht: jsp is automatic generated servlet and jsp has different types of tag, due this we have write less amount of code.any other technically difference between these two?

    As you mentioned JSP automatically gets converted into a Servlet and then compiled. From the server's perspective other than the transformation process, there is no real difference.
    However, in coding there are some minor differences such as additional access to pre-defined variables and different syntax for some minor things such as imports and etc.
    Perhaps somebody else more knowledgeable can fill you in further.
    Hope that was helpful.

  • What is the relationship between Process and Session parameter in Oracle

    Hi All
    I ran into a problem
    "ORA-00020: maximum number of processes (150) exceeded " on the other day and I want to fix this temporary by increase the process by some number like 200.
    Someone suggesting the syntax to fix my problem then the database must restart after running this command.
    alter system set processes=200 scope=spfile;
    However, I check the v$Paramenter view I see 2 values I believe they go together are
    Processes: 150
    Sessions:170.
    Here are my questions:
    1. "alter system set processes=200 scope=spfile;" is the correct way to increase the max Processes?
    2. Do I have change the number of Sessions after changing the number of Processes?
    3. Is there other way to increase the processes number without reboot the Oracle database?
    Regards,
    Jdang

    According to the Oracle version# Reference manual which documents the database parameters sessions is set to 1.1 * process + 5 using the 10gR2 version.
    Basically an Oracle process cooresponds to an OS process that performs the actual work for the session.
    An Oracle session is a collection of memory structure entries that identifies and keeps track of what is being done for a client of the Oracle database.
    Sometimes a single background process will support multiple sessions even in dedicated server mode such as when recursive SQL is performed to support the DML statement being done in the session.
    PS - you should consider increasing processes first and only increase sessions if you still have an issue.
    HTH -- Mark D Powell --
    Message was edited by: mdp add PS
    mpowel01

  • What is the relationship between iCloud and the App Store?

    My wife has an ipad and has purchased some apps from the App Store.  I have a new iphone5c and managed to load one of her purchased apps onto my phone by using her App Store ID and password.  When I did this, a cloud symbol appeared and I assume I was not charged for the download.  I have some questions about how all this works.
    I have not, to my knowledge, set up any icloud account for my new iphone.  Did aforementioned app download from her icloud?
    Does this mean that I should not set up an icloud account of my own on my new phone?  What about backing up my contacts?  I would like to continue sharing purchased apps.
    Can you use the same icloud account on more than one device?  If so, would they have to have identical contacts and apps?
    My wife also has a new phone; should she set up another icloud account?
    Is my Apple ID related to either the icloud or App Store?
    If anyone can help me sort this out it would be greatly appreciated.

    ICloud and the App/iTunes Store are different services from Apple, you can use either by logging in with an Apple ID, you don't need to use the same ID for all services on the same device.
    You can both share an ID for the iTunes and App stores so you can share purchased content but each use different ID's for iCloud, so you have your own contacts, calendars etc. you can use the same ID on more than one device.

  • What's the relationship between inittab and rc.conf? [Solved]

    inittab starts programs at startup, while rc.conf also starts daemons. Which one is exectued first and which one has higher priority?
    Last edited by xiaweitang (2010-01-17 21:26:09)

    AFAIK, inittab specifies the default runlevel to boot into, whereas rc.conf's DAEMONS array specifies the daemons to be started when entering runlevels 3 or 5. If you decide to boot into X by setting the default runlevel to 5, the daemons in rc.conf will be started and then X will start in the way you set it in inittab. You can also boot into X by leaving inittab default (booting to runlevel 3) and starting a graphical login daemon (gdm, kdm, slim...) in rc.conf. The latter has a downside: you can't avoid starting the graphical login when entering runlevel 3. With the former method, you can add a 3 at the end of the kernel line in grub to boot to runlevel 3 (without X).

  • What's the relationship between Livelink and Opentext?

    Could any expert kindly explain this?
    Thanks a lot!

    Hi,
    IXOS and Opentext Livelink is basically the one and the same. Basically they are 3rd party SAP cerrtified archiving softwares.
    IXOS was bough by a company called opentext.
    For details on SAP and Opentext, please follow this link - Opentext is a SAP Partner now.
    http://www.opentext.com/2/partners/strategic-partners/part-strat-sap2.htm
    For why and how IXOS moved into Opentext - check this link.
    http://www.opentext.com/ixos/en/
    Hope this helps.
    - Regards, Dibya

  • What's the relationship between bytesDirty and bytesWritten?

    hello chris:
    As we know bytesWritten is larger than bytesDirty at most situations. but in our system, we found one situation is that bytesDirty is larger than bytesWritten. when will happen this situation? I don't know how to explain them?
    we can see the bytesDirty is about 20G but bytesWritten is only about 4G. thank you.

    This is because for a freed dirty block, we only write the header of the block to the checkpoint file; the contents of the block are not written. However, the entire size of the block is counted for bytesDirty. That's why bytesDirtry can be larger than bytesWritten.

  • 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

Maybe you are looking for