Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

A problem in struts application

This is a discussion on A problem in struts application within the Java forums, part of the Software Development category; I am making a simple struts application in which if i use only one input text box then this application is running very well but as if i increses thje ...

Go Back   Geeks Talk > Software Development > Java
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Java Java related Issues and Problems

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-25-2008
Junior Member
 
Join Date: Aug 2008
Location: india
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
anilonwebs is on a distinguished road
Question A problem in struts application

I am making a simple struts application in which if i use only one input text box then this application is running very well but as if i increses thje input box no by 2 then i get HTTP error 500, wheather i've make changes in action class and bean class.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-05-2008
Junior Member
 
Join Date: Jun 2007
Location: India
Posts: 20
Thanks: 0
Thanked 6 Times in 4 Posts
deeptiagrawal is on a distinguished road
Re: A problem in struts application

Quote:
Originally Posted by anilonwebs View Post
I am making a simple struts application in which if i use only one input text box then this application is running very well but as if i increses thje input box no by 2 then i get HTTP error 500, wheather i've make changes in action class and bean class.
In a struts application every element in JSP that will hold some value should be defined in the Form bean class. So if you are declaring 2 text boxes in your JSP you need to have 2 form bean elements in your Form bean class. For eg :if your JSP has two text boxes 1 for username & anotyher for password than you form bean should have two String variables userName and passowrd and the getter and setter for both the elements.
And according you can get the values of your form bean elements in your Action class.
Reply With Quote
Reply

  Geeks Talk > Software Development > Java

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
2 Action Servlets in Struts Application kattu_c JSP 4 08-28-2008 09:15 AM
Use of struts sriharshanamala Java 3 03-24-2008 10:07 AM
Pagination in Struts Application svignesh Java 0 01-06-2008 08:24 AM
Problem while working with ClientSide Validations in Struts nagadeepa Java 1 12-10-2007 12:28 PM
Struts.... Sampath_Java Java 1 08-30-2007 01:36 AM


All times are GMT -4. The time now is 08:22 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved