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



Home Answers Viewqa Struts Still have the same problem--First Example of Struts2
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


StrutsLearner
Still have the same problem--First Example of Struts2
3 Answer(s)      6 years and 2 months ago
Posted in : Struts



Advertisement
View Answers

October 10, 2008 at 12:11 PM


Hi friend,



Please give details about the problem in details and full source code.

For more information on struts visit to :

http://www.roseindia.net/struts/

Thanks


October 10, 2008 at 12:52 PM


MyApplication
....MyPkg
.......... java Class
.......... Properties file
WebContent
....... Pages
............. Jsp Files
....... WebInf
.......... LibFolder---> contain Struts Library
.......... struts-config.xml
.......... web.xml

Here I gave congiguration of struts-config file
in this structure put ur file

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">;

<struts-config>
<data-sources />
<form-beans>

<form-bean name="CustomerForm" type="com.rajanikant.code.test1.CustomerForm" />

</form-beans>
<global-exceptions />
<global-forwards>
<forward name="example1" path="/index.jsp" />

</global-forwards>
<action-mappings>

<action path="/showCustomerForm"
parameter="/Exercise1/CustomerForm.jsp"
type="org.apache.struts.actions.ForwardAction" />

<action path="/submitCustomerForm"
type="com.rajanikant.code.test1.CustomerAction"
name="CustomerForm"
scope="request"
validate="true"
input="/Exercise1/CustomerForm.jsp">
<forward name="success" path="/Exercise1/Success.jsp" />
</action>
</action-mappings>

<controller processorClass="org.apache.struts.action.RequestProcessor" />
<message-resources parameter="com.rajanikant.code.test1.ApplicationResources" null="false"/>
</struts-config>


if u face any problem come online

rajanikant.misra@gmail.com

Rajanikant


October 15, 2008 at 12:09 PM


Hi Rajanikant,

Please let me know how can I successfully execute the HelloWorld example using Struts2.

Thanks in advance.


Related Tutorials/Questions & Answers:
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... successfully execute the HelloWorld example using Struts2. Thanks in advance
Can you see what i have done because i did it but i still have problem - SQL
Can you see what i have done because i did it but i still have problem  This is what i have done but i still have a problem:- Can you correct my mistakes? ------------------------------------------------------- create database
Advertisements
struts2
struts2  sir.... i am doing one struts2 application and i have to make pagination in struts2....how can i do
Hibernate criteria example using struts2
Hibernate criteria example using struts2 This hibernate criteria example using struts2 is used for defining the basics of criteria. The hibernate criteria... create query without HQL. In this hibernate criteria example using struts2, we
Can I have multiple main() methods in the same class?
Can I have multiple main() methods in the same class?  Hi, Can I have multiple main() methods in the same class?   Hi, No, We cann't use multiple main() method within the same class. If we do this then the program
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
struts2
struts2   Sir when i have run my struts 2 web application,every time i get error " request resources is not available",,,what is this,,,plz help me
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... complete example at Read the Key-Value of Property File in Java. Thanks  
struts2
struts2  dear deepak sir plz give the struts 2 examples using applicationresources.properties file
Struts2
Struts2  i want select multiple items from select list in struts2.when i did like that the two selected values must saved into databse in two diffirent rows.pls provide any one code for this i am new to Struts2
struts2
struts2  hi all i am going to run struts2.x program i got this error when server started java.lang.RuntimeException...: Struts2 Tutorials
Struts2
Struts2  Hi I am using struts 2,In struts2 architecture ,I couldn't understand the purpose of ActionMapper and ActionProxy.My Question is,when the request comes into the picture,the filterdispatcher consult the ActionMapper
Struts2
Struts2  java.lang.NullPointerException org.apache.struts2.impl.StrutsActionProxy.getErrorMessage(StrutsActionProxy.java:69... exception while submitting the update form in struts2 I am using tomcat6.0 ... its
still error
still error  public NewJFrame() { initComponents(); try { Class.forName("java.sql.Driver"); con=DriverManager.getConnection... any action on button then use the following code: Suppose, you have created
STRUTS2
STRUTS2  sir but my question is using ApplicationResources.properties in STRUTS 2.i cant get the values into my application.but in the exmple given at roseindia,u cant use the properties file.i use actionclass-validation.xml
still error
still error   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
still error
still error  st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
still error
still error  public NewJFrame() { initComponents(); try { Class.forName("java.sql.Driver"); con=DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","admin"); } catch
How send different files to browser at same time ..example(pdf&html) want display in same request using servlet
How send different files to browser at same time ..example(pdf&html) want display in same request using servlet  package com.readfiles; import... at same time ..example(pdf&html) want display in same request using servlet
Struts2 Tiles Example
Struts2 Tiles Example The Following are the steps for Stuts tiles plugin 1. Map the Tiles Listener class deployment descriptor(web.xml) file <listener> <listener-class>org.apache.struts2.tiles.StrutsTilesListener<
Struts2 ajax validation example.
Struts2 ajax validation example. In this example, you will see how to validate login through Ajax in struts2.  1-index.jsp <html> <..." value="false" /> <package name="struts2"
struts2 - Framework
struts2  Hello, I am sathish i got one problem with struts2 framework...i want to create a jsp page in struts2 i need two buttons in tha jsp ..but these buttons are not dispaly in same row.....once if i create two buttons
struts2 - Framework
struts2  Hello, I am sathish.. I got problem in stuts2 ? Do tomcat5.5 support struts2 ? Now , currently my application running on tomcat 6... and mainly i want support with tiles(struts 2)...now which struts2 jars i have to use
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
struts2 - Struts
Struts2 and Ajax Example  how to use struts2 and ajax
themes in struts2
themes in struts2  i want to create themes in strut2 can any one tell the step by step procedure of how to create it.with example links thanks in advance
struts2 Autocompleter
struts2 Autocompleter  hi. I am working Auto Completer Example in rose india.net http://www.roseindia.net/struts/struts2/struts2uitags/autocompleter... conflict. Thanks    Hi sir i am using struts2 2.1.8.1 Thanks venu
Struts2 Spring Hibernate integration
Struts2 Spring Hibernate integration  How to integrate Struts2 Spring2.5 and Hibernate3 in a web application project?Could anyone give some example
Struts2 and Hibernate
Struts2 and Hibernate  how to fetch database value from one page to another page in struts2 and hibernate
struts2 - Struts
struts2  how to pre populate the fields using struts2 from the database
Struts2 and Hibernate
Struts2 and Hibernate   I have a simple application in Struts2 and Hibernate which have simple form for entering contact information and after submitting the page it saved to the database. This was a tutorial i was trying from
 

 

 

DMCA.com