Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!

Yogesh Lonkar

Ranch Hand
+ Follow
since Jul 17, 2012
Yogesh likes ...
Hibernate Eclipse IDE Java
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
3
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Yogesh Lonkar

you need to make entire condition OGNL compatible use escape characters like
6 years ago
It is best if you use "struts2-blank.war" to start your new project as it contains all basic jar files with proper compatible version. "struts2-blank.war" is provided by apache with Full distribution and Example Applications. this way many initial difficulties involving mismatch of libraries can be avoided.
6 years ago
redirect action should be something like this
also make sure that you have accessors and mutators for currentIncidentId in your action class
6 years ago
Did you tried doing so? if you don't try you won't get problem. and if you don't get problems you will be trouble if they arrive at wrong time and you won't improve your self as developer.
6 years ago
If you prefer option b you should see this Tiles plugin for struts
6 years ago
Let me get it straight if you access by say URL "http://localhost:8080/whaterApplicationName/Login.jsp"; it works fine and if you Go with URL "http://localhost:8080/whaterApplicationName"; it shows error ? if that is the case then you have place Login.jsp in wrong location as your deployment descriptor not able to locate it.
6 years ago
It is likely because your application is not able to locate Login.jsp. is it in /WebContent location?
6 years ago
Ok so when you deploy project your Loing.jsp page load first? if yes please provide on what action does this exception occur
6 years ago
Please provide more information regarding how you are accessing data from data base? and what exactly you need to be populating in your view
6 years ago
Hi, please use code tag as it helps to read code that you share. For your problem make sure you have placed your struts.xml file in /src location and have all necessary library files in class path.
6 years ago
Oh.. then use <s:hidden name="username" value="%{user}"/> or <s:hidden name="username" value="user"/> in your instead of <s:param >
7 years ago
I don't think you need to use %{#user}. If user is property of your action class(i.e. declared in Action class with get/set methods) you can directly access it from value stack value="user"
or as struts 2 doc has stated

The HTTP protocol is text-based, but some tags have non-String attribute types, like bool or int. To make using non-String attributes intuitative, the framework evaulates all non-String attributes as an expression. In this case, you do not need to use the escape notation. (But, if you do anyway , the framework will just strip it off

you could use this value="%{user}". - link to docs
7 years ago
your validation.xml contains invalid validation syntax it should be as follow.

you placed <field-validator> inside another <field-validator>
7 years ago
Sound like one one your JRXML template you used for compiling is not located. In windows example.JRXML and ExAmPlE.JRXML are both same files in particular directory but in UNIX file names are case sensitive so that example.JRXML and Example.JRXML are not the same files.
7 years ago