dont know how to use html:hidden for my purposes, because I think this only
can be used for a property.
Any help?
Thanks in advance
Oscar Cristobal
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma
f the Class
> does
> not exist. In that case I get a struts error page (if debug mod is on) or a
> tomcat error page. Any way to catch this exception?
>
>
>
> --
>
> Gustavo Felisberto.
>
> WIT-Software, Lda
>
> Coimbra (Portugal), San Jose (California)
>
> Phone: +351239801030
>
> Web: <http://www.wit-software.com> http://www.wit-software.com
>
>
>
>
--
Oscar
fireapple escribió:
Here's my situation:
I used a displaytag to show a table as an ajax result. It works fine.
However, when I click "sort" or go to different page, it opens a new page
with only the displaytag table. I saw something online that there's ajaxTags
or ajaxAnywhere, but it seems the
Kris Reid escribió:
The problem has something to do with the get method in the action class not
being called.
Any ideas why this would happen?
If I hit refresh a time or two it works fine.
-
http://www.kremsoft.com Kremsoft - Software Development
Are you using ajax tags (like dojo )
Hi to all, i have a simple question about tag. Let's say
that we have a property in our action of type List, but in that list i
only store Strings.
When i want to print the value of the list on the JSP i use this code
snipped:
But i don't know if that's right, because i don't know how
Brian Thompson escribió:
Try this:
Calling without specifying a value will default to the top of
the value stack which ought to be the current element in the list because
you're inside the tag.
-Brian
On Fri, Nov 13, 2009 at 12:53 PM, Oscar wrote:
Hi to all, i have a s
Hi to all. I'm developing a Struts 2 application and i create an
interceptor to initialize values and to validate user login. I want to
load a list to jsp to populate a s:select so i implemented the
Preparable interface in my action, and the method prepare(), so i type
the code in this method t
Chris Pratt escribió:
Did you either set your appInterceptors stack to be the default stack, or
define the actions you're testing with to use the appInterceptors stack
explicitly? Otherwise, you're actually just using the defaultStack.
(*Chris*)
On Mon, Nov 16, 2009 at 12:34 PM, Os
larryreed escribió:
I'm having a problem with the in which the drop downs are populated from a list of database objects. When I first display the screen, the drop downs are properly populated. However, when there is an error in some field, and the page is redisplayed, the drop downs are now empty
ben_979 escribió:
I'm trying to figure out the validation framework, and I don't have a clear
understanding from the docs I've read where I'm going wrong, so if someone
could point me in the right direction I'd appreciate it.
I'm trying to validate ONLY when a particular method of an action clas
Hi to all, i have a problem with struts 2 templates. The problem is that
when i put a s:submit in my jsp for example, it automatically creates a
div containing the submit and a new column in the table, and i don't
want that, i only want only the button. Is there a way to tell struts
that i don'
Thanks for your answer Burton. I didn't know how to do that but for
others that could have that problem to the way to do this is the next:
Declare a constant in struts.xml like this:
Burton Rhodes escribió:
Use the 'simple' theme. It just prints the HTML tag.
On 11/19/0
As Musachy says, you could ignore it in the params interceptor in this way:
d-\d+?-[sop]
Musachy Barroso escribió:
try adding quotes around it 'd-6836677-p' then it will be interpreted
as a string, or try to ignore it in the params int
I think that you have to implement Preparable interface, and you can't
declare prepare() throwing an exception because that's not permitted by
methods implementation rules (if i'm wrong tell me please).
Wes Wannemacher escribió:
On Fri, Nov 27, 2009 at 4:04 AM, Nguyen Xuan Son wrote:
Dear
I've worked with struts menu and jsp without problems. About CSS i
remember that you specify theme to struts menu tags then you simply edit
the css sheet that you include in your application when you put all the
necessary stuff to make work struts menu, like the jar and so on.
nani2ratna escri
ruts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
--
Oscar
Hi to all, i was exploring the jquery plugin of struts 2 because i read
that you can do something like a grid with the tags that provides that
plugin, something like displaytag or extremecomponents.
I follow an example that i found where they simply create a list in
action and show the data in
/1/21 Dale Newfield
> Oscar Calderon wrote:
>
>> a question about downloading files from struts action.
>>
>
> I would suggest using the stream result type rather than hand-constructing
> the servlet response. In either case, though, you want to look into the
> "co
Hi to all, i have a doubt about struts 2. Is possible to write ognl
expressions on struts.xml . Let's say, something like wildcards but instead
wildcards build the value of result with some attribute from request or a
value of session, that's possible?
THanks in regard
--
Oscar
i´ve set the ui.theme to
simple, also you can see the error here (the url of google application):
https://anicetoapp2.appspot.com/
I don't know about this but i imagine that the solution is to override some
property value or something like that, or not?
Regards.
--
Oscar
http://www.javahowto.net/
--
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
--
Oscar
I've changed my appengine-web-app as you said but i still get the same
error. You can see it here (in a new application):
https://anicetoapp3.appspot.com/
Regards
2010/3/10 Lukasz Lenart
> 2010/3/10 Oscar :
> > Do you mean in web.xml right? Well, no. This is the web.xml as
some book about
critical applications development with struts 2 or you can give me some tips
to develop a secure application, also tips about struts and ssl, or if you
know internet resources that talk about that.
Thanks in advance.
--
Oscar
> Lastly, make sure you secure your application server... There is a
> > guide to hardening Tomcat here -
> >
> >
> http://cisecurity.org/en-us/?route=downloads.browse.category.benchmarks.servers.web.apache
> >
> > If you are not using tomcat, make sure you know
l: user-h...@struts.apache.org
>
>
>
--
View this message in context:
http://old.nabble.com/Struts2-on-Websphere-portal-6.1.0.0-tp18761735p282
87622.html<http://old.nabble.com/Struts2-on-Websphere-portal-6.1.0.0-tp18761735p282%0A87622.html>
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
--
Oscar Calderon
SCJP 6
http://www.javahowto.net/
le to avoid to do a second jsp? Can't i
just use the content of sx:div to rerender when i refresh it via ajax
instead render it using a second jsp?
Thanks in advance.
--
Oscar Calderón
SCJP 6
http://www.javahowto.net/
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
useful feature
>> is
>> >> implemented in struts 2.
>> >>
>> >> So what is the best solution to perform it ?
>> >>
>> >> I was thinking to an interceptor which unencrypt each request for each
>> >> action and a java function which encry the url in each jsp, but i'm not
>> >> sure
>>
ay to achieve this?
Best regards.
--
Oscar Calderón
SCJP 6
http://www.javahowto.net/
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
Felisberto :
> Create a servlet that makes a request to the action.
>
> Gustavo Felisberto
>
> On 23 de Jun de 2010, at 19:03, Oscar wrote:
>
>> Hi to all, i have the next situation: I need to call an action on
>> application startup like you can call a servlet on appl
ble to
tell tag to escape html like other tags, like this:
Or if somebody knows another solution?
Thanks and regards.
--
Oscar Calderón
SCJP 6
http://www.javahowto.net/
-
To unsubscribe, e-mail: user-unsubscr...
a security
plugin to avoid phishing or another plugin or library for J2EE applications
that achieves that?
Thanks in advance
--
Oscar Calderón
SCJP 6 <http://javahowto.net>
don't see what prevents
> those users from being duped into providing that keyfile to a phisher.
> https://www.sestus.com/vt/comparesitekey.asp
>
> It's a hard problem, and it mostly happens *outside* your app, so good luck
> solving it within your app. :-(
>
> -Dale
>
--
Oscar Calderón
SCJP 6 <http://javahowto.net>
T to be cached by web browser (using Cache-Content,
Pragma, Expires
###headers)
But it doesn't work. Somebody knows why doesn't work or another way to avoid
cache after i logout from a Struts application (to avoid show cached content
when user press Back button)?
Thanks
ogout from a Struts application (to avoid show cached content
when user press Back button)?
>
> Thanks in advance.
>
>
--
Oscar Calderón
SCJP 6 <http://javahowto.net>
nd comment is broken.
Regards.
2010/9/7 Paweł Wielgus
> Hi Oscar,
> You can find some info about this subject here:
>
> http://poulwiel.blogspot.com/2009/01/browser-back-button-and-caching-problem.html
>
> Best greetings,
> Paweł Wielgus.
>
> 2010/9/7 Oscar :
> > Hi
27;t know why.
Thanks in advance.
--
Oscar Calderón
SCJP 6 <http://javahowto.net>
/9/17 Dave Newton
> You only call prepareAfter if there aren't validation errors--if there are,
> it won't be called.
>
> On Fri, Sep 17, 2010 at 4:48 PM, Oscar wrote:
>
> > Hi to all. I'm working on a project using Struts 1.1 because those are
> > clien
> ...
>
> Of course you can execute code after that.
>
> *You're* executing code after that--but when there are validation errors
> the
> code you'll execute is the check to see if there were validation errors and
> the type check.
>
> On Fri, Sep 17, 2010 at 5:51 P
No, i was looking in the stack trace but there's no exception, just
redirects to input page.
2010/9/17 Dave Newton
> I'm skeptical--does the superclass throw an exception?
>
> On Fri, Sep 17, 2010 at 6:26 PM, Oscar wrote:
>
> > But i understand that, if there ar
mechanism?
Exist a way to tell struts 2 how to encode those characters?
Regards.
--
Oscar Calderón
SCJP 6 <http://javahowto.net>
mechanism?
Exist a way to tell struts 2 how to encode those characters?
Regards.
--
Oscar Calderón
SCJP 6 <http://javahowto.net>
Thanks Maurizio, but that's not the problem, because i have already this
header that is the same as yours:
<%...@page contentType="text/html" pageEncoding="UTF-8"%>
But i tried using your header and i get the same result.
Regards.
2010/9/27 Maurizio Cucchiar
Unicode (UTF-8)
Regards.
2010/9/27 Maurizio Cucchiara
> Struts 2 version?
> Which encoding do you see if you press CTRL+i on firefox?
>
> 2010/9/27 Oscar
>
> > Thanks Maurizio, but that's not the problem, because i have already this
> > header that is the s
e head section?
>
>
>
> Maurizio Cucchiara
>
--
Oscar Calderón
SCJP 6 <http://javahowto.net>
;UTF-8" contentType="text/html; *charset*=UTF-8" %>
>
> 2010/9/27 Maurizio Cucchiara
>
> > Which struts version are you using? Which application server? is it
> running
> > on linux or windows?
> > Did you try to insert meta tag inside head section?
t" to avoit the browser to reset the
request.
Thanks in advance.
--
Oscar Calderón
SCJP 6 <http://javahowto.net>
m is related with your AS.
> For instance, Tomcat have a disableUploadTimeout variable.
>
>
> Maurizio Cucchiara
>
>
> 2010/10/4 Oscar :
> > Hi to all, i have a question about a situation that i have in my
> > application. It's in Struts 1.1 . Basically, i ha
truts framework to save that file in some directory without the need to
write code to write the file in the web application's directory.
Regards.
--
Oscar Calderón
SCJP 6 <http://javahowto.net>
a project with
struts 2 but the client's infraestructure is a little bit old and it doesn't
have a powerful server so we have to enhace performance in the application.
Regards.
--
Oscar Calderón
SCJP 6 <http://javahowto.net>
perties, is an array of object, so i think that i have to specify the
index that will be listKey and listValue, but i don't know if that's
possible.
Regards.
--
Oscar Calderón
SCJP 6 <http://javahowto.net>
alize
resources once per application and set in application context for example,
or i have to look for other choices like Spring.
Regards.
--
Oscar Calderón
SCJP 6 <http://javahowto.net>
rut" wrote:
> Struts2 has its own Object creation way an Object factory which is
> responsible for creating all framework required objects
> like Actions,Interceptors Results etc.
>
> And its flexible enough if you want to let spring do this for Struts2 you
> can always do that
Anshuman Nanda
> www.eximware.com
>
>
>
>
> -----
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
--
Thanks,
Oscar
Hi...
It depends on what the objects mean on your system... exist
ApplicationAware, SessionAware and RequestAware interfaces...
You decide what to use in your design.
HTH
2009/7/8 Mitch Claborn
> What is the preferred method of caching arbitrary Java objects locally
> in a Struts application?
Hi...
Try to get the Ian Roughley's "Starting Struts2 online" ebook for free, and
study "PRODUCTIVITY TIPS" -> "Re-Using Action Configurations"... and see if
there are some other tips for you.
HTH
2009/7/8 Greg Lindholm
> > Greg Lindholm wrote:
> >
> >> The referer header will contain the URL
2009/7/8 Oscar Alvarez
> Hi...
>
> Try to get the Ian Roughley's "Starting Struts2 online" ebook for free, and
> study "PRODUCTIVITY TIPS" -> "Re-Using Action Configurations"... and see if
> there are some other tips for you.
>
An
ook in it,
> didn't found any good tip to solve my problem.
>
> Regards
> Louis
>
>
>
> ____
> From: Oscar Alvarez
> To: Struts Users Mailing List
> Sent: Wednesday, July 8, 2009 7:09:35 PM
> Subject: Re: dynamic return when
Have you try to put lists in lists???
may be it works...
another way can be if you put every item as a s:optgroup
HTH
2009/7/2 mlevin
>
> ** Many apologies if this goes through twice -- I posted a few hours ago
> and
> didn't see my own post show up yet **
>
> Hi folks,
>
> I'm having some tr
Hi!
I am having a very strange problem with struts 2. I am newbie to Struts 2
so maybe it is a simple thing I misunderstood.
I have an abstract class (enterprise) and 4 subclasses. I want to perform
CRUD operations on them and since all the properties are common to all the
subclasses I've decided
Hi,
Thank you for your quick reply. I tried your suggested syntax and didn't
work either.
However, I like a lot more your last proposal so I will give it a shot.
Thanks!
Oscar
On Tue, Mar 4, 2008 at 1:05 AM, Jeromy Evans <
[EMAIL PROTECTED]> wrote:
> oscar perez wrote:
> >
&
I don't know if struts 2 provides functionality for that but I've used acegi
for a scenario such as the one you described.
Oscar
On Tue, Mar 4, 2008 at 12:25 PM, David Loup <[EMAIL PROTECTED]>
wrote:
> Hi,
>
>
>
> I'm trying to have Struts 2 redirect over HT
refactoring of ActionContext and while I agree I cannot see
a quick-and-dirty workaround to solve this problem. How can I get a context
for running my tests now?
Thanks,
Oscar
his
mean I cannot access the parameters via the s:property tag or I cannot
access the parameters via any s tag at all?
Thank you in advance,
Oscar
plugin is outdated, What can we safely use? :) :)
On Wed, Apr 30, 2008 at 3:45 PM, Jeromy Evans <
[EMAIL PROTECTED]> wrote:
> oscar perez wrote:
>
> > Hi all,
> > I've been struggling trying to get working the s:include with the nested
> > s:params but I ha
ding the
page, this will run. But with s and sx tags it seems impossible to get both,
i.e. execute the scripts when loading the page and have the scripts
available for further use.
Is there any workaround for this?
thanks,
Oscar
On Fri, May 16, 2008 at 4:26 PM, Yoge <[EMAIL PROTECTED]> wro
don't find jhow to
fill the JSP table with data when is requested, because i can create an
aditional method in the Action that is associated with the FormBean of the
JSP but i don't know how to activate that method.
--
Oscar Calderon
Soluciones de desarrollo a bajo costo?
http://www.osca
the
scripts in the returned snippet those are not run if there is sx tags on it
so I really dont know whether there is a solution for my problem...
Br,
Oscar
don't have enough knowledge but after reading the
documentation and ajax recipes extensively I couldn't find any answer to any
of the above questions.
I've moved now to jQuery and all my problems are solved :)
Br,
Oscar
another alternative would be to use a normal anchor tag and via CSS to make
it look like a button..
On Wed, Sep 10, 2008 at 3:47 PM, Dan <[EMAIL PROTECTED]> wrote:
> Lukasz Lenart escribió:
>
>> As Don said, implement small form, only with submit button and you
>> wouldn't have to use JavaScript.
Hi!
I try to run the dot jar, but does not run...
C:\>java Struts2GUI-0.1-alpha.jar
Exception in thread "main" java.lang.NoClassDefFoundError:
Struts2GUI-0/1-alpha/jar
Caused by: java.lang.ClassNotFoundException: Struts2GUI-0.1-alpha.jar
at java.net.URLClassLoader$1.run(Unknown Source)
I think, you need to put a hiperlink or a button for start your action. Then
you need to retrieve the data from the db, generate the csv Stream or File
as you wish to call it. Then the only diference between a Servlet.doGet
method an Action.execute method is 2 parameters ActionMapping and
ActionFor
All depends on Licences of the dependencies i think.
Spring brings all its dependencies in the full distribution.
2008/12/15 mpeccorini
>
> Hi Oscar,
>
> The Release Notes
> (
> https://sourceforge.net/project/shownotes.php?group_id=247875&release_id=647398
2008/12/15 James Carr
> is there a way to provide default values for action parameters without
> having to set defaults in the actual target objects?
May be Preparable interface meets your requirement.
http://struts.apache.org/2.0.6/struts2-core/apidocs/com/opensymphony/xwork2/Preparable.html
What interceptor stack are you using?
The names you are using in form is present in your action???
2008/12/15 srinivasa_v .
> I have problem in uploading files,
> I have created a class with modle driven.and in jsp i mentioned form as
> encyrpt
>
> when i submit form I am getting form value
try puting a comparator in your action like this
public Boolean isPipeEditAction(){
return "|".equals(getEditAction());
}
and then test it in your view
2008/12/16 Dave Newton
> > Famoso Struts OGNL :-)!
>
> Or typical Java.
>
> OGNL one-ups Java, in fact, as OGNL will treat multiple cha
if you extend ActionSupport try getText("name.of.your.property")
2008/12/16 elyes sallem
> Hello,
> i wanna know how get back a property variable defined in ".properties" file
> from an exceute method, in the action class
>
> Regards
> Elyes.
>
t.setAttribute("id_evaluacion", et.getId());
errors.add("",new ActionError("mensaje_ejecucion", mensaje));
}
saveErrors(request, errors);
return new ActionForward(actionMapping.getInput());
JSP CODE:
any help will be apreciated.
Oscar
2008/12/17 Oscar Alvarez
> Hi All.
>
> I need to put a value in an ActionForm object, because of the edition use
> case of an mantainer (CRUD).
> Im using hibernate to save an object and hibernate assigns the id when
> save, and i need to put that value back in the ActionFo
.
> Thanks!
> -dave
>
Best Regards
Oscar
>
>
> -Original Message-
> From: Oscar Alvarez [mailto:listasdesarro...@gmail.com]
> Sent: Wednesday, December 17, 2008 2:50 PM
> To: Struts Users Mailing List
> Subject: Re: [S1] How to se
t; >>
> >> -
> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >> For additional commands, e-mail: user-h...@struts.apache.org
> >>
> >>
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
--
Thanks,
Oscar
.setValue(SimpleNode.java:246)
>>at ognl.Ognl.setValue(Ognl.java:476)
>>at
>> com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:197)
>>at
>> com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:393)
>>
>>
>> I have looked around and upgraded to Struts 2.1.2 and am still getting the
>> exception. Would it be possible if someone can advise me on what I am doing
>> wrong.
>>
>>
>> Thanks
>> Amin
>>
>
>
--
Thanks,
Oscar
Hi to all, this is my first question here. I have a doubt about the use of
OGNL expressions on JSP to access to an object that i declared in a
scriptlet in the same JSP.
I have the following code:
<%
AnObject obj = request.getSession().getAttribute(AnObject.OBJECT_NAME);
%>
page context, you need to actually add it to the context.
>
> musachy
>
> On Mon, Nov 9, 2009 at 1:47 PM, Oscar Calderón
> wrote:
> > Hi to all, this is my first question here. I have a doubt about the use
> of
> > OGNL expressions on JSP to access to an object that
Hi Matt, You could add to your action declaration in the struts.xml a
parameter called excluded methods, where you can add the name of the methods
of your action that you don't want to be validated, for example:
methodName1,methodName2
Even if your interceptor is a default interceptor like wo
it works fine,is this:
byte[] arrStream =
reportObj.getPdfReportStream("/reports/repDetalleRecarg.jrxml", parameters);
ServletOutputStream out = servletResponseObj.getOutputStream();
servletResponseObj.setContentType("application/pdf");
out.write(arrStream);
out.flush();
out.close();
Thank
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
--
Oscar Calderon
JAVA Tutorials and How to's? Visit http://www.javahowto.net/
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
Sorry, i had a problem so i can't answer. The Struts version is 2.0.11
El 3/10/2010 11:58 AM, Lukasz Lenart escribió:
2010/3/10 Oscar:
I've changed my appengine-web-app as you said but i still get the same
error. You can see it here (in a new application):
What version o
Ok, i'm going to do that and after that tell us if works.
Regards.
El 3/11/2010 8:52 AM, Lukasz Lenart escribió:
No problem, but I think you have to upgrade to latest version - 2.1.8.1
--
Oscar Calderon
JAVA Tutorials and How to's? Visit http://www.jav
rated html:
Standard
Superb
If I submit the form, Struts won't be able to rebuild the Car array
with its components.
This is what I expect the html to be:
Standard
Superb
How can I achieve that?
Am I on the right path?
Oscar
--
O
Hi Ansari,
Already tested the email in this URL?
http://struts.apache.org/1.x/faqs/validator.html
Best regards,
Oscar.
2012/2/21 danish ansari
> Hello there ,
> I am working on struts 1.2 validation.
> I am having a requirement which i am unable to implement.
> I am having two fie
Take a look at AppFuse.
http://appfuse.org/display/APF/Home
2012/7/5 Mitch Claborn
> I thought I saw a reference fairly recently to a Struts CRUD generator -
> generates a complete struts application for database manipulations. Can
> someone point me in the right direction?
>
> mitch
>
> -
You can use wildcard too.
Something like this:
/{*}.jsp
This takes advantage of ActionSupport and take the default result
(success) to your page.
2012/7/6 Łukasz Lenart
> 2012/7/6 Paul Benedict :
> > Is there any such shortcut in S2? It would be nice if such a thing
> existed like:
> >
Hi,
Can you please take a look at the issue I posted on github and let me know how
to solve this problem, so we can upgrade from 3.7.1 to 4.0.3.
Thanks,
Oscar
From: Nazario, Oscar
Sent: Friday, December 6, 2019 6:50 AM
To: struts-community-plugins/struts2-jquery
;
struts-community-plugins
93 matches
Mail list logo