Comment

trevis
action tag,
February 11, 2008 at 10:32 AM

Te example doesn't really show the power of the action tag. What it allows you to do is to execute a struts 2 action and (optionally) have the resulting html become imbeded into the calling jsp.

try adding:

<s:action name="HelloWorld" executeResult="true" namespace="/roseindia"></s:action>

Assuming you have the HelloWorld.action servlet from the first tutorial in the "/roseindia" namespace that should give you a better example of what this tag can do.

View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Struts Questions

action tag - Struts
action tag  Is possible to add parameters to a struts 2 action tag? And how can I get them in an Action Class. I mean: xx.jsp Thank you 

Struts 2 Tutorials

Struts 2 Action Tag
Struts 2 Action Tag "action" Tag in Struts 2 is used by developer to call... action name. Struts 2 Action Tag is one of the Data Tags, which are used.... Following example will further explain the complete use of Struts 2 Action 

Java Beginners

attribute in action tag - Java Beginners
attribute in action tag  I'm just a beginner to struts. The name tag(name="bookListForm") is used to define the form used with the action class. But i`m not clear about the attribute tag(attribute 

Struts 2 Tutorials

Struts2.2.1 Action Tag Example
Struts2.2.1 Action Tag Example The Action tag  is used to call action... the action name and an optional namespace.The body content of the tag is used to render... the Action tag in the Struts2.2.1 -- First we create a JSP file named 

Struts 2 Tutorials

Action Tag (Data Tag) Example
Action Tag (Data Tag) Example       In this section, we are going to describe the action tag. The action tag is a generic tag that is used to call actions directly from a JSP page by specifying the action 

JSP Interview Questions

JSP Action Tag
JSP Action Tag   Defined JSP Action Tag ?   Action tag... JSP action tags to either link to a Java Bean set its properties, or get its properties. syntax of Action Tag : <jsp:action attributes /> The most 

JSP Interview Questions

jsp forward action tag
jsp forward action tag  Defined jsp forward action tag ?   The <jsp:forward> element forwards the request object containing... application context as the forwarding JSP file. Syntax of forward action Tag: < 

JSP Interview Questions

jsp include action tag
jsp include action tag  Defined jsp include action tag ?   ... that is included in the JSP page. When the include action is finished, the JSP container continues processing the remainder of the JSP file. syntax of include action 

JSP Servlet Questions

Action tag - JSP-Servlet
Action tag  Hello, I want to help ....i hav one feedback form there is action , .. can i use two action at the same form because i want html page on submitting feedback form and instead of above tag i change form 

Struts Examples

Struts2 Actions
is usually generated by a Struts Tag.    Struts 2 Redirect Action In this section, you will get familiar with struts 2 Redirect action... Struts2 Actions       Struts2 Actions 

Struts Questions

Calling Action on form load - Struts
. Even if you want to use the tag with a simple Action that does not require input...Calling Action on form load  Hi all, is it possible to call... this list is coming from the action which i m calling before the page is being 

Struts Questions

tree tag in struts2 - Struts
tree tag in struts2  I have an arraylist of values retrieved from the database and i want all the values in the arraylist to be viewed in a subtree node. like:::: COUNTRYLIST has values INDIA,UK,USA. INDIA,UK,USA 

Struts Questions

Achor tag. Struts2 code - Struts
Achor tag. Struts2 code  Hi All, How to send the values form one jsp page to another using anchor tag (or any which is similar to achor) in Struts? Please help me. I am waiting for the answer. Regards, Sandeep 

Struts Questions

no action mapped for action - Struts
no action mapped for action  Hi, I am new to struts. I followed...: There is no Action mapped for action name HelloWorld 

Struts Questions

DTO & Action class - Struts
DTO & Action class  Hi I am really new to struts2. I just wanted to know that if I have a DTO and an action class, how do I put the form data into the DTO? Can someone please explain with a simple example 

Struts Questions

Achor tag. Struts2 code - Struts
Achor tag. Struts2 code  Hi All, How to send the values form one jsp page to another using anchor tag (or any which is similar to achor) in Struts? Please help me. I am waiting for the answer. Regards, Sandeep   

Struts-Tutorials

Understanding Struts Action Class
Understanding Struts Action Class       In this lesson I will show you how to use Struts Action... - if the application business logic throws an exception Adding the Action Mapping in the struts 

Struts 2 Tutorials

Example of struts2.2.1 bean tag.
Example of struts2.2.1 bean tag. In this tutorial, you will see the use of bean tag of struts2.2.1 tag. The Bean tag is a generic tag that is used to instantiates a class that confirms to the JavaBeans specification. This tag has a body 

