Is it possible to use XHTML (static content) whilst writing JSPs in XML?

Hi Everyone,
I am currently trying to get my head around the whole XML syntax for JSP. Unfortunately there doesn't appear to be a well rounded tutorial on the net about this so I will lay my questions to rest here.
Firstly I have managed (with the help of some very kind Java Developer Connection users) to write a JSP page in XML syntax (including the <jsp:root> element, and the like). However even when I follow all of the correct conventions my html content ends up causing the page compilation to fail. The problem is that the html content in my JSPs is being read as XML even though it is being enclosed in <jsp:text> elements. For this reason I am getting compilation failures because of deprecated tags like <br> within my html.
For this reason I am attempting to switch my static content into XHTML, I figure that this will offer some sort of solution. However when I try to convert my html content into xhtml I end up getting a failure around the DOCTYPE declaration that xhtml is required to use.
Does anybody out there know if jsp xml syntax and xhtml can be used together, and if so could you please point me in the right direction?
Thanks for your assistance.
Regards
David

I'm looking into this topic too.
Here is one article I've found on the web regarding the usage of XML syntax for the JSP document.
http://www.onjava.com/pub/a/onjava/2001/11/28/jsp_xml.html
I do know that xhtml requires that your tags be "closed". So for example the <br> tag would look like
and so on.
As far as the DOCTYPE tag which gives the XHTML specification via DTD to the browser, you can find examples here...
http://www.w3.org/TR/xhtml1/#dtds
You'll find examples for Strict, Transitional, and Frameset XHTML
I have gotten a failure on the DOCTYPE tag when I have attempted to test offline, because the dtd was inaccessible. But once online it worked.

