• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dividing jsp into parts

 
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Ranch Hand
Posts: 479
1
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 38
IntelliJ IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot .
 
Ayoma Wijethunga
Ranch Hand
Posts: 38
IntelliJ IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pleased to be able to help..
 
reply
    Bookmark Topic Watch Topic
  • New Topic