Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

opening new window in jsp

 
angelin precilla
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to open a new window on a button click using struts...
 
Tauri Valor
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use "on click" event with a method NewWindow() in your jsp ahref tag.
 
angelin precilla
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I have tried with this. but i am getting script error
 
Anubhav Anand
Ranch Hand
Posts: 341
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can refer this tutorial to have a better understanding.

Once you go through it, you will also rectify your problem.
 
angelin precilla
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
I tried with this and got solution



oNewWindow = window.open( [sURL] [, sName] [, sFeatures] [, bReplace])
HOw to use sName like _parent,_self,etc ?
 
Anubhav Anand
Ranch Hand
Posts: 341
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HOw to use sName like _parent,_self,etc ?


These values are applied with the help of the "target" attribute of the "anchor", "base", or "link" tag etc.
 
angelin precilla
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you explain with an example _self,_parent
Is there any option to change the color of the title bar ?
 
Anubhav Anand
Ranch Hand
Posts: 341
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An example can be:



You may visit this article for even better understanding.

Regarding, the change of color of titlebar, I have never done that . I leave that for fellow ranchers to answer.
[ March 12, 2008: Message edited by: Anubhav Anand ]
 
angelin precilla
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, now i understood the importance of _parent,_self etc
I made status bar and title bar to 'no', but still i am getting it.
 
angelin precilla
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to paste my sample window.But i don't know how to paste that in this forum using image tab.
 
Anubhav Anand
Ranch Hand
Posts: 341
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, to paste your images you require them to avaialable on some hosted web URL.
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What browser are you testing with? I know that IE 7 has a security feature that always shows the status bar and (I think) a bar at the top with the address.

- Brent
 
angelin precilla
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using IE7
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic