Hi,
I'm trying to insert a Struts Tiles attribute into a JavaScript function. The JS function is called on load and certain JSP pages should be allowed to append additional code to that function.
The template looks like this:
<html>
<head>
<script>
function onLoad(){
...
<tiles:insert attribute="html.head.onLoad" ignore="tru...
I am developing a Java EE web application using Struts. The problem is with Internet Explorer caching. If an user logs out he can access some pages because they are cached and no request is made. If I hit refresh it works fine. Also if an user goes to login page again it won't redirect him because that page is also cached.
Two solutions...
I'm using Struts 2 and I'd like to determine the page generation time without an external profiler. I can easily profile the actions execute() method, but I don't know how to include the time spent before (in dispatchers, interceptors...) and after (time taken by the servlet corresponding to the view ("jsp time")).
Is there simple way t...
Hi All,
Thinking that , in struts 1.2, say a funtion public ActionForward abc(){ return null;} will return to the same page.
But i got this exception.
java.lang.NullPointerException
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:441)
org.apache.struts.action.RequestProcessor.process(RequestP...
I have written a struts application. When i open the application in my IE7 browser, it doesn't open the .do files, instead IE7 displayes the "FIND SAVE or CANCEL" dialog box.
Its like IE7 doesn't recognise the format. But it works well with Firefox.
Could anyone clarify why this happens with IE7 ?
...
Hi Seniors,
Could you please suggest me the best possible answer to this question for a telephonic interview.
I tried to dig through the forums but couldn't find a detailed answer.
Your help is highly appreciated.
...
hi friend,
I have created the application in which I need to configure the connection pool.In which I am configuring the connection pooling in the spring_Config file. using the Basicdatasource.
but there is some problem to create the connection pool. Please tell me how to create the connection pooling in spring application using BasicD...
<ajax:autocompleter name="cityName" list="list" size="1" label="Select City"
listValue="cityName" listKey="id" autoComplete="true"></ajax:autocompleter>
i am using struts 2 with ajax but its not working
...
Hi, I have a struts app with a jsp with the code:
...
...
<input name="inrofol" class="inputfilter" id="inrofol" size="22" maxlength="20" type="text">
...
And even though it's not linked to the associated form bean, I get the exception
Error 500: No getter method for property: "inrofol" of bean: "com.test.forms.CompForm"
Any hints...
Hi,
I am working on struts,i want to know how to handle session using org.apache.struts.action.RequestProcessor
?
Where in have to check the existence of session throughout the app ?
...
Hi. How do you instantiate an Integer bean, assigning a value, in the Struts 1.x framework?
<bean:define id="index" type="java.lang.Integer" value="0"/>
or
<bean:define id="index" type="java.lang.Integer" value="${0}"/>
Results in a: java.lang.ClassCastException: java.lang.String
<bean:define id="index" type="java.lang.Integer" v...
I have struts code like
<html:select property="ce">
<html:option value = "5">5</html:option>
<html:option value = "10">10</html:option>
<html:option value = "15">15</html:option>
</html:select>
<div id="dis">
<div>
if a option is selected,dojo should get the valu and multiply by 10 and display that in the div?how to do that.
...
Hi,
I have sturts2 application. Now i need to integrate struts 2 with velocity . Can any body tell me the steps to follow.
Thanks
Usman sk
...
I am using following button tag to display button by passing some runtime value to "value" attribute:
<html:button styleClass="button50" value="<%=no_list %>" onclick="callOneFunction(this);" />
it is throwing an jasper exception saying, setValue(String) cannot work with html:button.
Please help me out to resolve my problem, I want ...
how dynamically value fetch into combobox in struts?
...
how to take label value in struts?
...
how processException works in struts.
if (mapping instanceof _ActionMapping) {
__ActionMapping ___Mapping = (ActionMapping)mapping;
logException = !__Mapping.hasExceptionConfig(e.getClass());//it will check for the handler
}
// An unhandled exception has been thrown....
In struts 1.2, when an URL in the form http://foo.com/barAction.do is invoked, this will call the execute method (or process) in the action class that was mapped to barAction.
Is it possible to call a different method other than the execute (or process) in the same action class when the above URL is invoked?
...
I am working with Tomcat 5.5.x with Struts 1.2 to run a rather large website (large w.r.t. source code). I'm looking to add OpenID to my website, mostly to access attribute exchange to help accelerate the registration process.
Every Java implementation for OpenID I have attempted to use will cause a ServletException. Tracing this has be...
I have a struts application. I would like to secure it. I have a set of roles for the application and my requirement is I have to restrict access to Actions based on user role and restrict access url based on URL.
Further i use the same roles for creating menu using Struts-Menu (Roles set in menu-config.xml) Please suggest solutions.
...