Hi,
  What i feel is U can write the data to the output
stream by opening a connection with the url. This will
force for the post method.
--- "Duffey, Kevin" <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> Does anybody perhaps know how you can force the use
> of a POST without using
> a <form> type? Mainly, in my code I have something
> like so:
>
> Enumeration e2 = request.getParameterNames();
> StringBuffer sb = new StringBuffer();
> while( e2.hasMoreElements() )
> {
>   String s = (String) e2.nextElement();
>   sb.append("&").append(s);
>   sb.append("=").append(request.getParameter(s));
> }
> URL url = new URL(sb.toString());
> xmlStream = new
> StreamSource(url.openConnection().getInputStream());
>
>
> This is part of my MVC framework that automates the
> use of XSL, making it
> simplistic to use a MVC framework with XSL. The
> problem I am having with the
> above is that eventually, if too many request
> parameters are passed in, I
> assume the limit is reached because I am getting an
> Orion io error which
> causes the web application to stop. I need read in a
> JSP page so that it
> gets processed as if a web browser were talking to
> it, which produced
> dynamic XML output. Then I apply XSL to it, and the
> result is the HTML that
> goes back to the browser. The incoming request is a
> POST type of request
> (from an HTML form). When I use URLConnection to
> read in the JSP page, is
> there some way I can specify to pass request
> parameters as a POST method,
> instead of a GET method? GET can only handle so much
> in the URI where as
> POST can handle much larger amounts.
>
>
> Thank you.
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body:
> "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to