• 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

When do we need form typecast and more

 
Ranch Hand
Posts: 88
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi...I am having few very basic questions based on Struts Framework. Please help me to learn...

Sometimes I am seeing the following:

and sometimes seeing as follows:

Note: I am referring these examples from this excellent Blog.

Question-1: Why this difference?

Question-2: When I do need to typecast my FORM (How I will know when?...Is there any specific scenario)?

Question-3: I just learned a bit about Sturts 1.x. Now what should I do first, if I need to learn Struts 2 (actually what can be the real challenge?)

Thank you guys for motivating me always through this forum.
 
Ranch Hand
Posts: 329
Eclipse IDE Oracle Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Faisal Fuad wrote:Question-1: Why this difference?


There is no difference. In the first one you assigned the form to a local object, the second one doesnt do that

Faisal Fuad wrote:Question-2: When I do need to typecast my FORM (How I will know when?...Is there any specific scenario)?

You would only assign(or take) the form if you want to use it. For example, if you want to get some values from the form. The above example that you are looking into does nothing but forward to success JSP.

Faisal Fuad wrote:Question-3: I just learned a bit about Sturts 1.x. Now what should I do first, if I need to learn Struts 2 (actually what can be the real challenge?)

Forgetting the little Struts 1.x we have already learnt

 
Faisal Fuad
Ranch Hand
Posts: 88
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
lol .....Thank you Shankar
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic