I'm developing a Struts2 application that uses Sitemesh as template engine. What I need is a list of all the templates (JSP) that are used by request.
In other projects I use Django Framework, with it I've this amazing Debug Toolbar that, besides many other useful info, provides me with the list of templates the request used for display...
Hi,
I'm using Java+struts2+JSP as the web application framework.
I have to pass some huge objects through struts actions to my jsp pages. this makes the pages so heavy to load and on the other hand they suck the server's bandwidth out.
Is there any way to send compressed objects via struts2 to a jsp page and decompress them there?
...
By default, Struts 2 uses the suffix .action to represent action URLs. So, even if I want to get to a login page, I need to use a URL something like : http://mysite.com/login.action.
But I feel the above URL is not flexible and not SEO friendly. So, is there any way to avoid the .action suffix or any suffixes completely and just use pla...
i search a maven archetype for hibernate 3 (Struts 2 application)
...
hey Guys,
I am using java with struts2 framework .and sqlserver 2005 database . i need help in preventing multiple user login with same username. i tried using session .. m new to this framework . if any one could help me it will be great . i did by using a flag in database and setting it to true .. and while logout it will be...
How can i get the URL from which the user came to my Struts2 Action?
...
Hello all,
I do the following to return a list contains 2 objects for each item.
public List getList(int id) {
open();
// TODO Auto-generated method stub
List l = session.createSQLQuery("select poDetail.*,quantity*unitPrice as total from poDetail where poDetail.poID="+id)
.addEntity("poDe...
Hello,
First off, please forgive me for my lack of understanding... I'm still learning :)
I have 2 packages in my struts.xml that extend a base package and I want to be able to access them by typing in my browser something similar to http://site.com/application/1/ThisAction.action and /application/2/ThisAction.action (examples).
I cr...
We're considering experimenting with a new Java framework for building some internal web apps. We have a mixture of Perl/Ruby/Java programmers and are trying to standardize as much as possible. I'm familiar with what each of the following bring to the table, but am unclear on what the actually learning curves are and how they compare:
...
Simple: I have to be sure the privacy checkbox on my form is checked. I tryed to use the expression validator (and the fieldexpression validator) but it does'n work.
Can anobody help me?
...
Hi, I have one small doubt.. In Struts2, inside web.xml of tag, we will choose some filter name.
While searching in examples, I have came across with 2 types of filters using inside that tag.. They are
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
org.apache.struts2.dispatcher.FilterDispatcher
So, now Im ...
Hi, Im new to Struts2.... I have some few doubts below...
a) In Struts2, how does application finds struts.xml?? (we dnt define struts.xml in web.xml file unlike in Struts1 which we define struts-config.xml in web.xml file, so how its going to see that struts.xml file)
b) why dont we write "extends ActionSupport" for our "Action" cla...
I've spent the last 9 months using Ruby on Rails exclusively.
I've been asked to join project and they are currently using Struts with Tomcat. I've done Java in the past and vowed never to go back for several reasons. They are currently having trouble finding people who know Java or are willing to join a project that uses it. (This is w...
i need file upload in strurts 2 and store it to server location,i used by googles no use, can anybody give better idea. advance thanks
...
<s:iterator var="parent" value="studentList">
<s:iterator var="child1" value="#parent.subjectList">
<s:property value="%{subjectName}" />:
<s:textfield id="subject" name="%parent.subject.id}" theme="simple" />
</s:iterator>
</s:iterator>
I have a jsp page with the above code. I have two lists i) studentList, ii)...
I am using struts2 (2.1.6) and want to redirect to Action2 from Action1.
struts.xml:
<action name="Action1" class="Action1">
<result name="success" type="redirectAction">Action2</result>
</action>
<action name="Action2" class="Action2">
<result name="success">/demo.jsp</result>
</action>
This works as expected: http://myserv...
Hi all,
I have an authen interceptor that check if user is logged in.
If not than it will redirect to the login page, with a query string param "url" indicating the referrer URL. I tried using "actionInvocation.getInvocationContext().getParameters()" for passing values to the redirect URL, but have no luck.
Can anyone suggest what I do...
Hello all,
How to map Struts tag s:checkboxlist by Hibernate?
For example, in the following I know company field in auth.hbm.xml is wrong. How do I correct this? Thanks!
Model:
String a[]={"browse","add","delete","update"};
boolean company[]=new boolean[a.length];
JSP:
<s:checkboxlist name="auth.company" list="%{auth.a}" key="comp...
Hello my friends,
I'm developing a very simple Struts2 aplication, and I get this strange (and easy to resolve, I'm sure) problem:
When I access directoly to login url, it shows login form (username and password text fields) with these errors:
Name field is required
Password is required
The field are empty, because it's the first ti...
I've managed to set up an ActionMapper but I can't make a CompositeActionMapper work.
Struts.xml
<constant name="struts.mapper.composite" value="searchActionMapper,struts" />
<!--constant name="struts.mapper.class" value="searchActionMapper" /-->
applicationContext.xml
<bean id="searchActionMapper" class="it.agriturismo.actionMapper...