Includes and encodeURL

Hello..
I have a JSP page that calls an include according to the url parameter, so, for example if the paremeter is "home" the include called is home.inc, but if the parameter is "register" the include is register.inc.....
now, this include files have just html code so the JSP page puts the content directly on the client, otherwise it would have to add them in the servlet, forcing to recompile each time the url parameter change (i think so..)
Well, the problem is that the include files contains links, and i want to mantain session with response.encodeURL(the link) so i dont have to depend on cookies...
So how can i do this, .... if i add this?, without sending the code to the client. If I translate the include code into the servlet i will force recompilation... any idea
regards
Otto

Hello..
I have a JSP page that calls an include according to
the url parameter, so, for example if the paremeter is
"home" the include called is home.inc, but if the
parameter is "register" the include is
register.inc.....
now, this include files have just html code so the JSP
page puts the content directly on the client,
otherwise it would have to add them in the servlet,
forcing to recompile each time the url parameter
change (i think so..)
Well, the problem is that the include files contains
links, and i want to mantain session with
response.encodeURL(the link) so i dont have to depend
on cookies...
So how can i do this, .... if i add this?, without
sending the code to the client. If I translate the
include code into the servlet i will force
recompilation... any idea
Correction on the these lines:
So how can i do this without sending the code to the client? If I translate the include code into the servlet i will force recompilation... any idea
Otto

