• 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

display data on first jsp on start of application

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<b>i want to display table on first jsp page which i am retrieving from the database
i have form action defined on jsp pages and also struts config navigation is correct
how do i display table without using submit button on my jsp page ( it works when i use submit button its showing me the table )
please help.</b>
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

rohit surve wrote:how do i display table without using submit button on my jsp page ( it works when i use submit button its showing me the table )


Call the action URL explicitly by forwarding to it.
 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As we know at first the index.jsp will be read, so in that give



in struts.xml give this statement
so that it will go into LoginAction, in the action class you can call database and return success.
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OR in S1


http://struts.apache.org/1.3.10/struts-taglib/tagreference.html#logic:forward
OR
http://struts.apache.org/1.3.10/struts-taglib/tagreference.html#logic:redirect
 
reply
    Bookmark Topic Watch Topic
  • New Topic