Similar Messages

  • How can I get the value for static content of 1 jsp into another jsp

    Hi, I have a jsp which have a header ,now i want this header value in another jsp dynamically.Can u tell me how I can do it?

    What I want to know is that , is it possible to get the value of a static content of one jsp into another jsp,something like getParameter() method that we use to get the value of a field in the jsp to a servlet,or to another jsp,the only difference here is I do not have a field here but a static jsp content .

  • Use of fonts embedded in photoshop for commerical use? (Static content, like images)

    Hello.
    I am developing a Mobile game for Android, and I can't stop thinking about if i am in the clear when it comes to the use of fonts. I've searched the web, but can't really find a clear answer.
    I am using only font embedded in photoshop/illustrator, and only displaying them in static content, such as Images/logos. So my question is, am I in the clear, or do I need som kind for special license for this?
    FYI I am mostly using the MonoType Impact font. I stumbled over this though, its Monotypes Imaging EULA for fonts ( I think). It says :
    You may embed static graphic images into an electronic document, including a Commercial Product, (for example, a "gif") with a representation of a typeface and typographic design or ornament created with the Font Software as long as such images are not used as a replacement for Font Software, i.e. as long as the representations do not correspond to individual glyphs of the Font Software and may not be individually addressed by the document to render such designs and ornaments.
    Would appreciate any help, thanks!

    you can access them from <bpelx:exec> activity and you can pass these returned document to underlying java class.
    Re: getVariableData in Java Exec

  • Is it possible to use a PDF just like a JSP?

    Hi! My question is quite simple, I was wondering if it is possible to use PDF files as if they were html forms and post the data to a servlet with PDFBox? I read the spec and it seems that PDFBox is meant to treat local pdf files, am I right?
    I guess what I will have to do is save the pdf file once the user has finished entering data in it with a unique file name, and then treat the local pdf file with PDFBox... Is that the way to go or is there an other way to use pdf forms just like an html forms and then treat the data in a servlet?
    Thanks!

    No, I think I've seen PDF forms which post to servers like web pages. I could be wrong, though. But that would probably require the full Adobe Acrobat to generate those.

  • Is it possible to use two diff forms in same jsp/jsf page?

    Hi all,
    My requirement is to submit the form based on selection of radio button.
    since half part needs to be jsp based which is not using any tags etc.
    But i am trying to use some jsf based component which requires to be inside <f:view><h:form> of
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    i.e. some <c:comboBox>
    </h:form> </f:view>
    Now earlier i was submitting the form as
    <form action="/techstacks-v2_1/reportAction.do" method="post" name=doSearch id='doSearch'>
    But now i found, in order to use combo box component which is entirely jsf based i need to use <f:view><h:form> which is kind of taking over the previous form submission mechiansm.
    I am trying to keep them separate as two differnt forms.
    one entirely jsp based and other as jsf based.
    Now my question is can i use such way of doing so or is there any better way of implementing so.
    My friend suggested that i can pass the value of jsf based form in hidden form to a input box of form to be submitted finally instead of submitteing two diff forms.
    but in that case also i ahev to use two forms in a single jsp/jsf page.
    suggest me something which can really work out.
    thanks
    vijendra

    You can use as many forms as you want as long as you don't nest forms. The HTML spec probibits that.

  • XSLT, using document() to fetch a local JSP generated XML file

    All,
    I have 1 XML document that keeps track of various subsite owners of a domain I manage. The xml file doesn't hold much, something along the lines of:
    <?xml version="1.0"?>
    <sitedirectory>
         <page id="/marys_page" name="Mary's Page"">
              <content_contact ntid="smithm" />
              <technical_contact ntid="techguy" />
         </page>
    </sitedirectory>Now I also have a JSP page, that when given an NT id as a URL parameter, rifles through LDAP and spits out an xml document with all the relavent ISID fields for that person's id (first name, last name, phone number, e-mail address etc).
    I use the document() function in an XSL file to access that dynamic JSP page, fetch the contents of the resulting XML file. Using the document() function with just a regular file call like "getldap.jsp" only feeds my stylesheet the source of that JSP file, not the resulting XML file that I'm looking for when it's been processed.
    So... I have my document() function calling the full URL to that JSP file on my domain, an example <value-of /> call in my XSL file would be:
    <xsl:value-of select="document('http://my.domain.com/jsp_util/ldap_person.jsp?ntid=smithm')/person/firstname" />and I get what I want, that person's first name, drawn from LDAP into my XSL file. But it seems a little weird to me, having a server-side transformation, accessing a JSP file by making an http call to the same server the transformation resides in.
    Am I missing something? Is there a better way to do this or some directive I'm missing? I'd appreciate any help.

    That's a creative but perfectly reasonable way to use the document() function.
    There are other ways to solve the problem, such as including Java calls in your XSL and applying a customized URIResolver to your transformation, but my approach would be to use the simplest method that works acceptably. So if you don't have performance problems with your solution, I would leave it alone.

  • Is it possible to use wildcards to match cell contents in an if statement?

    I need to return a ID along with some other information on a page by page basis, so that the information comes out linked by position.  I use a couple of loops and if statements to navigate through the document.  I am able to use exact matches of cell contents which is fine when the contents doesn't vary.  But the IDs, though they have a similar pattern, are all different. In a menu driven search, I am able to find what I need with '150^9^9^9^9^9-^9^9^9' But when I try putting this (or any number of [0-9], *, ? combinations) it fails.  Is it possible to use wildcards?  The symbol used for the match (==) makes me suspect that it is not possible and that only literal, exact matches will work.  But I wanted to check with the experts before giving up.
    Thanks
    pcbaz

    Thanks for the input.  You're right, a GREP search is much more efficient.  But what I'm trying to do and the circumstances here don't allow me, I think,  to go that route. I am trying to generate a list of values coming from several textframes on a single page and have them come out so that I can tell which values belong together.
    I'm using an inherited document with masters that were created 'manually';  the index numbering for textframes and tables is random. I navigate through the pages, looping through textframe indices asking ' does this textframe exist?' If so, I ask if it is a table -- if no, it is a simple textframe and I ask about the ID, if yes, I ask if the contents of cell (0,0) (invariant position and contents) are equal to the table I want..  I am sending the ID and other pieces of information from the table to one row of a new table on a new page.  So the ID and other information from a single page are linked by being in the same row.
    I know this a little 'off-normal' -- I'm using the search to navigate through the document and find things by location the way you do with a spreadsheet.  I have devised a work-around that helps me get around the fact that the ID is not invariant.  I create a list of the (exact) IDs from another document, equating them to a variable ('a').  I then loop through the list of IDs and ask if the contents of the textframe is equal to 'a'..This works o.k, unless there happens to be an extra space, a different kind of hyphen, etc. It would be so much easier if I could use the wildcards that work in a menu-driven text or GREP search in script just to ask about the contents of the textframe.
    Thanks again
    pcbaz (Peter BIerly)
    P.S. we have since rewritten the masters so this problem will not exist in the future -- we now know exactly which textframe and/or table indices to refer to to get any particular bits of information and don't need to ask questions about the contents.

  • I work in a public library and we have two ipod touch and two ipod nanos we would like to circulate for our patrons. Any advice on how we can do this? Should we allow patrons to set the device up for personal use or download static content?

    I work in a public library and we have two ipod touch and two ipod nanos we would like to circulate for our patrons. Any advice on how we can do this? Should we allow patrons to set the device up for personal use or download static content?

    With the Nanos, you should have no problem lending them loaded with audiobooks from Librivox, etc.
    As for the iPod Touches, I'm not sure the question is whether you should allow patrons to set up the device for personal accounts, but whether you can prevent them from doing so. Prepare to to a factory restore every time one is returned.

  • Using GZIP Compressed Static Content

    I would like to have all of the Static Content (HTML, JS, CSS) compressed in advance to improve performance. I already have a compression filter for use on Dynamic Content.
    We have managed to compress all of the static stuff using the GZIP format. Currently we have the files following the naming convention of appending ".gz" to the end of each file as in "MyPage.html" becomes "MyPage.html.gz" in the WAR file.
    I was expecting that WebLogic would recognize this convention and automatically serve the appropriate file when the request came in. This doesn't seem to be happening:(
    Is there a configuration mechanism to make this work, or a different convention for handling this problem?

    Your idea should work, so let's walk through it:
    1. Create a new Cocoa Application project
    2. Create a new Objective-C class called "AppController"
    3. Place the following code in the header file:
    #import <Cocoa/Cocoa.h>
    @interface AppController : NSObject {
    IBOutlet NSPopUpButton *popupButton;
    @end
    4.Place the following code in the implementation file (beware of curly quotes if you cut and paste):
    #import "AppController.h"
    @implementation AppController
    - (void)awakeFromNib
    [popupButton removeAllItems];// necessary to remove "Item 1", etc
    [popupButton addItemWithTitle:@"Test 1"];
    [popupButton addItemWithTitle:@"Test 2"];
    [popupButton addItemWithTitle:@"Test 3"];
    [popupButton addItemWithTitle:@"Test 4"];
    @end
    4. Save, and open the nib file in Interface Builder
    5. Drag an "Object" blue cube into the little Finder window, click on it, navigate to its Identity panel on the inspector, and set its class to "AppController"
    6. Open the Window, which should be blank, and drag in an instance of "Pop Up Button"
    7. To make the menu items from the AppController class appear in the popup menu, do the following:
    Control-click on the AppController object and drag a blue line up to the Pop Up Button in the Window.
    8. Save, build, and run.
    That should be enough to at least get the menu items to appear in the popup menu.

  • Possible to use ServiceCenter's Oracle database for Content Management?

    Hi,
    I have a quick question, and I would really appreciate if any of you have a quick answer for me.
    My company is sourcing for a Content Management option as a complement to the object information that can be stored in ServiceCenter's CMDB. We are working towards a complete information storage solution, where the CMDB is the obvious master for all object information.
    Our ServiceCenter/CMDB solution is run on an Oracle database. We have an interest in possibly using an Oracle Content Management solution on top of the existing Oracle database.
    A question was raised if the Content Management solution can use ServiceCenter's Oracle database for storing documents, ie act as a Content Management database?
    The documents need to be fully searchable from Oracle's Content Management product. The solution should support storage of a large amount of data and documents and be scalable. It is critical that this in no way lower ServiceCenter's performance.
    Please bear in mind that I'm not a technician, but involved in the portal/Content Management aspect of the project. I'm also responsible for the user environment of our ServiceCenter-implementation.
    Best regards
    Leila Blomqvist
    EDB Business Partner Sweden AB

    Hi Harsha,
    Are you going to use the same ERP server for Content server as well? Are you planning to store the documents of this ECC system to the content server only?
    If yes, what is the use of that, Anyways all the documents will be stored on this server only for this ECC system. Please go through the link given by Mr Saxena above, that will give you a clear picture of how the content server works.
    You can install content server with Max DB although you already have oracle installed on your linux server.
    I would suggest you to check the stuff about content server and get your concepts cleared up before going ahead. if you are not clear, you may end up crashing your existing ERP system as well.
    AC

  • Static content in iAS 6.5 (for JavaWebstart)

    Hello,
    I'm using iAS 6.5.
    I want to serve a jar file for JavaWebstart in a J2EE App (including a war file)
    That works, but it tooks a very long time before Webstart is loading this Jar and it is fully reloaded every time i access that App from Webstart.
    When I put this jar file into the iPlanet Webserver it is loaded much faster and will not be reloaded every time i access this jar file with Webstart.
    1. Is it possible to serve static content in iAS that Webstart is not fully reloading every time, instead of only checking the header informations for a newer version?
    2. Can you give me a link to an iPlanet documentation about how to handle static content iAS/iWS !
    3. Will be the iPlanet Webserver Settings (e.g. KeepAlive) ignored, when i run Webcontent from the Applicationserver (../NASApp/...)?
    Kinds
    Regards

    JAX-RPC, JAX-M and other JAX-x are tested with JDK 1.3.x and higher. Since iAS 6.5 uses jdk 1.3.1, I think JAX-RPC, JAX-M can be used in iAS 6.5. -Officially, as far as I know, iAS 6.5 does not provide any support for JAX-pack.
    Sun ONE AS 7 fully supports JAX-pack, and it has a tool, XRPCC, (now wscompile and wsdeploy) which generates stubs, ties and WSDLs for the services. Also the same tool can be used to generate the stubs, client side artifacts, from any WSDL file.
    And also JAX-run time provides SOAP 1.1, UDDI v2 Registry access and WSDL support. Interoparability between JAX-Run time and other SOAP 1.1 implementations is also tested successfully.
    There are several third partly tools available from different vendors (around 10-12), you may wish to search for them in google. And with that you may generate WSDL for your Apache SOAP services.
    If you are planning to have a standalone web services client, then you can directly use JWSDP at the client side to communicate with the Apache SOAP services on the iPlanet Application Server 6.5.
    Please get back for any further assistance.

  • Websites and AirPlay - How to view static content?

    We want to use the iPad to show clients various websites (static content not video) and for that content to be shown on a larger screen. I thought that I could do this through AirPlay but from what I've read this isn't possible.
    Does anyone know of a way to do this or an app that allows us to do this?
    Many thanks

    Welcome to the Apple Community.
    (First of all may I thank you for my recent dividend, I hope they're going to get a little higher though)
    If the static content is pictures or photographic, you can use the photo feature of the Apple TV rather than websites. If however your content is indeed web pages, take note that web pages with text in any case do not display well on a TV and you'd be much better investing in a large monitor to show your clients such websites.

  • Is it possible to use old Apple Flat Panel Display (62 watt power adapter) with MacBookPro 13" Mid-2012 running 10.8.4? Tried mini display to VGA cable

    Is it possible to use old Apple Flat Panel Display (62 watt power adapter) with a MacBookPro 13" Mid-2012 laptop?  Would like to use larger screen when working at home.  I have a mini display port to VGA cable and have tried to hook up the old display but it seems not to work.  When I try to activate the screen on the old display-- a window comes up in the MacBookPro and asks me if I want to shut down the computer.  What little I have read it that the MacBookPro had Thunderbolt and the old display may not be compatible?  Any assistance would be appreciated.

    quax88 wrote:
    11.09.12 22:16:06,148 ClamXavSentry[286]: scan email files
    11.09.12 22:16:06,148 ClamXavSentry[286]: I will quarantine infected files
    This doesn't have anything to do with your problem, but it will likely cause other issues with your e-mail.
    Here's my standard recommendation concerting the use of A-V software to deal with potentially infected messages:
    Never use ClamXav (or any other A-V software) to move (quarantine) or delete e-mail. It will corrupt the mailbox index which could cause loss of other e-mail and other issues with functions such as searching. It may also leave the original e-mail on your ISP's e-mail server and will be re-downloaded to your hard drive the next time you check for new mail.
    So, if you choose to "Scan e-mail content for malware and phishing" in the General Preferences, make sure you do not elect to either Quarantine or Delete infected files.
    When possibly infected e-mail files are found:
    Right-click/Control-click on either the infection or file name in the ClamXav window.
    Select "Reveal In Finder" from the pop-up menu.
    When the window opens, double-click on the file to open the message in your e-mail client application.
    Read the message and if you agree that it is junk/spam/phishing then use the e-mail client's delete button to delete it (this is especially important when the word "Heuristics" appears in the infection name).
    If you disagree and choose to retain the message, return to ClamXav and choose "Exclude From Future Scans" from the pop-up menu.
    If this is a g-mail account and those messages continue to show up after you have deleted them in the above manner, you may need to log in to webmail using your browser, go to the "All Mail" folder, find the message(s) and use the delete button there to permanently delete them from the server.
    To fix the corrupted mailbox index(es), highlight each one that was corrupted and choose Rebuild from the appropriate menu.

  • Is it possible to display the static numerals as Hindi?

    Trying to generate a report using XML Publisher, the report composed of two columns.
    Need to display the numerals in English language coulmn in Arabic numerals and the numerals in Arabic language column in Hindi numerals. Currently they both appear as Arabic numerals in both columns
    Question:
    Is it possible to display the static numerals as Hindi as they had been
    entred in the template or not?
    I understood that on generation these should be variables not static.
    I would welcome any input on this issue.
    Many thanks

    Hmm,
    In templates i guess, you can use multiple font text ..
    same is the case here..
    Arabic and hindi, are you using different font for these ?
    if so, are these fonts available in server too ?
    The test displayed can be static or dynamic, but if the server doesn't know which font to be applied, then its going to apply default font for the text.
    At runtime, the server has to known, for this text which font has to be applied. if this has to happen, font has to be understood by server.

  • TS2972 is it possible to use home sharing between two users on the same computer?

    My wife and I have itunes accounts and want to be able to share music we have each bought on our accounts. We have tried setting up the home sharing on our PC but it doesn't show up on the screen. Can anyone please help?

    "Is it possible to use home sharing between two users on the same computer?"
    No. Home sharing is used to connect two running instances of iTunes across a network. When you switch users on the computer all applications running on the other profile are suspended.
    You can however share your respective media folders so that they are visible in either profile and then copy over any content that you want, or you could create a single joint library which you use when either user is logged in.
    tt2

Maybe you are looking for

  • Third Generation iPod will no longer update music

    After updating to iTunes 7 and finding that this meant i could no longer connect my ipod i found instructions on how to downgrade back to iTunes 6. many people who were experiencing the same problems found that this worked however it has not done so

  • How to convert from ifs date format to sql based dates

    I want to write a sql query using dates, to search an ifs database. Ifs stores dates as numbers created using the java.util.Date class. These dates are accurate to seconds. PLSQL uses a different format. What I need is a PLSQL function that converts

  • Questionnaire for AS-IS and TO-BE process

    MODERATOR:  Do not post (or request) email address, documents, or links to copyrighted or confidential information on these forums.  If you do, the thread will be LOCKED and all points UNASSIGNED. Hi Friends, As I'm new to an implementation project,

  • Disp+work.exe stopped, message server not connected.

    Dear friend, I have successfully installed the SAP Netweaver 2004s for running WebDynProABAP application. Then I executed the transaction sgen for all packages. But the process seemed not completed succesfully. Then I restarted the machine. But the S

  • Jndi lookup problem

    unable to get data from database, but i created datasource pls send one example with clear steps