Hi,
I'm working on a struts2 web app in Eclipse, and am using the built-in J2EE Preview server.
How can i view the logs / console for it?
I'm having some problems and now my previously working site is showing Error 404 everywhere, and the console tab at the bottom window of eclipse isn't showing anything.
Cheers all
edit: Here's some...
Hi,
We are working with struts 2.0.14 and facing problem setting back indexed properties from JSP to action class.
Code looks similar to this.
public class MyExample extends ActionSupport
{
private List<Person> persons;
private List<String> names;
public String execute()
...
I'm using apache on 80 port, that forwarding all requests on tomcat6 on port 8080. In my application I'm using struts2 framework. In tomcat I'm using redirect from ROOT application to my application "MyApp".
When I walk on the links on my site I see good URLs like www.mysite.com/order
But when struts redirects me anywhere URLs take ...
I'm getting a 'No thread-bound request found' error in my web app and hoping to get some help.
I'm trying to use struts2 + spring + hibernate, and use spring to manage the hibernate session factory, and inject hibernate sessions into my struts actions. I hope that made sense.
When the app starts up, there are no errors, but when i make t...
i have an input in struts 2 form like this
<s:form action="Action">
<input type="text" value="v01" name="name01"/>
</s:form>
the problem is:
when i tried to getParameter("name01") i got **null**?
how to access this parameter in my action?
Note: i implemented **ServletRequestAware,ServletResponseAware**
...
Hello all,
I have a Struts 2 jsp with the following code...
<s:iterator value="categories" id="category" status="iteratorStatus">
<s:if test='#category == "M" '> snip </s:if>
The problem is the java code behind categories is..
private static final CategoryEnum[] PRIVATE_VALUES = {A,B,C,M };
public static final List<Catego...
Not much to say, my <s:a href="xxx">blablabla</s:a> is aways resolved to empty and invisible <a href="xxx"></a>
I also tried s:a attributes like label, title, name, etc.
...
Hi,
Apologies If I am asking a very dumb question.
I am trying one very simple thing.
<s:set name="tranType" value="%{'S'}" />
<s:if test="%{#tranType == 'S'}">
blah
</s:if>
This doesn't work and I am getting following error. Please let me know If I should attach complete stack trace. If I use more than one character in for the ...
Say that I don't leverage OGNL to create my Struts2 web application and just purely uses typical el provided by Sun. What would be the downside of it?
As far as I know, OGNL is a kind of expression which attempts to match the best matched value from ValueStack based on its current state. Could it also be achieved by just using EL alon...
We have a JSP page which shows details from multiple beans. Now, there is a requirement to edit the details of these individual beans and persist it into the database. So what we are doing is having one form with appropriate fields for each individual bean. But the ModelDriven interface allows only one object. So all the fields values wi...
hi,
i want to compare the date field with the current date.
for that i need current date into the validation.xml file
so that i can compare it
how can i implement it
i m using struts2
Thanks
...
Hi,
I've got a web app with Spring set up to create my hibernate session factory (singleton) and session and transaction (both are request scoped), but it is destroying the session and transaction in the wrong order. How can i configure it so that the transaction is destroyed before the session? Here's my spring applicationContext.xml fi...
Monring all,
It early Monday morning and I'm struggling to understand why the followng line works in IE and not in FF.
<a class="button" href="#" onclick="setMaintenanceMode(false);">disable</a>
In both IE and FF the URL when you hover over the button is...
http://localhost:8080/mainapp/secure/gotoDevice.action?hardwareId=1&stor...
I am using Struts2 for a web application development. i have this particular problem for which i couldnt find a solution even after i googled.
I have 3 tags with a hyperlink or button against each, which has to be used to clear the filepath if anything was previously selected. The solution which was found online was to reset the form.....
I use Struts2 and my application has thousands of action classes managed by Spring. I used Spring 2.5.6 before and my application starts quickly. But when I changed Spring to 3.0. I got a extremely slow start up of Tomcat.
For each action class, I got the following debug message from Spring:
DEBUG (Cglib2AopProxy.java:802) - Unable to a...
I'm using spring-security and struts 2. Most of our pages have content that is unprotected mixed with some protected content (user controls) so it is not like the examples where you go to a certain page and spring-security intercepts everything. Rather I'd like to be able to work with a login form that you access by pressing a login butt...
I am starting a new project and must decide between the two. The team has no experience in either. Both seem to have similar functionality. If you have experience in either technology, or both, I would appreciate your input.
Thanks
...
I have a problem with setter and getter method in struts2.
I have a form :
...
+ all input fields of job/>
and action: (addJob is mapped at this action)
public class InsertJobAction extends ActionSupport{
...
private Job job = null;
public String execute(){
jobService.insert(job); //here job is not null; that is o...
I've been using struts2 + the rest plugin successfully to create a simple rest api web service. I'd like to make that service accessible to Flash and Silverlight clients, which means I need to add a crossdomain.xml access file at the root of my webapp. Normally I would just copy a crossdomain.xml file into the root of my webapp and ser...
Hi there,
I have done some work with JSF(using netbeans as the IDE) and within your jsp/xhtml file you get code on beans/resource bundles that your have defined.
ATM I am investigating struts2 and seem to be unable to get similar functionality in the IDE. Is this just the case with the IDE or do I need to define something?
Thanks
...