• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to read DTO of another form into a Service class of a different form?  RSS feed

 
Ranch Hand
Posts: 217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i want to know a basic doubt. Iam working on a Java J2ee project using Struts, Spring, Hibernate

There are two forms say ' Form 1' and 'Form 2'.
there is a field on form 1 which has some value in it. Now i want to write a logic on the Service class of 'Form 2' where i want to read that value(on form 1).
My 1st ques. - Is it possible to do so ?
2nd ques. - I think i need to import the DTO of form 1 to do that on th Service of form 2. Am i correct ? or some alternate method is there to do so?

Thank you
 
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not getting you thoroughly. set the value(dto) in to any one of the scope[you need to choose according to your need] , and read it later.

by the way:this question is related to the Struts forum.http://faq.javaranch.com/java/CarefullyChooseOneForum
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!