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

 
 


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

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 Pages:
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
struts2
struts2  sir.... i am doing one struts2 application and i have to make pagination in struts2....how can i do
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  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  
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
Struts1 vs Struts2
to the Commons Validator. Classes can have different validation contexts for the same... Struts1 vs Struts2    Struts2 is more... differences between struts1 and struts2          
Servlet signup still not working satisfactorialy - JSP-Servlet
, it still prints the same output: One of the Mandatary field is empty. What...Servlet signup still not working satisfactorialy  Hello sir thanks for your reply I tried following code given by you, What it has a problem as: I
hello .. still doesn't run - Java Beginners
hello .. still doesn't run  Iam still having a prblem in running this problem errors are: can not resolve symbol import.util.Scanner class...; String today="first"; order [ ] o=new order[12]; Bell [ ] B=new Bell[100
Generating dynamic fields in struts2
Generating dynamic fields in struts2  Hi, I want generate a web page which should have have some struts 2 tags in a group and a "[+]" button... to read those field values in controller? Please provide me some example
Captcha in Struts2 Application
Captcha in Struts2 Application  Hi, Iam working with the code... to get the image? Thanks in advance, Raju Rudru.   Hi, Here is example of using Captcha in Struts 2 application. We have provided the code and given
Struts2 Actions
. The Struts2 Action have introduced a simpler implementation approach...Struts2 Actions       When... to the handler class is defined by the Action interface. Struts2
Struts2 ComponentTagSupport - Struts
Struts2 ComponentTagSupport   I am working on struts2 custom tags...://joshuajava.wordpress.com/2008/12/27/creating-custom-components-with-struts-2/ I made example working. but my requirement is with the help of my custom tag i have to display
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
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
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... the problem : Select Tag Example Select Tag Example
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
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
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
struts2 tiles.xml
struts2 tiles.xml  Hi, I want to use .properties file data in tiles.xml file of struts2(2.1.8) application to display title. sample code I have used: In tiles.xml: <definition name="disastersettingsview_users" extends
Posting comments to same page with textarea
Posting comments to same page with textarea  I have been given some... to the same page. Many thanks for that. However I wanted it to add other... trouble if it could be extended to do this for example: Comment: User one wrote
Struts2 Helloworld problem -Please help - Struts
Struts2 Helloworld problem -Please help  Hi I am a beginner in Struts2. I tried some HelloWorld example in Struts2, to understand. But due to some problem I unable to execute the program successfully. Please find my example
struts2 - Framework
struts2  i m beginner for struts2.i tried helloworld program from roseindia tutorial.But HelloWorld.jsp file didnt showing the current date and time... the example code from http://www.roseindia.net/struts/struts2/struts-2-hello
Struts2 - Struts
Struts2  S:select tag is being used in my jsp, to create a drop down... weird, meaning that the drop down wen clicked it just jumps out from the first row to the next rows and then adjusts the spacing to display itself, but same
struts2 - Framework
struts2  i m beginner for struts2.i tried helloworld program from... is: i downloaded example from below link http://www.roseindia.net... working fine. Problem With You. Just Place the folders and files in proper place
struts2 - Framework
struts2  thnx ranikanta i downloaded example from below link http://www.roseindia.net/struts/struts2/struts-2-hello-world-files.shtml i m using JDK 1.6 and Tomcat 6.0 ,eclipse 3.3in my application. i extract
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
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
Still getting the http 404 error - Java Beginners
Still getting the http 404 error  Dear experts, I refer... that the login is part of my index page where I have other things in that page. So, please... = ? AND password = ?"; Can I know why you have put username whereby my name in the form
struts2+hibernate - Struts
struts2+hibernate  How to use hibernate 3 with struts 2 application? kindly reply with example
download file Error in struts2 action class
using still i get the same problem **response.resetBuffer();**//even though i am using still i get the same problem...download file Error in struts2 action class  Hi, i am using bellow
Same Day Taj Mahal Tour from Delhi
Same Day Taj Mahal Tour from Delhi You are on a visit to the city of Delhi... the other avenues. You have to explore numerous tourist destinations of mystical... one of the seven world wonders. So Same day Taj Mahal Tour from Delhi is need
How to use struts2 grid with form submission
in Struts2 jQGrid. By default when page loads, Struts2 jQGrid already have action url...How to use struts2 grid with form submission  Hello, I've already...() { ShelfItemsExample example = new ShelfItemsExample(); if(!("".equals(nameContains
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
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
datetime picker in struts2
only date   Have a look at the following link: Struts2 DateTimePicker...datetime picker in struts2  i used datetimepicker and i created getters and setters with retutn type string when im reading date value which i
using displaytag with struts2 - Struts
using displaytag with struts2   Hi, i am using struts2 framework...,exel like this. I have downloaded and run that application. I experienced it more simple and better to use than struts2 tag to generate the output on web page
display checked ckeckbox in same jsp page
,selected checked checkboxes in another table in same jsp page. (for example...display checked ckeckbox in same jsp page  how to display checked ckeckbox in same jsp page?   Hi, Here is the html code to display check
Struts2 Validation Problem - Struts
Struts2 Validation Problem  Hi, How to validate field that should not accept multiple spaces in Struts2? Regards, Sandeep  Hi... in the browser having the example of handling the error in struts 2. http
tiles using struts2
tiles using struts2  hello, im implementing tiles using struts2 in eclipse. i am having following problem occurred during execution.i have created all neccessary settings of jar files. plz help me
url validation in struts2
url validation in struts2  Hi in strts2 urlValidation Application,the validation xml file (urlVaLidatiohatnAction-validation.xml) can not be reading,it con not show validation, can u please whre i have to put that file in which
struts2
struts2  dear deepak sir plz give the struts 2 examples using applicationresources.properties file
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... and for each country(INDIA,UK,USA )i want a node which should have the respective
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  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 Tags
Struts2 Tags        .../ index.jsp to the address bar.   Auto Completer Example The autocompleter tag always displays a dropdown list with the options that have at least
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
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

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.