Passing variables through the URL String

I have a template and outside the basic html - all the content is grabbed from a db. I want to use 1 template to generate all of the other pages for the site. So basically, the only way to identify the page would be through the URL string.
So, something like -
www.mysite.com/template.jsp?page_section=aboutus&pageID=1
That string would query the database and output the content for page 1 of the about section.
Does this make sense and where would I start to learn how this is done?.
Again, I appreciate your help.
Mark

since database connections are costly affair i better use
jsp include tag ratter then getting dadta from database
assumming that u can devide your comman pages in 4 parts
just assume
top - logo
bottom - common links
center - data
left - menu
my jsp page would look like this (aboutus.jsp)
<%@ include file="top.html" %>
<%@ include file="left.html" %>
<%@ include file="aboustus.html" %>
<%@ include file="bottom.html" %>
2) disclaimer.jsp
<%@ include file="top.html" %>
<%@ include file="left.html" %>
<%@ include file="disclaimer.html" %>
<%@ include file="bottom.html" %>
this would reduce ur maintainnce as if u want to change top logo only top.html needs to be changed and it would affect in all pages
regards
[email protected]

Similar Messages

  • Can I pass variables in the URL string?

    I am trying to get some variables into a loaded swf at
    runtime. The variables will carry information so the swf can load
    the correct xml file. I thought we could pass them through the URL
    string like so:
    new URLRequest("testing.swf?myVar=varOne
    but it just throws an URL cannot be found error. How can I
    get variables into my swf at runtime?

    What you are doing is fine. But you will always get that
    error when testing
    the movie (Ctrl+Enter). Try it in a browser and it should
    work.
    BTW, another way of doing the same is to use a URLVariables
    object, like so:
    var req:URLRequest = new URLRequest("testing.swf");
    var vars:URLVariables = new
    URLVariables("myVar=varOne&myVar2=varTwo");
    req.data = vars;

  • Passing variables using the URL

    in the past I have alsways used internal navigation methods
    within Flex - i.e. viewStacks, and linkBars etc... but I need to
    use an (existing) external menu and link (communicate) it to my
    Flex Application.....
    is it possible to pass variable to (into) a flex 2
    application using a URL
    e.g.
    http://...............
    ?page=homepage
    picking this variable ("page") up and getting its value (in
    this case "homepage")
    and then use the variable in the Flex application to display
    the relevent component...... ???
    basically, I am trying to navigate through a Flex application
    using an external menu system etc...... and displaying the
    particular components within the Flex application relevent to the
    select links (within the external menu system) communicating the
    two using a URL etc......
    thanks,
    Jon.

    Passing data into a Flex app using the url on startup
    requires working with the html handler, causing it to build
    flashvars in the Embed or Object tag. Inside Flex, these are
    accessed using the Application.parameters array.
    But it sounds like you want ongoing communication between the
    Flex app and the browser. For this you should use
    ExternalInterface. I have not used it at all, so I can't be any
    specific help.
    Tracy

  • Passing variable threw the url to flash

    Is it possible to pass variables to a flash obect threw the
    url and how would the url look?
    something like this?
    http://critcore.wisc-online.org/cri...ml?Objectid=183
    then I would request the objectid in flash using send and
    load? Or how would I retrieve that?
    Thanks for your help I appreciate it

    it would look like:
    http://www.yoursite.com?theVariable1=var1&theVariable2=var2
    in flash you just access it with _level0 ie:
    trace(_level0.theVariable1);
    trace(_level0.theVariable2);

  • Passing variables on the URL

    Is it possibe to pass variables into edge from the URL? I can see a scenario where you could send people a link like site.com/myedgeanimation/?=bob or site.com/myedgeanimation/?=alice and BOB and ALICE could each get a personalized animation.

    Hi,
    If you want to implement the equivalent of Flashvars, you will find an example here.

  • Commas not correctly processed when values are passed through the URL!!!!!!

    I think this is a bug. Any information about this will be greatly appreciated. Here's the scenario:
    There's a single page with 2 regions. The first region contains a simple SQL report. The second region is and HTML region that contains text and date form elements. The SQL report has a column link "Edit" that when pressed it populates form elements in the HTML region. The population of the form elements is done by passing the column values of the select row as variables along the URL. The problem is that commas within column value text are processed as delimiters in the URL. From my understanding and documentation, variables and their values are supposed to look like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:1234,,5678
    where MY_ITEM1 will be set to 1234, MY_ITEM2 will be set to null and MY_ITEM3 will be set to 5678 (The URL was copied directly from the Apex 3.0 documentation without modification).
    However if the first value is text (lets say "some,thing") that contains a comma, then MY_ITEM1 will be set to the text preceding the comma in the first value (some), the MY_ITEM2 will be set to the text that comes after the comma in the first value (thing) NOT null and MY_ITEM3 will be set to null NOT 5678. Clearly, one would think that the comma in the first value should be escaped given that commas are used as delimiters of values in this URL scheme.
    The URL looks like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:some%2Cthing%2C%2C5678
    However the URL should look like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:some%2Cthing,,5678
    where MY_ITEM1 is set to "some,thing", MY_ITEM2 is null and MY_ITEM3 is set to 5678
    What does all this mean? This means that the escaped commas (%2C) are used as delimiters for the values. Additionally, any information that is passed that contains a comma will have it's comma escaped as well AND still considered as delimiters for values in the URL. Not to mention it's inconsistent with the official documentation.

    Never mind... problem solved.
    In the Apex docs says that you can embed commas if used within backslashes like: \123,45\.
    So in order to pass text that has a comma through the URL, one must force Apex to code the URL like this (assuming that the text is coming from a report):
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:\#A_COLUMN#\,,5678
    Sorry... no bug. :)

  • Pass the product ID through the URL from the checkout page to the "receipt - buy" landing page. is it possible?

    Pass the product ID through the URL from the checkout page to the "receipt - buy" landing page. is it possible?

    You can just the module_shoppingcartsummary module and with liquid you can render the items in the cart out.
    Developer reference

  • Sending Two Values Through the URL

    Morning Everyone,
    Iv got a small problem. I want to sent 2 variables through a URL. I can send 1 no problem but im unsure about how to send 2. Here is my code to send 1:
    select COL_1, COL_2, COL_3,
       '<a. href="'
    || 'f?p=&APP_ID.:30:&SESSION.::&DEBUG.::'
    || 'P30_DB_NAME:'
    || 'CSTRNPA'
    || '">'
    || 'link'
    || '</a>'
    from tableWhat is happening here is i am sending the simple string value 'CSTRNPA' to the item P30_DB_NAME on my target page. Please can someone show me the way to send 2. I have tried different combos but have yet to successfully do it.
    Thanks in Advance,
    -N.S.N.O.

    Hey Guys,
    Iv got another question. I want to know how to send the value of a column instead of a string. What i mean by this is if i go to
    report attributes > link then i can select the item names and the values from which column i choose. For Example if the column was called DB the pop up list would give me the option of #DB#
    how can i incoperate this into me code?
    select COL_1, COL_2, COL_3,
       '<a. href="'
    || 'f?p=&APP_ID.:30:&SESSION.::&DEBUG.::'
    || 'P30_DB_NAME,P30_ANOTHER:'
    || 'CSTRNPA,VALUE'
    || '">'
    || 'link'
    || '</a>'
    from tableThanks,
    -N.S.N.O.

  • How to pass parameter to the Query String of the Named Queries'SQL

    Firstly to say sorry,I'm a beginner and my English is very little.
    Now I want to know
    How to pass parameter to the Query String of the Named Queries'SQL in the Map editor.
    Thanks.

    benzi,
    Not sure if this is on target for your question, but see #5 in the link below for some web screencasts that show how to pass an input text form field value to the bind variable of a view object. If you're looking for something different, maybe provide some more details such as what you are trying to accomplish and what technology stack you are using - for example, ADF BC, JSF, etc.
    http://radio.weblogs.com/0118231/stories/2005/06/24/jdeveloperAdfScreencasts.html
    Also see section 5.9 and chapter 18 in the developer's guide.
    thanks

  • Pass Variables through Case

    Hello! I am trying to write a VI to control hardware through GPIB communication. The communication is going well. However, I would like to change which vi controls are enabled for the user based on which "mode" the user selects. This mode is 1 of 3, and it would be determined by the user clicking a boolean switch. My plan is for the switch to be a single LED control, and when one of the three is on, the other two are off. If a new LED is clicked, it will light up and the others will go off. I am having difficulty making this. I was planning on using a case structure, but I cannot figure out how to determine which is selected and have this effect, because I cannot edit the values of each control in every case in the structure. I thought about using local variables and passing them through the case structure, but I cannot seem to get this to work either. I appreciate any help in solving this. Thank you in advance!
    Solved!
    Go to Solution.

    This sounds like a job for Radio Buttons instead of three separate booleans.
    Kelly Bersch
    Certified LabVIEW Developer
    Kudos are always welcome

  • How do I program Instrument I/O Assistant to read a variable in the input string?

    How do I program the Instrument I/O Assistant to read a variable in the input string? I can manually type in the string using the Instrument I/O Assistant using the "Write" or "Query" tools but I do not know how to send a variable input to the Instrument I/O Assistant so that variable can be used inside the "Write" string. For example, I have a power supply whose current I want to set to X Amps. I can type the command "PC10" to program the current to 10 Amps, however I want to be able to program it at any arbitrary current. How do I feed the value X into the code for this purpose?

    You can't. The assistant was designed to be a quick and dirty way to do some basic communication with an instrument. You can turn it into a VI (right click and select Open Front Panel) and modify it so that your write string is an input to the VI or use it as a template and create your own code with VISA Read and Write primatives.

  • I'm using TestStand/Labview to do a string value test. Is there any way to use a variable in the edit string value test?? This forces you to hard code a string to test against.

    I'm using TestStand 2.0/Labview 6i to do a string value test. Is there any way to use a string variable in the edit string value test instead of an actual string?? This forces you to hard code a string to test against.

    Hi ART,
    You can also use the LimitLoader step to load your string into to step similar to the Numeric Step type.
    There should be an example of this in the Resource Library | TestStand
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How can I include a captivate variable in the URL of the website widget?

    I am using the website widget to bring up some customized content during the course.
    The URL contains a variable which will be different for every user.
    I can't find the option of including a variable in the URL with the widget.
    Has any figured out how to accomplish this?

    I am using Cp8.
    I publish in both swf and html5 formats so that the course functions on all device platforms.
    A swf only solution would preclude IOS since it doesn't support flash.

  • What does DUMMY=1 mean in the URL string

    Hello,
    I am executing WAD template that contains a query for my planning layout. When I look at the URL link of the WAD in the browser, it has the following in it:
    http://xxx.xxx.com:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=ZFI_ZFIFMAL02_WT0001&DUMMY=1
    What is that DUMMY=1 at the end of the URL string mean ? I have also seen DUMMY=0 in some queries in QA and development systems. Any idea?
    thanks

    Hi,
    thanks a lot for this helpful reply. One question I do have though. So, say I created an iView in portal with the link that points directly to my WAD template and the link has say DUMMY=2 in the query string. Now, if I do update my WAD template, would I need to change the link to DUMMY=3? So far what I have noticed that I do save links with DUMMY=X in the URL and then if I do update my WAD, when the user clicks on the link in portal, the WAD still gets updated. So, do you really need DUMMY=X in your link in that case?
    Thanks

  • Web Object Widget and replacing Variables in the URL

    I am using the new Web Object Widget in Captivate 7 and need some help with setting up the URL for the widget correctly.  If I hard-code a static web page address, the widget works fine.  The problems comes up when I need to slightly change the tail-end of the web address depending on who is taking the course.
    I need to dynamically append some variable information onto the web address that we will be calling such as:
    http://www.someplace.com/customizeforstudent.htm?Student_Name=$$studentName$$&Student_ID=$$studentId$$
    Is there any way to dynamically load the variable information into this widget when the student takes the course?
    I know that I was able to use the samples on captivatedev.com to do this web page variable replacement when I used JavaScript on a button so I know it can be done that way. 
    (see: http://captivatedev.com/2013/08/08/javascript-solution-launch-a-url-with-captivate-variabl es-as-parameters/ )
    The down-side of the captivatedev.com example is that it forces the web page to show up "outside" the course (either in a new window or it takes over the browser window the course is playing in.  I want to use the web object widget so I can stay "within" the normal flow of the course we are developing.
    I have been able to get the student name and student id from our LMS using JavaScript (thanks again to http://captivatedev.com).
    Whatever process we come up with needs to work not only with Flash, but also HTML5.
    Thank you for your time.
    Randy

    Hi BubbaRB and welcome to the forums.  I love it when people have great questions regarding integration.. and this is an area that Adobe Captivate needs to be better at!  It would be nice if the stock web page widget in Cp 7 had the ability to substitute Cp user variables in the URL to make for dynamic rendering of the web page, but unfortunately that's a limitation of the stock widget.
    The web page widget on CaptivateDev.com is capable of variable substitution in the URL.  You just need to enclose the variable with double dollar signs $$cpQuizInfoStudentID$$.
    http://captivatedev.com/2012/08/07/adobe-captivate-6-x-widget-web-page-widget/
    This widget works for SWF and HTML5 output for Cp 6 and 7 and there's a free trial available.

Maybe you are looking for