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
My wife has a MacBook, and I just bought my first iMac.  When I booted it for the first time, it asked me if I wanted to copy preferences from her computer.  I thought that was a great idea.  It took 8 hours to copy everything (this I totally did not [More]
Hello, I have a field that holds CLOBs in the database. I have a textfield in which the user can enter a target string, then I hope to use dbms_lob.instr to search for the target string in CLOB. The code looks like: dbms_lob.instr(upper(I.COMMENTS),u [More]
Hi All, While running TDS Upgrade Utility following error had been occur 1) Outgoing Payments TDS] Primary Key not exist in DB: row.657  2)Withholding Tax Rates] Primary Key not exist in DB: row.2    3)[Outgoing Payments TDS Amounts] Value in excel s [More]
After I crop an image, I cannot export the edited image as full size with high resolution.  Is there any way to do it?  I need to email files for potential print publication.That does seem like a over reduction in file size.  What quality level are y [More]
I am getting the following Log warning when I check the log of my livecycle designer es2 form: Invalid append operation: fill cannot have a child element of color The element[color] has violated its allowable number of occurences. I don't know how to [More]
Hi, I am trying to deploy web application which was previously running in OC4J to weblogic server 11g. I see this error when the try to invoke a service. Please help to fix this error. I am able to launch the application but I see this error on the s [More]
Hello All. It is a very bad day, because i have read document about Java 7 features. http://blogs.sun.com/dannycoward/resource/Java7Overview_Prague_JUG.pdf page 27 I can not inderstand why Sun Developers decide to use such crazy notation as "->&qu [More]
Hi, can somebody pls tell me is it possible to take screen shots of 6303i, and if 'yes' then how thnxTry Best Screensnap, might not work, but doubt it will harm the phone, give it a bash ! http://techie-buzz.com/mobile-news/best-screenshot-applicatio [More]
Hi All, Is there any tcode available in SAP  to know if any particular user used any particular tcode today ? I will be happy to allocate points . Thanks ,. SunandaHi Sunanda .. use t-code <b>STAT</b> give the input as user name -->particul [More]
Windows XP, SP3, IE 8 rarely used. When I added ROM (I think, it looks like a comb) to this computer 5 years ago, changed "C" drive to "F" drive. Is it normal for new upgrades of Firefox to load into that damaged drive? I never noticed [More]