Hai,
Here You can use Synchronizer - Token Design Pattern.
Thanks Regards
Pramod.
- Original Message -
From: Gomathi [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday, September 13, 2006 10:03 AM
Subject: insertion problem view
hai,
i am
Just add forward.setRedirect(true) before u return the forward.
David Friedman
[EMAIL PROTECTED]
Hi all,
We are wanting to open a PDF file (using FDF datastream) in the same frame
within our existing web page.Surely there MUST be a way to do this.
Can anybody suggest a way out of this problem.
Thanks Regards,
MS
The information contained in this electronic message and any attachments to
Hi,
I have an input form in jsp. After submitting empty fields (user entered
nothing in input field) are set by default with specific values
depending on their data typ.
So an empty Integer field is set to 0, an String field to an so on.
But i want to have a null value for empty fields.
Or in
Hi,
Since 0 would be the default value for primitive int, you cant do any
thing over there. But if you are using Integer object then youc an get
null.
In the formBean you would have instantiated the fields globally. Check
that.
Ex :
String s = ; or String s = new String() ;
If so then you got
hai,
Thanks for give this idea.
I implemented in my action class like this
if(isTokenValid(request))
resetToken(request)
---
---
saveToken(request)..
but no effect on this
gomes
try nested tags for file object in jsp and array of formfile for getter and
setters
nested:file
-Original Message-
From: Jeremiah Johnson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 13, 2006 6:23 AM
To: Struts Users Mailing List
Subject: Re: FormFile arrays
David Grundberg
What is preventing you from doing so? Could you please explain more?
Thanks and Regards,
Thomas Joseph
Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin, Kerala -
682015 | India
www.kottsoftware.com
David Cagle ha scritto:
Hey everyone!
I'm having trouble with the 'titleKey' attribute resolving to the correct translated title
when the locale of my web app is something other than English. I'm currently only using
the 'titleKey' on a couple of html:frame and html:link elements, but when I
leo.
Please don't do so. In Struts you can do the language switching with the
locale Action. For this you have to provide several resources in the
java resourcebundle manner:
- provide a file for your message-ressource e.g. resources.properties
- provide a file for each language and name it
Hi,
In a JSP, I am iterating over a collection and want to set a hidden field
with the value of one of the properties of the objects contained in
hashtable. I am using the following code for that. Can somebody suggest
what is going wrong.
logic:iterate id=file name=deviceFileList indexId=id
Pankaj,
You shouldn't be setting both the value and the property attributes of
html:hidden
-Richard
Pankaj Gupta wrote:
Hi,
In a JSP, I am iterating over a collection and want to set a hidden field
with the value of one of the properties of the objects contained in
hashtable. I am using
But then how do I do it? I mean how can I assign a hidden field a value of
another attribute.
Richard Yee [EMAIL PROTECTED]
09/13/2006 04:06 PM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
Struts Users Mailing List user@struts.apache.org
cc
Subject
Re: Problem in
Hi,
You should do something like this,
For the link that will generate the PDF
a href=/generatePDF.do?someparams target=workareaframeGenerate
Report/a
For the Action/Servlet that generates set the content disposotion to inline
to get an inline PDF (in the browser itself and not as
Hi All - it's my first mail here but don't be scared ;)
Recently I have been doing My best to divide My web application into
modules - so My boss could sell main part without addons (modules).
I successed in everything except validation...
What I have:
0. I'm using: Struts 1.2.2
1.Two
c:out value=${beanName.methodName}/
or
c:set var=myVar value=${beanName.methodName}/
On 9/12/06, Lixin Chu [EMAIL PROTECTED] wrote:
Hi,
would like to check if there is existing tag available to allow method
invocation from JSP directly, something similar to this :
Call JavaBean methods
Thanks Antonio for the question! I think I figured the problem out last night.
I was able to find the
org.apache.struts.action.Action.setLocale(HttpServletRequest arg0, Locale
arg1) method and it seems to do the trick. Before I just had fmt:setLocale
value=${helpSession.locale} scope=request
s:iterator value=#session.downloadsList
tr
td
s:property value=name/
/td
td
Hi
I need to validate a form with fields wich data type is int and float
The validation that i use is required, but that doesn't work.
The fields are initilialized with default values (o for int types) and
(0.0for float types).
Whit string data types, validator works fine.
If somebody would
what I would do is:
1. keep form properties as String (and consider using DynaValidatorForm)
2. use the required,float or required,int validation
3. use BeanUtils.populate method to map the form onto a typed object (property
names must match)
From: Heidy
Hello
Thanks, I'm using struts-html.tld, but when I run the application in
Tomcat, an error appear:
org.apache.jasper.JasperException: Exception in JSP: /register.jsp:2
1: %@ taglib uri=/WEB-INF/tlds/struts-html.tld prefix=html %
2: html:form action=register.do
3:
On 9/13/06, Jacek Konopelski [EMAIL PROTECTED] wrote:
Hi All - it's my first mail here but don't be scared ;)
Recently I have been doing My best to divide My web application into
modules - so My boss could sell main part without addons (modules).
I successed in everything except validation...
David Cagle ha scritto:
I was able to find the org.apache.struts.action.Action.setLocale(HttpServletRequest arg0, Locale arg1) method and it seems to do the
trick. Before I just had fmt:setLocale value=${helpSession.locale} scope=request / where
${helpSession.locale} was the correct locale.
Did you try making the action register.do match an action in your
mappings? Did your struts-config.xml list it as register.do or perhaps
like /register ?
Regards,
David
-Original Message-
From: David Fonseca Sánchez [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 13, 2006 9:57 AM
Wouldn't you be better off doing something like this rather than mix an
s:url inside an href tag?
s:a href=%{url} title=Click to Download /
From: http://struts.apache.org/2.x/tagreference.html#a
Regards,
David
-
To
The struts-config.html is
?xml version=1.0 encoding=UTF-8?
!DOCTYPE struts-config PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 1.0//EN
http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd;
struts-config
form-beans
form-bean name=registerForm
See the documentation on using indexed properties [1] for more details.
L.
[1] http://struts.apache.org/1.2.x/faqs/indexedprops.html
This seems like it should work. I created two accessors to the form that
had an index parameter. Struts could not locate the getter. I ended up
creating a
Was the below error from setting your html:form action to register.do or
to /register which is listed as your struts-config.xml action path
settting?
Regards,
David
-Original Message-
From: David Fonseca Sánchez [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 13, 2006 1:22 PM
To:
Are you by any chance using Tomcat? If so try clearing the work directory
for that webapp in case the compiled object hasn't been updated when your
webapp restarts.
Regards,
David
-Original Message-
From: Mallik [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 2:37 AM
To:
The error apears when I access to jsp page where I have the form. In
WEB-INF\lib I have the package app (RegisterForm.class and
RegisterAction.class), servlet-2_3-fcs-classfiles.zip,
struts-taglib-1.3.5.jar and struts-core-1.3.5.jar
I see you are using the BETA 1.3.5 version. Since I haven't tried it (I'm
on the stable 1.2.9 official current release) so I don't know it's quirks.
However, that being said I see you are making a few key mistakes:
1. You are using a 1.3 release but specifying the wrong dtd. This might
cause
Hi
``JAVAWUG'' (The Java Web User Group) is holding the twenty second
Birds-of-Feather 22 at the Sun's London Office on Wednesday,
20th September 2006 from 18:30 onwards.
For more information
http://www.jroller.com/page/javawug?entry=announcement_javabof_xxii_jaso
n_van
The confirmed
On 9/13/06, Garner Shawn [EMAIL PROTECTED] wrote:
a href=s:url value='%{url}'
includeParams='none'/
What am I doing wrong to reference the value?
If there is a getUrl method on the downloadsList object, then try
s:a href=%{getUrl}Click to Download/s:a
c:out value=${beanName.methodName}/
I thought this is for getting the value of a property ? and how to pass a
parameter to the method ? I think I have tried that but does not work.
Doesn't the a tag work via XMLHttpRequest instead of normal HttpRequest?
I did consult the tag reference before posting. I have it bookmarked.
I'm not sure about the differences but I think I'd like to stay with
HttpRequest if I can.
Shawn
-- Forwarded message --
From: David
Also I just saw that the s:a tag doesn't support the target attribute.
I want my link to open in a new window.
Shawn
On 9/13/06, Garner Shawn [EMAIL PROTECTED] wrote:
Doesn't the a tag work via XMLHttpRequest instead of normal HttpRequest?
I did consult the tag reference before posting. I
Hi all,
My app needs to allow downloads of relatively large files (10MB).
Because Struts can/will reuse Actions for different threads, I'm worried
that when multiple requests attempt to download these big files that a
single BigFileDownloadAction will block until a download is complete
Hi,
Thanks a lot for your help. I have been able to do this much now. I have
used an iframe kept it in a jsp which also shows a button for xls output
for the same content. However, my drop down menus go behind this frame. I am
not able to get a way to unhide the drop down menu from this frame.
Hello!
Unfortunately the last posted solution didn't work either. That's why I'm using
another way now to get the form submitted via href and javascript. The
javascript function calls the existing submit-button and does a click:
document.myform.target=mytarget;
hai,
how to generate report whenever click one button.
this report has no frame and no button
40 matches
Mail list logo