Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Struts struts first example
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


gruha
struts first example
1 Answer(s)      5 years and 11 months ago
Posted in : Struts



Advertisement
View Answers

January 27, 2009 at 6:04 AM


MessageResources.properties

# -- welcome --
welcome.title=Struts Blank Application
welcome.heading=Welcome!


index.jsp

<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<logic:redirect forward="welcome"/>



struts-config.xml

<global-forwards>
<!-- Default forward to "Welcome" action -->
<!-- Demonstrates using index.jsp to forward -->
<forward
name="welcome"
path="/Welcome.do"/>
</global-forwards>

<action-mappings>
<!-- Default "Welcome" action -->
<!-- Forwards to Welcome.jsp -->
<action
path="/Welcome"
forward="/pages/Welcome.jsp"/>
</action-mappings>





welcome.jsp

<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>

<html:html locale="true">
<head>
<title><bean:message key="welcome.title"/></title>
<html:base/>
</head>
<body bgcolor="white">

<logic:notPresent name="org.apache.struts.action.MESSAGE" scope="application">
<font color="red">
ERROR: Application resources not loaded -- check servlet container
logs for error messages.
</font>
</logic:notPresent>

<h3><bean:message key="welcome.heading"/></h3>




</body>
</html:html>


Related Tutorials/Questions & Answers:
struts first example - Struts
struts first example  I got errors in struts first example like can... # -- welcome -- welcome.title=Struts Blank Application welcome.heading=Welcome! index.jsp struts-config.xml
Struts first example - Struts
Struts first example  when i am doing struts first example , it is raising 404 error sometimes it is raised 500 error. what is the problem, and how to do the first program in struts. please give reply with regad's
Advertisements
Struts first example - Struts
Struts first example  Hi! I have field price. I want to check require and input data type is int. can you give me an example code... the version of struts is used struts1/struts 2. Thanks   Hi
Struts First Example - Framework
Struts First Example  HI i am new to Struts and developing a single... in details of problem for complete solution. For read more information on struts to visit the link.... http://www.roseindia.net/struts/ Thanks
Struts to database connection first example. - Struts
Struts to database connection first example.  Hi All, I am new to Struts technology. I want to retriew the values of database to the browser..., Sandeep  Hi, For Struts 2 to database connection visit to : http
struts first - Struts
struts first  struts first program example
Java Compilation error. Hibernate code problem. Struts first example - Hibernate
Java Compilation error. Hibernate code problem. Struts first example  Java Compilation error. Hibernate code problem. Struts first example
Still have the same problem--First Example of Struts2 - Struts
Still have the same problem--First Example of Struts2  Hi I tried the example in the link. But still I am getting the same problem like as I tried my own example. Its not displaying the "Struts Welcome" message and also
First Struts Application - Struts
First Struts Application  Hello, Hello, I have created a struts simple application by using struts 1.2.9 and Jboss 4.0.4. I am getting... for path /WEB -INF/struts-config.xml struts-config.xml and web.xml files
My first struts 2 program
My first struts 2 program  Hi, Please help me for my first struts 2 example. I have done all setting. But I would like to know how to pass values from one page to another. Details: I am trying my first Struts 2 example
spring first example - Spring
spring first example  I am trying my first example of spring from the link http://www.maestric.com/doc/java/spring/setup But I am not getting the simple "Hi" message ,I have created simple one jsp page and /WEB_INF/web.xml
How to write first example in Ajax?
How to write first example in Ajax?  Hi, I am beginner in Ajax and want learn it. How can I write first example in Ajax? Thanks   Hi, Please check the tutorial First Ajax Example. Thank
example on struts - Struts
example on struts  i need an example on Struts, any example. Please help me out.  Hi friend, For more information,Tutorials and Examples on Struts visit to : http://www.roseindia.net/struts/ Thanks
First Java Program Example
First Java Program Example In this section we will discuss about the first java program example. To create a Java program we would be required to create... your first program in Java. In this example I have created a simple class named
Struts Example - Struts
Struts Example  Hi Deepak My name is dendi i want some good example in struts framework with sample code , hw to add and delete insert and update data into database by using sql, nw i am learning java struts u can help me
Struts example - Struts
Struts example  how to run the struts example  Hi, Do you know the structure of the struts? If you use the Eclipse IDE,you can easily run the struts programs otherwise you use Tomcat. Thanks  Read
First Ajax Example
Ajax First Example - Print Date and Time   .... This is the first example in Ajax that will give you quick start in the Ajax... Datetime example.   Here is the code of HTML File:  
first entity bean example in eclipse europa - EJB
first entity bean example in eclipse europa  pls provide steps to create simple ejb3.0 application in eclipse .And also how to create entity bean...://www.roseindia.net/ejb/example-of-statelfulbean.shtml Hope that they will be helpful
Struts 1.2 and ajax example
Struts 1.2 and ajax example  Struts 1.2 and ajax example with data from database
First Hibernate 4 Example with Eclipse
First Hibernate 4 Example with Eclipse In this tutorial you will learn that how easily you can do your first example of Hibernate 4 with Eclipse First of all to do an example of Hibernate 4 you should have installed an appropriate
Struts File Upload Example - Struts
Struts File Upload Example  hi, when i tried the struts file upload example(Author is Deepak) from the following URL http://www.roseindia.net/struts/strutsfileupload.shtml i have succeeded. but when i try to upload file
JDBC ResultSet first() Example
JDBC ResultSet first() Example: The ResultSet first() are use to moves the cursor to the first row in the ResultSet object. It return true if the cursor... are create a example of ResultSet first(). Example: package 
Struts 2 Guide
Struts 2 Guide       This is first example of Struts 2 in this Complete application development tutorial series... and deployment of "Hello World" quick Struts 2 guided tutorial. Example
Writing first JPA 2.1 example
/tools are need for developing the first JPA 2.1 example application: Java... the application easily. Let's start developing our first JPA 2.1 example. Step 1... the example. First go the the fistexample directory where pom.xml file is present
how to display default radio button in struts2.0 for first time login - Struts
how to display default radio button in struts2.0 for first time login  hi, this is suresh jampala, i have one question regarding struts2.0,how can i display default radio button in struts2.0 when ever i loggedin first time
Java Example projects about STRUTS
Java Example projects about STRUTS  Hai... I completed MCA but i have no job in my hands. But i do some small projects about STRUTS. Please send me some example projects about STRUTS.   Please visit the following link
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... but it is not work pls give me one example
Struts 2 Hello World Example
Struts 2 Hello World Example - Video Tutorial that shows how to create Hello World example program in Eclipse IDE. In this video tutorial I will teach you... IDE using Struts 2 framework: Steps to create first application in Eclipse
Struts 2 Login Form Example
Struts 2 Login Form Example tutorial - Learn how to develop Login form... is required to run the example. So, first download the code from our website. Download.... Let's start developing the Struts 2 Login Form Example Step 1
Java Applet - Creating First Applet Example
Java Applet - Creating First Applet Example       Introduction First of all we will know about... navigator or Internet Explorer. In this example you will see, how to write
Struts 2 zero configuration,Struts 2 zero configuration Example
Struts 2 Zero Configuration This section discusses Struts 2 zero configuration feature with example. The Struts 2 zero configuration is another very... Configuration" Struts 2 application uses annotations to register the actions
 

 

 

DMCA.com