Struts Questions

C:Redirect Tag - Struts
C:Redirect Tag  I am trying to use the jstl c:redirect tag in conjuction with a struts 2 action. I am trying to do something like What I am... some application initialization to place (in the form of a Struts action) so 

Struts Questions

select tag in Struts2 to handle Enums - Struts
select tag in Struts2 to handle Enums  I have an java enum in my object. I am trying to set its values from struts2 select tag. I tried with "#list... to handle enums in struts2 select tag ?   Hi friend, Code to solve 

JSP Servlet Questions

JSP Forward action
JSP Forward action  Jsp forward action tag examples 

Struts Questions

Struts2 tag
Struts2 tag  function of hidden tag?   Hi Friend, <s:hidden> tag create a hidden value field.It means it stores the value but cannot be visible. For more information, visit the following link: Struts2 Tutorial 

JSP Servlet Questions

Jsp Action Tags
Jsp Action Tags  how can i use jsp forward action tag?i want examples 

Struts Questions

How to add another option to the select tag using struts2 tag - Struts
How to add another option to the select tag using struts2 tag  Hi, How to add another option to select tag using tag. My scenario is : If the logged in user is admin then drop down should contain the normal list 

Struts Questions

Struts2
Struts2  Hi, I need a solution for displaying success message in same page in struts2. how to redirect same page in struts2.Please help me.   hi friend, To know how redirect action can be done in struts 2 you can go 

JSP Servlet Questions

standard action - JSP-Servlet
; hi friend.. Action Allow you to specify components from a tag library or a standard tag. For Example : Action may display an output or write some value to servlet without showing any output. Actually action is a tag name and tag 

Struts Questions

Struts Action Chaining
Struts Action Chaining  Struts Action Chaining 

Struts Questions

struts2 select tag multiple
struts2 select tag multiple  struts2 select tag multiple 

Struts Questions

jsp to struts 2 action conversion problem - Struts
jsp to struts 2 action conversion problem  i have one jsp page that includes 3 other jsp pages(using RequestDispactcher).how to convert that jsp page to a struts2 action?among that one jsp page is wrritten using jpivot,wct tags 

Struts Examples

Struts Tag:
Struts Tag:       bean:struts Tag... configuration objects. This tag retrieve the value of the specified Struts... of the Struts<bean:struts> tag. Here you will learn to use the Struts Html< 

Struts Questions

Action Configuration - Struts
Action Configuration  I need a code for struts action configuration in XML 

Design concepts & design patterns Questions

Include tag example in Struts
Include tag example in Struts   hi... sir. This is sreenu sir. I am learning struts2 but i have a small doubt i am using include tag. ex... include tag ..... is not displayed pls telll me sir.? i using this tag using 

Struts Questions

Struts2 - Struts
Struts2  Hi, I am using doubleselect tag in struts2.roseindia is giving example of it with hardcoded values,i want to use it with dynamic values. Please give a example of it. Thanks 

Struts 2 Tutorials

Actionerror Tag
<action name="actionerrorTag">    <result>/pages...;/struts-tags" %> <html>   <head>   ...;body>   <s:form action="validUser" method 

Struts Questions

Struts Action Class
Struts Action Class  What happens if we do not write execute() in Action class 

HTML Tutorial

Action Submit Html
in the action setting of the <form> tag. Understand with Example The Tutorial... Action Submit Html       Action Submit in Html is used to submit a form, When a user 

Struts Questions

Struts dispatch action - Struts
Struts dispatch action  i am using dispatch action. i send the parameter="addUserAction" as querystring.ex: at this time it working fine. but now my problem is i want to send another value as querystring for example 

Struts Questions

How to Use Struts 2 token tag - Struts
How to Use Struts 2 token tag  Hi , I want to stop re-submiiting... 'token' tag for it, but not able to find out how does it works, I' ve put tag on my jsp but not able to find what other things i need to write on my action 

Struts Questions

Struts Action Classes
Struts Action Classes  1) Is necessary to create an ActionForm to LookupDispatchAction. If not the program will not executed. 2) What is the beauty of Mapping Dispatch Action 

Struts Questions

Login Action Class - Struts
Login Action Class  Hi Any one can you please give me example of Struts How Login Action Class Communicate with i-batis 

Struts Questions

Action classes in struts
Action classes in struts  how many type action classes are there in struts   Hi Friend, There are 8 types of Action classes: 1.ForwardAction class 2.DispatchAction class 3.IncludeAction class 4.LookUpDispatchAction 

Struts Questions

