jGuru
Register Email     Password Forgot your
password?
HOME FAQS FORUMS DOWNLOADS ARTICLES PEERSCOPE LEARN

  Search   jGuru Search Help

View:
Struts FAQ Home Page

FAQ Manager is guru WarnerJan Veldhuis PREMIUM.

Struts is an open source framework for building Web applications. Struts encourages application architectures based on the Model-View-Controller (MVC) pattern and provides services common to most Web applications. Struts helps developers deploy products that are reliable, scaleable, and easier to maintain.

What's New

How can I use a variable that contains HTML?
Tools:Framework:Struts:View:Taglibs
Christopher Koenigsberg PREMIUM, Mar 26, 2006
If you have a variable like this: example="This is a <strong> text </strong>"; Use this in the output jsp: <bean:write prop...
How do you get a password field with html:text? In HTML it's quite easy i.e. type=password. Tried the same using an html:form, but it doesn't recognise "type=password". Any ideas?
Tools:Framework:Struts:View:Taglibs:HTML
WarnerJan Veldhuis PREMIUM, Mar 26, 2006
<html:password/> is the one to go for
How does struts handle the input element if it is hidden? For example I have an input tag inside my form <input type=hidden value="" name="order">
Tools:Framework:Struts, Tools:Framework:Struts:Model
WarnerJan Veldhuis PREMIUM, Mar 26, 2006
Struts accepts this, just like any other textfield in your form. To be fully Struts-compatible, you might want to use the html:hidden tag: <html:hidden...

