Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dividing jsp into parts

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am developing a JSP page with struts in it .

My requirement is that , upon clicking on a search button of a jsp page , i need to show the details of taht serach result .

My question is , is it good to go with Framesets/ Frames for this ??

Or is there any other better Option ??

Thanks in advance ??

Please share your ideas .
 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Frameset/Frame are among the list of options. Since you are using Struts another option is to use would be to use a <logic:present> on the same page. The use would have to be dependant on the end requirement, if I were to suggest.

Cheers,
Raj.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks RaJKamal ,

But i think taht you didn't understand my question properly .

Initially , i want to show an Jsp Page with a simple search button . If the search is successfull , i want to show an another some data for taht search (Thinking to use Frameset for this )


<logic:present name="LogicForm1">

// Here i want to load that Frame Jsp .
</logic:present>



Thanks .
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems Ajax would be a better approach... or just reload the page.

I don't think frames are as evil as a lot of people do, but I also believe their usefulness is rather limited, and should be avoided unless there's a compelling usecase.
 
Ayoma Wijethunga
Ranch Hand
Posts: 38
Firefox Browser IntelliJ IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:Seems Ajax would be a better approach... or just reload the page.


Yes true! AJAX is one of the best approach in this case. Surely, it is better than Framesets. Here is an example, using JQuery.



More about JQuery.load()

Regards,
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot .
 
Ayoma Wijethunga
Ranch Hand
Posts: 38
Firefox Browser IntelliJ IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pleased to be able to help..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic