Hi everbody,
In my project i have a user informations.These information includes file in
database.
When i want to update user information i get an error about file update.If i
choose
new image file and then update it is not problem.But i don't choose new file
and then update
it's problem.
My user
I'm having a problem using with an action
whose result type is json. It doesn't insert the results. My Action is
something like:
public class InitCalendarAction {
private List> json;
/**
* Get the JSON Object to be Serialized
*
* @return JSON Object
*/
public Object getJson (
2009/7/14 jayadevan :
> i am using struts 1 in my project . when i sart tomcat i got the following
> exception
> Jul 14, 2009 10:39:05 AM org.apache.catalina.core.ApplicationDispatcher
> invoke
> SEVERE: Allocate exception for servlet action
> java.lang.NoClassDefFoundError: org/apache/commons/dige
Dear Martin,
Thanks for your link, We have went through the document and here are
the description on each item described in document.
1) Turn off logging and devMode - Already done this.
2) Use the Java Templates - Since we are not using struts tags this is
not applicable (right now we are only u
hi all
i am using struts 1 in my project . when i sart tomcat i got the following
exception
Jul 14, 2009 10:39:05 AM org.apache.catalina.core.ApplicationDispatcher
invoke
SEVERE: Allocate exception for servlet action
java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet
at j
Yep I did find that, thanks. What I've realized is that I have the OGNL
double-evaluation problem. I'm really trying to get this result for the
s:textfield label:
label="%{getText('%{formQuestion.question.questionKey}')}"
which of course is not legal, but I guess I'm somewhat su
Great, many thanks again for the information. I bet others will find
it pretty handy too!
On Mon, Jul 13, 2009 at 9:23 PM, Musachy Barroso wrote:
> you can sue that notation anywhere. A tip that will save you a lot of
> time, always wrap the OGNl expressions with %{}, that's why the first
> hidden
you can sue that notation anywhere. A tip that will save you a lot of
time, always wrap the OGNl expressions with %{}, that's why the first
hidden is not getting evaluated. The second one has an empty value
because "goalToAchieve" is probably not pointing to anything.
btw what #attr does is search
Thanks again for helping out Musachy,
I was wondering if there are any rules regarding when the notation you
suggested below can be used. it works perfectly for setting url
params.
I was trying to use it (with struts2 tags) within a form (which is
within the display:column tag) to pass the value t
> independent of the methods' package name
I am not sure what you mean by this. example?
musachy
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For ad
I don't think you can rely on the select tag for a list of dates, as
it (obviously :)) doesn't know how to convert the dates to string.
What I find strange is that looking at the freemarker code it seems to
be like both the value and the caption should be the same
(toString()):
<@s.iterator value=
On Mon, Jul 13, 2009 at 4:34 PM, Dale Newfield wrote:
>
>> I remember once I came across another possible solution, which allows the
>> serialization of the file data as it is received from the server.
>
> I assume that the multipart request processor streams the content into a
> file without first
Daniele Development-ML wrote:
I am developing a web application that needs to allow uploading of file of
sizes ranging 200Mb - 1 GB.
My current app allows for files up to 1GB.
Currently, I'm doing this with the FileUploadAction, which however
loads the entire file in memory - as I understood
wkbutler wrote:
Bottom line was that the resource props need to be packaged in the
same package as the action class, with the same name.
getText calls will follow the hierarchy noted in the docs:
http://struts.apache.org/2.1.6/docs/localization.html
Dave
-
Hi, I have trouble understanding the way TypeConversion along a s:select tag.
Any advice on the matter would be welcomed.
I have posted the bug under https://issues.apache.org/struts/browse/WW-3184
attaching a simple Use Case showing what I find to be an unexpected
behaviour.
Thanks for your he
Hey, this worked! Thanks Musachy, the tip you provided solved the
problem I was facing for the last 3 days.
I really appreciate your time to post this information. It looks like
the display tag packs much more functionality than it seems.
On Mon, Jul 13, 2009 at 2:03 PM, Musachy Barroso wrote:
>
The current row used by displaytag is pushed under the name set in
uid, so you could do this:
">Remove
musachy
On Mon, Jul 13, 2009 at 11:17 AM, Dimitrios
Christodoulakis wrote:
> Thanks. So, if I wanted to access a particular property (say this
> property is called mark) of an "entry" o
Thanks. So, if I wanted to access a particular property (say this
property is called mark) of an "entry" object which I am iterating
over, I would do something like the following:
">Remove
So
Assuming that each entry is named "entry" by displayTag, you can
access it using "#attr.entry" (or "#attr['entry']") to access it from
the S2 tags.
musachy
On Mon, Jul 13, 2009 at 10:27 AM, Dimitrios
Christodoulakis wrote:
> Yes, that is exactly the case, hmm.. Although, how is the
> display:tab
OK - I got getText() working via checking out the code in
com.opensymphony.xwork.util.LocalizedTextUtil , and the StrutsInAction book
has a pretty good section this. Bottom line was that the resource props
need to be packaged in the same package as the action class, with the same
name. I preferr
I believe the correct syntax is:
test
(*this* != null)
But why are you doing this? Such a simple validation can be
accomplished with the "required" validator.
Paul
On Mon, Jul 13, 2009 at 11:20 AM, Lukasz
Lenart wrote:
> 2009/7/13 Odelya YomTov :
>> But I don't see that it works! Why?
>
>
Yes, that is exactly the case, hmm.. Although, how is the
display:table tag finds the collection in the first place?
Supposedly the display has some way of reaching the valuestack, it can
even resolve the deeper notation wrote:
> OK, I see the problem now... you are not using to go thru the
> e
OK, I see the problem now... you are not using to go thru the
entries, you are using .
The syntax suggested will not work since does not know
anything about the value stack.The
uses the value stack to resolve 'mark' which will not work here, you will
need to replace %{mark} with the right synt
Either I have been asleep at the wheel or have simply lucked into a naming
scheme. It appears the MethodFilterInterceptor is performing its
include/exclude logic independent of the methods' package name. Has anyone
been snapped by this?
Peace,
Scott
--
View this message in context:
http://w
I made an attempt at making file uploading capabilities more
pluggable. There is a beta fileupload plugin with info here -
http://cwiki.apache.org/S2PLUGINS/advanced-fileupload-plugin.html
Be aware, you will have to build a snapshot of struts since it depends
on changes that were made after the 2
I made the changes, but the view source indicates that the param
"mark" is not passed.
The url linked is formed like this:
/secure/DeleteEntryForm.action?name=firstName+lastName&id=1
The name and id params are fields of the parent object, the one
containing the collection.
Actually, I tried wit
Hello,
I'm trying to understand how to use the Streaming API of the Apache File
Upload Common libraries in conjunction with Struts. I need this as some
files I need to allow the uploading/download are rather big and should be
stored in memory.
What I understood is that I need to define a multipart
2009/7/13 Odelya YomTov :
> But I don't see that it works! Why?
Did you try like this?
data.category != \'empty\'
Regards
--
Lukasz
http://www.lenart.org.pl/
http://dailylog.lenart.org.pl/
-
To unsubscribe, e-mail: user-unsub
Looks like you need to change entry.mark to just mark and remove the
. Also you probably don't need to pass both
the name and id of the parent object.
">Remove
On Mon, Jul 13, 2009 at 10:48 AM, Dimitrios Christodoulakis <
dimi@gmail.com> wrote:
> Thanks for letting me k
I think the only way to do that currently, is to define the 2 results
with the same location.
musachy
On Mon, Jul 13, 2009 at 8:13 AM, dcabasson wrote:
>
> Hi all,
>
> I am wondering if there is an "alias" result in struts 2.
>
> The use case for such a result type would be for when some of the r
Hi all,
I am wondering if there is an "alias" result in struts 2.
The use case for such a result type would be for when some of the results
are the same. Say SUCCESS and INPUT actually go both to the same location,
it would be nice to be able to define SUCCESS and have INPUT be only an
alias of
take a look at tuning tips described at
http://cwiki.apache.org/WW/performance-tuning.html
ping back for questions/concerns
Martin
__
Verzicht und Vertraulichkeitanmerkung
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenge
Thanks for the comments Martin, I will try it out!
On Mon, Jul 13, 2009 at 9:46 AM, Martin Gainty wrote:
>
> @Table(name = "TableNameGoesHere")
>
> //the java file would use ForeignKey annotation as described
> @org.hibernate.annotations.ForeignKey(name = "FK_GOALTOACHIEVE_ID")
>
> public class Wi
Thanks for letting me know. Alright, so:
This is the parent class:
@Entity
public class GoalToAchieve {
@Id @GeneratedValue
private Long id;
@org.hibernate.annotations.CollectionOfElements
@JoinTable (name="GoalToAchieve_entry",
joincolum...@joincolumn(name="goalToAchieve_id"))
private S
@Table(name = "TableNameGoesHere")
//the java file would use ForeignKey annotation as described
@org.hibernate.annotations.ForeignKey(name = "FK_GOALTOACHIEVE_ID")
public class WikiDocument extends WikiFile implements
Serializable {
public String getHistoricalEntityName() {
return "
You are not providing enough information for anyone to help you. Since you
have changed your object and the jsp you had better include them with any
request.
On Mon, Jul 13, 2009 at 9:51 AM, Dimitrios Christodoulakis <
dimi@gmail.com> wrote:
> Yes, that is a great suggestion actually. What I
Yes, that is a great suggestion actually. What I did was to add a new
field based
System.currentTimeMillis(), but the problem is adding it as a url parameter.
For example, I am trying to add it as a url parameter below:
">Edit
But, the only param passed is the fullName. The mark is not added
Dear Uddin,
Thanks for the reply. But we are are already included xwork-2.1.2.jar
and we are not using any sitemesh features in out project. Anyhow I
have included sitemesh jar file and still no difference.
Best Regards
Lasantha
On Mon, Jul 13, 2009 at 5:31 PM, taj uddin wrote:
> I'm not sure bu
>
> Thanks for the reply. Well, entry is an instance of a separate class:
>
> @Embeddable
> public class JournalEntry {
> @org.hibernate.annotations.Parent
>private GoalToAchieve goalToAchieve;
> @Column(length = 255, nullable = false)
>private String entry;
>
>@Temporal(Tem
Hi,
I think this is a bit odd as I'm using the display tag (1.2) with
struts 2 (2.1.6) and I can't get it to work without using .
Are there any special interceptors or anything one needs to have
enabled for this to work? I think I have the default stack on that
particular page so I assume the tag
I'm not sure but do pls check out by including the sitemesh-2.3.jar file and
xwork-2.0.6.jar file in your library
--- On Mon, 7/13/09, Lasantha Pambagoda wrote:
From: Lasantha Pambagoda
Subject: Migration from Struts1 to Struts2
To: user@struts.apache.org
Date: Monday, July 13, 2009, 6:33 AM
Thanks for the reply. Well, entry is an instance of a separate class:
@Embeddable
public class JournalEntry {
@org.hibernate.annotations.Parent
private GoalToAchieve goalToAchieve;
@Column(length = 255, nullable = false)
private String entry;
@Temporal(TemporalType
If you want to preserve errors and messages across a redirect you can you
this interceptor:
http://glindholm.wordpress.com/2008/07/02/preserving-messages-across-a-redirect-in-struts-2/
On Sun, Jul 12, 2009 at 10:18 AM, taj uddin wrote:
> Hi Kavitha,
>
>The action error message will not
>
>
> I have successfully used the display tag to iterate over a collection
> which is exposed in an action class. On each row in addition to the
> columns displaying the fields of each object in the collection, I
> embed two more struts-tag urls: Update and Remove.
>
> The objective is to have an
I think I might have an idea why the iterator or display tag do not
allow for working with collection items.
In the past I used form tags (like select) to prompt the user to make
a selection from a menu, my thought is that since I was using form
tags, by submitting the form, the property (item fro
Hello,
I am developing a web application that needs to allow uploading of file of
sizes ranging 200Mb - 1 GB. Currently, I'm doing this with the
FileUploadAction, which however loads the entire file in memory - as I
understood
I remember once I came across another possible solution, which allows t
Hi!
I have html:select with countries list
I want to make sure that the user clicked on a value
Jsp:
--
validation.xm
Hi,
We have migrated struts1 application to struts2. But now once we
deployed the system the CPU is going 90% to 100% and system is getting
loaded. In JSP's we are not using struts specific tags or freemaker
templates. Our JSP files are just plain jsp files only with
requstScope variables.
We are
You're right too ;-)
I didn't want to substitute to the plugin documentation.
I'd prefer the "include properties" behaviour anyway.
I believe a good idea could be to use @JsonInclude annotation on the
entity properties to define (just ONE time on the entities) which of
their properties are "safe t
Did you look at the "Excluding properties" example in the json plugin
documentation?
Nils-H
On Mon, Jul 13, 2009 at 9:15 AM, GF wrote:
> You're absolutely right,
> but there is a "security reason", in real-world application, the
> objects i get from business service, are usually JPA entities, and
You're absolutely right,
but there is a "security reason", in real-world application, the
objects i get from business service, are usually JPA entities, and
putting a "full JPA entity" on the json result will lead to issues in
the case there are some properties of that object that have to kept
"hid
Good Stuff,
Thanks a Lot. Expecting more in future.
-Original Message-
From: GF [mailto:gan...@gmail.com]
Sent: Monday, July 13, 2009 10:10 AM
To: Struts Users Mailing List; fr...@meruvian.org
Subject: Re: Struts2, JQuery and JSON result to create a dynamic ajax
website
Thank You for t
Thank You for the nice comment.
I just wrote some code snippets for the tutorials.. i didn't have
enough time to build a full eclipse web project, if you have some
difficulties, ask :-)
On Mon, Jul 13, 2009 at 12:33 AM, Frans Thamura wrote:
> Cool. Can I have the full code? Frans
53 matches
Mail list logo