• 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

please reply somebody need help

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have just started working on struts and i want to connect my jsps to database there is a tag in struts config.xml for database but how will i be accessing database from the jsps are there any tags provided for that b/s i dont want to use expressions in there b/s its not the way MVC is implemented
 
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by kamran:

there is a tag in struts config.xml


It might not be a good idea to use this tag:
https://coderanch.com/t/46023/Struts/Struts-Connection-Pooling

Originally posted by kamran:

for database but how will i be accessing database from the jsps


In MVC you don't access the database in the JSP, but in JavaBeans you instantiate through some kind of factory class you call from struts-action classes and which you put in request or session scope so that the jsps have access to them to show the data contained in the bean.
If you want to access database directly from jsp, this is no mvc and not a good idea for bigger projects. JSTL has such tags.
In this thread find some good articles, tutorials, examples:
https://coderanch.com/t/45990/Struts/Not-easy-struts-example
And someone will come and tell you to change your public displayed name according to JavaRanch naming policy.
[ November 01, 2002: Message edited by: Axel Janssen ]
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the help I was banned from accessing the site
 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by kamran ali:
Thanks for the help I was banned from accessing the site


You ignored several warnings to change your display name to something acceptable under the Javaranch naming policy so you were banned. Your current display name (kamran ali) is acceptable, so you will be able to continue posting under that name.
reply
    Bookmark Topic Watch Topic
  • New Topic