akshat Singh

Greenhorn
+ Follow
since Apr 27, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by akshat Singh

I am new to Struts and want to display the Registration ID which is generating automatically by the mysql to my success page when user submits the form, please guide me how to achieve it...

My Action...



I TRIED BY THE METHOD HIGHLIGHTED IN BOLD:

I want to display the OnlineID which is generated on my JSP page, but it is showing OnlineID as 0.

My JSP:




Please help........
10 years ago
Please help me in Struts2, I am stucked in action....

The problem is that I have a application form for accessing that form you should be registered in the database. So the login utility will check for the password & email in the database if it is there than it will go to the app. form otherwise it will throw an error. It is working fine until I want a dropdown in the form say that contains all the States and Cities of India. I want this thing to retrieve from the database but initially I am checking by hardcoding whether its working or not.

So, my Action contains 2 method one is default execute() method which is populating the States of India but the problem is that in the struts.xml file when I am not stating any method than it is executing the default execute method and populating the dropdown but the validation method is not executing and when I am passing the validating method than it is not populating the dropdown. I am sending my codes please help where I am wrong, its very urgent yaar.

I tried redirection also by Message-Store-Interceptor also but that is also not working when I tried to write the states addition list separately in a class file.

Struts.xml


tiles.xml


ApplyAction.java



JSP File


I am also trying like this......
ApplyAction.java


So, how can I pass the value of State & StateID in the jsp <s:select> tag's list, I tried many options but neither of them working, Please help..........
10 years ago
Yes my tiles.xml is in WEB-INF Directory........

The name of my application is INAT
Full Stacktrace is as under:
10 years ago
Hi,

I am very new to Struts 2.
I am having problem using Struts 2.0.14 with Tiles 2.0.

When I insert the following information in my web.xml I get an exception:


Stacktrace:


I have the following jars:
struts2-tiles-plugin-2.0.14.jar
tiles-api-2.0.4.jar
tiles-core-2.0.4.jar
tiles-jsp-2.0.4.jar

Finally my application INAT is not running when using the Tiles and when I am removing the listner from the web.xml file the application successfully loads but I want to use Tiles in my application. My configuration files are as under:

1. web.xml


2. tiles.xml


3. struts.xml


4. Welcome.jsp



Please Help.........

10 years ago