Similar Messages

  • What is the difference between jsp :include and server side include

    what is the difference between jsp :include and server side include(request dispatcher include method)????
    i understand that both request dispatcher include method and jsp:include take dynamic data,so when would one use request dispatcher include and when jsp:include.
    Is the usage interchangeable?i believe jsp include is used only for jsp/html but include directive can be used to include servlets ,jsp and html....correct me if i m wrong and
    do suggest if u hav ny other diff in this context...

    The difference really is: in what format do you want your inclusions? If your environment has many Java developers and only a few designers that focus mainly on, say, Flash, that might push you more towards the server-side include() directive. Or, if you have a large set of pages that receive dynamic content that is displayed in a consistent fashion (such as a workflow header area on a page).
    If, on the other hand, you have more web designers, there may be a greater desire to deal in markup rather than Java code. Java developers themselves might prefer to view markup (JSP) that more resembles the eventual output than something occuring in Java code.
    Finally, there are considerations of tiering. While it is totally possible to (and I have previously) implement 'view classes' that render markup or generate layout templates, JSP's offer, IMO, a subtle, psychological advantage. By forcing a developer to work in a different format, markup versus Java source, the separation on view from controller and model becomes a bit easier. It is still possible to make mistakes, but if a developer at some point notices, "Wait, I'm in a JSP, should I be importing a java.sql class?", then the choice to use JSP includes has paid off in spades.
    - Saish

  • I am locked out of my account because my password includes "[" and my computer is set to spanish. In spanish that key doesn't work. How do I gejt back into my computer?

    i am locked out of my account because my password includes "[" and my computer is set to spanish. In spanish that key doesn't work. How do I gejt back into my computer?

    If the user account is associated with an Apple ID, and you know the Apple ID password, then maybe the Apple ID can be used to reset your user account password.
    Otherwise*, boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window opens.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Follow the prompts to reset the password. It's safest to choose a password that includes only the characters a-z, A-Z, and 0-9.
    Select
     ▹ Restart
    from the menu bar.
    You should now be able to log in with the new password, but your Keychain will be reset (empty.) If you've forgotten the Keychain password (which is ordinarily the same as your login password), there's no way to recover it.
    *Note: If you've activated FileVault, this procedure doesn't apply. Follow instead the instructions on this page:
    If you forget the password and FileVault is on

  • Is there a way to transfer everything off one ipod, including and especially playlists, to another?

    Is there a way to transfer everything off one ipod, including and especially playlists, to another?

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • Server Side Includes and Divs

    I have a template (dwt) for my site with editable regions for
    menus. I want to use Server Side Includes for the menu, as not all
    the pages will have the same menu.
    I have designed the site template (and pages) with css and
    divs. The area for the SSI is a div of size 145x335. The menu which
    I want to put inside this div will be a div based menu. I havent
    had any luck displaying the Div from the SSI yet. I have been
    looking on Google for help, but not much luck. I can get the Div to
    appear but the formatting doesnt show up.
    Im putting the SSI code in where I want it on the page, but
    im not sure exactly which code to get rid of in the shtml file. I
    know I need to remove body, head parts etc
    My site template uses CSS stored on the document, not an
    external css file.
    Any ideas?

    > Im sure Ive not got it right yet!! My head wont work
    lately!
    Yes. It's not working well here, either.
    Create your template with the editable region. In it, have
    links to a) the
    general stylesheet for all the pages, and b) the general
    stylesheet for all
    of the includes (these don't really need to be separate
    files). Spawn a
    child page, drop in the desired include, and save that page
    as
    whocares.shtml.
    That's it....
    The incude files themselves can be names anything you want -
    I like the
    'monkeybutt' extension, e.g.,
    yourinclude.monkeybutt
    The include files can make reference to CSS selectors, but
    cannot have
    embedded CSS rules, or links to external CSS files.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "~Billy~" <[email protected]> wrote in
    message
    news:eq234v$eq6$[email protected]..
    > Ive made myself confused now! I need it spelling out to
    me!
    >
    > Ok, a template file (dwt) with its css as an external
    style sheet.
    >
    > Rest of the sites pages made from the template file.
    >
    > Next, the template has one editable region for a choce
    of 2 div based
    > menus to
    > be placed into. Place either of these div menus into the
    template editable
    > region by creating two seperate SHTML files - one for
    each menu with the
    > body/head removed(and with internal or external css?)
    >
    > Next put the SSI code into the body of the template
    where I want the SSI
    > to
    > appear.
    >
    > Im sure Ive not got it right yet!! My head wont work
    lately!
    >

  • Jsp include and jsp param

    Hi All,
    I have the following:
    <jsp:include page="anotherPage.jsp">
            <jsp:param name="testing" value="sdfasdfsd"/>
    </jsp:include> And in anotherPage.jsp I have:
    <%@ taglib uri="/WEB-INF/tld/commons-log.tld" prefix="log" %>
    <log:dump scope="request"/>
    <log:dump scope="session"/>
    <log:dump scope="page"/>
    <log:dump scope="application"/>
    <h3>
    Test: <%= request.getParameter("testing") %>
    </h3>Not only does this output:
    Test: null
    but I don't see 'testing' anywhere in the dumps! What is going wrong?
    Have I badly misunderstood parameter sending? :-/
    Actually, my assumption was that the include code puts the "testing" variable
    into the request.. 1) where does jsp:param put the data items it
    passes through and 2) if the data item didn't previously exist as a
    request parameter, does it ignore it?
    Any assistance would be most appreciated!
    Rob
    :)

    Depends on the server version you are using. If you are using a JSP 2.0 server like Tomcat 5, then you should be able to do that, as long as you set up the container correctly (to use servlet 2.4 and JSP 2.0 specs rather than 2.3 and 1.2...)
    Is you are using a JSP 1.2 container (less then TC5) then you will not be able to use EL anyware except in JSTL tags. The fix is to use the JSTL tags to do the include:
    <c:import url="thepage.jsp">
      <c:param name="param1" value="${attr}"/>
    </c:import>

  • I just updated to ios5 but now can't sync because it's telling me my "other" section in the overview has grown to 10.2gig?!  What does that "other" section in the overview include and how can I reduce it to get my phone to sync??

    I just updated to ios5 but now can't sync because it's telling me my "other" section in the overview has grown to 10.2gig?!  What does that "other" section in the overview include and how can I reduce it to get my phone to sync??

    Thanks for the help.  The restore seems to have solved the problem.  I had a bit of a panic attack when things started going haywire and the Apple 'Support' told me to call back during business hours! 

  • During MRP run unwanted plant and storage location include and exclude

    Hi There,
    During MRP run how to include and exclude the unwanted plant and storage location pls let me know the required configuration settings.
    Thanks in advance.

    HI,
    To control whether a particular storage location will be included or excluded from the MRP run.  (MD02/MD41).
    To exclude it from MRP run :-
    OMIR - Define storage location MRP per plant
    Put the MRP ind. as.         1 - storage location stock excluded for MRP
    To include it from MRP run:-
    OMIR - Define storage location MRP per plant
    Put the MRP ind. as.      space - storage location stock also planned at plant level and save it
    Next go to transaction MM01 - tick only view MRP 2
    Key in Plant and Storage Location
    Look at the Storage Location MRP section
    change the SLoc MRP indicator to space  and save it
    MMD1 - Create MRP Profile - MRP profile is a useful entry aid and makes it easier to manage MRP data.
    You define which fields are filled with values when MRP data is entered in the material master record, which of these values can be overwritten and which not.   You use the information stored in a profile is standard information that is needed again and again in similar constellations when material master records are maintained.
    Regards
    KK

  • Cannot Include and exclude selectiion on hierarchy node in the Filter area

    Hi,
    When i open the query and execute it. and select the filter area for hierarchy nodes. The include and exclude selection is disabled in 3.5x analyzer. We are using BI 7.0 with SP 12. we just upgraded.
    Can you please help. is this functionality not available?
    Regards,
    Gaurav

    Hi Rob, you can do that for the query (the exclude selection) on the Query Designer. But its not recomended on performance point of view.
    hope this helps
    Natalia.

  • Include and selection screen

    Hi Experts ,
         i have a problem regarding include and selection screen.
    i have an include program , in which i have  defined my selection screen. and this include has been called in many program .
      but problem is that i have to maintain selection text and text element for every program .
    is there any way ....that i have a single selection text and text element for every program ...in which that include called .
    Thanks and Regards
    Priyank Dixit

    Hi again,
    1. I tried the same thing - include bdcrecx1
       and it only provides radiobuttons, parameters and checkboxes.
       The labels/text elements are totally empty.
    PS: Only after we GOTO--->Text Elements
         and again activate them, (by ticking the 'dictionary checkbox or entering some appropriate text);
    do they appear properly in the selection screen.
    regards,
    amit m.

  • Regular Expressions, include and exclude xml-files

    Hi!
    I have a javaprogram that should read xml-files from a directory. The program could contain several types of files but it should only read files with a certain pattern.
    The file names will look like this:
    "resultset_27_23.xml"
    where the numbers will change, but the rest of the file name is the same (resultset_XX_XX.xml).
    But in the same directory it will also be files with the following pattern:
    "resultset_27_23_attachment1.xml"
    Here, the numbers could change in the in the same way as the files above, and the number after the text (attachment) could also differ from file to file.Those files should not be read by the program.
    I have tried to write a regular expression pattern that only reads the first file types, and exlcudes the other ones, but it won�t work.
    Does anyone have a solution to my problem? It is possible to use either just one pattern, or two patterns; one for the files that should be included, and one for the files that should be excluded.

    So you only want files that match resultset_XX_XX.xml? Will the numbers always be two digits each? Assuming so:
    "^resultset_\\d\\d_\\d\\d.xml$"Depending which methods you use, the ^ and $ may or may not be necessary.
    If that's not what you meant, please clarify.

  • My 16GB iPhone 4S has 4.40GB of "other" file. What does this include and how do I reduce it? Kindly help me.

    My 16GB iPhone 4S has 4.40GB of "other" file. What does this include and how do I reduce it? Kindly help me.

    Text messages, MMS messages, email, music catalog, operating system settings, safari cache, siri cache, Genius data (if enabled), game center data -- esentially everything on your phone that isn't explicitely listed in the bar chart at the bottom of iTunes on your computer.
    Sometimes there is also data corruption on the phone that ends up in Other. To get rid if it try restoring the phone with iTunes. If that makes no difference the corruption is in your backup; restore again as a new phone, then add content back.

  • RegisterSchema errors for include and URN

    Hello
    I am trying to take advantage of XDB in processing XML documents. The XML Schema is provided by a third party and has several xsd files and a "master" file that imports the rest. I am having two problems with registerSchema.
    1) For two of the namespaces, the XML types are defined in one xsd file and the elements in another. The file where the elements are defined INCLUDEs the file with the type definition. This seems like a not unreasonable thing to do. However, if I register the elements file first, I get the error that the included file is not an XDB schema file. If I register the included file first, then try to register the including file, I get the error that the namespace is already registered.
    2) Two of the schemas have a URN for the schema URI, not a URL. I get the error Could Not Open urn:foo:bar:bah when I try to register that schema file.
    Using includes and urns is certainly within spec. Why aren't these supported?
    Thanks

    This question is best suited for the {forum:id=34} forum. Make sure you look through the FAQs and pay attention to responses from mdrake or Marco Gralike dealing with registerSchema examples. I do know that you need to register the children (INCLUDE) files first. If you repost your question, include the commands you used to register the files.

  • Does T430s include and support RapidCharge battery?

    The T430s specs page on Lenovo.com states:
    The rich performance is enhanced with Lenovo’s Rapid suite of technologies. Recharge the batteries to 80% in 30 minutes with Lenovo RapidCharge. Boot or resume the laptop in no time with Lenovo RapidBoot and RapidResume. Connect to WiFi or WWAN near instantly using Lenovo RapidConnect. (Emphasis added)
    However, the product doesn't appear to include a RapidCharge battery, even as an option. Does the T430s include and support a RapidCharge battery? If not, why does the specs page indicate that it does? Thanks.

    However, the product doesn't appear to include a RapidCharge battery, even as an option. Does the T430s include and support a RapidCharge battery? If not, why does the specs page indicate that it does? Thanks.
    Sorry but the original question in your post is asking whether the T430s include and support a RapidCharge battery, and i have answered your question by stating that the:
    Rapid charge feature is only included in the 4 cells, and not the 6 cells. 
    So i am not sure what other questions you have regarding rapid charge feature?
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

  • TS3276 When I add a name to the "To" box or CC/BCC box and then change my mind about sending an email to them, Mail is ignoring the instruction to "remove" so that once the email has been sent, their name is still included and the email goes to them anywa

    Can anyone help?  When sending an email and I add a name to the "To" box or CC/BCC box which I later decided I don't want to include, Mail ignores the instruction to "remove" that name so that once the email has been sent, the name is still included and the email goes to them anyway.  Pretty frustrating and I don't understand why this is happening. 

    You would really have to ask the app developer if there is a way to export the data.
    As for adding a printer, you would need to purchase an AirPrint compatible printer and connect it to your wireless network.
    By the way, your holiday letter/rant/Idon't even know what to call it... is completely inappropriate for these forums.

