I have a url encoded string that is returned from an API I am using. I want to do something request.getParameter("paramname") on the string. What I'm looking for is something like ... |
I'm new to apache-camel and I'm just trying to get a feel for what it can and can't do. I'd like to use the http4 component to dynamically provide url parameters. ... |
Hi, i am using parameter in my url through links for example /mypage.jsp?id=12&name=abc. now users can see these parameters in url and they can change the values (eg. /mypage.jsp?id=34&name=def). this can cause pages to behave differently. i want to detect if user has changed id and name by himself. what would be best approach in sovling this problem. Thanks, Khurrum |
|
Here's a simple question for you. Not quite sure how to pull parameters out of the URL? Here's the catch.. I need to pull the parameters out within the JSP page. I'm posting the JSP page to itself and it needs to pick up the parameters from the previous call. Any help out there? Dale ------------------ By failing to prepare, you ... |
I am trying to give a link to a crystal report in my jsp file.The crystal report accesses a database.Hence in my url i am passing the username and password for the database.(different from the user loign)ex: http://myurl.com?user0=myuser&password0=mypwd I don't want the user to see this.Is there any other way of passing this data(say put them in cfg file and call ... |
|
|
Originally posted by Sebastian Green: Im getting a HTTP 500 Server error when Im trying to execute the servlet without parameter in the adressfield. Got any general ideas? Btw, it works fine when i use a parameter. [ January 31, 2004: Message edited by: Sebastian Green ] Sebastion, be sure to check in your servlet that the parameter is not empty. ... |
Hello, I would like to forward the user from my web app to a different one. I need to pass some parameters with "POST" to a different site(http:/foo.com). The requestDispatcher only takes context relative paths and the response.redirect does not allow POST or any data to be sent. How can I do this? [ October 20, 2005: Message edited by: Pete ... |
Hi, I have a web application, and I'm using j_security_check (JAAS). I have a second Java desktop application that also uses JAAS (and using the same Login Module). Both applications have the same users (principals & roles). When I log in to each of them, the login process works fine. Now, from the java desktop application I want to launch a ... |
Hi, Is it possible to pass arguments/parameters through url when calling a servlet. for example i want to call a servlet with an argument as follows matrix/servletName/argument1 matrix/servletName/argument2 matrix/servletName is the mapping path to servlet as provided in web.xml and argument1 & argument2 are the values I need to read inside the servlet.Is this possible. I don't want to pass a ... |
If the parameter value was really supposed to be "H+43b..." and so on, then you should URL-encode that value before appending it to the URL. As it is, the servlet container is assuming that it was URL-encoded (as per the rules for URLs) and is URL-decoding it. This translates + to space, among other things. |
hi, I have a web application based on J2EE architecture. We have links on all the pages. at one link i'm appending an additional parameter along with the regular URL in the JSP is there any way that i can hide/encrypt/encode the parameter or maybe the whole URL?? the code that shows the url is : | |
Axel, Bear was giving you the answer. You need to encode the "?" and "&" in the url parameter so they don't get treated as separate parameters. Let's also keep in mind the rule of this forum is to be nice. Saying someone's comment is useless isn't nice. And Bear is one of the moderators of this forum - a moderator ... |
|
public class ExportDataServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { String type = request.getParameter("type"); if (type.equals("excel")) { String destination1 = "/excelExport"; RequestDispatcher rd1 = getServletContext().getRequestDispatcher(destination1); rd1.forward(request, response); } else if (type.equals("pdf")) { String destination2 = "/pdfExport"; RequestDispatcher rd2 = getServletContext().getRequestDispatcher(destination2); rd2.forward(request, response); } else if (type.equals("xml")) { String destination3 = "/xmlExport"; RequestDispatcher rd3 = getServletContext().getRequestDispatcher(destination3); ... |
Well, I don't have an account at Stack Overflow, yet, so I'll answer here, so maybe camickr (or better yet the OP sense he was the one rude enough to cross-post without the manners of including references to each other so that people do not repeat advice already given, thereby wasting their time) will also link to this thread from there. ... |
rightbrainer, If you don't know how to define a method in a Serverlet then you need to work through a decent JSP tutorial... There's plenty of free ones online, unfortunately that's about what they're worth... The roseindia especially is to be avoided like the plague. I once spent three months re-educating a co-op (including physical assault) after he'd spent just two ... |
Hi is there any way by which i can hide Parameters in URL. I have to use "post" method only. I am hardcoding parameters in URL from a jsp page... then submitting the page...to another jsp.. now in this second jsp these parameters could be sen at URL... i want to hide these Parameters..... Is there any approach by which i ... |
I'm using EnumSet where I normally would use an integer to represent a bit vector. It works great, except how do I pass through a URL? I need to be able to convert to a string and back to an EnumSet? I'm tempted to switch from EnumSet back to the old way of just using an integer bit vector. Any alternatives? ... |
Hi, I have a question which is not entirely related to Java. But although its related HTTP calls, so I thought I might get some ideas here. Background: I am making HTTP URL call from SAP ABAP code. Its pretty much similar to Java (creating URL connection, setting HTTP headers, connecting, receiving response and everything) For example, http://service_server:8080/a7/extension.services.SearchRequirements.a7x?RequestStatus=CR&RequestStatus=RR Now, this service_server ... |