get-method

Html.BeginForm loses routeValues with FormMethod.GET

I have noticed what Html.BeginForm() method encodes supplied routeValues into action attribute of FORM tag. This works well with POST method. But if method is GET all parameters in action URL are stripped by browser (tested on IE8 and Firefox 3.0.7). For example, this code in view <% using (Html.BeginForm("TestAction", "TestControl...

comet callback-polling and jetty-cometd implementation

I am using the cometd implementation that comes with the jetty server. I'd like to use the callback-polling transport, but when I try to connect to the comet server from javascript (note that the html page is in another web-server), jetty complains that the servlet does not supports the GET method. Is this an error/bug/whatever of the je...

Having problem with Try-Catch block in a Java I/O program.

I have created the output for a program that allows a user to input their employee name and number and then their hourly wage and their total number of regular hours and overtime hours. This is my first time working with this type of program in java and I'm having an issue with the Try-Catch block where it gets the text input from the us...

How to get parameters from the URL with JSP

In JSP how do I get parameters from the URL? For example I have a URL www.somesite.com/Transaction_List.jsp?accountID=5 I want to get the 5. Is there a request.getAttribute( "accountID" ) like there is for sessions or something similar? ...

Why is request method send to web server called GET and POST?

I guessed that the name of each of the request method has a relationship with the operations they performed in some manner. But I can't get it! Detials: GET means posted argument are showed in the url and POST means they are sent but not shown in the url. But what is that related to POST/GET? What is gotten/posted or what does the post...

If XmlException.SourceUri is read-only, what good is it?

I have a couple places in my code where it throwing a new System.Xml.XmlException seems appropriate. I could just do throw new XmlException("Your XML sucks go fix it then try again."); But I think it's better to take advantage whenever possible of members particular to the exception class (otherwise ya might as well throw a plain ol...

Is there a JQuery or JS equivalent to PHP's $name = $_GET['name']

I'm trying to figure out a way to read GET method information from a form with javascript. Our IT department has our servers on lockdown, and as the web team we can only use javascript to accomplish our tasks. I'd use PHP if I could, but I can't. What I need to do is read data sent via GET method in js if possible, so that I can assign ...