This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes getParameter in jsp file sent by HttpClient Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "getParameter in jsp file sent by HttpClient" Watch "getParameter in jsp file sent by HttpClient" New topic
Author

getParameter in jsp file sent by HttpClient

Alexandru Gifei
Ranch Hand

Joined: May 19, 2012
Posts: 42

I am sending a http post request from java. Here is the code:


and in the jsp file i try to display the message string but i get null:


Life is not measured by the number of breaths we take, but by the moments that take our breath away.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61968
    
  67

You did not mention that this is an HttpClient question in your subject. That's important so I added it.

Aside from your question, you should not be using Java scriptlets in JSPs written after 2002. That's 10 years ago. Please read this JspFaq entry.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: getParameter in jsp file sent by HttpClient