servlet action not available - Struts
servlet action not available  hi i am new to struts and i am.... Struts Blank Application action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml 2 action *.do 

Struts 2 Tutorials

Set Tag (Data Tag) Example
Set Tag (Data Tag) Example       In this section, we are going to describe the Set tag. The set tag is a generic tag... the following code snippet into the struts.xml file. struts.xml <action name 

Struts 2 Tutorials

Param Tag (Data Tag) Example
the start and end tag.  Struts behaves a bit different according... Param Tag (Data Tag) Example       In this section, we are going to describe the param tag. The param tag is a generic tag 

Struts 2 Tutorials

Advance Struts Action
Advance Struts2 Action In struts framework Action is responsible... is called this method executed automatically. The action class in Struts2 framework... and action. For the good Action in Struts2 framework writing an action 

Struts 2 Tutorials

Text Tag (Data Tag) Example
Text Tag (Data Tag) Example       In this section, we are going to describe the text tag. The text tag is a generic tag... as the action that it is associated with ie. create a properties file in the same 

Struts Questions

action Servlet - Struts
action Servlet  What is the difference between ActionServlet ans normal servlet? And why actionServlet is required 

Struts Questions

Struts2 - Struts
Struts2  S:select tag is being used in my jsp, to create a drop down list. The drop down works very well in Mozilla, but in IE7 it behaves very weird, meaning that the drop down wen clicked it just jumps out from the first row 

Struts Examples

Select Tag (Form Tag) Example
Select Tag (Form Tag) Example       In this section, we are going to describe the select tag. The select tag is a UI tag that is used to render an HTML input tag of type select. Add 

Struts Questions

STRUTS 2 Could not find action or result
STRUTS 2 Could not find action or result  hiii..i am new to struts 2...;package name="Basic" extends="struts-default"> <action name="fetch" class... on my log: WARNING: Could not find action or result There is no Action 

Struts 2 Tutorials

Bean Tag (Data Tag) Example
Bean Tag (Data Tag) Example       In this section, we are going to describe the Bean Tag. The Bean tag is a generic tag... specification. This tag has a body which can contain a number of Param elements to set any 

Struts Questions

Dispatch Action - Struts
Dispatch Action  While I am working with Structs Dispatch Action . I am getting the following error. Request does not contain handler parameter named 'function'. This may be caused by whitespace in the label text 

Struts 2 Tutorials

Action in Struts 2 Framework
Actions Actions are the core basic unit of work in Struts2 framework. Each action provides the processing logic for a specific URL with which it is linked. Actions are mostly associated with a HTTP request of User. The action class 

Struts 2 Tutorials

Optgroup Tag (Form Tag) Example
Optgroup Tag (Form Tag) Example       In this section, we are going to describe the optgroup tag. The optgroup tag is a UI tag that creates an optgroup component which needs to reside within 

Java Beginners

HTML Action attribute - Java Beginners
are calling servlet from action tag,then you need to import the package...HTML Action attribute  I have folder structure like... -emp_event.java In emp_event.jsp I have form tag in jsp file as below 

Struts 2 Tutorials

Password Tag (Form Tag) Example
Password Tag (Form Tag) Example       In this section, we are going to describe the password tag. The password tag is a UI tag that renders an HTML input tag of type password. Add 

Struts 2 Tutorials

Textarea Tag (Form Tag) Example
Textarea Tag (Form Tag) Example       In this section, we are going to describe the textarea tag. The textarea tag is a UI tag that is used to render an HTML textarea.  Add the following code 

Struts Examples

Struts nested tag Example
Struts nested tag Example       The tag library ?nested? is included in Struts... with the help of struts nested tag library.  Nested tags are used in the nested 

Struts 2 Tutorials

Optiontransferselect Tag (Form Tag) Example
Optiontransferselect Tag (Form Tag) Example       In this section, we are going to describe the Optiontransferselect tag. The Optiontransferselect tag is a UI tag that creates an option transfer select 

Struts 2 Tutorials

Checkbox Tag (Form Tag) Example
Checkbox Tag (Form Tag) Example       In this section, we are going to describe the checkbox tag. The checkbox tag is a UI tag that is used to render an HTML input element of type checkbox 

Struts 2 Tutorials

Textfield Tag (Form Tag) Example
Textfield Tag (Form Tag) Example       In this section, we are going to describe the textfield tag. The textfield tag is a UI tag that is used to render an HTML input field of type text. Add 

JSP Tutorials

jsp:include action tag
jsp:include action tag In this section we will discuss about JSP "include" action tag. The jsp "include" tag is used to include the resource at the request time. It is better for dynamic web page. The include tag 

