Sitemap

Amicuk Programming Answers

Jsp parameters - url problem

-0001-11-30   Views:0

Advertisement

hello, I have a problem with the maximum length of an url. I have to submit a parameter (which is a list of elements) from a jsp to a servlet. But, for IE, there's a maximum length of the url and it doesn't allow a such longer parameter (for netscape

hello,
I have a problem with the maximum length of an url.
I have to submit a parameter (which is a list of elements) from a jsp to a servlet. But, for IE, there's a maximum length of the url and it doesn't allow a such longer parameter (for netscape, it's ok).
I would like to have a button on my jsp which open another jsp which use the parameter of the first jsp. I have thought to use javabeans but I don't know how to keep a same javabean in several JSPs...
Can you give me some ideas please ?

The replay answer
Advertisement
// JSP 1
<form name=fastaForm action=/EHTDb_interface/servlet/EXHServlet>
<input type=hidden name=clNames value=<%=clNames%>>
<!-- clNames is a String of 1 to several hundreds of characters long-->
</form>
// SERVLET (/EHTDb_interface/servlet/EXHServlet)
String clNames = (String) request.getParameter("clNames");
String redirect = "/result/fasta.jsp";
Fasta f = new Fasta (clNames);
request.setAttribute("fasta", f.getFasta());
RequestDispatcher dispatcher;
dispatcher=getServletConfig().getServletContext().getRequestDispatcher(redirect);
dispatcher.forward(request, response);
//JSP 2
<% HashMap hmFasta =(HashMap) request.getAttribute ("fasta"); %>

Go to See the other 4 answers

Jsp parameters - url problem

Category:DefaultRelease time:-0001-11-30Views:130

hello, I have a problem with the maximum length of an url. I have to submit a parameter (which is a list of elements) from a jsp to a servlet. But, for IE, there's a maximum length of the url and it doesn't allow a such longer parameter (for netscape[More]

Jsp:forward URL problem

Category:DefaultRelease time:2015-10-11Views:130

Hi, I have 2 pages X.jsp and Y.jsp The content of X.jsp is a simple // send an email here <jsp:forward page="Y.jsp"> </jsp:forward> The content of Y.jsp is only "Mail is sent" message. The problem is that everytime page X i[More]

Using JSP parameters as input in a JavaScript function

Category:DefaultRelease time:-0001-11-30Views:130

hey I have a JavaScript function, which I call with JSP parameters. The function call looks similar to: <button onclick="myFunction(<%= jspParameter%>);"> </button> However, this JavaScript function is called from a jsp page, w[More]

Best way to execute different jspx pages from a parameterized URL

Category:DefaultRelease time:2015-10-11Views:130

JDeveloper 10.1.3.3.0 I'm looking for an elegant way for ADF to determine which page to go, based on a parameterized URL. I currently have a way of doing it, it's not what I want, but perhaps some other ideas. For example: http://localhost/MyDemo-Vie[More]

Url problem??

Category:DefaultRelease time:-0001-11-30Views:130

Hi! I wanna know that what i should use to handle the url problem like if there is a url http://localhost:8080/myserver/mydir/home.jsp // mydir is physical dir http://localhost:8080/myserver/mydir2/home.jsp http://localhost:8080/myserver/mydir4/home.[More]

HT3281 Podcasts from Current Tv, since three weeks prior to the Nov 2012 election have had a url problem and cannot be played on my mac mini 2011 with 10.8.2 and the latest Itunes? anyone know why ? I am in contact with Itunes now and they wanted screensh

Category:DefaultRelease time:2015-10-11Views:130

Podcasts from Current Tv, since three weeks prior to the Nov 2012 election have had a url problem and cannot be played on my mac mini 2011 with 10.8.2 and the latest Itunes? anyone know why> ? I am in contact with Itunes now and they wanted screensho[More]

Problems with parameterized Url

Category:DefaultRelease time:2015-10-11Views:130

Hey, can anybody help me? I created following URL with 4 filter values: http://XXX/sap/bw/BEx?sap-language=EN&bsplanguage=EN&CMD=LDOC&TEMPLATE_ID=my_template& FILTER_IOBJNM_1=0SOLD_TO&FILTER_VALUE_1=123&FILTER_IOBJNM_2=0CO_AREA&[More]

Passing Parameters in URL problem

Category:DefaultRelease time:-0001-11-30Views:130

I have a page where I do some processing. I have created a branch on that page back to the main report page for the app. I have the following on the "Edit Branch" page: Point Branch Point: On Submit: After Processing... Sequence: 10 Action Targe[More]

Repost, since no answer in JSP-JSP/CascadingStyleSheet/Javascript problem

Category:DefaultRelease time:-0001-11-30Views:130

Hello, I've got a JSP page that has included a Javascript (JS). In that JS, a Cascading Style Sheet (CSS) is included. Also on the JSP page, I have some code that makes use of the JS to create a Windows-style combobox, which is not available through[More]

Web.show_document  spaces in the URL problem

Category:DefaultRelease time:2015-10-11Views:130

Hi, I am using Web.Show_document to call the report from the form. Here some of the parameters having a spaces. It is giving a problem and report is not running. Pl guide me in this issue. Thanks & Regards, Gangi ReddyTry using %20 in place of the sp[More]

URL problems when change application language to Spainish

Category:DefaultRelease time:2015-10-11Views:130

Using APEX 3.1.2 Our application is usually in English. For a quick test we've changed the application language to Spainish through the 'Globalization' part of 'Shared Components'. Things look OK, the date pickers are showing the correct language and[More]

Hot
I can not remove my SIM Card from Passport. On pushing inside , it is going just inside and is not coming out. let me know how to eject SIM Card ?? please reply on email id : [email protected] For my new passport, I cut/wittled my old Samsung's large [More]
I have already verified that we have not exceeded the two allowed activations, yet it seems that the Activation server won't connect.  Is there a work around for this?Hello, Try following step and check if issue gets resolved or not. Find Acrobat.exe [More]
So I have a Sony Vaio VGN-FZ38M, with an in-built motion eye camera. Whenever I try and use this in Premiere it doesn't work; the device is, apparently online. Is there a fix for this? There is another capture program that came with my laptop which I [More]
Hi, I am not sure if I am in the right fourm. I am not a developer, but a network engineer trying to help out my wife. My wife uses a java program to monitor the company she works for web site, which is not linked to a web browser. When she received [More]
If I make an apple Id,will I lose my songs and apps?You can create another Apple ID for yourself. The songs and Apps you bought will remain on your device. Whenever there will be an update to an App bought with your mum's Apple ID though, you will be [More]
Came accross this issue where AIR runtime 3.8 (and 3.9 beta) on Windows 8 do not track mouse events correctly. Rolling back to 3.7, and publishing to 3.7 is the only way to have existing content work correctly when using a touchscreen. This also effe [More]
Every time i click [Disable] then restart FF, it's back, running again. I do not want Acrobat, as i would rather use Foxit Reader. The only button in the Addons manager is [Disable] there does not seem to be a [Uninstall] or [Delete this plugin] opti [More]
I see the cleaner tool for CS5 and 5.5, but nothing for CS6. Where is it, please? Also will it affect any of my files for CS5 or CS3? Please help, this is most frustrating.You can find a link and instructions at CS Cleaner Tool for installation probl [More]
Where in the JSF lifecycle does submittedValue, localVaue and value get set? I was looking at those values on a hidden input field and it was not clear to me in what phases the various values get set. It seemed like sometimes one was set, sometimes t [More]
hi   can any body explain me about day type variant.and let me know how to write variant rule for a day 4 hrs working if next day  is holiday and it is Saturday.please explain me these variant which is in below RULE     NO.     HOL.CLASS     HOL CLAS [More]