aspose file tools
The moose likes Servlets and the fly likes A very trivial question regarding Fom submission. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "A very trivial question regarding Fom submission." Watch "A very trivial question regarding Fom submission." New topic
Author

A very trivial question regarding Fom submission.

Rajesh Khan
Ranch Hand

Joined: Oct 16, 2011
Posts: 230
I am familiar with the concept that when a form is submitted say to a servlet the value of the text field is available by name to the servlet.
So for example

The servlet can access the value by


Now I know that in java script something like


This statement however sets the runtime value of the textbox and does'nt Adjust the original HTML (ie it doesnt add the typed data in the textbox in the value section).
However the typed text is still available to the servlet why is that ? does the submit button actually insert the content of textboxes in the value fields??

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56233
    
  13

The HTML is just the source. Once the DOM has been created, the elements in the DOM are all that matter. So no, the value attributes are never changed, but it doesn't matter.

It's pretty much like asking if assigning a new value to a Java variable at run-time changes the source code of the Java class.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Rajesh Khan
Ranch Hand

Joined: Oct 16, 2011
Posts: 230
Ah thanks for clearing that up
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: A very trivial question regarding Fom submission.
 
Similar Threads
Simple Session Doubt
More than one form input element with same name
Dynamically added form fields cannot access from request access
How to query a value typed object
Textbox String