File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
Sending variable values
Joined: May 30, 2013
Aug 19, 2013 05:07:09
I know how to send a post request using html input tags but is it possible to send a variable value to the server?
I have this variable:
I want to send the variable value ( gon ) using post request, can i? How?
d v lokesh venkata
Joined: Aug 09, 2013
Aug 19, 2013 05:19:27
Try using hidden fields
Author and ninkuma
Joined: Jan 10, 2002
Aug 20, 2013 07:47:03
No. In fact, there should be no
variables, or Java code of any kind, in a modern
Asking smart questions
Books by Bear
Joined: Aug 25, 2013
Aug 25, 2013 14:41:21
Yes it is possible, and you can do it in many ways.
What is your requirements?
what is gon? it is something static? if so make it a hidden field. is it not static? what is it then? how does it change? what makes it change?
should gon be send when you hit a submit button in a form ?
It is hard to say what the best solution is for you without the excact requirements.
I agree. Here's the link:
subject: Sending variable values
Hash Code and Equals()
Big RequestParameters from JSP.
validation of a field depending on the value of another field
Ajax Using Post
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015