• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating a DataSource object

 
Mike Glickman
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a combination of a JSP and struts question, I do not know if this is the correct forum however here is my question:
I am trying to create a oracle.jbo.html.DataSourceImpl object within a struts action class, and register the DataSourceImpl object so that a jsp page can access it; the equivalent of this tag
<jbo ataSource id="_dynamicDS" appid="AppModule" Vewobject="dynamicVo" />.
Anyone has any ideas on how this can be done?
Thank you
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch "Forum Guy"!
You'll find this forum a great place to seek help on JSP pages, and there aren't many rules you'll have to worry about, but one is that proper names are required. Please take a look at the JavaRanch Naming Policy and change your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Thanks!
bear
JSP Forum Bartender
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is probably more appropriate to Struts, so I'm moving it along to there.
bear
[ January 14, 2004: Message edited by: Bear Bibeault ]
 
Rick Hightower
Author
Ranch Hand
Posts: 350
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts does not have tags that manipulate DataSources directly.
Struts encourages a Model 2 architecture, which forbids such things.
I think you will find what you are looking for with the JSTL SQL tags.
I would send you a link, but I am sure if you searched for those keywords in google. It would return good stuff.
 
Mike Glickman
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the input Rick, I realize that I am breaking the model; the reason is I have to make struts work with some of our old code. I need to access the datasource on the page because we have a tabular display mechanism (tags and the whole nine) which runs off of this object. Do you or anyone know of a way to implement a tabular display with click sorting using struts and jsp.
Thank you.
MG
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic