JSTL Problem with attribute names

(Sorry for double posting. I've asked this question on javaranch, but did not get any answer. So I hope you can help me.)
The values I pass (request.setAttribute etc.) from my servlet to my JSP pages have often dots in their names like "my.variable" (Assume for the following that my.variable justs holds the String "hello").
I want to use <c:out > to print the value of "my.variable". Obviously the naming scheme collides with the expression language ("my" is not an object and certainly does not have the getter getVariable). Is there a way to work around this problem?

What? Why do you consider it a bad way? It's the only
naming scheme I know!
It's pretty straight forward to use the package name
to make your attribute names unique. See either Struts
or Java Petstore (org.apache.struts.Globals or
com.sun.j2ee.blueprints.waf.controller.web.util.WebKeys
as an example.Btw those Globals and WebKeys, are static finals or constants.
this is something completely different, and if you would really look good in stead of refusing some friendly advice you'll see that indeed the packages are separated with a . and the variables are with a _
so calm down and try to listen what we say.
If you give to java a x.y he'll thing y is a method of x or that y is a class in the package x
ok?
greetings

Similar Messages

  • Problem with variable name in ZXRSRTOP include (virtual KF)

    Hi all,
    I am coding a routine to use a virtual key figure in the BEx.
    I have just a little problem with the name of a variable:
    as explained in the documentation, I created the variable with the prefix G_POS_, the name of the infocube and the name of the infoobject all together:
    DATA: G_POS_BC_ST_003_C_DIV__C_COMPAR   type i.
    The problem is that this variable name is longer than 30 characters, so the system doesn't accept it.
    Is there a workaround, other than changing the name of the infoobject (which is a navigational attribute)?
    Any help would be appreciated.
    Loï

    Hello Marc,
    I understand that I have to use a concatenate function and a dynamic call of the variable with (variable) instruction, but i do not understand how to implement it.
    the infocube name is BC_ST_003
    the characterisdtic name is C_DIV__COMPAR
    So, in the include ZXRSRTOP the statement
    DATA : G_POS_BC_ST_003_C_DIV__COMPAR
    does not work due a length problem (see first post)
    But in the same include the statement
    +DATA: l_global_name type c.
    concatenate 'GPOS' 'BC_ST_003' 'C_DIV__C_COMPAR' into l_global_name separated by '_'.+
    drives to the following error : statement is not accessible.
    Could u please provide me with an example of the code in the include ZXRSRTOP, and in the include ZXRSRZZZ for the use of this variable.
    Thanks in advance.
    Loï

  • Error -43  when try playback on win7 64bits over the network QT that recide MacPro  osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT

    error -43  when try playback on win7 64bits over the network QT that recide MacPro  osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT  nfs sharing

    Never mind, I already found the solution myself.
    What I did wrong was:
    - not copying the master image to the nbi folder
    - selecting the netinstall-restore.dmg image as source to copy to my HD.
    The thing is, when you create a netinstall image for 10.5, the image itself is already included in the netinstall image so you don't have to do anything else.
    With the 10.4 image however, you also have to copy the master image to the NetBootSP0 directory.
    In the *.nbi folder contains an netinstall-restore.dmg file. But that is only to boot you to netrestore, it's not the image itself.
    Other alternative is to copy the images to another folder that you share with AFP and adjust the configuration of netrestore like described in this manual:
    http://www.shellharbourd.det.nsw.edu.au/pdf/misc/osxrestoringnet.pdf
    This manual was also how I figured out that I forgot to copy the image to the NetBootSP0 folder.

  • Problem with reserved names

    hi everyboody
    i have a problem with reserved names
    i have a table t
    drop table t;
    create table t
    t_id int,
    "DATE" date
    then i insert it
    insert into t values(1,'15.04.10');
    insert into t values(2,'16.04.10');
    select * from t;
    it'sw work correct
    T_ID DATE
    1 15.04.10
    2 16.04.10
    but when i try to create procedure for insert, like this
    create or replace procedure my_proc(p1 int,p2 date)
    as begin
    insert into t values(p1,p2);
    end;
    i receive error message
    i know that the problem is with the name of the second column called "DATE"
    and if we changed this name (for example "tDATE") the procedure will be work
    but i can't change this name
    if anybody knows the solution please help me

    Karthik:
    No, it is not a bug, it is just the way that Oracle works. The list of reserved words can be found in the view v$reserved_words. There is a column in that view called reserved. A word that is in the view and has Y in the reserved column is "really" reserved, that is you will get an error if you use it in an inappropriate place (like a column name) without quoting it. Words with N in the reserved column should not be used as object names, but because they either became special later in Oracle history or for other reasons can be used unquoted but shouldn't be.
    Although I don't know the exact internal mechanism, from experience, it appears to work this way. When Oracle stores the name of a table or column, it always makes it upper case, unless it is double quoted in which case the case is preserved. When it retireves the names, it does not make any changes to the name as it is stored, so always retieves the name as it was stored.
    In the OP's case, by using double quotes he got around the reserved word issue, but by using all upper case within the double quotes what ended up stored in the data dictionary was a reserved word. The sql statement probably worked in sql because it is just doing a string match to see if the specified column names are right, and in the absence of a column list, may even be just looking to see if the type and number is correct without actually looking at the name. I suspect this because it works even if you explicitly list the columns as long as DATE is double quoted.
    SQL> INSERT INTO t (id, "DATE") VALUES (1, sysdate);
    1 row created.
    SQL> roll
    Rollback complete.However, if you do not double quote the column, you get:
    SQL> INSERT INTO t (id, DATE) VALUES (1, sysdate);
    INSERT INTO t (id, DATE) VALUES (1, sysdate)
    ERROR at line 1:
    ORA-01747: invalid user.table.column, table.column, or column specificationIn the case of the PL/SQL, my quess would be that the compiler is retrieving the column names form the data dictionary, then barfing on something similar to the ORA-1747 error above in the compilation process.
    John

  • Problem with song names

    Hey, I'm having this problem with song names. For example, instead of the song title being "Song Title" it will be like "Artist Name - Song Title". It's like this for half my files. I'm trying to organize my music files and every time I fix it, it keeps going back.
    This has happened to me before and usually if I double click it, it will automatically change. This time, nothing seems to work except doing it manually ("Get Info)" and that would take too long since I have 7,000 files like this. I posted this on another board and somebody said to right click the songs and click Update ID3 v2.4 which originally worked, but now nothing but manually doing it works.
    This is like this when I open it for other programs, but I know iTunes caused. I think it has something to do with the "Keep my iTunes Folder Organized" check because iTunes renames the file. I also tried reinstalling itunes and readding my files.
    Thanks for any help!

    I don't completely understand what you are trying to say, but iTunes doesn't automatically change your tag information.
    iTunes stores a copy of the tag information in the library database. When you play a track, iTunes re-reads the tag information from the song file and updates the library data. This produces the efferct that iTunes appears to change tag information but it isn't, it is meerly reflecting a change that already happend.
    Do you have any other software on your PC that can automatically change tag information? For example Windows Media player can do it if you select an option to retrieve data from the internet and overwrite existing info. But other software may do it too.
    If you want to force iTunes to re-read all tags, go to your Music view and go to Edit>>Select All. Then right click in the selection and choose Get Info. Don't change anything, just exit by clicking OK. iTunes will update the library with the tag information from the song files.

  • Problem With Image Names

    When I enter new images into iPhoto I name them using a set scheme. It goes something like this D108R218 - 14 - 1. The number following D is for the DVD disk on which the backup for this image is stored, the number following R is for the number of the roll, and the number following the first - is the number of the image on the roll. The final number following the last - is the number of prints made from this image.
    This system has worked well for me in terms of letting me track my thousands of images but I currently have a problem with it. As so often happens when I was applying these numbers I made some changes in the way I entered them. Early on I used the # sign following the Roll number but several months ago I stopped using it. Early on I would make a space before and after the -. Trouble is now when I conduct image searches there is no way for me to know whether to include the # or the spaces before and after the -. Is there any way I can fix this mess without having to go through thousands of images making the system uniform?
    Thanks,
    Win

    Terence,
    How would you be able to do this using the Batch command? Wouldn't that destroy the number sequence entered into each file name?
    All best,
    Win

  • Problem with attribute id in taglib

    <req:headers id="hdrs">
              <jsp:getProperty name="hdrs" property="name"/> = <jsp:getProperty
              name="hdrs" property="header"/>
              </req:headers>
              When the JSP gets compiled it throws an error that is does not know about
              property "hdrs". Why?
              

              Try limiting the length of the session id.
              This is in either the weblogic.xml/web.xml
              files. You can get the dtd in the 6.0 doc.
              "Thierry Cools" <[email protected]> wrote:
              >Hi I have a problem with the session id that is generated in tha address bar
              >of my brower
              >When I start my application the following link appears
              >
              >http://127.0.0.1:7001/ebpp_beans/enterLogonInformation.do;jsessionid=Olw9VMc
              >0I1Z52YMgycyD23c8L4Ch2FurHLwbV2WhZw731dR3mBtJ|8186718416288373359/-140823374
              >1/7001/7002
              >
              >It seems that Weblogic 6.0 generates '/' characters in the session id.
              >This has for consequences that the servlet engine is taking the session id
              >in its context path, so that none of my links are working anymore.
              >
              >Could someone give me a clue to solve this problem
              >Thanks,
              >Thierry
              >
              >--
              >
              >Thierry Cools
              >
              >Senior Java Developer
              >S1 Brussels
              >Kleine Kloosterstraat, 23
              >1932 st. Stevens-Woluwe
              >Belgium
              >Tel : +32 2 200 43 82
              >Email : [email protected]
              >
              >
              >
              

  • JSTL problem with JSP

    Hi,
    I am developing enterprise application using jboss portlets, ejb, jsp, jstl, other stuff on jboss AS.
    I am facing some interesting problem in a jsp page which uses jstl. I have configured all jsp configurations with my web application.
    Presently i am putting an endpage, current page integer values in a session.
    In JSP page whenever i want to iterate a loop and some checks on endPage, curPage it gives me NumberFormatException and finally it results to compile the jsp page.
    The error comes when i am using these variables from session with JSTL tags. The snippet where the problem seems to be is as :
    <c:forEach var="selection" begin="1" end="${endPage}">
         <c:if test="${selection == curPage}">
    May anyone help me on this or whether the there may be some problems with the JSTL configurations ?
    In my view JSTL configurations is ok but the problems seems to be in the statements above or there may be some other way to define it.
    Any inputs ?
    -Sachin
    Software Engineer,
    EpiComm Technologies.

    The Snippet of Error Stack Trace on server console is here:
    11:38:32,234 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
    java.lang.NumberFormatException: For input string: "${endPage}"
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
         at java.lang.Integer.parseInt(Integer.java:468)
         at java.lang.Integer.valueOf(Integer.java:574)
         at org.apache.jasper.compiler.JspUtil.coerceToInt(JspUtil.java:752)
         at org.apache.jasper.compiler.Generator$GenerateVisitor.convertString(Generator.java:2914)
         at org.apache.jasper.compiler.Generator$GenerateVisitor.evaluateAttribute(Generator.java:2717)
         at org.apache.jasper.compiler.Generator$GenerateVisitor.generateSetters(Generator.java:2823)
         at org.apache.jasper.compiler.Generator$GenerateVisitor.generateCustomStart(Generator.java:2156)
         at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1665)
         at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1685)
         at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         at org.apache.jasper.compiler.Generator.generate(Generator.java:3270)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:189)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.jboss.portal.portlet.impl.PortletRequestDispatcherImpl.execute(PortletRequestDispatcherImpl.java:64)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

  • Problem with table name lengths.

    Has anyone experienced with table name length problem?
    When tables are created with schema registration, and the name is longer than 14 characters, the table is created. But when I "select * from xxxx_xxxx_xxxx_xxxx" it says that the table doesn't exist.
    What's the max length of a table name? Or is this a problem with XDB?
    Thanks,
    Benjamin

    Found the problem.
    All table names must be all capitalized and seperated with underscore.
    Is there something I need to set in oracle? or is this a bug? The tables are created but can't be accessed because of the case of table name... that doesn't make sense.

  • Problem with constraint names

    Hi to all, I have a problem with the constraint names. I need to delete the table name that is used like prefix in the constraint name.
    Example:
    - Actual : DBO_MYDATABASE_FK_Ho_Ka
    - Desired : FK_Ho_Ka
    The constraint names are FK_Ho_Ka in the creation database script, but if I import the database schema, I have DBO_MYDATABASE_FK_Ho_Ka, but I only need the constraint name.
    Thanks so much :)

    Thanks for your time :)
    I did a migration from Microsoft SQL Server 2005 to Oracle 11g database. Then, I need to use the same Entity Framework model to use with Sql Server and Oracle. Then, I need that the constraint names must be the same in the two databases.
    I did the migration with Oracle Sql Developer and all works fine. The resulted migration script has the constraint name like FK_UJ_UK (that it's OK) but when I import the database schema or do the Entity Framework model, I have this constraint name DBO_MYDATABASE_FK_UJ_UK.
    Edited by: Bluegene on Dec 11, 2008 9:35 AM

  • Problem with "Prohibited name". Disk Utility can't repair the disk!

    Hello,
    Sorry if my english is not perfect, but I do my best!
    I have a problem with almost all applications. When I quit an application, it appear the crashed window. I can submit to Apple support the report, but I don't because there is too much.
    I start on a cd-rom and lauch Disk utility. It can't repair the disk because of two "prohibited name" lines in red. No more information!
    What are the two "prohibited name"? File? Folder?
    How to repair the disk?
    Any idea?
    Please, help me.
    Thank.

    Bienvenue To  Discussions GMDC!
    Exactly which model Mac G5 is it?
    What size is the Hard Drive, and how much space is available?
    How much RAM is installed, and is it original or added?
    What peripherals do you have connected? A keyboard, mouse, printer, external drive or modem, router, etc?
    What happened between the last time the Mac functioned successfully, and when it didn't?
    Have you made any changes, like upgrading the system, updated or installed any applications or programs, etc?
    Have there been any unusual occurences, like freezes, crashes, power outages, etc?
    See if you are able to perform the procedures posted below, and post the results.
    THESE ARE THE STEPS FOR USING DISK UTILITY TO REPAIR YOUR HD
    1.Insert the System Install disk, Mac OS X CD-ROM disk, or Restore DVD disk, then restart the computer while holding the C key. Use the System disk, of the OS, that is currently installed.
    2.Once started up from CD or DVD, on the Menubar at the top of the screen, choose Disk Utility from the Installer contextual menu for Panther, or Utilities for Tiger.
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from disc to access Disk Utility.
    3.Click the First Aid tab.
    4.Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
    5.Select your Mac OS X volume, if necessary.
    6.Click Repair. If DU reports errors it has fixed, re-run Repair Disk until no errors are reported.
    7.Repeat steps 5 & 6, but select the Hard Drive this time. It's usually the first listed with the manufacturer's model number. Make note of the S.M.A.R.T. status.
    8.When finished, select Quit Disk Utility from the Installer menu.
    9.Select Quit Installer from the Installer menu.
    10.In the resulting pop-up window, choose restart.
    11.After the computer has restarted, you can eject the CD.
    TO REPAIR PERMISSIONS ON THE STARTUP DISK
    1.Open Disk Utility, located in Applications/Utilities, and select the startup disk in the left column.
    2.Click First Aid.
    3.Click Verify Disk Permissions to test permissions or Repair Disk Permissions to test and repair permissions. (I never "Verify". Just run "Repair".)
    When "Repair Permissions" is complete. Quit "Disk Utility".
    ali b

  • Problem with collection names getting replaced when creating new collections in Photoshop Elements 5.0

    We have been using Photoshop Elements 5.0 a lot lately to organize many photos into collections.  A new problem just arose when creating a new collection.
    As we named the new collection and clicked on "OK" it replaced another existing collection with the new name.  The photos from the old collection were still there but now under the new collection name.  This happened at least three or four times, each time a different "old" collection was renamed.  Does anyone know why this would happen?
    This past week we have added at least 20 new collections with no problem prior to this.  Adobe actually had to shut down when this happened.  Each time we reopened Adobe it would happen again randomly renaming a different "old" collection when we tried to add the new one.  Any insights would be much appreciated.

    Thank you - that was the problem and now it is working correctly
    again!
    Tom Z.
    >>> saurabh288 <[email protected]> 05/24/09 4:23 AM >>>
    It may be that the catalog has been corupted.Try repairing the
    catalog of PSE.

  • Problem with SubmitButton name across screens, which use the same action?

    I am using multiple submit buttons in a single JSP. The problem i am using the same action across 4 screens, and excpet the 1st screen the remaingin 3 screens have BACK & Continue button, in every page the click of back button should take back to the previous screen and continue should submit the options selected to the next screen;
    The problem is i m using to LookupDispatchAction to handle multiple submit buttons, and i m using this for buttons
    <html:submit property="method"><bean:message key="reg.bt.back"/></html:submit>
    In resource bundle reg.bt.back=Back , but i need to pass to the previous screen so how to do that
    Help needed............
    Thanks in Advance

    why can you not store the information you require in the session?
    session.setAttribute("attributename" <attribute object>);
    surely that would negate you needing to pass parameters though the http?
    but otherwise there are several ways to do this, first of all you could simply rewrite the URL, which i'll admit is slightly labour intensive, but it would do the job... of if you really wanted you could put hidden html values throughout your page, and populate them with the data you wish you pass in your request, as long as the hidden inputs are in the <form> there should be no issue here.
    N.B. you are right, i would never suggest using JS for ANYTHING to do with sessions and submitted/retrieving data when you are using a JSP.

  • Problem with pages name in dashboard  Oracle BIEE 11g

    Hello.
    I use Oracle BIEE 11.1.1.3.0
    I have dashboard 'CBR_CTLOG'. Dashboard has two pages 'Протокол контроля' and 'Протокол контроля детализированный'.
    Both pages have dashboards prompt with active "Apply to all prompt pages"
    When I go from 'Протокол контроля' to 'Протокол контроля детализированный', I get error:
    Invalid path (/shared/CBR/_portal/CBR_CTLOG/Протокол контроля детализированный) -- path not found in dashboard
    But when pages have English name "Test" and "Test2", I don't get this error.
    I think, it's connected with that I don't use English languages for pages name, and BI EE don't make link for crossing.
    How can I solve this problem, because I can't use English names for pages.

    Hi Ramon,
    I am also facing the same problem... My driver name get changed after installing oracle 8.1.7.. I also don't know how to change back the driver name..

  • Problem with file name r�servation.txt

    I am facing a strange problem. I have a file named r�servation.txt. File.isFile() method returns true for this file on Windows, but on linux it returns false. I am using SUSE Linux 10 version. As you can see, there is an extended character (�) in the file name which causes the issue.
    Could anyone please help resolving the problem?

    Rename the file? IMHO, filenames with special characters and white spaces and all that are nothing but a nuisance, but that's just my opinion...

Maybe you are looking for

  • TS1702 Time Warner app problem

    Time Warner app no longer works.  Reinstall and other attempts do not fix.  All I get is the TW logo and after 15 seconds the channel lineup flashes by.  Any ideas?

  • Problem in reading mails!!

    Hi, I am using mail adapter to access my mails...i am successful in sending mails and moving folders too...but the problem is when there is a message..then i could not able to read it...if i click on that message subject..it is giving "Cannot open in

  • (261680070) Q WWO-2   Can I use a different vendor to host Workshop web services?

    Q<WWO-2> Can I use a different container(say IBM websphere) to host my "BEA workshop implemented" web services? A<WWO-2> The web services generated by Workshop (.jws files, .ctrl files, etc), while they are J2EE compliant, are not likely to be ubiqui

  • Reference Masters not found any more after upgrading to 3.1

    Hi, anybody else having this annoying problem which I thought was fixed in version 3.0.3 ? I upgrade to 3.1 and now have the problem that Aperture does not find reference masters despite the volume (AFP mounted volume on a QNAP NAS) is active. Of cou

  • Interface Builder: Problems with selecting items?

    Hello, does someone else have experience with IB selection problems? I did the following: -Created a textured window -Dragged a toolbar into it -Dragged a NSScrollView into the textured window -Gave the NSScrollView a white background -Scaled the NSS