In the lasts versions (since 2.0.9 I guess), all AJAX are in dojo plugin.
So you need to include <%@ taglib uri="/struts-dojo-tags" prefix="sx"%>
and
and call :
Michaël
dipti RealSoftInc <[EMAIL PROTECTED]>
16/10/2007 08:09
Veuillez répondre à
"Struts Users Mailing List"
A
user@struts.
I m using Struts2 and the tag which m using is:
and regarding the taglib declaration it is not declared in it hence it is
giving the exception:
No tag "datetimepicker" defined in tag library imported with prefix "s"..
Struts2 does not support datetimepicker?? or some other reason.. please
reply b
How can I get the actual file name which I browsed?
-Original Message-
From: Raghuveer Rawat [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 16, 2007 10:31 AM
To: Struts Users Mailing List
Subject: Re: File Upload using Struts2
Thanks Dave for reply..
I have no clue what is happening...
Hi Raghu,
There should be no problem with the configuration, you have to set
the "enctype"
Here is my code:
JSP
Action
File f = new File("C:\\Tomcat 6.0\\abcd.jpeg");
FileUtils.copyFile(getMyFile(), f);
Find out where is the
Thanks Dave for reply..
I have no clue what is happening...I can see below statement in log..
Content-Type not allowed: myPhoto
"upload_460c03b6_115a6ef087d__8000_.tmp" image/jpeg
I have configured filters like below in web.xml.. I don't have context
clean-up filter. Where should I place
I have a class that services many actions. For each action that needs
validation I have a corresponding Class-action-validation.xml, which takes
care of the simple validation. However, I have a case where two actions need
more complex validation (handled in Struts 1 by validwhen and
indexedpropert
Hi Group
I am having a small issue with .
say
if mtm = "215667.20" then
from the JSP I get a value of 215667.2,
similarly if
mtm = "0.00" I get a value of 0 from the
rendered jsp.
How do I
Hi,
I just guess your problem. If you have used struts 2.x, you can easily get
credential information via Action POJO. In your case, creating a new Action
named LoginAction with 2 properties username, password, then create a new
User class. In the LoginAction, get username and password passed in U
The ActionContext class contains a Map of field/value pairs for invalid
conversions. The messages are mucking up the HTML validation messages and
when I clear them to solve that problem it blows away the entered value "as
invalid as it might be" so it's not restored when the web page is
represente
In general it's a good idea to include things like
what is actually happening: what symptoms (besides
"the file isn't uploading" :) are there? Is there
anything in the logs?
Are you including the context cleanup filter in your
web.xml?
d.
--- Raghuveer Rawat <[EMAIL PROTECTED]> wrote:
> Hi, I a
Hi, I am new to sturts2. I am trying to upload a jpg image using Struts2 but
no luck till now. It will be great if someone could help me in moving
further.
I am using Struts 2.0.8 and i have commons-fileupload-1.2.jar and
commons-io-1.3.2.jar in classpath
I put debug statement in setter methods.
Hi, I am trying to upload a jpg image using Struts2 but no luck till now. It
will be great if someone could help me in moving further.
I am using Struts 2.0.8 and i have commons-fileupload-1.2.jar and
commons-io-1.3.2.jar in classpath
My code looks like below.
MyPhoto.jsp
Action class: MyP
zul;jami wrote:
I am using struts2+spring+jpa+ajax+sitemesh
WHile onload only execute method should be called,
but update is also called.Why
this is my struts.xml
login.jsp
login.jsp
/pages/dashboard_main.jsp
/pages/dashboard.jsp
This is just a g
You could also consider using container managed security, which handles
this use case transparently, or one of a number of existing
authentication frameworks (e.g. Spring Security) which can also take
care of it.
Basically, the exact solution depends on your requirements, particularly
with re
dipti RealSoftInc wrote:
hello,
I am using struts 2.0.1 and want to use datetimepicker tag... but it is
giving an exception that it is not defined in the tld file i.e
struts-tag.tld please help me out...
What version of Struts are you using? What does your taglib declaration
look like? An
Is layout:checkboxes from the Struts Layout project, or something else?
I would suggest chceking the documentation for the originating taglib,
but my first guess would be that you need property="locationList"
instead of property="location" based on what you describe below.
L.
jeniclement wrot
In my Struts based J2EE application, I need to get user's login
information (user principal), and based on the login id, I will create
the user object and then put it into the session. I am wondering where
is the best place to put this code in.
I read some info and it sounds like I should put this
You, Marcos, (and Laurie) were right: there was not a full list of
values aside from the county names in the list. Each entry in the
list looked something like this:
ORANGE
So the option value was always empty. The trick for me was to set
the listKey parameter to "name", which contained t
It's been a while since I've used Struts 1.x, but back in the day, I
did implement this type of functionality. Basically, the app would
redirect to the login action, with the destination what the user
tried to access) as an encoded parameter in the URL. Something like "/
login.do?destination
Hi all,
I am using struts 1.3.8. I was trying bookmarking functionality out of
curiosity.(User will bookmark a page then if he clicks that link he should
be informed to login which is the entry point into application and then he
should be forwarded to the page he bookmarked) . I wish to do it even
Opps just found it ...
This answers my question:
http://struts.apache.org/2.x/docs/parameters-in-configuration-results.html
regards,
Giovanni
Giovanni Azua wrote:
hi all,
I have the following use-case that seem not to be covered by the
redirect action?
- User uploads a CSV file containin
hi all,
I have the following use-case that seem not to be covered by the
redirect action?
- User uploads a CSV file containing several parameters, this is handled
by Action A.
- Action A reads all parameters, and needs to redirect to action B
passing those CSV parameters as part of B's reque
Figuring out if there were type conversion errors was something we ran into.
The bigger issue for us was validation. There is no easy way to do field
level validation with an editable grid. (Or I haven't seen a good example
of one)
Josh Vickery-2 wrote:
>
> You can do this with Struts 2, but
You can do this with Struts 2, but I've found that it can be a bit
hairy when it comes to type conversion. The general idea is to use an
action property which is a Map of objects that you want to save keyed
by a unique identifier for each one. The two problems that I run into
when doing this are:
hello,
I am using struts 2.0.1 and want to use datetimepicker tag... but it is
giving an exception that it is not defined in the tld file i.e
struts-tag.tld please help me out...
--
View this message in context:
http://www.nabble.com/Struts-Application-is-not-working-tf4560069.html#a13212419
Before I go about building some basic shopping cart features in my S2
app, I wanted to make sure that I wasn't reinventing the wheel, if
something of this sort already exists.
I have thousands of old transactions that a user can search for, a list
comes up (using DisplayTag), 50 per page, and
--- Lalchandra Rampersaud wrote:
> I want to learn how to apply AJAX technology to jsp
> page. First of all I don't know how to do AJAX
> programming (I am also new to J2EE).
>
> Could someone send me a manual or tutorial
> pertaining to AJAX and J2EE. (I am also programming
> using Eclipse 3
Hi
I want to learn how to apply AJAX technology to jsp page. First of all I
don't know how to do AJAX programming (I am also new to J2EE).
Could someone send me a manual or tutorial pertaining to AJAX and J2EE. (I
am also programming using Eclipse 3.2).
Thanks in advance
Great ideas Mark! Does this mean I now owe you ca$h? I didn't consider the
permutation where you would discuss improvements without actually requesting
them! You are a thinking man aren't you? I'll work the RESTful style of
request METHOD into the configuration after studying that plugin first.
You are a kind man Wes. I have enjoyed Tiles because of its support for JIT
data fetches and panel inheritance. However, with Tiles 2 not "playing
well" with Struts 2/Spring integration, it is looking less glamorous. I
wrote a DelegatingTilesController that will get a configured Spring Bean
acco
Imagine a table with a List of items (say, a List of people, each with an ID,
Name and age). I am thinking about developing a way to make all rows
editable and able to be saved simultaneously with a single submit button.
Specifically, each item (Person, in the example) is an object mapped with
h
When I try without the reference to struts-tags I get this
error-message:
[ WARN] 15:12:36 Can't generate HTML subscription mail; nested
exception is freemarker.core.InvalidReferenceException: Expression s is
undefined on line 1, column 12 in mail-html.ftl. [] at
com.opensymphony.xwork2.interce
Hello
In my form i have common parameters like
and some "dynamic" parameters - inputs added throw Javascript Code.
For common parameters i have ParametersInterceptor. It puts values in
"searchData" object properties.
Then i want to add array of "dynamic" properties to my "searchData" object.
33 matches
Mail list logo