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
Hi, When I connect my ipod to my computer the follwing message comes up- "USB device not recognized- One of the USB devices attatched to this computer has malfunctioned and windows does not recognize it." I've tried everything I can think of... [More]
Hi I want to parse JMS TextMessages by using DOM parser.DomBuilder's parse method supports only Strings,input stream in its constructor. Is there anyway we can parse JMS TextMessages by using DOM.Your help would be appreciated. Thanks Kanthkanth218 w [More]
Ive seen a lot of threads but none had a solution to this. With the slides, I included an mp3 from within itunes dragged it from the media window into the documents soundtrack box clicked looped and played just fine throughout the manual presentation [More]
Hello SAP EXperts, Can anyone tell me how to create a role with SPRO authorization for FICO transactions and roles only. I need to assign a role with which a FICO consultant can do all the customizing related tasks in the development server. Please g [More]
Whenever I try to play A Video or A Song, they start, then stop, then start again. What should I do?Try to uinstall and reinstall your audio device. 1. On Window vista,Click on Start and type Devive Manager on the search box.Look for sound, video and [More]
When trying (twice) to post a reply I get this: Re: forum isqlplus An error in the system has occurred. Please contact the system administrator if the problem persists. type: java.lang.IllegalArgumentException java.lang.IllegalArgumentException: Pare [More]
HI FRIENDS, I HAVE SELLING PRICE DATA FIELD  /BIC/YSELPRICE IN ODS UPDATE RULES BASED ON SELLING PRICE CURRENCY. YREPSALES OTHER FIELD IS SOURCING FROM /BIC/YSELPRICE BUT TO BE TRANSALTED INTO REPORTING CURENCY HERE. MY REQUIREMENT IS TO TRANSLATE  T [More]
Hi, I have 3 views: View A: contains the roadmap (Plug to view b and c) View B: Plug to view C and A View C: Plug to view A When i fire the plug from b to c, I want on that moment that an action I defined in view A to be triggered. What code do I nee [More]
I'm in the process of designing and building a keyword hierarchy for LR3.5, and I'm at a loss to understand a couple of things. In the process of deciding how to build this, I've looked at a number of hierarchies people have posted to the web. One th [More]
Hi All, I am trying to run Duck's Bank example, but get error below. Any information would be appreciated. Thanks in advance. The sun-acc.xml is: <?xml version="1.0" encoding="UTF-8"?> <!-- Copyright (c) 2002 Sun Microsystems, [More]