Trouble with fmt:formatDate tag

Hi, I'm using JSTL 1.2 with Tomcat 6.0.26. I have
<jsp:useBean id="today" class="java.util.Date" scope="request" />
<fmt:formatDate var="fmtToday" value="${today}" pattern="MM/dd/yyyy"/>but when I try and get the value of ${fmtToday}, I get an empty string. In other words, this produces output ...
today: ${today}but this does not
today: ${fmtToday}Any ideas why? - Dave

Nope. Looks good to me. Tried it out and had no issues.
So then the questions become
- have you imported the fmt tag library? <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
- what server are you using?
- what version of JSTL?

Similar Messages

  • Podcasts: anyone else having trouble with iTunes:summary tag?

    My podcast file is here:
    http://www.reallifecoaching.ca/podcasts/slacker.xml
    In iTunes, the podcast "Description" is showing up the same as the iTunes:subtitle tag.  It started doing this 2 days ago. Before this, it was picking up the itunes:summary tag correctly.
    Have I done something wrong with my latest update?  I've looked and looked at it but can't see the problem.
    Thanks in advance!

    Maybe I'm just confused then...
    I'm seeing:
    Podcast Title:
    Making Your Addictions Work For You
    Podcast Description:
    Making Your Addictions Work For You
    How do I make it so that I see:
    Podcast Title:
    Making Your Addictions Work For You
    Podcast Description:
    Ken shows you ways to  get control of your addictions.  This is an extended version of Ken's Huffington Post article.

  • UPDATED: Trouble with duplicate div tag...

    I am working on validating the code for my blog now as I
    think that might solve some of the issues I am having. I was able
    to clear out all of the xhtml errors except for one... a duplicate
    sidebar div tag. One of them is at the bottom of the header file
    and the other is at the top of the sidebar file.
    My first thought was just to delete one of them so I tried
    that and it validated. Problem is that it screwed up the layout on
    my pages in Safari and Firefox when you do a search or look at any
    of the archives, etc.
    So I deleted the other one and it was worse.
    I think this issue is what is making my search results and
    archive results load below the sidebar... so it obviously needs to
    be fixed, but Im not sure how.
    The page is at
    http://www.babybumps.net/blog
    and the code is attached.
    Any thoughts?

    Try leaving the duplicate tag in, but renaming it to
    something that is not a
    duplicate first.
    If that doesn't work, then we will have to take a closer look
    at your code
    and particularly your floated elements.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "ArtsyAndi" <[email protected]> wrote in
    message
    news:g01mke$6cr$[email protected]..
    > Ok... I deleted the duplicate tag on the top of the
    sidebar, then deleted
    > the
    > close div tag at the bottom of that file and the code
    now validates.
    >
    > However, it didn't solve my issue with the content
    loading below the
    > sidebar
    > when you do a search or view archives in safari or
    firefox.
    >
    > Any ideas?
    >

  • Troubles with cfdocument | cfcontent tag after cf update

    I'm having some issues with the cf document and cfcontent
    tags, they do not function correctly, the cfdocument hangs when
    calling a PDF file and the cfcontent throws a server 500 error when
    I call an Excel file. Is there a Hotfix to solve this issue or is
    there anything I can do to solve this problem.

    I ran the CC Cleaner tool but there are failed records. The instructions say I should contact customer service if that happens.
    Exactly how/where do I do that?
    I need to get this all fixed so I can get back to work! Sorry for thee rant, its been a rough week...
    Thank you for your help.

  • Troubles with adding new tag library in component palette (JDev 10g R3)

    Hello!
    I need to add apache MyFaces tags to my instance of JDev. There are written in the help, that is needed to create new page of type JSP. I did the following steps:
    1. Tools->Manage Libraries->JSP Tag Libraries->New
    2. Went to directory where my Jars have place
    3. Select these Jars
    4. Tools->Conmfigure Palette->New
    5. Entered page name
    6.! But in Page type field i see only these items:
    - css
    - java
    - odx_usc
    - Snippents
    What is wrong?
    Thanks

    Zdrastvui user484820 .
    I think that next step is to add this Libraries to your project

  • Question on Issue with fmt:formatNumber tag of jstl

    Hi,
    We have a web application that uses struts framework. In the action class,i am setting an attribute of request object like
    request.setAttribute("Val",new Double(11.25489));
    I am using jstl fmt:formatNumber function in the jsp page to format the value to 2 decimal places.
    <fmt:formatNumber value="${Val}" maxFractionDigits ="2" />
    When i access the jsp page,there is no display of anything.
    If i access using <c:out value="${Val}"/> ,it does print the value.
    Interestingly,tomcat does not generate any corresponding java file in its work area.
    Any clues...anybody ?
    Edited by: gbhakta on Oct 31, 2007 12:23 PM

    Ok you are setting the value in request scope?
    How does the control transfer from the Struts Action to your JSP page?
    Check the struts-config to see if that forward is configured as a "redirect". If that is so, your request attribute would be lost, because a redirect causes a new request.
    The following code prints out all request attributes that are currently in scope.
    It might help checking to see if your "Val" is in scope or not.
    Request scope attributes:
    <table border="1">
    <c:forEach var="attr" items="${requestScope}">
      <tr><td><c:out value="${attr.key}"/>a</td><td><c:out value="${attr.value}"/></td></tr>
    </c:forEach>
    </table>Cheers,
    evnafets

  • Fmt:formatDate with incoming parameter

    I have a bean that has a set method that takes in a java.sql.Date object.
    public void setStartDate(java.sql.Date newValue){
         startDate= newValue;
    }This is used in a PreparedStatement to retrieve data from the database.
    I am pulling the value from the URL. For example, the url would be:
    http://localhost:8080/test/somePage.jsp?startDate=01-APR-2008Now, in the JSP I am trying to use the fmt:formatDate tag.
    <fmt:formatDate value="${param.startDate}" var="startDate" pattern="yyyy-mm-dd"/>However, I just cannot get it to work. It keeps throwing errors like:
    Attempt to convert String "01-Apr-2008" to type "java.util.Date", but there is no PropertyEditor for that type
    So after some reading, I decided to try fmt:parseDate. So I then did:
    <fmt:parseDate var="startDate" value="${param.startDate}" pattern="yyyy-mm-dd" />Then I get the error:
    In <parseDate>, value attribute can not be parsed: "01-Apr-2008"
    All I am trying to do is call:
    <jsp:setProperty property="startDate" name="HomeBean" value="${startDate}"/>

    Ascalonian wrote:
    Now, in the JSP I am trying to use the fmt:formatDate tag.
    <fmt:formatDate value="${param.startDate}" var="startDate" pattern="yyyy-mm-dd"/>However, I just cannot get it to work. It keeps throwing errors like:
    Attempt to convert String "01-Apr-2008" to type "java.util.Date", but there is no PropertyEditor for that type
    The fmt:formatDate is there to format a java.util.Date object into a human readable String using the given pattern. The 'value' must be backed by a getter which returns java.util.Date and the 'var' must be backed by a variable which is declared as java.util.Date (and thus not java.sql.Date).
    So after some reading, I decided to try fmt:parseDate. So I then did:
    <fmt:parseDate var="startDate" value="${param.startDate}" pattern="yyyy-mm-dd" />Then I get the error:
    In <parseDate>, value attribute can not be parsed: "01-Apr-2008"
    The fmt:parseDate is there to parse a String into a java.util.Date object using the given pattern. The actual String value of ${param.startDate} apparently doesn't match "yyyy-mm-dd", but "dd-MMM-yyyy". Read on the SimpleDateFormat API documentation for more details about patterns: [http://java.sun.com/javase/6/docs/api/java/text/SimpleDateFormat.html]. Also note that you should be using 'M' instead of 'm' to denote months.

  • Fmt:formatDate from JSTL reveals bug in OC4J

    If you use the tag fmt:formatDate in a loop like this
    <c:forEach var="driver" items="${clientProxy.drivers}">
    <fmt:formatDate value="${driver.vertragsende}" />
    </c:forEach>
    the fmt:formatDate tag will call the method setLocale from ServletResponse for every iteration step. The result is that you have as many Content-Language headers as steps of the iteration.
    As you may have noticed I'm using a german locale and therefore if you have ten drivers you've got 10 response headers "Content-Language" with the value "de".
    For me a serious bug in OC4J. Is this bug known and/or is there a solution?
    I'm using JDeveloper 10g Version 9.0.5.2 build 1618 and JSTL 1.0.6.

    Repost

  • Time value error with JSTL in fmt:formatDate

    Hi all,
    I try to display a date field from my Oracle 10g DB which contains date and time value. In the DB everything is stored correctly. When I use a
    <fmt:formatDate value="${row.BEGIN_DATE}" pattern="dd.MM.yyyy HH:mm" />the date is displayed correctly but the time value is always 00:00. How can the time value be displayed correctly. Is this a matter of database or a JSTL configuration?
    TIA,
    Axel

    The value of the pattern attribute should be a
    pattern string following the conventions of the
    java.text.SimpleDateFormat class.I know this. But the pattern "dd.MM.yyyy HH:mm" should be ok, or what's wrong with this pattern in your opinion?

  • Language setting changed by fmt:formatDate

    I found out, that JSTL tag <fmt:formatDate> changes language settings of jsp page
    <%@ page contentType="text/html;charset=windows-1250"%>
    <%
    out.println(response.getCharacterEncoding());     // windows-1250
    %>
    <fmt:formatDate ...
    <%
    out.println(response.getCharacterEncoding());     // ISO-8859-2
    %>
    </body>
    </html>
    I did some attempts. I had partial success by using
    <fmt:setLocale value="cs_CZ"> (czech), but
    response.getCharacterEncoding()
    still returns ISO-8859-2 and that causes another trouble
    (in TopLink/ADF data controls, which we use).
    I found out, that in Tomcat it can be solved by editing CharsetMapperDefault.properties in
    catalina.jar. But we are using OC4J in JDeveloper (10.1.2) and finally our application will be deployed
    on OracleAS 10g. Does somebody know solution ? Thanks.

    I want to change into Korean, but I don't know if it support Korean as language option
    It should support Korean and should also change to Korean if your OS changes to Korean. Have you perhaps removed any language support? Some people do this to save space.
    You can try this app:
    http://www.tj-hd.co.uk/en-gb/languageswitcher/

  • fmt:formatDate ?

    Here is a sample JSP code
    <h4>US</h4>
        <fmt:setLocale value="us_US"/>
        <fmt:formatDate value="${now}" pattern="yyyyMMdd"/>
        <h4>RU</h4>
        <fmt:setLocale value="ru_RU"/>
        <fmt:formatDate value="${now}" pattern="yyyyMMdd"/>And on the output I got:
    US
    Fri Jan 19 14:38:21 MSK 2007
    RU
    20070119
    I expected to see two identical rows but why they are not? Doesn't the "pattern" attribute rules the output format? If not how does one can manipulate with the format?

    The problem is caused because "us_US" is not a valid locale.
    Try "en_US" for the desired effect, or even just "en"
    <fmt:setLocale value="junkValue"/>
    <fmt:formatDate value="${now}" pattern="yyyyMMdd"/>Output: Fri Jan 19 14:38:21 MSK 2007
    It seems when the locale is not set correctly, the formatDate tag cannot use the pattern.

  • Fmt:formatDate 10.1.2 Server Error

    Within the application that I have developed the first JSP page that is called after the user successfully logs in has the following code within it.
    //top of the jsp page has this
    <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
    <body>
      <%  java.util.Date now = new java.util.Date();
            request.setAttribute("now",now); %>
    <fmt:formatDate value="${now}" type="both" dateStyle="short" timeStyle="short"/>
    ...The application with this code in it worked fine both when running it through JDeveloper 10.1.2 and on the OC4J 10.1.2.0 server.
    I have then added Log4J 1.2.12 into the project so that I can use it to email our system administrators should an error occur.
    The application still works fine when I run it through JDeveloper 10.1.2 that I developed it within, but when I deploy it to the OC4J 10.1.2.0 server the following error occurs after the user successfully logs into the application and the page with the above code is displayed.
    java.lang.IllegalStateException: Response is already committed!     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.EvermindHttpServletResponse.setLocale(EvermindHttpServletResponse.java:1809)     
    at org.apache.taglibs.standard.tag.common.fmt.SetLocaleSupport.setResponseLocale(SetLocaleSupport.java:234)     
    at org.apache.taglibs.standard.tag.common.fmt.SetLocaleSupport.getFormattingLocale(SetLocaleSupport.java:314)     
    at org.apache.taglibs.standard.tag.common.fmt.FormatDateSupport.doEndTag(FormatDateSupport.java:148)     
    at _main._jspService(_main.java:177)     [SRC:/main.jsp:189]     
    at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)     
    at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:567)     
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)     
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)     
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)     
    at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)     
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)     
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)     
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)     
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)     
    at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)     
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)     
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)     
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)     
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)     
    at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)     
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)     
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)     
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)     
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)     
    at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)     
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)     
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)     
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)     
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)     
    at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)     
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)     
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)     
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)     
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)     
    at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)     
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)     
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)     
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)     
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)     
    at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)     
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)     
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)     
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)     
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)     
    at uk.police.syp.lynx.LoginFilter.doFilter(LoginFilter.java:38)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:645)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)     
    at java.lang.Thread.run(Thread.java:595)I have developed other projects that use the same concept of this using the same concept as this and the same version of JDeveloper, OC4J server and Log4J and these all work both within JDeveloper and when deployed to the server.
    I'd appreciate it if anyone could help me rectify this problem as soon as possible.
    Thanks in advance for your help
    David
    Message was edited by:
    David Ferguson

    David,
    I found
    http://www.mail-archive.com/[email protected]/msg02918.html
    where it appears to be a problem within the tag library. This would explain why it works in one OC4J and doesn't in the other (my assumption is that the libraries are different, though I cannot prove this)
    I also found Oracle bug 3950667 that explained a similar observation for 10.1.2.01. However, this problem is supposed to be fixed in 10.1.2. The difference between JDeveloper 10.1.2 and OracleAS 10.1.2 is that OracleAs has a later version of OC4J.
    Unfortunately I cannot find more from here and you may need to involve customer support. Have you tested to deploy the jstl library with your application so that it is not using the one contained in OC4J?
    Frank

  • Trouble with "body" images lining up at the top

    Hi, I am having troubles with the #body style in my web page. I have inserted a table into the #body area and the the body editable region will not line up on the top with the sideBar editable region when I add text and apply my css to it. Can you look at the code and let me know what I am doing wrong? Thanks!
    <!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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Ram Restaurant &amp; Brewery</title>
    <!-- TemplateEndEditable -->
    <meta name="keywords" content="Ram Restaurant, The Ram restaurant, Ram Restaurant and brewpub, Ram Restaurant Group, Ram International" />
    <meta name="description" content="Welcome to The Ram!  Your stomach wants food.  Your tastebuds want beer.  Satisfy them both at the Ram Restaurant & Brewery." />
    <style type="text/css">
    <!--
    body {
    background-color: #333;
    margin: 0 auto;
    padding: 0px;
    margin-left: 0px;
    margin-right: 0px;
    .navbar_center {
    text-align: center;
    -->
    </style>
    <link href="/RamWebsite_NEW/cssstyles.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    body,td,th {
    font-family: Arial, Helvetica, sans-serif;
    color: #F00;
    margin: 0px;
    padding: 0px;
    a:link {
    color: #666;
    text-decoration: none;
    h1 {
    font-size: 36px;
    color: #000;
    h2 {
    font-size: 24px;
    color: #000;
    h3 {
    font-size: 18px;
    color: #000;
    h4 {
    font-size: 12px;
    color: #000;
    a:visited {
    text-decoration: none;
    color: #000;
    a:hover {
    text-decoration: underline;
    a:active {
    text-decoration: none;
    -->
    </style>
    <!--[if lte IE 8]>
    <style type="text/css">
    ul.MenuBarHorizontalul  li ul li ul li.MenuBarHorizontal, ul.MenuBarHorizontal li ul li.MenuBarHorizontal {
    width:100px;
    height:23px;
    </style>
    <![endif]-->
    <script src="/RamWebsite_NEW/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    <link href="/RamWebsite_NEW/SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    </head>
    <body link="#000000" topmargin="0" onload="MM_preloadImages('/RamWebsite_NEW/images/Menu_rollover.jpg','/RamWebsite_NEW/imag es/EventsLink2_rollover.jpg','/RamWebsite_NEW/images/GiftCards_rollover.jpg','/RamWebsite_ NEW/images/BeerLink2_rollover.jpg')">
    <div id="wrapper">
    <div id="header">
        <table width="900" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <th width="200" height="36" rowspan="2" align="center" valign="middle" scope="col"><a href="http://www.theram.com"><img src="/RamWebsite_NEW/images/Ram-Logo-red.gif" alt="Ram Restaurant &amp; Brewery Logo" width="175" height="69" border="0" /></a></th>
            <th width="350" height="50" align="center" valign="middle" scope="col"> </th>
            <th width="200" align="center" valign="middle" scope="col"> </th>
            <th width="150" align="right" valign="middle" scope="col"><a href="http://www.facebook.com/home.php?#!/theramrestaurant?ref=ts"><img src="/RamWebsite_NEW/images/FacebookBox.gif" alt="Becoma a Facebook Fan!" width="40" height="40" border="0" /></a><a href="http://www.twitter.com/theram"><img src="/RamWebsite_NEW/images/TwitterBox.gif" alt="Follow Us on Twitter" width="40" height="40" hspace="30" border="0" /></a></th>
          </tr>
          <tr>
            <th colspan="3" align="right" scope="col"><ul id="MenuBar1" class="MenuBarHorizontal">
              <li><a class="MenuBarItemSubmenu" href="#">MENU</a>
                <ul>
                  <li><a href="#" class="MenuBarItemSubmenu">Idaho</a>
                    <ul>
                      <li><a href="/menus/idaho/boise.shtml">Boise</a></li>
                      <li><a href="/menus/idaho/meridian.shtml">Meridian</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Illinois</a>
                    <ul>
                      <li><a href="/menus/illinois/rosemont.shtml">Rosemont</a></li>
                      <li><a href="/menus/illinois/schaumburg.shtml">Schaumburg</a></li>
                      <li><a href="/menus/illinois/wheeling.shtml">Wheeling</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Indiana</a>
                    <ul>
                      <li><a href="/menus/indiana/fishers.shtml">Fishers</a></li>
                      <li><a href="/menus/indiana/indianapolis.shtml">Indianapolis</a></li>
    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Oregon</a>
                    <ul>
                      <li><a href="/menus/oregon/clackamas.shtml">Clackamas</a></li>
                      <li><a href="/menus/oregon/salem.shtml">Salem</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Washington</a>
                    <ul>
                      <li><a href="/menus/washington/kent.shtml">Kent</a></li>
                      <li><a href="/menus/washington/lacey.shtml">Lacey</a></li>
                      <li><a href="/menus/washington/lakewood.shtml">Lakewood</a></li>
                      <li><a href="/menus/washington/puyallup.shtml">Puyallup South Hill Mall</a></li>
                      <li><a href="/menus/washington/puyallup2.shtml">Puyallup Sunrise Village</a></li>
                      <li><a href="/menus/washington/northgate.shtml">Seattle Northgate</a></li>
                      <li><a href="/menus/washington/seattle.shtml">Seattle University Village</a></li>
                      <li><a href="/menus/washington/tacoma.shtml">Tacoma</a></li>
                    </ul>
                  </li>
                </ul>
              </li>
              <li><a href="#" class="MenuBarItemSubmenu">LOCATIONS</a>
                <ul>
                  <li><a href="#" class="MenuBarItemSubmenu">Idaho</a>
                    <ul>
                      <li><a href="/idaho/boiseNew.html">Boise</a></li>
                      <li><a href="/idaho/meridianNew.html">Meridian</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Illinois</a>
                    <ul>
                      <li><a href="/illinois/rosemontNew.html">Rosemont</a></li>
                      <li><a href="/illinois/schaumburgNew.html">Schaumburg</a></li>
                      <li><a href="/illinois/wheelingNew.html">Wheeling</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Indiana</a>
                    <ul>
                      <li><a href="/indiana/fishersNew.html">Fishers</a></li>
                      <li><a href="/indiana/indianapolisNew.html">Indianapolis</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Oregon</a>
                    <ul>
                      <li><a href="/oregon/clackamasNew.html">Clackamas</a></li>
                      <li><a href="/oregon/salemNew.html">Salem</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Washington</a>
                    <ul>
                      <li><a href="/washington/kentNew.html">Kent</a></li>
                      <li><a href="/washington/laceyNew.html">Lacey</a></li>
                      <li><a href="/washington/lakewoodNew.html">Lakewood</a></li>
                      <li><a href="/washington/puyallup-southHill-NEW.html">Puyallup South Hill Mall</a></li>
                      <li><a href="/washington/puyallup-Sunrise-New.html">Puyallup Sunrise Village</a></li>
                      <li><a href="/washington/northgateNew.html">Seattle Northgate</a></li>
                      <li><a href="/washington/seattleNew.html">Seattle University Village</a></li>
                      <li><a href="/washington/tacomaNew.html">Tacoma</a></li>
                    </ul>
                  </li>
                </ul>
              </li>
              <li><a class="MenuBarItemSubmenu" href="#">PROMOS</a>
                <ul>
                  <li><a href="/drink_specials.shtml">Drink Promos</a>              </li>
                  <li><a href="/food_specials.shtml">Food Promos</a></li>
    </ul>
              </li>
              <li><a href="/news.shtml">RAM NEWS</a></li>
              <li><a href="/about.shtml">ABOUT US</a></li>
              <li><a href="#" class="MenuBarItemSubmenu">CONTACT US</a>
                <ul>
                  <li><a href="/contact.shtml">General Info</a></li>
                  <li><a href="/employment.shtml">Careers</a></li>
                  <li><a href="/comments.shtml">Comments</a></li>
                </ul>
              </li>
              <li><a href="/banquets.shtml" class="MenuBarItemSubmenu">BANQUETS</a>
                <ul>
                  <li><a href="/banquets.shtml">Banquets</a></li>
                  <li><a href="/banquets-catering.shtml">Off-Site Catering</a></li>
                </ul>
              </li>
            </ul></th>
          </tr>
          <tr>
            <th colspan="4" align="center" valign="middle" scope="col"><img src="/RamWebsite_NEW/images/redbar.gif" width="900" height="11" /></th>
          </tr>
        </table>
    </div>
    <div id="body">
      <table width="900" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <th height="300" valign="top" scope="col"><table width="900" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <th width="225" align="center" valign="top" bgcolor="#000000" scope="col"><!-- TemplateBeginEditable name="sideBar" -->adfadsfds<!-- TemplateEndEditable --></th>
              <th width="675" align="left" valign="top" bgcolor="#FFFFFF" scope="col"><!-- TemplateBeginEditable name="body" -->
                <p><img src="/images/aboutus2.jpg" width="675" height="300" /></p>
                <p class="foodNameDesc">adfadslkj</p>
              <!-- TemplateEndEditable --></th>
            </tr>
          </table></th>
        </tr>
      </table>
    </div>
    <div id="bottomMenuSubPg">
      <table width="900" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th width="200" align="center" scope="col"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Menu','','/RamWebsite_NEW/images/Menu_rollover.jpg',1)"><img src="/RamWebsite_NEW/images/Menu.jpg" alt="Menu" name="Menu" width="212" height="125" hspace="6" border="0" id="Menu" /></a></th>
          <th width="200" align="center" scope="col"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Big Horn Beer','','/RamWebsite_NEW/images/BeerLink2_rollover.jpg',1)"><img src="/RamWebsite_NEW/images/BeerLink2.jpg" alt="Big Horn Beer" name="Big Horn Beer" width="212" height="125" hspace="6" border="0" id="Big Horn Beer" /></a></th>
          <th width="200" align="center" scope="col"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Events','','/RamWebsite_NEW/images/EventsLink2_rollover.jpg',1 )"><img src="/RamWebsite_NEW/images/EventsLink2.jpg" alt="Events at the Ram" name="Events" width="212" height="125" hspace="6" border="0" id="Events" /></a></th>
          <th width="200" align="center" scope="col"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Gift Cards','','/RamWebsite_NEW/images/GiftCards_rollover.jpg',1)"><img src="/RamWebsite_NEW/images/GiftCards.jpg" alt="Gift Cards" name="Gift Cards" width="212" height="125" hspace="6" border="0" id="Gift Cards" /></a></th>
        </tr>
      </table>
    </div>
    <div id="bottommenu2"></div>
    <map name="Map" id="Map">
      <area shape="poly" coords="16,103" href="#" />
      <area shape="poly" coords="49,71,102,58,158,73,191,113,180,141,151,161,109,169,65,162,31,141,18,112" href="http://theram.fbmta.com/members/UpdateProfile.aspx?Action=Subscribe&amp;InputSource=W" target="_blank" />
    </map>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"/RamWebsite_NEW/SpryAssets/SpryMenuBarDownHover.gif", imgRight:"/RamWebsite_NEW/SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </div>
    </body>
    </html>

    You have your image in the 'body editable region' wrapped in <p></p> tags (paragraph tags). <p> tags have padding and margin set on them by default.
    <p><img src="/images/aboutus2.jpg" width="675" height="300" /></p>
    You can either just remove the <p></p> tags or you can zero out the padding and margin:
    p {
    padding: 0;
    margin: 0;
    Unfortuanately the above will target every paragraph on your page which might not be desirable so I would just remove the <p> tags as it is not necessary to wrap an image in them.
    If you do want to keep the <p> tags then use some inline css to specifically remove the padding and margin on that particular one:
    <p style="padding: 0; margin: 0;"><img src="/images/aboutus2.jpg" width="675" height="300" /></p>

  • I am really in trouble with AP Div-How do I fix it on the web?

    Hi,
    I am really in trouble with my website. I have added some pictures and text on top of Fireworks Image and have published it on the website.
    But the concern is, when I zoom in & zoom out, I can see the previous text on the screen and also the picture and texts I have added using Ap Div  tag are scattered moving all to the left when I zoom out. Can someone help me how to fix this in one particular place so that it doesn't move when I zoom in or zoom out!!! I am using Adobe Dreamweaver CS3, if this will help.
    Appreciate your sincere help on this.
    Thanks in advance.

    Frankly, there's a lot that is wrong with that page:
    1. Most of your content is in the images - this means that you will get very poor search engine ranking
    2. Your extensive use of absolute positioning for layout - this means that when you enlarge the text size in the browser, you will have overflow problems on the page (for example, the terrible problems at the bottom of the page)
    3. You have used tables for layout - this is because of your use of Fireworks to create the HTML
    Each of these problems is solvable but none of them are solvable easily without a redesign of the page. A web page should be built from the top down, stacking content containers (i.e., <div>, <section>, <article>, <aside>, etc.) vertically or floating them horizontally or both. These containers would be loaded with the text content of the page, and images would be used only for cosmetic appearance. Using CSS to style/locate the content will allow you to completely move away from tables for layout. Most typical pages can be created without the use of absolute positioning which should be used only for special purposes, not for layout of the page elements.

  • Trouble with sorting albums

    I have two troubles with itunes:
    occasionally my albums have their "out of" track numbers removed. so in the track # column it does not display "(track number) of (total tracks on CD)" but instead only displays "(track number)"
    And
    occasionally the LAST song of an album will above the FIRST song of the album instead of the staying as the last song. I have tried everything and cannot fix this without re burning the CD. I don't want to have to do that as I do not have my CD collection with me.
    How should I go about fixing these and making sure they dont continue to happen?

    Generally setting a common Album Artist will fix things.
    For deeper problems see Grouping tracks into albums.
    If iTunes won't accept changes to the tags see Repair security permissions for iTunes for Windows.
    If iTunes appears to accept your changes but the original values reappear later then the files are likely to be mp3s with multiple tags. In such cases iTunes only updates one of them and may later read back the unchanged data from the other. To fix this select the tracks in question in iTunes, right-click and use Convert > ID3 Tags > None, several times, then use Convert > ID3 Tags > ID3v2.3. You will need to reinsert any embedded artwork.
    tt2

Maybe you are looking for

  • IPod Touch not syncing music

    Why oh why do things that worked previously not work now? This happens so much with Apple products!!! I have tried now several times to sync my plugged-in iPod Touch with my iTunes selected songs and playlists. I have checked the boxes about manually

  • Facing problem when using SYNC and ASYNC bridge in ID

    Hi all, In BPM i am using SYNC/ASYNC bridge for that Outbound Interface and BPM Sync Interface has the same structure is it mapping necessary for that intercaces. In interface determination it is showing error duplicate interfaces in ID test configur

  • WHere are the root certificates stored on the iPhone 5C, there is nothing in settings for profile?

    WHere can I find the Application Root certificates on my 5C, I need to delete one so I can reload it?

  • Execute Shell Script from OWB Process Flow

    I am trying to execute a Shell Script from a User Defined activity of OWB Process Flow. As I have not done such things earlier I need to know: 1. Where I will put the Shell Script (move_file.sh)? 2. What are the values in need to enter in the externa

  • Update a table column from enother table?

    Hello all, i am using following query to update update hrt_emp_mst set a.e_no=b.e_no from hrt_emp_mst a,emp_temp b where a.emp_no=b.emp_no this is giving error message: as command not properly ended. please tell me is there any problem thanks yash