Frameset and jsp
Hello,
I am using Sun Java Studio Creator. I have created a navigation menu using tree nodes. At the moment, when a user clicks on a tree node, the link is opened in the external window. I want this navigation in a frameset, so that when a user clicks on a tree node it does not open in a new window or overrides the navigation window, but opens just next to it.
1) How do I do this?
your help will be appreciated. thanks again.
Let me be a little clearer.
1) I have developed a tree hierarchy strucuture with tree nodes. Each tree node has a URL associated with it. When a user clicks on a URL the new page is opened in a new window. I can change the target attribute, but all it does is to open in the same window and then my tree structure disappears.
2) the external links are not jsp pages, but asp pages which have been hosted on a IIS server. My jsp ( tree strucuture ) is hosted on tomcat server.
3) at the moment, i have frameset which divides my view into three area like this:
B
|
A | C
|
Where A is the tree . When I click on the tree node the new page is opened within A and not in C. I want it to open in C. My frameset html is hosted on IIS.
4) If i remove my frameset from the IIS and somehow integrate it with the JSP, then i think i should be able to open new pages in C by using the HTML attribute Base Target="" .
Can you please help me on how to proceed from here. Thanks in advance.
Similar Messages
-
Problem with Frameset and page session
All,
I am having a problem with Framesets and page session attributes. I
have a client who's application uses a three frame frameset. They
have a requirement on several pages that when a button is pushed two
different pages load into the right and left frames. The way they
are accomplishing this is that on the pages were this is required,
they are adding target="_top" to the form declaration in their JSP.
Then they store the page names they want to display in session,
forward the request to the frameset, the frameset then determines
which pages to display based on the session variables. This works
exactly how they want it to.
Here is our problem. We need to store some information in page
session attributes. We have tried to get a handle to the desired
view bean and call the setPageSessionAttribute method. However,
since we are forwarding to the frame and the frame handles displaying
the desired JSP, that view bean we had the handle to is not the one
that is created to hand the display of the JSP.
The next thing I tried was to use the request object. In the
handleBtnRequest method, I set an attribute in the request object. I
then query the request object in the beginDisplay event of the view
bean. When the frame is reset the request object does not contain
the attribute that I have set. I'm confused by this because I
thought the request object would be available to me throughout the
life of the request.
Given the above information, does anyone have any suggestions? Also,
am I going about this in the wrong manner.
The client had been storing this information in user session, which
seemed to work. However, since the data being stored dealt
specifically with data for the requested page, we felt that storing
it as page session was more appropriate.
Thanks,The script on your page web page has some obvious bugs.. Best
fix those
first before looking to blame Flash.
Jeckyl -
I'm trying to design a help page for my web application. I considered using framesets and frames to design the page. When I try to open the frameset (help.htm) in my application, it doesn't load the frames. I'm assuming this is because the <frame src="..."> required a relative path. Correct?
How can I work around this? I even tried this <html:frame page="..."> but to no avail.
Any other suggestions most welcome too.
Thanks.I would suggest you to try Tiles and struts. You can define the tiles (to have the same look as your current frames) and the struts pages/jsp's could go into any of the defined tiles.
Frames would have issues in different browsers and I am positive most of them will be cleared with tiles. For more info and usage check out
http://struts.apache.org/1.x/struts-tiles/index.html
Best
B -
Ideas pls for a small application on java and jsp?
hi ,
I would like to create an application which for resume. I would like to codify the java code . The java code should be able to autogenerate jsp file's since the output of the resume would be on an jsp page. To add it simply a wizard for dynamic resume creation using java swings and jsp. Code for jsp should be autogenerated please note it.
Ideas please!
Thanks in advanceI'd like to add more information to Patreck's suggestion.
JSP pages are wonderful if you need the web server to perform some actions before sending you the final web page.
Here, you don't need the web server to do anything because your Swing application can do it for you. As Patreck implies, Swing can make a connection to the database, retrieve any information you want, perform whatever logic you need, and write the output to an HTML file.
To give you an example, you can use Internet Explorer to view a basic web page on your hard disk. You can also use Microsoft Word to view the same basic web page. They both do the same task and there is no need to force IE to use its Word plug-in in order to view the web page.
JSPs are not necessary because Swing will do all of the work for you. You only need JSPs if you want people to use your program through a web browser because they can't do Swing inside a web browser. You should only use one or the other, not both. Understand now?
If you really really must generate JSP code from a Swing application, then just write out the JSP stuff in the file. For example...
public void createWebPage( Printwriter pw, String myName ) {
pw.println( "<% String myJSPName = \"" + myName + "\" %>" );
pw.println( "<HTML>");
pw.println( "<HEAD>");
pw.println( "<TITLE>My Resume</TITLE>" );
pw.println( "</HEAD>");
pw.println( "<BODY>" );
pw.println( "<H1>My name is " + myName + " and my JSP name is <%= myJSPName %></H1>" );
pw.println( "</BODY>" );
pw.println( "</HTML>" );
}As you can see, it's pointless to embed JSP when you can do all the programming within Swing first and just write out the correct response. -
Hi frnds i want to help in servlet,java bean and JSP
hi friends i'm right now in M.SC(IT) and i want to do project in SERVLET,,JAVA BEANS and JSP ,
so pls give me a title about that
NOTE: I develop a project in group(2 persons there)
my email id is : [email protected] , [email protected] , [email protected]You cannot pair your iPod to a cell phone, so forget about it.
The only way you can get free WiFi is to hang out at a Denny's, a Starbucks, or a truck stop, and I don't think your parents would approve.... -
I am having issues checkin/checkout html, js and jsp files in Microsoft Sharepoint Workspace 2010. I can access (checkin/checkout) any files in the actual Sharepoint site, but when I am synchronized to the site in Sharepoint Workspace 2010 I cannot access
html, js, and jsp files. When I try to checkout a html file, a message pops up saying:
"Can not perform this operation. This document has been checked out or may no longer exist."
Could this be a synchronization issue, or was Sharepoint Workspace 2010 not design to work with html, js, txt, and jsp files?Hi Armando,
I'm afraid that you posted your question on the wrong forum. This forum is intended for Project Server questions. Please go to this forum in order to have answers from experts:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/home?category=sharepoint&filter=alltypes&sort=lastpostdesc
Cheers.
Guillaume Rouyre - MBA, MCP, MCTS -
Creating FOrums with Servlet and JSP
Hi everyone,
Is there a good resource that explains how to build a forum using servlets and JSP technology?
Regards,
Basil Mahdiplease let me know here if you find any useful resources...I am in the process of writing my own searchable threaded forum for my company with JSP's/servlets. It's a very slow process at the moment though...if I ever finish it, I'll gladly share it.
-
How to master good design with EJB and JSP?
I use JSP to calling EJB. But the .jsp file is complex and it's difficult to maintain...I just want to work higher efficent with EJB,JSP and JavaBean. I want to know is there a good design with EJB and JSP? and is there any good material about MVC for EJB,JSP and JavaBean?
You should read the J2EE blueprint available on this website. Better download the PDF, and print it for yourself so you can read it anytime.
-
WL vs. WL-express and JSP vs. javascript/SQL
folks-
i am trying to convince a certain party to
disband a web-based job tracking system being
written in ASP, javascript, html, css and SQL.
it will be hosted on MS webserver running NT.
i am trying to convince them to use JSP and
WL express. i have done two years of EJB
component work on weblogic, however, i have not
done work with JSP or thin-clients. i was mostly
business-logic.
anyway i have some questions and need some
direction. i already know JSP is better than
ASP/javascript etc. because:
* ASP is proprietary. ditto for VBscript
* with an IDE creating JSP is easy and JSP
automatically creates servlets which is way
faster than by hand
* JSP is JAVA based and hence benefits from
all the portability pluses of JAVA
but here are the more difficult questions:
* why is WL express better than an MS
web server? (not including WL market share
and size. after all MS can claim that)
* since WL express does not have an EJB
container, how do you access the database?
via JDBC? does one just have JDBC code
floating around?
* since there is no EJB container how does
one separate presentation from logic from
data access? this is a major downside of
javascript, html, css and SQL etc.
* if a web app grows beyond JSP with WL express
into the need for an EJB container, i would
think that most of the app needs to re-written
as business-logic must be refactored into EJBs
and all JDBC code will be replaced by container
managed beans. this sounds a like a lot of
rework.
* isn't JSP slower than javascript as the
servlet and hmtl code is bounced back and
force across the network?
with respect to architecture, scalability,
and robustness what are the downsides to an
MS webserver and non-JSP coding?* since WL express does not have an EJB
container, how do you access the database?
via JDBC? does one just have JDBC code
floating around?
Use JDO or an OR-mapper or embed JDBC into your own data access classes.
* since there is no EJB container how does
one separate presentation from logic from
data access? this is a major downside of
javascript, html, css and SQL etc.
Presentation=JSP
Logic=Servlet
Data access=JDO or similar
* if a web app grows beyond JSP with WL express
into the need for an EJB container, i would
think that most of the app needs to re-written
as business-logic must be refactored into EJBs
and all JDBC code will be replaced by container
managed beans. this sounds a like a lot of
rework.
You should be able to tell up front if it a tx-intensive app that requires
WLS.
* isn't JSP slower than javascript as the
servlet and hmtl code is bounced back and
force across the network?
They aren't exclusive. For dynamic pages, use Javascript on the front end,
JSP on the back.
* with respect to architecture, scalability,
and robustness what are the downsides to an
MS webserver and non-JSP coding?
In the real world, and for most apps, while Java has the architectural edge,
they both have similar scalability and similar robustness. MS gives you no
choice though, and you rewrite every time they see a new buzzword. You can't
leave MS-land without abandoning almost everything. You can leave WLS in a
week if you have to.
It's an investment. Invest wisely.
Peace,
Cameron Purdy
Tangosol, Inc.
Clustering Weblogic? You're either using Coherence, or you should be!
Download a Tangosol Coherence eval today at http://www.tangosol.com/
"shane miller" <[email protected]> wrote in message
news:[email protected]...
folks-
i am trying to convince a certain party to
disband a web-based job tracking system being
written in ASP, javascript, html, css and SQL.
it will be hosted on MS webserver running NT.
i am trying to convince them to use JSP and
WL express. i have done two years of EJB
component work on weblogic, however, i have not
done work with JSP or thin-clients. i was mostly
business-logic.
anyway i have some questions and need some
direction. i already know JSP is better than
ASP/javascript etc. because:
* ASP is proprietary. ditto for VBscript
* with an IDE creating JSP is easy and JSP
automatically creates servlets which is way
faster than by hand
* JSP is JAVA based and hence benefits from
all the portability pluses of JAVA
but here are the more difficult questions:
* why is WL express better than an MS
web server? (not including WL market share
and size. after all MS can claim that)
* since WL express does not have an EJB
container, how do you access the database?
via JDBC? does one just have JDBC code
floating around?
* since there is no EJB container how does
one separate presentation from logic from
data access? this is a major downside of
javascript, html, css and SQL etc.
* if a web app grows beyond JSP with WL express
into the need for an EJB container, i would
think that most of the app needs to re-written
as business-logic must be refactored into EJBs
and all JDBC code will be replaced by container
managed beans. this sounds a like a lot of
rework.
* isn't JSP slower than javascript as the
servlet and hmtl code is bounced back and
force across the network?
with respect to architecture, scalability,
and robustness what are the downsides to an
MS webserver and non-JSP coding? -
Hot swap and JSP debugging for Weblogic in exploded format?
Hi,
I'm trying to use JDeveloper for JSF development to be deployed to a weblogic server.
I must say JDeveloper is a great tool for JSF development as none of the free IDE in the market can do what JDeveloper does.
However, I have a question on hot swap and JSP debugging.
I have managed to setup JDeveloper to debug my JSF application deploy to my Weblogic server's applications folder in exploded format.
I can step through the java code.
However, I didn't manage to do a hot swap and the break point set in the JSF-JSP does not seems to take effect.
I would appreciate any advice on the problem.
Thanks.
Han MingHow did you setup the server to handle exploded format? Appreciate the help. Sorry can't help with your question though.
Thnx.
Soni -
I'm developing web application with OAS
4.0.8.1 and JDeveloper 3.0 and I want to call
JSP from servlet using "RequestDispatcher".
I downloaded JSP for OAS from www.olab.com.
In the Release note, there is a description
about RequestDispatcher, but I cannot
understand about details.
In what configuration can I use servlet and
JSP together with RequestDispatcher. Anyone
scceeded about that?
nullwan (guest) wrote:
: Hi everyone,
: I am using OAS 4.0.8 on Solaris 2.6. After viewing servlet
: and JSP samples, I am kind of confuse whether OAS supports the
: following options
: 1. JSP
: 2. servlet chaining
: 3. running JDeveloper DB Servlet wizard
: (oracle.jdeveloper.servlet.*) and Java Business Objects
: (oracle.jbo.rt.cs)
: Thank you for your time.
I found a white paper 408newfead.pdf, that says under "Future
Directions" that it will add jsp support. I read somewhere (I
can't remember where exactly :( ) that said 4.0.8.1 would
support
JSPs. I don't know if this release is out yet.
I wish Oracle would get with the times and put out a product that
is consistent with the technology they are touting as the
future.
Having us download Suns server to run servlets and JSP is
ridiculous for the worlds second largest software company!
null -
I am new to Beans and JSP. I would like to know how I can 'get' the resultset and output to a JSP? It would have a few records and each record will have field1,field2 and field3.
My question again: How to continue from here in Beans? How to write the code in JSP? Can anyone guide me with some simple codes as I would not be able to understand advance codes.
Thanks.
public String Login(String inputDep) throws SQLException
String returnString = null;
String dbUserid = "sa"; // Your Database user id
String dbPassword = "" ; // Your Database password
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:test", dbUserid ,dbPassword);
Statement stmt = con.createStatement();
String sql= "select * from Product where dept = '"+inputDep+"'";
ResultSet rs = stmt.executeQuery(sql);You could also try to read the resultset in your bean.
like:
=========== Bean ===============
public class myClass
public AccountData Login(String name, String password)
AccountData data = new AccountData ();
data.setName (resultset.getString ("name"));
//other setter methods
return data;
// use inner class to store values
public class AccountData
AccountData ()
private String name = null;
//further attributes
pubilic String getName ()
return name;
void setName (String name)
this.name = name;
//further getter and setter
}=========== JSP ===============
<jsp:useBean id="myBean" scope="session" class="classes.BeanClass"/>
<% MyClass.AccountData data = myBean.Login (name, password); %>
Name : <%= data.getName () %>Note > means %> -
so for my senior design project i designed a web project using java servlets and JSP pages. For one part of the project to visualize some data i used FLEX to create GANTT Charts. Now that it's done i was looking into how to embed that flex code into JSP page and i found on ADOBE website links for taglibs, however right now it redirects me into a page of Adobe LiveCycle , which cost a lot of money.
Is there another way to embed flex into jsp? or some other way to get just the taglib for flex?
Thank YouIt depends on how Flex is getting the data, and how it's generated. If you refresh the page, then the Flex app will be reset, and won't have any knowledge of previous data. One thing you could do is store the data on the server and access it via some web-service calls (eg AMF or REST). The server could manage the user's session, store data, and generate or retrieve previous data.
-
Login Box example and source code on adf struts and JSP
Dear all..
I want to make application using ADF struts and JSP using oracle 10g Jdeveloper.
The user should login into the login box and verify everyone who has right to enter the home.jsp.
Anybody could help me with the source code as well as the step by step explanation...
I'm looking forward the help...http://www.oracle.com/technology/products/jdev/collateral/papers/10g/reviewer/viewlets/reviewer_struts_viewlet_swf.html
-
Websites for downloading code-templates (java and jsp) existing ?
Hi,
I'm searching for a website, offering code examples or templates (in java and jsp) for downloading.
For example: A code for creating a new xml-file, login-procedure or sending an e-mail with a java-program, I can customize.
I know, for asp.net such websites for downloading code-templates are existing (e.g. a German website: http://www.aspheute.com).
So I think for java and jsp those sites will also be existing�
Does anyone know some links ?
bye
ChrisYes, with google - I'll surely find some matches, but I'm looking for links and websites which will be provided by personal experiences.
With google - you won't find any personal experiences...
bye
Chris
Maybe you are looking for
-
Hi Guys! Will you share your thoughts on a Thread issue?
Hi! I am working on figuring out how to get my application to use threads to enable the simultaneous movement of (n) balls across the JFrame area. The task is to enable the user to click on the application and with each click a new ball should be cre
-
With Java 1.4.2: What is the correct way to format output in the java.io.PrintStream? The following is incorrect, even though it is still used in the The JavaTM Tutorial at: http://java.sun.com/docs/books/tutorial/essential/ System.out.formatThis ret
-
Table join and Logical databasein a same query
Hi Experts, I have an existing query which is created using table join. I now want to add a logical database in the same infoset. Is it possible to add a logical database in the same infoset? Regards, Prakhar
-
Why dosignatures in my POP mail account continue to disappear?
Signatures disppear in my POP account. They show up in "All Signatures" but are not usable when sending an email. I reenter the signatures in my POP account, and they are usable for a while, but suddenly, when I click on Signature in an email to send
-
Using Portable Home Directories with more than one client
Hi, I've got a general question about Portable Home Directories (PHD) that I'm hoping someone with more experience can help me with. I've only ever tied used PHDs to tie a Network Home to a single laptop in the past. But now I'd like to sync the home