o places. He told me to quit
> going
> to those places."
>
> On Mon, Jun 15, 2009 at 8:11 PM, Stefano Tranquillini <
> stefano.tranquill...@gmail.com> wrote:
>
> > I tried to use request and URI but:
> > - i'm not able to have some result from this
About this link:
http://www.opensymphony.com/ognl/html/LanguageGuide/staticMethods.html
said: You can call a static method using the syntax
@cl...@method(args). If you leave out class, it defaults to
java.lang.Math, to make it easier to call min and max methods. If you
specify the class, you must
ountred. i
>> tried to put \" but doesn't work.
>>
>> On Mon, Jun 22, 2009 at 18:00, Jon
>> Pearson wrote:
>> > > description)" />
>> > should work (check
>> >
>> http://www.opensymphony.com/ognl/html/LanguageGuide/staticMetho
at 18:00, Jon Pearson wrote:
>
> should work (check
> http://www.opensymphony.com/ognl/html/LanguageGuide/staticMethods.html
> for OGNL for calling static methods)
>
>> -Original Message-
>> From: Stefano Tranquillini [mailto:stefano.tranquill...@gmail.com]
On Mon, Jun 22, 2009 at 17:46, Jon Pearson wrote:
> String.format("%.100s", s);
how can i put this thing in the jsp?
--
Stefano
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-
a better solution, especially
> since this is a pretty general problem.
> jk
>
> On Mon, Jun 22, 2009 at 11:37 AM, Stefano Tranquillini <
> stefano.tranquill...@gmail.com> wrote:
>
> > Hi all.
> > there's a possibility inside a jsp to display only the first 100 ch
Hi all.
there's a possibility inside a jsp to display only the first 100 chars
or the first 10 words of a string?
if i have a long string, can i display only the first 100 chars
directly in a jsp without modification in action or something like
that?
thanks
--
Stefano
Hi all.
I developed an application with struts2, tiles and EJB using jboss.
In the log of jboss i've a lot of warning:
15:28:13,484 WARN [InterceptorRegistry] applicable interceptors is
non-existent
for public boolean
session.MGMTBean.addCustomer(java.lang.String,java.lang.Stri
ng,java.lang.Stri
I tried to use request and URI but:
- i'm not able to have some result from this command.
- how can i set this value inside the session from a jsp.
thanks.
--
Stefano
> informations You need,
> and this would be best done by interceptor.
how can i take the current url in a jsp?
>
>
> Hope that helps,
> Paweł Wielgus.
>
>
> 2009/6/5 Stefano Tranquillini :
> > Hi
> > there's a problem (i think is a problem). I used the til
ri and params if
> any. But there is no standard solution for this problem, as far as i
> know. You can always face a scenario where user login without any
> page, just by constructing a valid url.
>
> Best greetings,
> Pawel Wielgus.
>
> 2009/6/4, Stefano Tranquillini :
> &
Hi all.
i've a little problem.
I've a EJB inside my session, i take it from a jsp and print out some
values:
now, this value is a double. and struts print 2.0E09
how can i print 2.0. so the entire number without exponent?
thanks
--
Stefano
Hi all.
i want to do a thing. When a user do the login (i've the login in the left
part of the web site, so in each pages the user can do the login) i want to
redirect he at the pages that was visit before the login.
how can i do that? (no JS)
--
Stefano
in package /admin and adding this
interceptor at new.stack?
2009/5/21 Stefano Tranquillini :
> thanks,
>
> but i definide in struts my interceptors in this way:
>
>
>
>
>
>
> in order to use the interceptors only when namespace is /admin/*
>
>
thanks,
but i definide in struts my interceptors in this way:
in order to use the interceptors only when namespace is /admin/*
but the interceptor is never called!
And:
where i've to put the globalforward?
i putted a the end of the sturts.xml
something like tha
in the framework you've chosen.
>
> Struts' interceptors are a very powerful AOP-style pattern that I think are
> sometimes overlooked and aren't emphasised enough...
>
> [1] http://struts.apache.org/2.x/docs/writing-interceptors.html
>
> On 20 May 2009, at 13:42, St
he struts filter is catching the request first and dispatching it before it
> ever reaches the admin filter.
>
> On 20 May 2009, at 09:37, Stefano Tranquillini wrote:
>
>> Hi all.
>> i need to block the path /admin/ for all the pepole. only the people
>> logged in as
Hi all.
i need to block the path /admin/ for all the pepole. only the people
logged in as root can access it.
i've done a filter, but struts seems to dosen't works with its
struts2
org.apache.struts2.dispatcher.FilterDispatcher
adminFilter
filter.Admi
>> public InputStream getAttachmentStream() throws
>> SQLException {
>> return (attachment==null ? null :
>> attachment.getBinaryStream());
>> }
>>
>> public void setAttachmentStream(InputStream
>> attachmentStream)
>>
Hi all.
i've to do a UI that permits to store some images, how can i do that?
i tried to use upload file but is quite complex and doesn't work.
is better if i put the img inside the db?
someone of u has experience about that?
if i put inside the db the img (i use postrgres) how can i display it in
same problem anyway
--
Stefano
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
ion,
> you could do this.setCategory(cat) -- and then your JSP would work fine.
>
in previous version i've done whith a parameter. but if there's an
automatic error discovered by struts the categories disappears.
ognl don't check automatic inside session?
> On Tue, May
d as a
collection/array/map/enumeration/iterator type. Example: people or
people.{name} - [unknown location]
ideas?
On Sat, May 9, 2009 at 14:19, Stefano Tranquillini
wrote:
>
>
> On Sat, May 9, 2009 at 00:49, Dave Newton wrote:
>>
>> Stefano Tranquillini wrote:
>>>
&
On Sat, May 9, 2009 at 00:49, Dave Newton wrote:
> Stefano Tranquillini wrote:
>
>> i've a form. i've some field that are double type. if i put a string
>> inside
>> these fileds struts automatically check the incorrectness of the type. ok!
>> but, inside
The title is quite strange.
but:
i've a form. i've some field that are double type. if i put a string inside
these fileds struts automatically check the incorrectness of the type. ok!
but, inside this form i've a select that is created by a list.
when the error comes out from struts, sruts goes ba
Check 2 things:
- is the jars inside WEB-INF/lib in the dist jar of the application?
- is the only one jar for each library (maybe have one in web-inf and one in
the root).
i've a similar problem with netbeans and jboss (netbeans put all the jar in
the root and nothing in web-inf) so i forced to p
i think u can use a trick
u can set the value in this way: CODE_NAME. and map as a string
in your action u can simply extract where is the "_" char and split the
string.
NB: the code and name doesn't have _ inside
On Tue, Apr 28, 2009 at 10:45, PEGASUS84 wrote:
>
> good moorning.
>
> I've th
page context.
> Your example of displaytag is missing :
>
> (before the display tag)
>
> Denis.
>
> On Thu, Apr 23, 2009 at 1:01 PM, Stefano Tranquillini <
> stefano.tranquill...@gmail.com> wrote:
>
>> i've done a pagination by myself.
>> is an
eferencing, as well as if the
> variable is empty.
>
> eg.
>
> On 23 Apr 2009, at 17:11, Stefano Tranquillini wrote:
>
>> i done this:
>>
>> this is the class taht create the list
>>
>> private List items = new ArrayList();
>> pr
isplaytag.sf.net"; prefix="display" %>
the result is:
Nothing found to display.
On Thu, Apr 23, 2009 at 17:52, Stefano Tranquillini
wrote:
> emm i've a list in my session called items.
>
> so i'd write
> a ok, i'd understand, now works.
>
> anyway,
gt;>>
>> >>> On Wed, Apr 22, 2009 at 4:22 PM, Jim Kiley
>> >>> wrote:
>> >>>
>> >>> I found this within thirty seconds of clicking Dave's link:
>> >>>> http://displaytag.sourceforge.
someone has experience with this tag?
i don't really understand how it works.
On Tue, Apr 21, 2009 at 18:39, Chris Pratt wrote:
> I'd suggest looking into DisplayTag (http://displaytag.sourceforge.net/)
> (*Chris*)
>
> On Tue, Apr 21, 2009 at 4:58 AM, Bhaarat Sharma
> wrote:
>
> > Are there
Because the items are stored in hashmap item contains the
prize.
so, to know the total for each item i've to multplay item.prize with
quantity.
no more else.
On Wed, Apr 22, 2009 at 14:01, Dave Newton wrote:
> Stefano Tranquillini wrote:
>
>> but i've only to displa
but i've only to display in a jsp the results, when i use that value i
compute it by the ejb.
On Tue, Apr 21, 2009 at 22:51, Dave Newton wrote:
> Stefano Tranquillini wrote:
>
>> The right solution is to calculate and insert in a new bean the elements
>> and
>> its
The right solution is to calculate and insert in a new bean the elements and
its total value?
On Tue, Apr 21, 2009 at 20:29, wrote:
> Nice reference Wes! BTW, I noticed you are not using the new cover letter
> for the TPS reports, so I'm going to have to go ahead and ask you to read
> that memo
works!
On Tue, Apr 21, 2009 at 18:56, Lukasz Lenart
wrote:
> 2009/4/21 Dave Newton :
> >>> And the next step will be implement whole bank security in jsp :P
>
> > Right, because that's clearly the type of "trivial functionality" I was
> > talking about. Don't be ridiculous.
>
> Young programmer
Hi all
i've a hashmap that contains object and a value(int).
i would display all the value of the object:
x
and a value calculated at runtime that is a moltiplication of:
and
how can i do that?
thanks
--
Stefano
ue --> true
21:27:51,671 INFO [STDOUT] setTrue true
21:27:52,265 INFO [STDOUT] value --> true
21:27:52,265 INFO [STDOUT] setTrue true
what appends?
On Mon, Apr 20, 2009 at 18:31, Stefano Tranquillini <
stefano.tranquill...@gmail.com> wrote:
> Hi all.
>
> i've a problem w
Hi all.
i've a problem with ejb stateful bean.
in my stateful ejb i've this method
@Stateful
public class ShopCartBean implements ShopCartLocal {
@EJB
private MGMTLocal man;
private Customer customer;
public boolean *enableShopping*(String user, String password) {
custom
essible setters on your action-model, OGNL will graph those data onto
> your action-model. I would recommend a quick Google search for tuorials and
> docs to get a better understanding of the framework.
>
> Peace,
> Scott
>
> On Sat, Apr 18, 2009 at 8:29 AM, Stefano Tra
Hi
i've a conceptual problem.
i want to transport and share inforamtion in my application.
e.g. when a user made the login i want to store that user is loggedin
and its datas.
how can i do that?
in the past version of struts there was the actionform and use ther
around the application.
in stru
i found and modified!
thanks
On Sat, Apr 18, 2009 at 15:16, Dave Newton wrote:
> Stefano Tranquillini wrote:
>>
>> How can i change how struts display the errorrs?
>>
>> can i set that display in a red rectangle or something like this?
>>
>> i ought modi
Hi all.
i've a warning in jboss log and i want eliminate it.
14:28:43,312 WARN [ServletUrlRenderer] No configuration found for the
specified action: '/user/Register.action' in namespace: '/'. Form
action defaulting to 'action' attribute's literal value.
so.
i've a class callerd Register in pack
upport in your actions.
>
>
>
> -Original Message-
> From: Stefano Tranquillini [mailto:stefano.tranquill...@gmail.com]
> Sent: Friday, April 17, 2009 2:40 PM
> To: Struts Users Mailing List
> Subject: Re: Display action errors above the field
>
> a k.
&g
:37, Terry Gardner wrote:
>
> use addFieldError("fieldName","message");
>
> like:
>
> addFieldError("email",surname + ": invalid email address");
>
> The infrastructure marries this with the field named "email".
>
>
> On A
On Fri, Apr 17, 2009 at 20:29, Security Management <
list-subscripti...@secmgmt.com> wrote:
> field errors
i don't know what is field-errors.
--
Stefano
Hi all
i'm starting with struts2, there's a possibilty to display the errors comes
from actionerros over the corrisponding field?
eg:
i've 3 fields:
- name
- surname
- email
the email si not valid, i want:
- name
- surname
* your email is not valid *
- email
if i put i see this thing:
* your
I'm not sure that is a good solution but u can try to use simply jsp code
and bean:define
e.g (i don't know the right name of the struts tag)
i don't really know it's works, but it'll be, i'm not so sure.
otherwise:
u want to display the error in the right place?
why u don't use a different er
the right position of the ejb).
thanks anyway folks.
On Thu, Apr 16, 2009 at 15:33, Stefano Tranquillini <
stefano.tranquill...@gmail.com> wrote:
> Someone has a simply example to show?
>
> thanks
>
> On Wed, Apr 15, 2009 at 14:01, Stefano Tranquillini
> wrote:
> >
Someone has a simply example to show?
thanks
On Wed, Apr 15, 2009 at 14:01, Stefano Tranquillini
wrote:
> If i put the configuration of the interceptor inside struts.xml i've
> no error message, but when i recall the ejb.method() i've a
> nullPointException
>
> java.
U have to specify the tipe, if your field is a timestamp have to set
the annotation in this way:
@Temporal(TemporalType.TIMESTAMP)
private Date datetime;
and then u can simply assign the value in this way:
setDatetime(new Date());
cheers
On Sun, Apr 12, 2009 at 15:27, lewy87 wrote:
>
>
9 at 13:52, Stefano Tranquillini
wrote:
> Hi,
> i've done this:
>
> web.xml
>
>
> http://java.sun.com/xml/ns/javaee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://j
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
lugin"
>
> In the 2 first links you'll find the plugin and the doc page about it. I
> personally use a the JBoss plugin, which includes a cache. I've extended it
> to do lookups annotated on parent classes.
>
> Try which ever fits you and write here abut any concrete p
Someone can explain me how to use (and find) the ejb3 plugin for sturts2?
thanks folks
--
Stefano
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
utor.java:907)
>> at java.lang.Thread.run(Thread.java:619)
>>
>>
>>
>> this is the libraries:
>>
>> commons-beanutils-1.7.0.jar
>> commons-chain-1.2.jar
>> commons-collections-3.2.jar
>> commons-digester-1.8.jar
>> commons-fileupload-1
jsp
this is the tiles.xml (WEB-INF/tiles.xml)
http://struts.apache.org/dtds/tiles-config_2_0.dtd";>
where is the error?
On Sat, Apr 11, 2009 at 20:39, Stefano Tranquillini
wrote:
> which jars did you put?
> i've a only ear that contains both ejb
file so to isolate layers (model <->
> view)
>
>
> Stefano Tranquillini wrote:
>>
>> Hi,
>> Have you got a list of the libraries or a blank-simply application
>> that contains struts2 tiles2 and ejb3 extension.
>>
>> i usually use netbeans, do you
coder forgot that
> there can be a parent class which also has de Annotation().
> Where are you putting those struts jars so that jboss webapps don't find
> them? I put them in WEB-INF/lib without any problems.
>
> Regards,
> Ignacio
>
>
> Stefano Tranquillini wrot
odies, Guice should very easy to set up]
>
>
>
> --- On Fri, 4/10/09, Stefano Tranquillini
> wrote:
>
>> From: Stefano Tranquillini
>> Subject: Re: Struts and EJB 3
>> To: "Struts Users Mailing List"
>> Received: Friday, April 10, 2009, 2:39
Yes, i'll try to use, but the ejb with annotation gives me a
nullpointer exception.
i've to call the ejb using the old style jndi call.
On Fri, Apr 10, 2009 at 15:25, Lukasz Lenart
wrote:
> 2009/4/10 Stefano :
>> in struts1 what's the way to use EJB3.0?
>>
>> there's no possibility to use annotat
Hi,
i'm trying to build a project using ejb struts2 and tiles2.
only sturts2 without tiles2 works fine! but with tiles it's not works
i try only to build a simply application using struts and tiles2,
forgotten about ejb.
i've put these libraries inside jboss (/server/all/lib):
commons-beanutil
Hi all,
i'm looking a method to use EJB3.0 inside struts2. There's a guide or a
tutorial?
i've some question: usually a Stateful session bean is used to store and
share information, right? ActionForm (bean of struts) does the same thing.
using EJB and Struts we are in conflict? we loose the powerfu
63 matches
Mail list logo