Note that there are some explanatory texts on larger screens.

plurals
  1. POParsing string variable with jstl
    primarykey
    data
    text
    <p>Here's my problem.</p> <p>I need to set up a process, preferably with jstl/jsp, that depending on what a client enters in a URL parameter, a certain URL will be returned, with the same parameters passed on, and opened via javascript pop up function.</p> <p>Problem I am having, is that the choose statement is not finding one of the parameters unless its one of the beginning parameters. (Now your thinking, 'huh?')</p> <p>The list of parameters the client is passing, looks like this...</p> <pre><code>?name=personsname&amp;email=personsemail&amp;tmplatecde=7&amp;legalid=20266998&amp;photoURL=%2Favmedia%2Fweb%2Findex%2F25505893822%2EJPG&amp;agentNumber=047666&amp;FWSType=FR&amp;des=,+CLU%AE,+ChFC%AE&amp;postto=thenetwork.nmfn.com&amp;agentnumber=047666&amp;formname=FWSContactForm2&amp;attr=FRSite </code></pre> <p>Out of that parameter, I only really need the 'formname.' However if I put the query string in like that, which is what the client is expecting to do, it won't find the formname. Move the formname parameter to before the 'name' parameter, it works. </p> <p>At my company we built a custom JSP tag that can simply take that query string and attach it to a specified URL, but to determine that URL I need to check what the formname is equal too.</p> <p>Does anyone have any ideas of an appropriate way to parse the string to get that formname value?</p> <p>So far, the code that I have that matters to this issue is</p> <pre><code>&lt;c:choose&gt;&lt;c:when test='${param.formname == "FWSContactForm2"}' &gt; </code></pre> <p>Any help would be greatly appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload