Title issue in jsp

I am writing html code in JSP. My jsp includes only below two lines.
<jsp:useBean id="htmlCodeString" class="java.lang.String" scope="request" />
<%=htmlCodeString%>
htmlCodeString is html code being generated in java code and includes all the html tags.
I have included <title> tag inside the <head> tag as well while generating htmlCodeString. But the the problem is it is not displaying title as set instead displaying url only. But if I see the view source of the same it shows the title.

I see that my comment about \ tags was completely lost on you.
In any case what you posted works just fine for me in Firefox. Perhaps you want to try with a proper doctype:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Demo of attribute-set</title>
<style>
@page{
     margin-top:1.5cm;
     margin-left:0.5cm;
     margin-right:1.0cm;
     margin-bottom:1.5cm;
     @bottom-center{ content: "Page " counter(page) " of " counter(pages); font:10px Arial;}
</style>
</head>
<body>
some code
</body>
</html>

Similar Messages

  • Timed out issue in jsp page!

    Dears,
    It is really amazing for me to see this issue in my application which I deployed in Oracle Application Server 10g r2.
    I am using JDeveloper 10g to create jsp pages.
    On one jsp page i am displaying 15 html tables for a report.
    All tables have 1 query to get records from oracle 10g database.
    Am opening one connection and than one by one running queries just before each table and rendering data through ResultSet
    (which is scrollable).
    If I test this page from JDeveloper, it is displaying fine.
    But when I deploy this page in Oracle Application Server 10g,
    and create a portlet and show this jsp page in portlet and open this page,
    this page most of the time giving 'TIMED OUT', and a few times displaying report properly.
    I tried PreparedStatement to run multiple queries for Oracle DB, but couldn't make it successfully.
    BTW,
    I checked my OAS log, it shows following error:
    09/03/16 18:39:08 hrwfapp: [instance=(null), id=(null)] ERROR: Request has exceeded its warning timeout Time[elapsed=61046ms.
    Warning timeout=20000ms.] Request[id=5003532663665,3 providerId=493501 portletId=117 portletName=AttritionReports
    portletInstance=35555_ATTRITIONREPORTS_493501 user=PUBLIC] Thread[ name=AJPRequestHandler-ApplicationServerThread-6
    priority=5 alive=true interrupted=false groupName=ApplicationServerThreadGroup]
    Please help me in this regard, what should I do to avoid Timed out issue.
    Best Regards

    Hi,
    if this occurs only in combination with portlets then I would try the Oracle Portal forum for help or use customer support to help you analyzing the issue
    Frank

  • Issue with JSP compilation while deploying the application in weblogoc 10.3

    We are in the process of migating the struts application from oc4j to weblogic 10.3 version. The application which was running fine in oc4j is having some issues in weblogic app server , specially in case of compilaing the JSPS. We are using the same stuts jar which was used earlier. Following are the some of issues which were encounterd.
    1. The method setReadonly(boolean) in the type BaseHandlerTag is not applicable for the arguments (String)
         <html:text property = "operatingSetName" styleClass="textfield" readonly="<%=readOnlyStatus%>" styleId="addOPSName" onkeydown="javascript:displayLimit(this,100)" onkeyup="javascript:displayLimit(this,100)" onkeypress="javascript:displayLimit(this,100)" onmouseout="javascript:displayLimit(this,100)"/>
    2.The method setDisabled(boolean) in the type BaseHandlerTag is not applicable for the arguments (String)
         <html:radio property = "methodType" value = "1" styleId="fixed" disabled="<%=disableFields%>"/>
    Please let me know if any weblogic specific changed to be done. we are using struts 1.2 version.
    Thank you,
    Srikanth.T
    Edited by: 931440 on May 2, 2012 12:52 AM
    Edited by: 931440 on May 2, 2012 12:53 AM

    This looks to be a struts bug to me.
    May be weblogic is too sensitive in reporting the error compared to OC4J
    You might be able to resolve the problem, by changing the following:
    Change the following taglib:
    <%@ taglib uri="http://struts.apache.org/tags-html-el"; prefix="html" %>
    TO
    <%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html"%> {there is no 'el'}
    Arun

  • Issue about jsp taglib,please help

    Hello all,
    I want to use jsp tag like following:
    <c:import url="xxx.jsp">
    <c:param name="xxxAction" value="<portlet:renderURL/>"/>
    </c:import>
    and the value of the c:param can not accept the value generated by the <portlet:renderURL/> tag.
    I can resolve the issue by writing java code in the jsp(like ...java code...<c:param name="xxxAction" value="%=...%"/> ),much java code occur in the jsp,I do not like this solution.
    anybody has good solution please help me.
    thanks and rgds.

    Ram is correct. You can't nest custom tags as attributes to other custom tags.
    In this case the <c:param> tag offers the option of specifying the value as the body of the tag though, so the following should work:
    <c:import url="xxx.jsp">
    <c:param name="xxxAction"><portlet:renderURL/></c:param>
    </c:import>

  • Caching issue in jsp or servlet

    I am not sure where I should post the issue that I have. I have a j2ee web app (struts) running on Apache Web Server + Glassfish + MySQL. My server has multi core.
    The problem is that whenever I insert a new data or delete it from a table, I don't see the change right away. Sometimes, I see the change. Sometimes I don't. It's very inconsistent.
    If the old data is cached in JSP, I shouldn't see the change in log file, but I do see it even in the log file.
    For example, I have a page managing user's folders. when I delete a certain folder name from jsp page, this folder is deleted from a db table. but when I refresh the page, I still see the folder name that is not supposed to show up. or when I go to a different page and come back to this page, I don't see it. The behavior is very inconsistent.
    If it's a browser caching issue, I don't think that I should see it in the log file, but I still see the folder name(which is supposed to be deleted) in the log file.
    I am including these lines in all included jsp pages.
    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", -1);
    does anybody have any opinion about this?
    It's hard to debug it and describe the behavior.
    But it would be very helpful if someone who had a same experience about this explains about this and tells me how to fix it.
    Thanks.

    caesarkim1 wrote:
    I am including these lines in all included jsp pages.
    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", -1); Instead of including these lines in all jsp's, make a filter and add these lines to it.

  • Thread issue in jsp.....

    I understand that the j2ee container (tomcat or jrun...) creates ONE instance of the jsp page (i.e. compiled into servlet class) when the jsp page (let's say, myPage.jsp) is accessed the first time. All request for this jsp page will be done through thread.
    My questions are:
    1. If I instantiate an object (say, myObject) within the scriptlet, will the container create one instance of this object for each "jsp" thread? Or will there be only one instance of the myObject object and each "jsp" thread be running on a thread of myObject?!
    2. If I use javaBean in my jsp (i.e. use the <jsp:useBean..../> tag), I know that the container will create a new instance of the bean class. So if there are multiple request on the same jsp page, is it true that many instances of the bean will be created? And there will be no thread issue involed?!!
    Thanks!!

    When you create an instance of an object inside a scriplet using <% ... %>, that instance is local to the service) method of the servlet corresponding to the JSP. So there is no threading related issue.
    Smilar is the argument why there is not threading related issue with using <jsp:useBean>

  • URXVT Title issue and keybind issue (backspace, delete, etc.)

    Hi,
    Two questions:
    1) I use zsh. How can I set the title of urxvt to be my current directory?
    2) I'm having an issue in urxvt wih backspacing/deleting/end-of-line/beginning-of-line. What are the proper bindkey's for that?

    Here's straight from my ~/.zshrc file
    # This sets the window title to the last run command.
    [[ -t 1 ]] || return
    case $TERM in
    *xterm*|rxvt|(dt|k|E|a)term)
    preexec () {
    print -Pn "\e]2;$1\a"
    screen*)
    preexec () {
    print -Pn "\e\"$1\e\134"
    esac
    # Setting HOME and END keys
    case $TERM in (xterm*|aterm|rxvt)
    bindkey '\e[H' beginning-of-line
    bindkey '\e[F' end-of-line ;;
    esac
    The preexec codes actually print out my last command. 
    So, in order for it to do what you want, you would need to change:
    case $TERM in
    *xterm*|rxvt|(dt|k|E|a)term)
    preexec () {
    print -Pn "\e]2;$1\a"
    to:
    case $TERM in
    *xterm*|rxvt|(dt|k|E|a)term)
    preexec () {
    print -Pn "\e]2;%~\a"
    That should do it for ya.
    Last edited by Knute (2009-09-06 00:57:18)

  • Issue in JSP on Weblogic

    I am facing one issue
    Please look into the follwoing thread
    http://forum.java.sun.com/thread.jspa?threadID=5124070
    It is quite urgent
    ~Aman

    The ResourceBundle looks for the properties file in the classpath.
    "Neeraj Jain" <[email protected]> wrote in message
    news:[email protected]..
    I'm trying the i18n stuff within JSP and to run it on weblogic,but getting
    the error
    "java.util.MissingResourceException: Can't find resource for base name
    Message, locale en_US"
    I have tried to put properties files in the
    /weblogic/myserver/serverclasses
    and also restarted the server but it did't work.Please tell me thesolution:
    where to put the properties file in Weblogic.
    BTW it worked fine when i tried it on JSWDK.
    Thanks,

  • Drop Down list issues in jsp

    Hi,
    I am facing an issue with drop down list in jsp pages on page postback. Let me explain in detail. I have a client.jsp page which has a drop down list and a text box. The drop down list is populated from an Action class (lets say testAction.java). In the client action form class there is a validation which requires the user to enter some value in the text box.
    So here is the problem, when the client.jsp page loads, the drop down list is populated perfectly, but then the user clicks submit button without entering anything in the textbox, the page loads again with an error message ("Please enter some value in the textbox"). At this point the drop down list does not contain any value. Any ideas what could I do?
    I am posting the code here for individual pieces,
    Struts-config.xml_
    <action path="/client" type="com.myapp.struts.testAction" scope="session">
    <forward name="success" path="/createClient.jsp"/>
    </action>
    <action input="/createClient.jsp" name="ClientActionForm" path="/createClient" scope="session" type="com.myapp.struts.ClientAction">
    <set-property property="cancellable" value="true" />
    <forward name="success" path="/loginSuccessful.jsp"/>
    <forward name="cancel" path="/Welcome.do"/>
    </action>
    index.jsp_
    <h5><html:link action="/client" styleClass="purplelink">Create a new client</html:link></h5>
    testAction.java_
    public ActionForward execute(ActionMapping mapping, ActionForm form,
    HttpServletRequest request, HttpServletResponse response)
    throws Exception {
    ArrayList<String> arrList = new ArrayList<String>();
    arrList.add("sports");
    arrList.add("music");
    arrList.add("test 1");
    arrList.add("test2");
    request.setAttribute("mylist", arrList);
    return mapping.findForward(SUCCESS);
    createClient.jsp_
    <select name="droplist">
    <c:forEach var="itemName" items="${mylist}">
    <option><c:out value="${itemName}" /></option>
    </c:forEach>
    </select>
    <html:text property="clientName" />
    ClientActionForm_
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request)
    ActionErrors errors = new ActionErrors();
    if (getclientName() == null || getclientName().length() < 1) {
    errors.add("name", new ActionMessage("error.name.required"));
    return errors;
    Here is the process/page flow.
    index.jsp is the first page which is loaded.
    Link on index.jsp calls action="/client"
    This pulls mapping from struts-config and calls testAction.java
    This populates the arraylist and returns to the createClient.jsp page (mapping from struts-config.xml)
    Now createClient.jsp page has two fields (dropdown list and textfield=clientName) and a submit button
    if user clicks submit, clientActionForm is called and does not enter anything into clientName text field, error message is returned.
    At this point, the drop down list in createClient.jsp is not populated and is returned as empty, even though the scope=session in struts-config.xml
    Please provide some inputs on how can I handle this issue.
    Thanks
    Ashish

    I think one solution would be instead of putting the list in the request, but it in your ActionForm.
    Add a field to the ClientActionForm with getters and setters.
    Then change your action.
    ArrayList<String> arrList = new ArrayList<String>();
    arrList.add("sports");
    arrList.add("music");
    arrList.add("test 1");
    arrList.add("test2");
    ClientActionForm frm = (ClientActionForm)form;
    frm.setMyList(arrList);
    return mapping.findForward(SUCCESS);

  • Two title issues

    I have two issues related to iMovie HD 6's use of titles:
    1. Why are most titles limited to roughly 4 seconds of "pause" time? I want a 2-line "Centered Title" to fade in in 1 second, pause on the screen for around 6 seconds, and then fade out in 1 second. The closest I can get to this is to have it fade in for 2 seconds, pause for 4 (max available), and fade out for 2. However, this is not what I want. What is the point of having an upper limit on the "pause" time?
    2. My title, when rendered, is being vertically squished. I'm working in a 1080i 16:9 HD project. In the preview and during rendering, the title looks crisp and correct. When it is done rendering, it is vertically squished and looks jagged and awful. Any thoughts?
    Thanks.

    I would start by trying the i/o 2 with garageband in another user account to find out if it's a local or global problem.
    Then with the alesis plugged in make sure that all your settings in the audio/midi setup utility are correct for the device.
    A class compliant device means if they build the interface to a agreed upon spec it will be recognized and be able to use the apple driver (core audio). It did work because you were able to use it and change it's function when making it part of aggregate device.

  • Notes app "Titles" issue

    This has only happened since upgrading to Mountain Lion and the new Notes app. In the Mac Notes app I'm having a frequent issue where I see two notes with the same title (like a note has been duplicated) and it appears that another note has disappeared. But when I click on the "duplicate", the note I thought was missing is displayed - it's just listed under the wrong title. If I Quit and relaunch Notes the problem goes away. Seems like it is related to iCloud syncing but I'm not sure. All of my Notes are in iCloud.

    Well, now it's 2015 and the problem is still there.   Previously generated notes' titles are often overwritten by a new note's title.
    Example:
       Note A
       Note B
       Note C
    exists.  Then I create Note D, which appears on top because it's newer.  The title for, say, Note A (having recently been used) changes to "Note D" without editing the first line of that note, which still says "Note A".
    Killing the app and restarting it makes the titles regenerate to the correct text.

  • Title issue in premiere CS 5.5

    I just discover this issue and I would like you to help me.
    I'm working on a PAL DV widescreen project. I wanted to use a title for each person on the show so I opened Title - Single Still and I drew a rectangle. So I went to fill it with a gradient (normal 2 color) from red on left to white on right. The white color was set to trasnparent whit transient color to 0.
    Well, when I built this with 0° angle (from up to down) the gradient works good and you can see it well on Premiere. If I set it to 270° (from left to right as I need) I can see on video the rectangle only for its 2/3 width on screen. The right side is cutted.
    I also tried to make this rectangle in Photoshop and import in the title desktop, well: the same issue. The rectangle made in .psd format with a color gradient and transparent background is shown only for his 2/3 widht on screen. The right side is missing. Tiff format or jpg with white backgroud work good.
    I tried to make a new projetc, just to test. The same issue. Rectangle whit a horizontal color gradient cannot be seen entirely.
    If I import the .psd file directly in the project, it is shown well, as it is.
    Please, I'd like you to try this procedure and tell me if you have the same issue.

    That's what I did at the end. But I don't like this issue. If I need a gradient color rectangle I should not use Photoshop and import it but Premiere should be able to draw it.

  • Issue with JSPs with inner classes (bug)

    FYI:
    Turning on Versioning in the registry (Disable=0) JSPs with inner classes causes the following IllegalAccessException...
    This has been confirmed with SP3 and SP4 with our testing...
    14/Jan/2002 13:26:24:4] error: Exception: SERVLET-run_failed: Failed in running template: /NASApp/fortune/foo.jsp, java
    lang.IllegalAccessError: try to access class jsp.APPS.fortune.foo$foobar from class jsp.APPS.fortune.foo
    xception Stack Trace:
    ava.lang.IllegalAccessError: try to access class jsp.APPS.fortune.foo$foobar from class jsp.APPS.fortune.foo
    at jsp.APPS.fortune.foo._jspService(foo.java:78)
    at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown Source)
    at com.netscape.server.servlet.servletrunner.ServletRunner.callJSP(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callJspCompiler(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUri(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUriRestrictOutput(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformRequestDispatcher.forward(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPRunner.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown Source)
    at com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    Looking for work around....
    Cheers,
    Martin Gee

    I do not see why you would use two sorts.
    And what is the issue exactly by the way? Errors?
    So, the records before the Merge Join need to come sorted, to achieve this simply tick:
    Arthur My Blog

  • PP 6.0 titler issue

    I am having an issue with the Premiere Pro titler.  I create a new still title at 960x720, but when I place it on the timeline, the text size is much larger, and positioning of the text is off from what I set up in the titler window.  Has anyone else had this problem?  I feel sure it's operator error.  Thanks!

    When I create the new title, it asked for a size, and the only choice I have for that ratio is the HD Anamorphic 1080, so maybe that's the problem. PP seems to select the size for you based on the sequence settings...
    Correct...and logical.  Why would one create a title based on a different size than the target sequence setting.
    If for some reason one might need that...create an appropriate  sequence then create a title based on that.

  • Search Title Issue

    I just wanted to see if anyone else has seen this issue and can offer a solution.
    We have a user that just updated to IE8 with the BOBJ 3.1 patch. however now she is able to have results returned from the Search Title on the home page. If she goes to advance search and performs the search the list of reports returns. Has anyone else seen this? I have been unable to reproduce, and we have a couple of other users that have the same issue.
    Mark

    Hi,
       IE 8 needs to be under compatibility mode as SAP BusinessOBjects Enterprise only support compatibility mode for IE8. This is true for even the current XI3.1 with SP3.
       Use this Microsoft Support Link to learn how you can switch to compatibility mode
               http://support.microsoft.com/kb/956197
       Try switching to Compatibility mode and let me know if you still have issue.
    Cheers,
    Ken

Maybe you are looking for

  • ICal and the new LG enV (9900).

    I am looking to get the new LG enV since I have Verizon and can not get the iPhone (sigh...). I have been looking around and can't find an answer, so I came to the smartest mac people arond! Annyone know if you can sync iCal with the enV? If you need

  • Trouble Digitizing - video stops for a sec then starts again

    Hello - I am having a problem digitizing from miniDV. I am using Final Cut Pro HD 4.5 When I am digitizing footage, the video will stop while the audio continues and then the video will pick back up again. The digitized footage reflects this problem

  • Limit Number of Rows on a Page

    Hi all, I am unable to succeed with the following. I have an XML data source which looks like this: <?xml version="1.0"?> <LIST_GEMPLOYEES> <LIST_G_EMPLOYEE> <EMPLOYEE_NUMBER>1</EMPLOYEE_NUMBER> <EMPLOYEE_NAME>Employee 1</EMPLOYEE_NAME> </LIST_G_EMPL

  • N79 after update to v20.175, cannot connect to "sh...

    i just updated to v20.175, as this is the latest available according to the updater. - i cannot use the share online option (to flickr) anymore, it says something like "new hard disk" connect error and i'm stuck with the wifi selection screen. cannot

  • Webservice : problem with Base64 returned value

    Hello all, We are calling a webservice from a Flex2 application. When the returned value does not contain accentuated letters, we receive the value "as-is", everything is OK. When there is at least one accent, the result is automatically Base64 encod