Maybe you are looking for

  • Help on in-store pickup availabili​ty - vagueness

    Basically, I'm looking to purchase one of the laptops here. Problem being, it has only in-store pickup. That's not a problem for me, I'd run out and buy the laptop in a heartbeat, but here's my conundrum - I don't know how to tell if any given store

  • Macbook Pro runs slow after upgrade

    I have just upgraded to Mountain Lion 10.8.3 (from 10.6.8) on my 2011 i7 Macbook Pro. My computer now runs slower than ever. Boot up takes forever. Shut down takes for ever. I get constant beach ball. I am shocked at how horrible this OS is and thoug

  • Set permission level for views

    I have a list which has some views. I am showing one of the view in a list view webpart on a wiki page. I dont want the users to view the other views on this list apart from the view set up on the webpart. How do I set the permission levels to achiev

  • How to install compat-drivers ?

    Ok guys, I am an arch user for a good while now (1 month, ehehe), but I am not even close to a tech savy for now. I wanted to try today the aircrack injection in arch. It works flawlessly in backtrack 5. Now ... I get an error something about mon0 ch

  • Cfgridupdate don't find grid parameter.. error

    I use this code that I've found in the reference but when i try to insert a new record coldfusion give me this error: "cfgridupdate could not find the grid named FirstGrid" So, i write a new code with cfgrid and cfgridupdate but coldfusion give me al