Struts 2 Tutorials

Label Tag (Form Tag) Example
Label Tag (Form Tag) Example       In this section, we are going to describe the label tag. The label tag is a UI tag... <action name="labelTag">    <result>/pages 

Struts 2 Tutorials

File Tag (Form Tag) Example
File Tag (Form Tag) Example       In this section, we are going to describe the file tag. The file tag is a UI tag... the following code snippet into the struts.xml file. struts.xml <action 

Struts 2 Tutorials

Datetimepicker Tag (Form Tag) Example
Datetimepicker Tag (Form Tag) Example       In this section, we are going to describe the datetimepicker tag. The datetimepicker tag is a UI tag that is used to render a date/time picker in a dropdown 

Struts 2 Tutorials

Struts2.2.1 token tag example.
;body><h1>Struts_Token_Example</h1><hr/> <s:form action...Struts2.2.1 token tag example. In this example, you will see the use of taken tag of struts2.2.1. It helps double click problem. The s:token tag merely 

Struts 2 Tutorials

Property Tag (Data Tag) Example
Property Tag (Data Tag) Example       In this section, we are going to describe the property tag. The property tag is a generic tag that is used to get the property of a value, which 

Struts 2 Tutorials

Radio Tag (Form Tag) Example
.style1 { color: #FFFFFF; } Radio Tag (Form Tag) Example... to describe the radio tag. The radio tag is a UI tag that renders a radio button input... <action name="radioTag" class="net.roseindia.checkboxlistTag"> 

Struts 2 Tutorials

Struts2.2.1 optiontransferselect  tag example.
Struts2.2.1 optiontransferselect  tag example. In this example, you will see the implementation of optiontransferselect tag of struts2.2.1. The Optiontransferselect tag is a generic UI tag that creates an option transfer select 

Struts 2 Tutorials

Reset Tag (Form Tag) Example
Reset Tag (Form Tag) Example       In this section, we are going to describe the reset tag. The reset tag is a UI tag that  is used with the form tag to provide form resetting. It renders 

Struts 2 Tutorials

Updownselect Tag (Form Tag) Example
Updownselect Tag (Form Tag) Example       In this section, we are going to describe the updownselect tag. The updownselect tag is a UI tag that creates a select component with buttons to move 

Struts 2 Tutorials

Checkboxlist Tag (Form Tag) Example
Checkboxlist Tag (Form Tag) Example       In this section, we are going to describe the checkboxlist tag. The checkboxlist tag is a UI tag that creates a series of checkboxes from a list. Setup is like < 

Struts Examples

Why Struts 2
core interfaces are HTTP independent. Struts 2 Action classes.... Better Tag features - Struts 2 tags enables to add style sheet-driven.... Struts 2 tags are more capable and result oriented. Struts 2 tag markup can 

Struts 2 Tutorials

Submit Tag (Form Tag) Example
Submit Tag (Form Tag) Example       In this section, we are going to describe the submit tag. The submit tag is a UI tag that is used to render a submit button. The submit tag is used 

Programming Tutorials

Standard Action "jsp:param"
process the parameter. This tag can be enclose in any other action tags...Standard Action <jsp:param> In this Section, we will discuss about "jsp:param" standard action & their utilization with a example 

Training

Struts2 Training
Day--2 Struts2 Actions Simple Action Redirect Action Struts2 Validator Framework Day--3... Tag Iterator Tag   II. Data Tags Action Tag 

Java Server Faces - JSF

JSF actionListener Tag
JSF actionListener Tag          This tag is used to add a action listener to the component associated with the enclosing tag. When user does an event 

Struts 2 Tutorials

Struts2.2.1 text Tag Example
Struts2.2.1 text Tag Example The text tag is a generic tag that is used... name as the action that it is associated with. In practice this means that you... will shows how to implement theText tag in the Struts2.2.1 -- First we create 

Struts Questions

Regarding struts tag and struts dojo tags.
Regarding struts tag and struts dojo tags.  Hi, in the auto completer example, auto completer tag is of dojo library. So how does prefix of struts library provide that tag. In my code if i do the same : <td><s 

Struts 2 Tutorials

Include Tag (Data Tag) Example
Include Tag (Data Tag) Example       In this section, we are going to describe the include tag. The include tag is a generic tag that is used to include a servlet's output (result of servlet 

Struts Questions

autocall for sturts action class - Struts
autocall for sturts action class  Hi All, We are developing a web application with struts frame work. In this project I have to call an action... in the server on action class should run automatically. how can I do this. help me 

Struts 2 Tutorials

Doubleselect Tag (Form Tag) Example
Doubleselect Tag (Form Tag) Example       In this section, we are going to describe the doubleselect tag. The doubleselect tag is a UI tag that renders two HTML select elements with second one 

Struts 2 Tutorials

Struts2.2.1 UI tag example.
Struts2.2.1 UI tag example. In this tutorial, you will see the use of some UI_ tags of struts framework.  1- index.jsp <html> <head><...="/struts-tags" %> <html> <head><title> 

Struts 2 Tutorials

Struts2.2.1 fielderror Tag Example
Struts2.2.1 fielderror Tag Example The fielderror tag is a UI tag that render... the fielderror tag in the Struts2.2.1 -- First we create a JSP file named...; <%@taglib prefix="s" uri="/struts-tags"%> 

Struts Questions

query on struts2 - Struts
query on struts2  I am using struts2 for my application.i have a form that contains 'select' tag, for this i am getting values form DB. The problem is after i am submitting the form it is giving the following error 

Struts Questions

Struts 2 action-validation.xml not loading
Struts 2 action-validation.xml not loading  Hi All, I am getting... error SERVER : Caught exception while loading file package/action-validation.xml Connection refused: Connect - (unknown location) The path of my action 

Struts 2 Tutorials

Form Tag Example
.style1 { color: #FFFFFF; } Form Tag Example  ... the form tag. The form tag is a UI tag that renders HTML an input form. The remote... the following code snippet into the struts.xml file. struts.xml <action 

Struts Questions

Is Multiple Actions in Action class - Struts
Is Multiple Actions in Action class  In ActionClass we can use only one action i.e execute(), but in DispatchAction we can use multiple actions.My question is , we can use multiple actions in Action class if(action.equals("add 

Struts Questions

Servlet action is currently unavailable - Struts
Servlet action is currently unavailable   Hi, i am getting the below error when i run the project so please anyone can help me.. HTTP Status 503 - Servlet action is currently unavailable 

Struts 2 Tutorials

Date Tag (Data Tag) Example
Date Tag (Data Tag) Example       In this section, we are going to describe the Date tag. The date tag allows...;action name="dateTag" class="net.roseindia.dateTag">    < 

Struts Questions

Struts2 blank application - Struts
Struts2 blank application  Hi I am new to struts2 and i am trying to run the strutsblank application by following the following Link; http... There is no Action mapped for action name HelloWorld. - [unknown location] Kindly help me 

Struts 2 Tutorials

Struts2.2.1 optiontransferselect  tag example.
;roseindia" extends="struts-default" namespace="/"> <action name="optionTransfer" class="...;/action> <action name="resultAction" class=" 

Struts 2 Tutorials

Struts2.2.1 radio Tag Example
="struts-default"> <action name="...Struts2.2.1 radio Tag Example The radio tag is a UI tag that render a radio... tag in the Struts2.2.1 -- First we create a JSP file named RadioTag.jsp 

Struts Questions

download file Error in struts2 action class
download file Error in struts2 action class  Hi, i am using bellow block of code for download file : public void downloadGreeting(String filename,HttpServletRequest request, HttpServletResponse response){ String 

Struts 1 Tutorials

Textarea Tag<html:textarea>:
. Here you will learn to use the Struts Html<html:textarea> tag. ... in the struts-config.xml  Here, Action mapping helps to select FormBean...Textarea Tag<html:textarea>: Information on Textarea Tag 

Struts 2 Tutorials

struts2.2.1 include tag example.
struts2.2.1 include tag example. In this example, you will see the use of include tag of struts2.2.1. It is a generic tag that is used to include the output... of another web resource into current page. Directory structure of include tag 

Struts Questions

struts2
struts2  how to read properties file in jsp of struts2   Hi, You can use the Properties class of Java in your action class. Properties...; i want the properties file values in jsp not in action class brother 

Struts 2 Tutorials

Iterator tag example of struts2.2.1
Iterator tag example of struts2.2.1 In this tutorial, we will introduce you to about the iterator tag. Iterator tag is used to iterate over a value... the iterator tag to iterator over the collection of Integers. Here the integer 

Struts Questions

struts html tag - Struts
struts html tag  Hi, the company I work for use an "id" tag on their tag like this: How can I do this with struts? I tried and they don't work 

Struts Questions

Struts2 and Hibernate
Struts2 and Hibernate  Sir/ madam, Can we use iterator tag in struts for fetch the database value and shown on form. if yes then how 

Advertisements Advertisements
 

 

 

DMCA.com