Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSTL c:if with a "Get" Form

843836Jun 24 2004 — edited Jun 25 2004
I am a beginner.

I was looking into creating a very, very simple JSP that takes an input and redisplays that input to the same page.

Instead of having the page have null display until the input is provided, I was looking into using the c:if tag.

I am having trouble figuring out how to get the parameter out of the url when I submit the input.

<url>/test.jsp?<param>=<value>.

When I use the syntax

<c:if test='${param.<param> == "<value>"}'>

The test does not happen.

The more research I did it seems that the param object works with Posts and with Beans or when you set a value into the Attributes.

Is there a syntax to use when using a form with get as the method?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 23 2004
Added on Jun 24 2004
5 comments
249 views