Trying to use a page scope variable for commandLink action

Right now I have a header file that displays breadcrumbs and I am trying to use jsp:include with a jsp:param that includes the current page title (we'll call it "My Page")
It looks like this
      <f:subview id="header">
         <jsp:include page="/includes/header.jsp">
            <jsp:param name="navbar1" value="My Page"/>
         </jsp:include>
      </f:subview>In the header I want something like this:
<c:set var='navbar1' scope='page'><%= request.getParameter("navbar1") %></c:set>
<h:commandLink id="mypage" action="${navbar1}"
                          value="${navbar1}" immediate="true"  />But I'm getting this error:
org.apache.jasper.JasperException: /includes/header.jsp(103,18)
According to TLD or attribute directive in tag
file, attribute value does not accept any expressionsAnybody have any ideas on how I can accomplish this?
Edited by: jrock on Nov 14, 2009 9:15 PM
Edited by: jrock on Nov 14, 2009 9:17 PM

Sorry, I guess I wasn't clear
I understand why it isn't working, what I was looking for was any suggestions as to how I can accomplish my goal. The code was there to clarify what I was trying to do.

Similar Messages

  • Dear sir/madame,I have tried to use the inbrowser editing capability for Adobe Muse to login to my CMS. To login I have use the exact same FTP details I have used to upload my website, I even checked the page url multiple times but I keep getting the same

    Dear sir/madame,I have tried to use the inbrowser editing capability for Adobe Muse to login to my CMS. To login I have use the exact same FTP details I have used to upload my website, I even checked the page url multiple times but I keep getting the same error (the username and password are invalid for your FTP server. Please check them and try again). The hosting website (Yourhosting.nl) only has this one FTP user, which I cannot expand to more users. Can you please tell me if I am doing something wrong? The url to this page is http://e-divecollege.be/index.html or www.e-divecollege.be

    Dear sir/madame,I have tried to use the inbrowser editing capability for Adobe Muse to login to my CMS. To login I have use the exact same FTP details I have used to upload my website, I even checked the page url multiple times but I keep getting the same error (the username and password are invalid for your FTP server. Please check them and try again). The hosting website (Yourhosting.nl) only has this one FTP user, which I cannot expand to more users. Can you please tell me if I am doing something wrong? The url to this page is http://e-divecollege.be/index.html or www.e-divecollege.be

  • I can't get ahome page that has 6 or 8 tablets of most common used websites. Tried Option "use current pages" without success. Can you help?s

    Since having Firefox I have used as a Home page a page with "tablets" showing the most recent pae of my most popular websites. By clicking on this I returned immediately to that site. Suddenly it's disappeared and I can't get it back. I tried "Options Use current pages" but that doesn't work. Help!

    You can set the home page to about:newtab to have the page with the 5x3 tiles showing.
    You can check the home page setting:
    *Tools > Options > General > Startup: Home page
    Firefox supports multiple home pages separated by '|' (pipe) symbols.
    *https://support.mozilla.org/kb/How+to+set+the+home+page
    You can check the value of the <b>browser.newtab.url</b> pref that sets the new tab page page and make sure it is set to about:newtab.
    See this article about the New Tab page (about:newtab):
    *https://support.mozilla.org/kb/new-tab-page-show-hide-and-customize-top-sites

  • Can I use XSQL pages & XSQL Servlet for oracle 7.3 ?

    Can I use XSQL pages & XSQL Servlet
    for oracle 7.3 or not?,if it is possible
    please give me reply.
    Thanks.
    Ramesh Nallapu.

    Can I use XSQL pages & XSQL Servlet
    for oracle 7.3 or not?,if it is possible
    please give me reply.
    Thanks.
    Ramesh Nallapu.
    null

  • I just tried to use my iphone as modem for my laptop but once i select the iphone at my network connections it ask me for my password, does anybody knows if that information is either my iphone serial number, fcc id, IC, etc

    i just tried to use my iphone as modem for my laptop but once i select the iphone at my network connections it ask me for my password, does anybody knows if that information is either my iphone serial number, fcc id, IC, etc

    If you are trying to connect via wifi to our iPhone then the password should be displayed on your phone when you go into Personal Hotspot, by default it is a random password set by the phone but you can change it there.

  • HT4641 Trying to use the Pages WebDVA just. Put in info and try to connect and get "error message and try again". Is there a fix?

    Trying to get a file from Dropbox for Pages on my iPad. Used the Pages webDVA but it gives a error and to please try again. Can i use this feature or is it another useless feature of Pages?

    Dropbox doesn't support webdav.  Do a google search on "dropbox webdav"  to find out what you have to do.

  • Trying to use SCXI-1128 independent mode for 64x1. Demo doesn't correct issues

    I'm trying to use the SCXI-1128 with the independent topology as both a 32x2 and a 64x1 switcher. I have no problems using it as a 32x2, but when I try to control the HLSELECT and 1WIRE relays, I get errors. I can see them as "open", but if I try to "close" either of them I get an error or a no path exists message. I've tried to use the demo from a previous post:
    "How Do I Program the SCXI-1127/1128 in Independent Mode as a 64x1 Multiplexer?"
    but it still doesn't allow me to utilize the 64x1 configuration. Am I missing something here? Why won't LabView allow me to connect HLSELECT and 1WIRE and how can I get around this problem? Has anyone had success with using the 1128 as a 64x1 m
    ux. Just to fill in the rest of the hardware blanks, my communicating device is a 4060DMM and can only be used as a traditional device. I also have a SCXI-1331 attached to the front end of the 1128. Physically, I have a 1k resister from ch0+ to 1_wire_lo_ref and that's what I'm trying to measure with the DMM. As I said before, I have successfully measured voltage and resistance in 32x2 wire mode. Any help would be appreciated!
    Thanks,
    Andy

    Do you know of a good way to cancel the path resistance?
    It sounds like you may have solved my problem here. I'll have to try this out and see. Basically what you're saying is I have to configure all the channels (using MAX) to 1wire. Then I can freely use the independent mode to make 1,2, or 4 wire measurements with full relay control??
    If that's the case then you may ignore the following. If that isn't the case, let me describe what I'm trying to do.
    I'm glad you pointed out that last piece of information. The reason I want to use this device in independent mode is because I plan to account for the 400 to 800 ohm path resistance of the 1128 (and not have to buy a 4070). I think I can do it, but I'd have to be able to use any channel (ch0 for example) as both a 1 wire and a 2 wire terminal (no need to do it simulataneously, I just have to be able to go back and forth). If I phyically connect ch0+ directly to 1wire_lo_ref and connect ch0- to my 1K resistor and then connect the other side of the 1k to 1wire_lo_ref, I am hoping to be able to determine the path resistance of the entire switch. In order to do this I'd have to take three 2-wire measurements. One from ch0+ to the ref, one from ch0- to the ref, and then I'd have to set up ch0 as a 2 wire terminal and measure the entire path resistance. By using the first two measurments I can calculate the parallel resistance of the ch0+ and ch0- and then I can do some math to cancel out the path resistance. Long story to come to my ultimate question, but I guess what I'm asking is:
    Can I use the 1128 in independent mode and configure ch0 as a 1 wire channel (i.e. ch0+ and ch0- with 1wire_lo_ref as a common) and then configure it as a 2wire channel(simply ch0)?
    Here's an ascii of the circuit:
    |=== 1wire_lo_ref
    |
    Rpath(1wire)
    _____|___________
    | |
    1K |
    | |
    Rpath ch0- Rpath ch0+
    | |
    ch0- ch0+
    | |=============com0+
    |
    |=============================com0-
    Thanks for the help, I hope configuring all channels to 1wire will solve my problem.

  • I just bought a new iMac and now I am trying to use it as a screen for my Macbook pro, but it don't have a Mini DisplayPort the new model only have Thunderbolt which my Macbook don't have. Is there any way to connect this two mac's anyway??

    I just bought a new iMac and now I amtrying to use it as a screen for my Macbook pro, but it don’t have a MiniDisplayPort the new model only have Thunderbolt which my Macbook don’t have. Isthere any way to connect this two mac’s anyway??

    Screen sharing setup in 10.5, 10.6 are described by the links by operating system.  10.7 is fairly similar to 10.6.
    And if both Macs have Firewire, you can setup a Firewire over IP network for fast communication between machines.  Note if you have two different Firewire ports a 6 pin to 9 pin Firewire cable does exist.  There are no Firewire to USB cables.

  • I'm trying to use my older Acrobat 4 for printing files from an older Macintosh with system 9, so that I can store and use the pdf documents in a newer MacBook Air, with OSX 10.9.  Acrobat 4 worked previously but no longer works.  Any way to fix it?

    I am trying to transfer older files from a Mac PowerBook G4, running system 9, printing those documents as pdf, using Acrobat 4.  Then those pdf documents will transfer to my newer MacBook Air, running OSX 10, allowing me to store and use them.  My problem is that Acrobat 4 no longer seems to work on the old Mac, and I don't know how to fix it.  Can anyone give me some suggestions?

    You never know, someone might remember. What happens in detail when you try to use it, and HOW are you trying to use it?

  • Session-scope variable for JSP page used in a frame

    Hi,
    I don't know if there's a way to do this at the same time:
    (1)- assign session scope to a variable (in order to be able to retrieve recurrently the previous value each time the JSP is called);
    (2)- set its visibility in a way that it could be accessed only by the page that defines it. The JSP is used in a frameset along with an other JSP that can potentially define identical session-scoped variable (You understand why I want to keep them separate)
    session.setAttribute():
    seems not to be the thing I need
    pageContext.setAttribute():
    with SESSION_SCOPE, it behaves the same way as session.setAttribute(). with PAGE_SCOPE, condition (1) can't be satisfied.
    Does anybody have an idea ?
    Thanx in advance.

    I can see that you will not want to maintain two different files for every possible page on the site!
    It may be possible to do something like <frameset rows="*" cols="50%,*">
      <frame name="content1" src="file.jsp?frame=one" >
      <frame name="content2" src="file.jsp?frame=two" >
    </frameset>and then in the jsp<%
    String frame=request.getParameter("frame");
    session.setAttribute(frame+"AttributeName",attributeValue);
    %>This will set up two session attributes - "oneAttributeName" and "twoAttributeName". Depending on how many variables you have, this may prove just as difficult to maintain.
    You may end up having to simply pass url parameters between pages to maintain state within the individual frames, which is far from elegant also.
    I am interested in how you end up solving this one.

  • Using System::StartTime in variable for external file name comes out incorrect sometimes

    Hi All,
    I have an interesting dilemma.  I'm using SQL Server 2005 with Visual Studios 2005 (9.00.4035.00).
    I'm writing records from my database table out to an external flat file, nothing fancy other than in the naming of the file being dynamic and using system time.  So I have a couple of variables set:
    CR_Dir = \\host\directory\
    CR_Outfile = "AP_" +  (DT_WSTR, 4)  YEAR( @[System::StartTime] ) + RIGHT("0" + (DT_WSTR, 2) MONTH(@[System::StartTime] ),2) + RIGHT("0" + (DT_WSTR,2) DAY( @[System::StartTime] ),2) + RIGHT("0"
    + (DT_WSTR,2) DATEPART("Hh", @[System::StartTime] ), 2) + RIGHT("0" + (DT_WSTR,2) DATEPART("mi", @[System::StartTime] ),2) + RIGHT("0" + (DT_WSTR,2) DATEPART("ss", @[System::StartTime] ),2)
    + "_chref"
    And then in my Connection Manager properties I have an expression that brings them all together with a file extension:
    @[User::CR_Dir] +  @[User::CR_Outfile] + ".ctl"
    So what I should get for example is something like AP_20140309214502_chref.ctl  (if the job was run on 03/09/2014 @ 9:45pm) When executed properly.  I do this for two flat files one with an extension of .txt and the other with .ctl. 
    These steps are working fine the majority of the time.
    However, my problem is that occasionally, the portion of the filename that contains the datetime stamp is completely incorrect for one of the two files that are created during the same time frame.  And I'm not talking about a few seconds or even a minute
    or two, the date is off by weeks.  Here's an example:
    AP_20140309214502_chref.txt
    AP_20140213152253_chref.ctl
    This has happened twice since starting to run this job over the past four months, once on 12/15/2013 and again 03/09/2014.  This job is run every night at 9:45pm, and all the other days that this job runs the two filenames come out perfectly. 
    So I'm leaning towards something in the system that may be corrupting my variable every once in a while?  But because it happens intermittently how can I verify this?  Or is there a better way to perform what I'm trying to do that would be more accurate
    and consistent?
    Any help would be appreciated.
    Thanks
    Sawyer

    Hi All,
    I haven't found a solution to this issue.  I'm not actually able to reproduce it at will, so it's hard to troubleshoot.  What I've decided to do is rewrite my variable expression and make one system call for date and time and place it into
    a variable and then use the variable to build the file name.  Also I changed from using the System::Startime to using the GFETDATE() function (Don't know if this helps but it was easier to use in my substring when I parsed out the different time elements:
    v_DATETIME   STRING   SUBSTRING((DT_STR,30, 1252)GETDATE(), 1, 19)
    CR_Outfile      STRING   "AP_" + SUBSTRING(@[User::v_DateTime],1 ,4 ) + SUBSTRING(@[User::v_DateTime],6 ,2) + SUBSTRING(@[User::v_DateTime],9 ,2) + SUBSTRING(@[User::v_DateTime],12, 2) + (@[User::v_DateTime],15 ,2) + SUBSTRING(@[User::v_DateTime],18,2)
    + "_chref"
    I don't want to leave this thread as unanswered for too long so I'll give it another day or two and then close it.  I'll report back in a few months to let you all know if this problem has reoccurred or not.
    Thanks for the assistance.
    Sawyer

  • Using TCP or shared variable for data transfer

    I am trying to send a large amount of numbers from a real-time module to a host computer.  These numbers have been arranged into a large array, such as an array with 10s of thousands of points.  The time critical portion of getting the information has already been done, so the data transfer back to the host VI is not time critical.  I know I will need to break the large array down into smaller arrays and then reform the large array after all the information has been sent.  I know how to use both TCP and shared variables with FIFO.  What I am unsure of is which one is better to use for this application.  I do not know what the maximum size arrays I can send through either.
    Also, from what I have gathered from using LabView is that the sender has to be listening for a connection before the client opens a connection, or else it will throw an error.  When I tried breaking it down into 50 points, if i did not wait long enough in the host VI or if I did not put a long enough wait function in the RT loop, and error would throw, so it would take a long time to transfer the data when it worked properly.
    Any help or suggestions is appreciated, thanks.

    Regarding the array size question, there is no real limit (other then the amount of memory in your system) to the size of data that you can transfer in a single block using either TCP or the Shared Variable. In your case you can easily transfer an array with 10's of thousands of data points in a single write operation. Both TCP and the Shared Variable will automatically handle breaking up the data for the maximum packet size on Ethernet and then reconstitute the array on the receiving end. In LabVIEW you will simply get back the array as a whole without needing to worrying about how the data is broken into smaller packets on the Ethernet.
    I tested the attached example which transfers 400kB per block (50000 Doubles) without any problems. You do need to have the Server (in this case RT) running first before the client (Windows) can connect.
    Message Edited by Christian L on 02-09-2007 11:34 AM
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense
    Attachments:
    TCP.JPG ‏44 KB

  • Help setting Parameters using JDBC and Bind Variables for Oracle List

    I fully understand the concept of using Bind Variables when using JDBC to avoid hard parses everytime my SQL statement is executed when only a certain value changes. For example, perhaps I have the following statement:
    PreparedStatement ps = con.prepareStatement("select salary from employees where employee_id = ?");
    I would then set the value of the question mark (the first and in this case only parameter) using:
    ps.getStmt().setString(1,empId1);
    That is assuming I have the variable empId1 populated with what I want. Anyway, my question has to do with Oracle lists. In other words, if I am just executing the statement against the db, it might look like:
    select salary from employees where employee_id in ('123','456','789');
    I still want to use bind variables and I can do it in JDBC with something like:
    select salary from employees where employee_id in ('123','456','789');
    ps.getStmt().setString(1,empId1);
    ps.getStmt().setString(2,empId2);
    ps.getStmt().setString(3,empId3);
    BUT, what if I just want to construct my list of ids upfront as a string and do something like:
    select salary from employees where employee_id in (?)
    ps.getStmt().setString(1,listOfEmpIds);where listOfEmpIds would look something like '123','456','789'.
    That's what I want to do but it doesn't work. It would be treating the list as a single parameter as opposed to lots of individual parameters. Can someone please tell me the syntax for this if it is possible? I have tried where XX in (?) and where XX in ? (and the string I substitute has the parenthesis in it), but neither work.
    Thank you for your help.

    I always build the list myself.
    You could, however, pass the list as a varchar to a stored proc and then have the stored proc parse (or dynamically execute) using it.
    The second method might even be faster although I would suspect that is only going to be the case if the list is very large. Or it might not.

  • Trying to use the BT Sport player for the first ti...

    I have BT Sports through Sky and need to watch it online today as I am awaiting a replacement sky box.
    Now when I try to log in theres a message saying sky customers are automatically signed up to bt sport online, and I've tried logging in with my bt email adress and password to no avail. Can anybody help or point me in the direction of how I can get logged in?

    I have a similar problem, I signed up via the Sky Digital platform, received an order confirmation email and the channels where activated on the Sky box immediatley. 
    I then recieved an email to activate BT-ID to use the Sports App. This asks for my account name (accepted) and security question (accepted), then it takes me to a page for a password (not given one). 
    I click a link to change the password (or create one in the case), this generates an email with a link, again the account name and security question is request only this time the security answer is not accepted.
    I also tried to register for a BT-ID manually but it states my user already exists.
    Any pointers welcome.

  • How can I use the same Sound variable for multiple sounds?

    I need my program to play many different mp3 files at different times.  I'm reading that you can not load different mp3 files into the same Sound variable.  But there must be a way around this right?  Can I Unload mp3 files some how?  Or can I delete the Sound variable and declare it again?  I don't want to have hundreds of Sound variables so what do I do?  Thank you.

    delete doesn't work in as3.  you must remove all listeners and references including nulling the variables.  for displayobjects, they need to be removed from the display list.
    p.s.  you don't need to create a sound instance until you need to load an mp3 using one.  so, if you're waiting for user input to start loading an mp3, you should wait for that input to create that sound instance.

Maybe you are looking for

  • Screen-caps - A Photoshop Workflow

    Users often ask how to do screen-caps, to show what is happening with their program. Below are possible workflows for creating the screen-caps, and then there are instructions on how to "attach" the screen-caps to a Reply in the Adobe Forums, but onl

  • Need to know the integration of jbossMQ integration with websphereMQ

    Hi,iam having the doubt in integration of websphereMQ with jbossMQ.My problem is,client program going to send data to the queue located in websphereMQ server,that queue is going to linked with the queue located in JBossMQ server,whenever jbossMQ queu

  • Problem Using iDVD to burn a movie

    Hi, I'm very new to Mac world and trying to learn. Recently when I tried to use my iDVD to burn DVD, I faced a problem where even the Mac Support centre fail to help me. I have a movie files and individual is about 420M in DiVX format. When I import

  • TopLink Workbench Webservices tutorial

    Hi, can you point me to a tutorial explaining how to use TopLink and Webservices ? I know there is an article and sample code on OTN for webservices/toplink but it doesn't say how you actually start .. That is : which are the steps one would have to

  • Can a device be too old for firewire 800?

    Hi all, I have an old Sony DCR-TRV30 mini-DV camcorder with a Firewire 400 4-pin out. I have long used Firewire 400 to connect to my MacBook Pro 2.16GHz core duo, circa 2006. Right now I'm running 10.6.8. In order to connect the camera to my students