Hi,
I am having struts2 application with hibernate + mysql.I want to create
web app session Expired page,but i am not able to detect weather my
application session expired or not.
I have given session time out to 1 min also but it still displays active
session.
1
My SessionChecking
I forgot to map my success.
That's why it only send information on my repost.
Thanks
Musachy Barroso wrote:
>
> do you have getters/setters(I am guessing the setters are missing) in
> your action for all the form fields?
>
> musachy
>
> On Feb 6, 2008 10:29 AM, Nushi <[EMAIL PROTECTED]> wrot
I have an application that needs to show messages coming from SAP in polish
language.
What would be the changes in need to do for my web.xml,struts config.xml and
jsp pages..
Certain polish fonts were corrupted and shown question marks..
Please advice
Create a file With name UserAction-validation.xml
and copy the below content
go through the struts2 validation frame work
School name required
On 2/6/08, slideharmony <[EMAIL PROTECTED]> wrote:
>
>
> Hello!
> I have to validate a composed object in my action, this is my action:
>
Hi Sri
so if the config is configured something like
/WEB-INF/classes/struts-fileupload.xml
uploadSuccess.jsp
uploadError.jsp
and the jsp defines the acceptable content-type and a name to call it..
org.apache.struts2.portlet.example.fileupload.FileUploadAction.java
{
p
Hello,
I am using file tag works fine if a file is selected using browse button or the
path is entered manually. But if file name/path is rubbish the form is not
submitted at all, nothing happens.
1. How do I control this - show error like invalid filename?
2. Or else how to disable manual
yep..the showLoadingText param is passed to the ajax-common.ftl
specifically..
<#if parameters.showLoadingText?exists>
showLoading="${parameters.showLoadingText?string?html}"<#rt/>
.also be sure to null out loadingText..
M--
- Original Message -
From: "Jeromy Evans" <[EMAIL PROTEC
There's javascript involved as you're using an ajax submit.
When your form is posted the submit button shows loading text in your
target div. In IE, if the target div contains the form you're posting,
it overwrites the form in the DOM prior to posting and the XHR request
fails. It's a proble
do you have getters/setters(I am guessing the setters are missing) in
your action for all the form fields?
musachy
On Feb 6, 2008 10:29 AM, Nushi <[EMAIL PROTECTED]> wrote:
>
> I only seem to get my values of my form when i repost.
>
> CODE
>
> <%@ taglib prefix="s" uri="/struts-tags" %>
>
>
>
Is it possible to assign a collection to a html:hidden component, rather than
a string?
Basically my webapp allows the user to select different options for access
control. I would like to add these selections to a collection and pass that
to my Action class.
Thanks inadvance!!
-- Shanna --
-
Hi there,
I'm a newbie in Struts 2 and in Java EE programming... I tried to search
about this but i didn't found any succesfull answer. So I'm trying to ask to
this ML :)
I need to make a form that permits an user to upload a file. I had the
"so-well-known" MultiWrapper problem, and I managed it
--- daveck <[EMAIL PROTECTED]> wrote:
> > Try making a copy of the request parameter map and storing that instead.
> Made copy but didn't solve the problem.
>
> Map parameterMap - request.getParameterMap();
> session.setAttribute("PARMS", parameterMap);
Just for completeness, this isn't making a
I forgot to say, after trying everything, you can add an
HttpSessionAttributeListener to your application and see when the
value is nulled out/replaced.
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionAttributeListener.html
musachy
On Feb 6, 2008 12:25 PM, Musachy Bar
Is the value in the session null or an empty map? If it is an empty
map, the reason might be that when you set the value in the session
between requests, the request doesn't have any parameters, setting the
value to an empty map.
musachy
On Feb 6, 2008 11:55 AM, daveck <[EMAIL PROTECTED]> wrote:
In case I wasn't clear... the attribute "PARMS" exists but loses it value.
--
View this message in context:
http://www.nabble.com/Losing-Session-Attributes-tp15298791p15307254.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
--- "matt.payne" <[EMAIL PROTECTED]> wrote:
> +1 here.
>
> Highly looking forward to using this over current Dojo plugin.
> Any progress being made?
Not really; I'm completely overwhelmed by my TODO list at the moment.
It's over at GoogleCode and I'm happy to bring people on board. There's a
w
+1 here.
Highly looking forward to using this over current Dojo plugin.
Any progress being made?
Matt
nuwan chandrasoma-2 wrote:
>
> i would like to see one :)
>
> emartin24 wrote:
>> Ted Husted wrote:
>>
>>> On Nov 20, 2007 1:53 PM, wrote:
>>>
I've been working with Struts
Laurie Harper wrote:
>
>
> Are you sure? Have you confirmed that the session is the same in both
> requests?
>
Yes, by checking the session id throughout the process.
Laurie Harper wrote:
>
>
> getSession(true) will create a session if one doesn't exist on the
> request. If the session
I'm losing the quest-input.jsp form attributes. Probably 3 out of 4 times.
Session ID remains the same throughout the process. Here is part of my
applicationContext.xml
I'm not quite sure what you mean by needing to configure in session
attributes.
mgainty wrote:
>
> you'll definitely n
I just noticed another thing, you are using the 2.3 DTD, I'm using the 2.4
XSD.
http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="2.4"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
I would use
I only seem to get my values of my form when i repost.
CODE
<%@ taglib prefix="s" uri="/struts-tags" %>
File Upload Example
" rel="stylesheet"
type="text/css"/>
File Upload Example
pages/upload.jsp
I've rearranged your web.xml to the correct order below. Context params come
first, then listeners and then filters/filter mappings, servlets/servlet
mappings, etc.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: Vigneswar <[EMAIL PROTECTED]>
> Reply-To: Strut
Hi,
I have a tag which behaves different in IE 6.0 and firefox. In
Firefox the underlying property in my struts action is filled in IE not.
This is my code?
.
I have no idea why it works in Firefox and not in IE. Because there is no
JavaScript involved (or am I wron
Thanks again,
It is not working, sometimes I get NullPointerException
Plz show me how to use it.
Below is the modified fragment of struts.xml
Thanks for the support
RETRIEVE
/WEB-INF/pages/licenseForm.jsp
/WEB-INF/pages/licenseList.jsp
Thanks a lot for the info, it worked. I saw a Struts bean definition
like that somewhere that led me to believe that that was how it was
done, but as you said, it appears that the accessor never actually gets
registered that way. As for the wisdom of doing thisin my view the
real pain is
Hello!
I have to validate a composed object in my action, this is my action:
public class UserAction extends ActionSupport{
private User usr;
public User getUser() {return usr;}
public void setUser(User usr) {this.usr = usr;}
}
and this is User class:
public class User{
private Strin
hi Randy,
You're right! many thanks!
Best regards,
Giovanni
Randy Burgess wrote:
All you should need is a getter in your action for simulationKey and then
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
27 matches
Mail list logo