Struts and javascript I just started to learn struts and I found that we cannot name a form. So i want to know how to give name to a struts form and how to access and retrive data from struts form (...
Tools:Framework:Struts, Tools:Framework:Struts:View:Taglibs:HTML
WarnerJan Veldhuis PREMIUM, Feb 25, 2006
A form automatically gets its name from the form that is assign to the action. For example, if you have a login.do action, and that is connected to the...
User Specific Language settings I have a requirement to capture the language preference of the user and Based on the settings of the user I need to load the specific application resource file. For...
Tools:Framework:Struts, Tools:Framework:Struts:View:I18N
alan do, Feb 24, 2006
here's a tutorial on it: http://www.exadel.com/tutorial/struts/5.2/strutstutorials-i18n.html . note that 'locale' attribute is deprecated in struts 1.2...
"OR" Condition My problem is that I cannot figure out how to represent an 'OR' condition with Struts. I want to display a section of HTML if Condition1 OR Condition2 are met. I can represent an AND...
Tools:Framework:Struts, Tools:Framework:Struts:View:Taglibs:Logic
alan do, Feb 24, 2006
hahaha... :) welcome to the past. the logic tag lib is more out-dated than screech's clothes on 'saved by the bell'. pardon my laughter, but i hope...
In my struts application, how do i maintain session, if a user closes the windows browser instead of clickin on logout button? I am using JSP for for client operations.
Tools:Framework:Struts, Tools:Framework:Struts:Tips
WarnerJan Veldhuis PREMIUM, Feb 24, 2006
The Session will stay alive for 20 minutes (defined in web.xml). You can create a SessionListener that logs a person out when the session gets invalidated,...
Validate HashMap? I wrote a MapForm extends ValidatorForm as below: import java.util.* import javax.servlet.http.*; import org.apache.struts.action.*; import org.apache.struts.validator.*; //import...
Tools:Framework:Struts, Tools:Framework:Struts:Taglibs, Tools:Framework:Struts:View:Taglibs
alan do, Feb 24, 2006
you are approaching this the hard way...reinventing the wheel sort to speak. struts has indexed properties which will allow you to achieve what you're...
bean:message inside Struts tag I have expresion and it does not work Can somebody sugest how to write corectlly? <pran:hello name="<bean:message key="menu.home"/>" /> Thanks a l...
Tools:Framework:Struts, Tools:Framework:Struts:Taglibs
prem anand, Feb 24, 2006
One way is <bean:define id="home"><bean:message key="menu.home"/></bean:define> <pran:hello name="<%=home%>" />
problem with html:form I have this code in my JSP page. I need to have name = "questionList" for the form because i am using java script if(document.questionList.yesno1.options[1].selected)... in...
Tools:Framework:Struts, Tools:Framework:Struts:Taglibs
WarnerJan Veldhuis PREMIUM, Feb 24, 2006
It says that, because name is not an attribute for html:form. If you put in <html:form action="/questions.do" /> Struts will automatically put in...
I have 3 buttons in JSP page(next, previous, save). How can I identify which was clicked and where should that particular identification and associated action be within a Struts application?
Tools:Framework:Struts
alan do, Feb 10, 2006
The correct struts approach is to use LookupDispatchAction or MappedDispatchAction, which automatically identify which button was clicked and which dispatch...
How do I remove all leading and trailing whitespace in all user inputs of a form automatically?
Tools:Framework:Struts, Tools:Framework:Struts:Model, Tools:Framework:Struts:Tips
WarnerJan Veldhuis PREMIUM, Feb 7, 2006
In the setter for myField of the form: this.myField = ( someParameter != null ? someParameter.trim() : null);
How can I have a data field of type "Date" in my struts form (corresponding to an entry in a jsp page)? The form class generally has getters and setters for String and Boolean, not "Date".
Tools:Framework:Struts
WarnerJan Veldhuis PREMIUM, Feb 1, 2006
Create a field as Date and in the setter convert the String parameter to a Date. To quickly convert the date, use: theDate = DateFormat.getDateInstan...
Is Junit or cactus better for testing struts applications?
Tools:Framework:Struts, Tools:Framework:Struts:Tips
alan do, Jan 25, 2006
http://strutstestcase.sourceforge.net See also this FAQ
Preventing users from accesing action. I am writing a web app to manage administrators and profiles. Administrators may access to the web app based on the profiles they have. The profiles, determine...
Tools:Framework:Struts:Controller:Authentication
Ted Husted PREMIUM, May 22, 2003
If you are using Struts 1.1, there is a roles attribute to the action mapping where you can specify standard JAAS roles. If you are not using container-managed...
indexed properties I am confused by the indexed properties of Struts. What I wanted to do is iterate through a collection of String in jsp and for each element there is a radio button with value= that...
Tools:Framework:Struts:View:Taglibs:HTML
Ted Husted PREMIUM, Apr 22, 2003
Radio tags are usually rendered as such <html:radio property="bidType" value="1" />Bid up to this amount on my behalf <html:radio proper...
No errors are forwarded when redirect is set to true I use the following code to send a forward: forward = mapping.findForward("cancel"); if (forward!=null) { ActionErrors errors = new Action...
Tools:Framework:Struts:Controller
Ted Husted PREMIUM, Apr 22, 2003
The framework stores the errors in the request, and so when you redirect, they disappear. The usual work around is to save the ActionErrors to the session...
Iterate Increment Hi by default logic:iterate will increment the loop by 1. What do i need to do if i need to increment the loop by 2?
Tools:Framework:Struts:Taglibs
Ted Husted PREMIUM, Apr 9, 2003
Iterate is not a loop. It passes over the items in a collection. If you don't want to process all the items, don't put them in the collection to begin...
Opening new window or going back I have a form (reportForm) with two different buttons. "Print" and "Cancel". When clicking 'Print' I want to open a new window, that prints a report using a bean...
Tools:Framework:Struts:View:JavaScript
Ted Husted PREMIUM, Apr 9, 2003
To go back a page, you can use a standard JavaScript button. <input type='button' onclick='history.go(-1);' name="button" value="PRINT" />  To...
Exceptions that occur in an Action class can be catched in the Action class or handled by registered handlers, in the struts-config.xml file, that route control to specified error pages. Exceptions...
Tools:Framework:Struts:View
Ted Husted PREMIUM, Mar 31, 2003
It depends on when the error occurs. When you are using Tiles, the response is rendered tile-by-tile. Once the response starts to render, control cannot...
« previous beginning next »


Ask A Question



Related Links

Struts Forum

Struts Homepage

More About Struts page

Jakarta Taglibs

Developing Web Applications with Tomcat

The Problem with JSP

Surveying the MVC Landscape

Wish List
Features
About jGuru
Contact Us

 




JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
ServerWatch.com Article: Virtualization Enters the SMB World
ITChannelPlanet.com Article: Emerging E-Discovery Market Grows More Vital for VARs
StoreVault Whitepaper: Introduction to Networked Storage
Oracle eBook: Implementing Business Intelligence in Your Organization
Hoovers Sales Tip: Building Credibility with New Clients
SAP Whitepaper: A Corporate Guide to Better Decisions Through IT
Microsoft Article: Flexibility, Agility the Keys to Dynamic IT
Microsoft Article: Improving Infrastructure Management for Mid-Size Companies
IBM Whitepaper: CIO Insights--Ignite Innovation by Fusing Business and IT
IBM Whitepaper: Transforming Legacy Apps into SOA
Internet.com eBook: All About Botnets
Intel Article: 8 Simple Rules for Designing Threaded Applications
Symantec Whitepaper: E-Mail Discovery--Worst-Case Scenarios Versus Best Practices
Ipswitch Whitepaper: Secure File Transfer In the Era of Regulatory Compliance
Symantec Whitepaper: A Unified, Proactive Approach to Endpoint Security
APC eBook: Putting the Green in IT
Intel Whitepaper: Best Practices for Developing and Optimizing Threaded Applications
Symantec Whitepaper: Emerging Trends in Fighting Spam
Oracle eBook: Guide to Oracle 11g and Database Migration
Symantec Whitepaper: Best Practices for IM Archiving & Compliance
Intel Article: The Challenges of Developing Multithreaded Processing Pipelines
Avaya Whitepaper: SIP--Creating Next-Generation Telecom Applications
Avaya Article: Event Processing Demands Real-Time Response for Communications-Enabled Business Apps
MessageLabs Whitepaper: Spam Spikes--A Real Risk to Your Business
Symantec Article: Guarding the Corporate Gateway
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Epicor Webcast: Requirements to Consider When Looking at ITSM Tools
Intel Video: Three Must-Knows for Parallelism
Microsoft: NXT Web Seminar Series
Microsoft Partner Program Video: The Secrets to Partner Success
Rational Asset Manager: Succeed with Asset-based Development
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
NXPowerLite: Desktop Edition Software Trial
IBM Rational Systems Development Solution e-Kit
IBM SOA Development Survival Guide eKit
Evaluate IBM Rational Build Forge Online
IBM Enterprise Architect eKit for SOA
Evaluate Rational Application Developer Online
Iron Speed Designer Application Generator
Symantec IM Detection Utility
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
IBM Overview Video: Next Generation Data Warehousing
IBM Tutorial: Intro to XML User Interface Language (XUL) Development
Microsoft How-to Article: Get Going with Silverlight and Windows Live
IBM Tutorial: The Ajax Transport Method
IBM Tutorial: Learning PHP
IBM Tutorial: Validating XML
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES