Sorry if the message is not clear.

magnolia offers to insert several kinds of paragraphs into a page, such as
"Text and image", "Link", etc one of them is "Custom" which allows to insert
a custom jsp script.

When you insert a new "Custom" jsp paragraph and click on 'edit'  it will
open a dialog box where we can put the URL of the jsp file, but also two
text fields names 'Parameter1' and 'Parameter2'.

I need to call that script from multiple pages however with a different
parameter to jsp for each page.

My question is how to get the value of the 'Parameter1' field in the jsp
code. I tried request.getParameter("Parameter1") but it doesn't work.

Any help.
Thanks



On Thu, Mar 18, 2010 at 4:17 PM, Will Scheidegger
<[email protected]>wrote:

> If I only knew, what you mean...
> - what is a custom jsp for you?
> - What window has something like 'Parameter 1'?
> - And what is a JSP script for you?
>
> request.getParameter("Parameter1") will give you the value of the query
> parameter "Parameter1", so if the page is called with
>
> http://my.domain.com/some/path?Parameter1=foobar
>
> you will get foobar.
>
> -will
>
> On 18.03.2010, at 17:07, wadi wadi wrote:
>
> Hi,
>
> Thank you for the link but I couldn't find the information requested.
> Could you help please.
>
> wad
>
> 2010/3/17 GrĂ©gory Joseph <[email protected]>
>
>>
>> Hi,
>>
>> Did you check our templating guide [1]? It should probably answer your
>> question(s) as well as give you some more background information and
>> terminology.
>>
>> Cheers,
>>
>> -g
>>
>> [1] http://documentation.magnolia-cms.com/templating.html
>>
>> On Mar 17, 2010, at 15:36, wadi wadi wrote:
>>
>> > Hi,
>> >
>> > Please anyone can tell me how to get a parameter value for a custom jsp.
>> > Magnolia offers in the window something like 'Parameter 1' and then a
>> text box but how to get this value in the jsp script?
>> > request.getParameter("Parameter1") does seem to work it is returning a
>> null value.
>> >
>> > Thank you for your help.
>> >
>> > wad.
>> >
>> >
>>
>>
>> ----------------------------------------------------------------
>> For list details see
>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>> To unsubscribe, E-mail to: <[email protected]>
>> ----------------------------------------------------------------
>>
>>
>
>
> --
> Wadienil.
>
>
>
>
> ------------------------------
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
>



-- 
Wadienil.

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to