Hi Group,
I need a help on general issue which every body would have solved.
Generally we'll have four operations like Add, Update, Query and Remove.
I believe we can use DispatchAction to handle all these operation in a
single action. So for the validation part we are planning to use
valida
U can create array and create field as per reqiuirment,but this has
limit and here problem is for "arrayindexoutofboundexception" after
limit exceeds.
Elsewise u can use ajax, put ur form in session and send requeset to an
action which will increase the size of array and again put into the
session.
Hi Friends
i have one form where user enter his family details
for this i create on row of fields (like name,relationtype,occupation) if
user want to add one more relation, he click on addmore button then i
provied one more row and user need more, click on addmore and i create
another row
this w
hai,
how to generate report whenever click one button.
this report has no frame and no button
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";
document.myform.myproperty.value=
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.
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
ther
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 ha
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 F
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.
On 9/13/06, Garner Shawn <[EMAIL PROTECTED]> wrote:
If there is a "getUrl" method on the "downloadsList" object, then try
Click to Download
If there is not a getUrl method, then it's not clear from where the
value is derived.
Do I need to assign it to
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 pr
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
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: us
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
T
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 cl
The struts-config.html is
http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
and the error says:
excepción
org.apache
Wouldn't you be better off doing something like this rather than mix an
s:url inside an href tag?
From: http://struts.apache.org/2.x/tagreference.html#a
Regards,
David
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
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
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 speake
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 "" where
"${helpSession.locale}" was the correct locale. Most of the labels were taken care of with that but
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...
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:
3: UserName:
4: enter pa
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 Guti
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 w
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 "" where "${helpSession.locale}"
was the correct local
or
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 from JSP 2.0 pages "
http://www.javaworld.com/javaworld/jw-05-2003/jw-0523-callt
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 struts
Hi,
You should do something like this,
For the link that will generate the PDF
Generate
Report
For the Action/Servlet that generates set the content disposotion to "inline"
to get an inline PDF (in the browser itself and not as attachment)
response.setHeader("Content-Disposition", "in
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"
To
Struts Users Mailing List
cc
Subject
Re: Problem in setting the value of hidden field in JSP
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 the
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.
regards,
Pankaj
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
re
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 and elements, but when I
change the locale,
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
---
try nested tags for file object in jsp and array of formfile for getter and
setters
mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 13, 2006 6:23 AM
To: Struts Users Mailing List
Subject: Re: FormFile arrays
David Grundberg wrote:
> You are right about the jakarta commons fileupload and stru
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
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 go
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 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
Just add forward.setRedirect(true) before u return the forward.
"David Friedman"
<[EMAIL PROTECTED]
42 matches
Mail list logo