• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

How to check if my form is being populated or not?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here I am using Struts2 framework, And I want to check my form data inside <s:if> tag.

Actually i am working on upgrade and migrating application from struts to struts2. And I am figuring out the alternate of the <nsc:present> as shown in the below code. Here it is checking the form, whether it is null or not. Same thing i want to check in struts2 by using <s:if> tag.

Is anyone can help me?
 
Bartender
Posts: 15737
368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to CodeRanch!

I'm sorry, I don't have any experience with Struts. Maybe another member can help you out.

When you post code, please enclose it inside tags like [code]this[/code]. I will edit your post for you this time.
 
Stephan van Hulst
Bartender
Posts: 15737
368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
After formatting your code, I see some possible mistakes:

  • Why is there a --> at the end of the first line?
  • The scriptlet tag on line 2 is not terminated.
  • The opening brace on line 4 is not terminated.

  •  
    reply
      Bookmark Topic Watch Topic
    • New Topic