| | |
JSP to Frame...
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Nov 2008
Posts: 27
Reputation:
Solved Threads: 0
Dear Friends,
I am working on a project where i have a JSP page(ex1.jsp) and in that JSP page i have 2 frames((ex2.jsp on top) and (ex3.jsp in bottom))...When ex1.jsp is called..it has to load ex2.jsp frame and ex3.jsp by passing some paramenters to it.. Please see the code..
i don't want this URL passing(as am passing some other language values, this passing is not supported)...is there any other method or way that i can pass the values to this 2 frames from ex1.jsp page..
Please suggest me how to solve this..
Thanks & regards,
Jayaprakash P R
I am working on a project where i have a JSP page(ex1.jsp) and in that JSP page i have 2 frames((ex2.jsp on top) and (ex3.jsp in bottom))...When ex1.jsp is called..it has to load ex2.jsp frame and ex3.jsp by passing some paramenters to it.. Please see the code..
JSP Syntax (Toggle Plain Text)
<%@page contentType="text/html" pageEncoding="UTF-8" import=java.util.*,java.text.*" session="true"%> <% Vector vBtrs = null; String szKType = ""; String szKDesc = ""; String szOpearion = ""; String szCustomForm = null; try{ request.setCharacterEncoding("UTF-8"); szKType = request.getParameter("KType"); szKDesc = request.getParameter("KDesc "); szOpearion = request.getParameter("operation"); szCustomForm = request.getParameter("customform"); if(szCustomForm !=null && szCustomForm.equals("yes")){ System.out.println("IT is going for Custom form"); }else{ vBtrs = (java.util.Vector)request.getAttribute("Btrs"); System.out.println("*************BTRS===>"+vBtrs); session.setAttribute("Btrs",vBtrs); } }catch(Exception e){ e.printStackTrace(); } %> <html> <head> <title>BtrList</title> <% if(szCustomForm != null && szCustomForm.equals("yes")){ %> <frameset rows="30%,*" frameborder="1" > <frame src="jsp/ex2.jsp?KType=<%=szKType%>&KDesc=<%=szKDesc%>&operation=<%=szOpearion%>" name="" scrolling="auto" name="btrsFrame1"></frame> <% }else{ %> <frameset rows="23%,*" frameborder="1" > <frame src="jsp/ex3.jsp?KType=<%=szKType%>&KDesc=<%=szKDesc%>&operation=<%=szOpearion%>" name="" scrolling="auto" name="btrsFrame2"></frame> <% } %> <frame src="" name="showframe" scrolling="auto"></frame> </frameset> </head> </html>
i don't want this URL passing(as am passing some other language values, this passing is not supported)...is there any other method or way that i can pass the values to this 2 frames from ex1.jsp page..
Please suggest me how to solve this..
Thanks & regards,
Jayaprakash P R
•
•
Join Date: Nov 2008
Posts: 27
Reputation:
Solved Threads: 0
Hi Friends..
I have solved the problem by putting the value in session...
and retrived it back in ex2.jsp as
I have solved the problem by putting the value in session...
session.setAttribute( "KType", KType); and retrived it back in ex2.jsp as
String szKType = (String)session.getAttribute("Ktype") Last edited by peter_budo; Mar 9th, 2009 at 8:20 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
![]() |
Similar Threads
- can any one send me a jsp source code of an e-banking project (JSP)
- Frame detection possible? (HTML and CSS)
Other Threads in the JSP Forum
- Previous Thread: Proble displaying images dynamically in jsp
- Next Thread: file:upload
| Thread Tools | Search this Thread |
apache backbutton combobox connection database development directorystructure dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 network parameters passing ping printinserverinsteadofclient redirect request.getparameter response servlet servletdopost()readxml sessions software ssl state_saving_method stocks sun tomcat tutorial update video web





