quite possible.
for this u need to define the object fruit in session scope. and in 1st page
say: vitamins, color can be filled. In 2nd page say: weight, age can be
filled and all the time the same object fruit in the session would be
filled.
http://struts.apache.org/2.x/docs/scope-interceptor
I want to write my custom tag because my aim is to get the href value
for the authorisation so that I can able to render the link according to
the conditions.
Thats why I am writing my own custom tag by extending struts anchor tag
class.
Now can you suggest me how I will get href value in my
We have an issue where we are trying to set up validation.xml files for
action invocations that contain slashes. From running a debugger on the
XWork code it would appear that if action com.mycompany.action.MyAction is
being executed via the url /context-root/package/MyAction/operation.action
that
This is a free event open to the general public. So, please forward
this announcement on to other interested parties. The full meeting
announcement including directions to meeting site at Google in Silicon
Valley is here:
https://sv-web-jug.dev.java.net/servlets/NewsItemView?newsItemID=5601
Advan
Kibo wrote:
Hi konference
I saw that struts2-archetype-starter for Maven use JUnit 3.8 dependency.
Why Struts2 already does not use JUnit 4.x ?
Probably the archetype has its origins before JUnit 4.x came out. Feel
free to submit a patch to update the archetype ;-)
Does it some problem whe
krishna chary wrote:
when I use intercepters in Struts.xml in Struts2 application for
validation,I got an
I'm not sure what that means. An example of your configuration would
have been helpful.
Exception starting filter struts
Unable to find interceptor class referenced by ref-name staticP
Zoran Avtarovski wrote:
Further digging found that file uploads work fine with all browsers except
Safari Mac. Safari windows is fine as is Opera, IE and the Mozilla Browsers.
Does anybody know a good debugging tool for Safari?
Nope, but there are a number of command-line tools that can give y
JKrishna wrote:
Hi,
We have a turbine web application. We want to add new features using
Struts2.
As struts2 uses servlet filters to serve the requests and the turbine
servlet serves the turbine requests, theortically this should work.
But tomcat gives "startup failed due to previous errors"
As far as I can see, most of that code is redundant; removing all the
noise, this would be completely equivalent:
package com.axis.tag;
import java.util.Properties;
import com.axis.utils.PropertyLoader;
public class MyAnchorTag extends AnchorTag {
@Override
public int doStartTag() throw
Actually, for me it was a tradeoff. Here are a few thoughts:
Good things about Sitemesh:
- Sitemesh does not have as much XML configuration as tiles, which was
very compelling (most configuration was maintained in the JSP page).
- Relatively simple to learn and simpler to maintain since most thi
Hi
i would like to know what is the best practice to handle exceptions in
Struts based applications.
I have defined ExceptionMappingInterceptor aka exception interceptor and it
works but it can not handle all kind of exceptions.
I would like to have various exceptions that can occur in various pa
2008/5/14 Kibo <[EMAIL PROTECTED]>:
> I read about Sitemesh and i dont find whay is Sitemesh for me better then
> Tiles 2.
>...
> Is it other reason why i have to use Sitemesh?
Why not using them both?
Essentially Sitemesh is better than Tiles in decoration: if you have a
web application in which
Hi konference
In Struts1 i used Tiles and i was satisfied. I saw that now in Struts2 it is
recomended use Sitemesh.
I read about Sitemesh and i dont find whay is Sitemesh for me better then
Tiles 2.
Maybe is Sitemesh better when:
- i need to decorate some old application
- i use other framework
Hi konference
I saw that struts2-archetype-starter for Maven use JUnit 3.8 dependency.
Why Struts2 already does not use JUnit 4.x ?
Does it some problem when i will use JUnit 4.x in Struts 2 apps?
Thanks very much.
-
Tomas Jurman
Czech Republic
--
View this message in context:
http://www
The action class does not have state information. Each request is handled by
a different object. If there are appropriate form input fields in the jsp,
struts params interceptor will call the getters and setters on form submit,
calling constructors and instantiating new objects for action fields if
>
> Yes
>
;-)
So, than, how can I use different methods from my Action class? Is it
possible?
Thanks in advance
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
http://jdn.pl/blog/416
http://www.lenart.org.pl/
Hi Laurie,
A silly mistake at my end. Had included a TD in CSS wherein text-transform
was set to capitalise. And I didn't pay much attention to this particular
attribute assuming that nothing would be there.
Thanks for your help
On Tue, May 13, 2008 at 10:32 PM, Laurie Harper <[EMAIL PROTECTED]>
Hi Randy,
yes, I already do that. Thx.
--
Milan
- Original Message
From: Randy Burgess <[EMAIL PROTECTED]>
To: Struts Users Mailing List
Sent: Wednesday, May 14, 2008 6:10:14 PM
Subject: Re: [Struts 2] Dojo datetimepicker - simple
I don't have direct experience with this particular tag
Hi,
because my jsp would be too complicated, I decided to move some controls to
another page. Actually I have just one object where I store data in my action
class (e.g., Fruit),
where in first jsp user enter about half information, and in second he enter
rest of the information
(but I want to us
Yes
On Wed, May 14, 2008 at 12:05 PM, Lukasz Lenart
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to use annotation to configure my action, but as I noticed, is
> only available in Struts 2.0.x. What about 2.1.x? The only option is to use
> Codebehind plugin?
>
>
> Thanks in advance
> --
> Lukas
I don't have direct experience with this particular tag but normally setting
the theme to simple will remove the generated tags.
Have you viewed the generated source? That will show you what is being
generated for you.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
Hi,
I'm trying to use annotation to configure my action, but as I noticed, is
only available in Struts 2.0.x. What about 2.1.x? The only option is to use
Codebehind plugin?
Thanks in advance
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
http://jdn.pl/blog/416
http://www.lenart.org.pl/
When I removed value part then it works. I don't need value part at all?
One more question, if I have two in how
can I format them to be shown one along another in jsp, and not one below
another as default ?
--
Thx, Milan
- Original Message
From: Milan Milanovic <[EMAIL PROTECTED]>
T
I also get this exception for this:java.text.ParseException: Unparseable date:
"fromDate"at java.text.DateFormat.parse(Unknown Source)
at org.apache.struts2.components.DateTimePicker.format(
at org.apache.struts2.components.DateTimePicker.evaluateParams(
at org.apache.struts2.components.UIBean.end
Hi,
I have in my action class Date field with get/set methods, and when I try to
show
datetimepicker in my jsp, like this:
It show only NaN.NaN.0NaN information in place of datetimepicker, and this
debug info:
DEBUG: invalid date string: fromDate
DEBUG: DEPRECATED: dojo.widget.DropdownDatePi
Hi Jim,
>I am unfamiliar with the various tags that can be used to display chunks of
>a table. I know they're out there (the display tag library comes to mind).
>The most recent time I had to do this I rolled my own; it was pretty
>painless. I held the data in a List of data objects, and then use
Hi,
I have in my action class Date field with get/set methods, and when I try to
show
datetimepicker in my jsp, like this:
It show only NaN.NaN.0NaN information in place of datetimepicker, and this
debug info:
DEBUG: invalid date string: pregled.odPeriod
DEBUG: DEPRECATED: dojo.widget.DropdownD
So all the action results are defined at the class level and used per
CRUD method. So if you define "input", "success", "page1", etc. at the
top, each of the CRUD methods can then choose which result to return.
Did you mean that you want annotations that map the action name to the
CRUD method
Yes.. told it in my question... i need to know if have some different way to
use one class to implement CRUD methods!!
On Wed, May 14, 2008 at 10:08 AM, Ian Roughley <[EMAIL PROTECTED]> wrote:
> Results are annotated at the class level, see
> http://struts.apache.org/2.0.6/docs/annotations.html
>
After further testing, it looks like even without tiles, the strut2
action mapping is not secured with Acegi/Spring Security (as of version
2.0.1, Struts version 2.0.11). As far as I can tell, it has to do with
the FilterDispatcher (Struts2) always forwarding to ActionProxy class to
process wor
Results are annotated at the class level, see
http://struts.apache.org/2.0.6/docs/annotations.html
/Ian
Felipe Lorenz wrote:
Hi.
Im try to use annotations for action results.
but, the annotations is for a class, not for each method in an class...
fallow this idea, for each CRUD operations i
Hi.
Im try to use annotations for action results.
but, the annotations is for a class, not for each method in an class...
fallow this idea, for each CRUD operations i need one actions class??? Or
have other way to do one action class for CRUD operations?
Felipe A. lorenz
www.idealogic.com.br
when I use intercepters in Struts.xml in Struts2 application for
validation,I got an
Exception starting filter struts
Unable to find interceptor class referenced by ref-name staticParams -
interceptor-ref -
file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps/CAMPUZZ/WEB-I
Further digging found that file uploads work fine with all browsers except
Safari Mac. Safari windows is fine as is Opera, IE and the Mozilla Browsers.
Does anybody know a good debugging tool for Safari?
Z.
I've found the same code on Struts2 web page.
Thanks anyway
2008/5/14 krishna chary <[EMAIL PROTECTED]>:
> use this code you will get session id
> code is
>
> ServletActionContext.*getRequest*().getSession().getId();
>
Agh.
Sorry I had to get that out. Thanks for the reply Laurie. You assumed right
no ajax and the error ws thrown on the redirect. I took your advice and
tried using firebug to get a look at the headers and to my surprise, it
works. So I tried IE, no problems again. It¹s only Safari that caus
Hi,
We have a turbine web application. We want to add new features using
Struts2.
As struts2 uses servlet filters to serve the requests and the turbine
servlet serves the turbine requests, theortically this should work.
But tomcat gives "startup failed due to previous errors" without any error
Actually my question is next, if my form store information to attribs of my
action class,
would another form for the same class store information to attribs of the same
class (but another
attribs) ?
--
Thx, Milan
- Original Message
From: Milan Milanovic <[EMAIL PROTECTED]>
To: Struts
Hi,
but how my action class is storing objects which are shown in jsp and also
it store objects inserted through jsp ? This mean that it have state
information ?
--
Thx, Milan
- Original Message
From: Jukka Välimaa <[EMAIL PROTECTED]>
To: Struts Users Mailing List
Sent: Wednesday, M
Hi,
but how my action class is storing objects which are shown in jsp and also
it store objects inserted through jsp ? This mean that it have state
information ?
--
Thx, Milan
- Original Message
From: Jukka Välimaa <[EMAIL PROTECTED]>
To: Struts Users Mailing List
Sent: Wednesday, M
Hi,
I need to define in struts.xml (or web.xml) some custom constants. How can I
use them from an action class.
Thanks
--
View this message in context:
http://www.nabble.com/Custom-constants-in-Struts2-tp17227202p17227202.html
Sent from the Struts - User mailing list archive at Nabble.com.
--
use this code you will get session id
code is
ServletActionContext.*getRequest*().getSession().getId();
Antonio Petrelli wrote:
2008/5/13 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
Hi all,
I want to show a system requirements page according to the web page's
locale.
Can I use the tiles-defs.xml to do it or I need to write code in a jsp?
You can use the Tiles-included locale support. You
2008/5/13 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
> Hi all,
> I want to show a system requirements page according to the web page's
> locale.
> Can I use the tiles-defs.xml to do it or I need to write code in a jsp?
You can use the Tiles-included locale support. You need simply to add
the loca
Laurie Harper wrote:
Dimitris Mouchritsas wrote:
Hi all,
I want to show a system requirements page according to the web page's
locale.
Can I use the tiles-defs.xml to do it or I need to write code in a jsp?
Thanks
I'm not sure what you want to achieve. If you just want to localize
the page,
45 matches
Mail list logo