Read html meta info in JSP

<html>
<head>
<meta name="isLoginPage" content="true">
</head>
<title>Login Page </title>
<body bgcolor="white">
<form method="POST" action="home.jsp">
<table border="0" cellspacing="5">
    <tr>
      <th align="right">Username:</th>
      <td align="left"><input type="text"></td>
    </tr>
    <tr>
      <th align="right">Password:</th>
      <td align="left"><input type="password"></td>
    </tr>
    <tr>
      <td align="right"><input type="submit" value="Log In"></td>
      <td align="left"><input type="reset"></td>
    </tr>
  </table>
</form>How do I read the meta information in home.jsp?
I tried using request.getHeader("isLoginPage"); but got it as null
Thanks in advance.

You could probably hack it by using extending  AbstractPortal and overwriting for example doOnNodeReady ( http://media.sdn.sap.com/html/submitted_docs/60_sp2_javadocs/runtime/com/sapportals/portal/prt/component/AbstractPortalComponent.html )
Why do you need the meta information ?

Similar Messages

  • How to specify HTML meta tags?

    I'm trying to get a portal to always have the following an HTML meta tag in the head of the generated HTML:
    <meta name="ROBOTS" content="NOFOLLOW" />
    I haven't seen any documentation about doing this in particular, but looking at some of the XML schema (*.xsd) files in various weblogic-specific jars, it seems like maybe the following would work in the <netuix:head> tag of the .portal configuration file for the portal:
    <netuix:head>
    <netuix:meta name="ROBOTS" content="NOFOLLOW" />
    </netuix:head>
    However, this does not seem to work.
    Also, I've checked the skin.properties file to see if there are any comments about how to specify meta tags, but there aren't any.

    Turns out there are a number of ways to do this. A BEA consultant recommended modifying the "head.jsp" for the portal's skin.
    Alternatively, it dawned on me that all I had to do was put the meta tags in a jsp and use that jsp in the head area of the .portal file. For example:
    <netuix:head>
    <netuix:jspContent contentUri="/resources/jsp/customHead.jsp"/>
    </netuix:head>

  • Unable to read TLD "META-INF/jsf_core.tld

    Hi guys,
    I have Tomcat 5.5.7 and jdk1.5.0_02 on Windows XP Pro ! I am using jsf-1_1_01. One of my page is as below:
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <f:loadBundle basename="com.stufftolet.view.bundle.selectcountry" var="msg"/>
    <f:view locale="#{catalogBean.currentLocale}">
    and I got the following error:
    org.apache.jasper.JasperException: Unable to read TLD "META-INF/jsf_core.tld" from JAR file "file:/C:/Tomcat5/webapps/stufftolet/WEB-INF/lib/jsf-impl.jar": org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: com.sun.faces.taglib.jsf_core.CoreValidator
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:179)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:181)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         com.stufftolet.view.util.SecurityFilter.doFilter(SecurityFilter.java:70)
         de.mindmatters.faces.spring.RequestHandledFilter.doFilter(RequestHandledFilter.java:117)
    Appreciate if someone could give some help here, Thanks !
    regards,
    kmthien

    Hi
    I am also facing the same problem. But I am using tomcat 5.0.xx and i havnt included extra jsp-api in the lib. But getting the error
    JSP Parsing Error:Failed to load or instantiate TagLibraryValidator class: com.sun.faces.taglib.jsf_core.CoreValidator
    tried all the options...but yet not got where is the problem.
    Please help.

  • Unable to read TLD "META-INF/c-1_0.tld"

    Hi guys,
    I'm using Tomcat 5.5.7 and jdk1.5.0_02 installed under Winds XP PRO SP2. I'm also using Standard-1.1: JSTL 1.1 (2.0). But when trying to view the 1st page, &#65321;&#12288;&#65351;&#65359;&#65364;&#12288;&#65364;&#65352;&#65349;&#12288;&#65350;&#65359;&#65356;&#65356;&#65359;&#65367;&#65353;&#65358;&#65351;&#12288;&#65349;&#65362;&#65362;&#65359;&#65362;&#12288;&#65357;&#65363;&#65351;&#65306;
    org.apache.jasper.JasperException: Unable to read TLD "META-INF/c-1_0.tld" from JAR file "file:/C:/Tomcat5/webapps/stufftolet/WEB-INF/lib/standard.jar": org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:179)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:181)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    &#65360;&#65356;&#65363;&#12288;&#65352;&#65349;&#65356;&#65360;&#65294;&#65294;&#65294;&#65294;&#65321;&#12288;&#65362;&#65349;&#65345;&#65356;&#65356;&#65369;&#12288;&#65358;&#65349;&#65349;&#65348;&#12288;&#65352;&#65349;&#65356;&#65360;&#12288;&#65348;&#65349;&#65363;&#65360;&#65349;&#65362;&#65345;&#65364;&#65349;&#65356;&#65369;&#12288;&#65281;&#12288;&#65332;&#65352;&#65345;&#65358;&#65355;s !
    regards,
    kmthien

    Hi evnafets,
    My index.jsp looks like below:
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <html>
    <head>
              <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
              <meta http-equiv="Pragma" content="no-cache"/>
              <meta http-equiv="Expires" content="-1"/>     
              <meta name="Security" content="public"/>
              <meta name="Robots" content="index,follow"/>
              <meta name="Description" content="Stufftolet Index Page."/>                     
    </head>
    <body>
    <jsp:forward page="selectcountry.jsf"/>
    </body>
    </html>
    and I still got the following error:
    org.apache.jasper.JasperException: Unable to read TLD "META-INF/c.tld" from JAR file "file:/C:/Tomcat5/webapps/stufftolet/WEB-INF/lib/standard.jar": org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:179)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:181)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Appreciate if u could give somemore assistance here, Thanks !

  • Google meta info in template?

    I put my Google meta info in the header section of my template, but it's not transferring to the individual pages.  Yes, I'm putting the code on the template whwere  want the ads to appear.  I check in live view and preview in browser.  It seems like it should work.
    Here is my head section.
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <!-- TemplateBeginEditable name="doctitle" -->
        <title>Ranch Sorting & Team Penning Info</title>
        <!-- TemplateEndEditable -->
        <link href="../styles.css" rel="stylesheet" type="text/css" media="screen">
        <!-- TemplateBeginEditable name="head" -->
        <meta name="google-site-verification" content="9zfijYKCQmKWW4R3BsnJ-XROnqoCHMNetlzPkrcR6nU" />
        <!-- TemplateEndEditable -->
    </head>

    Wait,  if you remove the editable region from your Template's <head> tag, your child pages won't be able to receive
         a) new styles
         b) additional scripts from Spry Widgets, etc...
         c) unique meta page descriptions.
    Google site verification code is only required on the domain's home page (index.html), not on sitewide pages.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    Message was edited by: Nancy O.
    Google Ads are something entirely different and the code for those goes inside the <body>.

  • HTML Comments in a JSP Document

    I am writing a JSP Document that has a number of comments. Some I want to be server-side such as version history and some I want to be client-side.
    Using a JSP page this is easily achieved using JSP comments <%-- JSP comment for server-side --%> and HTML Comments<!-- HTML comment client-side -->.
    Using XML syntax a number of things are apparent:
    1. There is no XML equivalent of a JSP comment (this has been well doc'd for a long time).
    2. In the Java EE tutorials the recommended alternative to a JSP coomment is a HTML comment.
    3. Using HTML comments in a JSP document the web container omits these in the page output - and so they are server-side only just like a JSP comment.
    Code Snippet:
    <template xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="http://java.sun.com/jsp/jstl/core" version="1.2">
    <!-- this comment will not appear in the generated source on the client browser -->
    </template>
    <!-- JSP fragment for no caching policy -->
    So, my question is how do I generate a client-side comment in a JSP Document?
    Thanks
    Edited by: DJT on Mar 3, 2008 4:28 AM
    Edited by: DJT on Mar 3, 2008 4:30 AM

    I found this ....
    http://www.javaworld.com/javaworld/jw-07-2003/jw-0725-morejsp.html
    One significant disadvantage of JSP documents is that no XML-compliant version of JSP comments exists. A JSP document developer can use client-side (HTML-/XML-style) comments or embed Java comments in scriptlets, but there is no JSP document equivalent to <%-- -->. This is a disadvantage because the other two commenting styles JSP documents can use have their own drawbacks. You can see the client-side comments in the rendered page using the browser's View Source option. The Java comments in scriptlets require placing Java code directly in the JSP document.
    So try to embed the HTML comment inside scriptlet tags...
    <%
    <!-- HTML comment here -->
    %>

  • How Can i use Html frames with  simple JSP???

    How Can i use Html frames with simple JSP???
    Actually i am creating an application in which i have used Index.html as frame.
    Noew i am trying that if i click on a link of one frame(say menu frame) the \result shoul come to some other frame(say frame named mainwindow).
    Hoe can i do like this???
    Anand Pritam

    Well i am using..
    < Base target="mainwindow">
    But it is no working is there some other way??

  • How to call an HTML page from a JSP

    Hi,
    I am getting problem in calling an html page from a jsp
    The Sample code is
    int rowsAffected = stm.executeQuery("Select * From Table");
    if (rowsAffected == 1)
    {   %>
    <jsp:forward page="xyz.html" />
    <%

    See the other forum where you asked the same question http://forums.java.sun.com/thread.jsp?forum=45&thread=158981
    Please refrain from cross posting.

  • Displaying HTML Background's in JSP's

    Can anyone help?
    I have 2 JSP's, called via a servlet. All the code works fine and all I want to do is dislay a background picture. Both JSP's have the same layout, shown below.
    <html>
    <head><title>Football</title></head>
    <body background="../Web%20graphics/grass_background.gif">
    .....code.......
    </body>
    </html>
    One of the JSP's displays the background fine and one doesn't. I have definitely made sure that I have re-compiled all code concerned and I have also stopped started both Tomcat and my browser just to make sure. Both JSP's are also in the same directory. Am I going mad. Help would be appreciated.
    Cheers
    Mitch

    Do both have the same exact <body> tag to display the background? Also, are both JSPs in the same directory? If not, perhaps the relative URL doesn't apply to both?

  • Can I get html tag info through actionscript?

    Hi,
    I want to know if there is any way to get the html tag info
    through
    actionscript when the swf file is played in a web browser?
    for example, if the html snippet is:
    <embed name="xx" id="99"
    type="application/x-shockwave-flash"
    src="my.swf" />
    can I get the 'name', 'id' attribute value of this html tag
    from my.swf
    through actionscript? or is there any other way? I know
    actionscript can
    call functions in the html page, but that cant' help me get
    the 'name',
    'id' attriubte value of the html tag.
    Any suggestion is highly appreciated, thanks in advance.

    Great! thanks, I will take a try of this.
    Gorka Ludlow wrote:
    > Use FlashVars:
    >
    > <embed name="xx" id="99"
    type="application/x-shockwave-flash"
    > src="my.swf" FlashVars="id=99&name=xx" />
    >
    > This will make two variables available at the main
    timeline of your movie.
    >
    > Cheers,
    > Gorka
    > www.AquiGorka.com
    >
    >

  • Mail.app reading HTML messages - status line?

    Is there a status line or other field that displays the contents of an embedded link in HTML messages?
    If so, where is it, and how does one enable it?
    To be precise, what I am looking for is the equivalent to the status line that Safari displays at the bottom of a browser window where the user can view the contents of a link when the cursor is hovering over a picture or text which is a hyperlink to another document or website.
    Why I'm looking for this, is so that when reading eMail with hypertext links (HTML eMail) the destination of the link would be visible, so if someone sends me phishing email with a link that says "https://safeharbor.ebay.com/" and the actual html (which can be seen by using "View => Message => Raw Source") says something like https://190.121.43.66/cgi-bin/steal-this-password.exe?user=myname&email=user@exa mple.com" it is obvious that I shouldn't click on the link. Likewise, when load-pictures is off, I can hover the cursor over the graphic and see whether the graphic is just an image (http://www.site.com/picture.jpg), or is an image with a tracker attached (http://www.site.com/cgi-bin/showpic?email=[email protected]&image=picture.jpg).
    I was hoping this would be in the new Mail.app for leopard since creating HTML mail was available, at least in limited form, and Phishing is NOT a new problem. Also, since Mail.app uses the safari rendering engine to display HTML in eMail, it make sense that it could also display link info.
    SO, does it exist? Is there some magic key combination or hidden (well hidden) menu or preference option to set to see this simple link information? I know I can do it by viewing the raw source, but that is a royal pain in the a** to read all the gobbletygook, html, css, javascript, etc. that shows up in html pages. And maybe a good percentage of Apple users don't know how to read HTML anyway, although most do know what a URL looks like.
    -Carl

    How does one go back and EDIT a post to fix a typo, or other grammatical or formatting error?
    (My -- strike-through -- text was not supposed to be that way, and I see I'm missing the (") quote at the beginning. I likely put in a dash or two for offsetting it, but apparently that was a formatting hint to strike it out. Arrrgh!)

  • Capture HTML rendered by a JSP

    hi
    can anyone tell me how we can capture the HTML rendered by a JSP into a String or StringBuffer and then store it to make HTML files/send as e-mail?

    Download the JSTL 1.0 Spec from http://jcp.org/aboutJava/communityprocess/final/jsr052/ and look at Section 7.7.2.
    <%-- Export the content of the URL resource as a String --%>
    <c:import url="http://acme.com/exec/customers.jsp?country=USA" var="customers"/>So now, ${customers} will give you access to the HTML. Mind you, I haven't actually tried this; but, theoretically...
    Disclaimer: I'm assming (dangerous, I know) we are talking about one JSP to capture and mail/whatever the HTML produced by a different URL(JSP).

  • I have read the help info, but I can't find how to change the default email address, to the one that is my adobe I'd?

    I have read the help info, but I can't find how to change the default email address, to the one that is my adobe I'd?

    Adobe Reader for iOS doesn't set the default email address when you email a PDF.
    It's found in the Settings app:
    Settings > Mail, Contacts, Calendars > Mail > Default Account

  • Read an excel file using JSP in MII 12.1

    Hi,
    I want to read an excel file using jsp page. I dont want to use the UDS or ODBC for connecting to excel.
    I am trying to use org.apache.poi to read the excel file in jsp page.
    While running, its showing a compilation error "package org.apache.poi.hssf.usermodel does not exist"
    I have the jar files for it, where do we need to upload it so that jsp page works.
    Thanks a lot
    Regards,
    Neha Maheshwari

    The user doesn't want to save the excel file in server.
    I want to upload file and save its contents in database.
    I have the code to read and save excel data in database but not able to get the location to deploy the jar file.
    In general, if we are creating a jsp page in MII workbench which is using some jar file.
    Whats the location to upload this jar file so that the jsp page works correctly?

  • How to read HTML files using UTL_FILE

    Hello Friends,
    How to read HTML files using UTL_FILE package ? According
    to Oracle documentation UTL_FILE can read or write OS Text Files.
    Thanx in advance..
    Adi

    HI Hareesh,
    i have gone through that blog.
    i tried it...but i am getting mapping error  no receiver determination fond because there are so  many excel files.
    my data is available on sharedString.xml but also it is in not same order.
    i have no clue how to handle this part form the blog.
    "This way our mapping will receive all data from the sheet in an XML format. The only thing that's left is to create an XSD file from the XML file we received in order to be able to use it in the mapping and as our Service Interface and we can proceed with mapping. As you can see from the sheet.xml files all the data is placed with column name and row number so it's not that difficult to map it to an table type format using the Message Mapping only (no java, abap mapping required)."

Maybe you are looking for