Yes, when I try casting it like you this,
User user=(User)getSession().get(Constantes.USER_SESSION_KEY);
I'm getting a ClassCastException.
The debugger clearly shows me the right name I'm waiting for.
It's very strange.
Meissa
wild_oscar [EMAIL PROTECTED]
19/09/2007 17:36
Veuillez répondre à
Try this :
var vDate = dojo.widget.byId(validateDate);
vDate.inputNode.value = '2007-01-01';
Andvar Woo wrote:
Thanks for your reply,but the problem still exists: the value do be set--a
alert statement shows
that,but the input box still displays nothing: just a blank,the
datetimepicker does
Hi Vinny,
I'd like users to access to my website by URLs like Ebay's:
http://listings.ebay.com/_W0QQcoactionZcompareQQcoentrypageZsearchQQcopagenumZ1QQfromZR2QQftrtZ1QQftrvZ1QQsabfmtsZ1QQsacatZQ2d1QQsaobfmtsZinsifQQsocmdZListingCategoryList
In which we can't see which one is get parameters which
I too found that DWR and Spring is a parallel architecture to Struts rather than
integrated. The current project I am working on is the first time where we have
3 separate front-ends that use the business layer (or 'facade'): web-services,
an Ajax app and a thin-client HTML Struts2 app.
The
Hi,
I am building a web application with Struts2 and Tomcat 5.5 as the web
container. One action parameter is passed as part of the URL and may
contain Unicode characters:
action name=article/* class=...
param name=title{1}/param
result/ShowArticle.jsp/result
/action
The s:url tag
Hello,
I'm using the Transaction Token in my Struts138 App. But it seems the
token has a very short lifetime. I guess about 1-2 Minutes. How can I
manually correct it?
My inactivity timeout is set to 20 mins - so my token should be set to
the same value.
Can someone tell me how and where?
I am developing a custom tag to retrieve some information and display it on
jsp pages.
My Tag class extends TagSupport, and on my doStartTag() method I retrieve
the HttpRequest like:
this.pageContext.getRequest();
Unfortunately, the result is a strutsrequestwrapper wrapped request. I have
A HttpServletRequestWrapper has a getRequest() method that returns the
wrapped request. Without knowing the specifics of the order or
implementation of you wrapping object, this might be what you need.
See
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequestWrapper.html
--- [EMAIL PROTECTED] wrote:
Yes, when I try casting it like you this,
User
user=(User)getSession().get(Constantes.USER_SESSION_KEY);
I'm getting a ClassCastException.
Make sure you're importing the correct User class;
if the User class in session is the correct type then
it's essentially
I had a strange experience last night! My web page parms were being set
onto my action's model until a null property was encountered. It seems one
of the web page fields was set to readonly and was not passed as a request
parm. The null property resulted in a new model object being constructed
Hi all,
I have a page which displays dynamic comboboxes.
The records from DB will be displayed in table and two fields are getting
displayed in comboboxes.
Now, there is one condtion in which if user changes something in first
combobox then value of second combobox should
that's exaclty what happened. I was importing a wrong User.
thank you.
Meissa
Dave Newton [EMAIL PROTECTED]
20/09/2007 13:47
Veuillez répondre à
Struts Users Mailing List user@struts.apache.org
A
Struts Users Mailing List user@struts.apache.org
cc
Objet
Re: can't cast an object back from
Hi all,
I would like to know if it possible to do extraction in mutiple
format(cxv,rtf etc ...) just like
display tag feature in s2.
thank in advance.
Meissa
L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut
etre tenu responsable de son contenu. Toute utilisation ou
I tried to exclude some pages from sitemesh decorator, but it seem that
sitemesh not able to recognise action path which has namespace. I have no
problem with pages stored in the folder or pages without namespace.
Any idea how to use namespace inside sitemesh decorator? Thanks.
The following is
Thank you for the info. The customHttpWrapper can be accessed like this:
HttpServletRequest r = (HttpServletRequest)this.pageContext.getRequest();
ServletRequestWrapper rq =
(ServletRequestWrapper)this.pageContext.getRequest();
CustomHttpWrapper wr =
start here
http://poi.apache.org/
for latest Excel formats support thru HSSF with Cocoon
http://poi.apache.org/hssf/index.html
M--
- Original Message -
From: [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Thursday, September 20, 2007 9:49 AM
Subject: excel export
Hi all,
I
Hi all,
I´ve been for two whole days treating with this issue, so I would be
very greateful if any help.
Well, I have a .jspx for my left tile of the page and then I have
another tile for the right side.
When the left side is loaded, it has 2 links:
- one called Try. If I click this
Hi,
I'm building a pagination functionality for a list. I'm rendering the page
list and want to highlight the current page.
What condition should be in the test attribute?
s:iterator value=resultsPageNumberList id=pageId
s:if test= . . . . .
s:url id=paginationLink
I use some css inside the web application I'm developing with Struts 2.
In one form I have some dateTimePicker fields. Unfortunately when I open a
calendar it is not formatted very well due to the fact that the table margin
and cell padding set in the css are different from the default one for
Check out this calendar. Very nice and easy to use
http://www.zapatec.com/website/main/products/prod1/
- Original Message
From: setecastronomy [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Thursday, September 20, 2007 4:43:53 PM
Subject: [S2] DateTimePicker and css
I use some
Why not using dojo api to clone the node?
div id=source
s:a theme=ajax href=${pruebaUrl} indicator=indicator
loadingText= targets=workspaceAjaxContent
Try
/s:a
/div
...
script type=text/javascript
function aver() {
var sourceNode = dojo.byId('source');
var targetNode =
Can i have some ideas here ?
Thanks
Maya menon [EMAIL PROTECTED] wrote:
Hi all,
I have a page which displays dynamic comboboxes.
The records from DB will be displayed in table and two fields are getting
displayed in comboboxes.
Now, there is one condtion in which if user changes
[EMAIL PROTECTED] on 20/09/07 12:55, wrote:
I had a strange experience last night! My web page parms were being set
onto my action's model until a null property was encountered. It seems one
of the web page fields was set to readonly and was not passed as a request
parm. The null property
ur requirement is to change contents of combobox 2, when a different option in
combobox 1 is selected ryt..
i think you can give id to each combobox,write an onchange event or something
similar to activate javascript
in javascript, get the selected option of combobox 1 by using
Hi. I have built Struts 2 from the head a few days ago. I am trying to move my
ajax code over to the new dojo plugin, but it doesn't seem to work for me. The
examples in the showcase do work, however I get an error when I try to add the
functionality to my own site.
The error seems to be
From the javadocs, this interceptor seems to have a relatively complicated
configuration that caters for situations over and above what I need relating to
message and error caching when redirects are involved.
A solution to simplify MessageStoreInterceptor would be where it puts the msgs
and
If I just write your code, the new link is created similar to the other
one, but when I click it nothing happens...
Do I have to register some event in dojo or sth like this?
Thank you very much.
Alvaro Sanchez-Mariscal escribió:
Why not using dojo api to clone the node?
div id=source
s:a
Thanks for the response Abhiram,
I tried using styleid,
But how do I give [use] dynamic styleids ? There should be some way to
retrieve the particular combobox for a particular row right ?
I tried using styleid=bean:write id=index where index is retrieved from
logic:iterator
I'm not sure I follow this 100%.
Are you saying that a single null propery being passed into the setter of
your model caused a whole new model object to be created?
So you have : firstName, lastName, and address1
address1 was read-only ( disabled or whatever you want to call it ).
your
My main doubt is how dojo knows what to do in the first case (when I
just use the s:a tag) and why it does not know what to do in the second
case (when I copy the resultant html from the 1st case to create a new
link). Because the resultant html is the same in both cases...
Thank you in
i dont know anything about struts 2, but with my 1.2, i have no probs giving
dynamic ids.
here is an idea.
inside ur jsp, keep incrementing a counter for every iteration.
%String s = combo_ + counter;%
give id as styleId=%=s
for two iterations, two combos with ids combo_1 and combo_2 will be
I got it Abhiram,
Used this
styleId=%=sp + index% index is the indexid from logic:iterator tag
Thanks again
Also I was getting styleId not using expressions error since yesterday.
Figured out this was because I was using
struts-html-el.tld instaed of
struts-html.tld
Hi there,
does anyone know in struts2 whether i can test if a file exists from my
template file i.e.
if fileExists(folder/image1) then ... show image1 else show image2
Thanks in advance
Leon
-
To unsubscribe, e-mail:
You could create a java File object for and then use an if tag to decide what
to display.
In you action class ...
public File getFile(){
// returns the file list
}
In your template ...
s:url var=imgUrl value=yourOtherImageFile /
s:if test=%{file.exists()}
s:url var=imgUrl
The context should never be null, is any other tag working for you
(ajax or non ajax)
musachy
On 9/20/07, Engelking, Nicholas [EMAIL PROTECTED] wrote:
Hi. I have built Struts 2 from the head a few days ago. I am trying to move
my ajax code over to the new dojo plugin, but it doesn't seem to
The context is not null, it just contains nothing (i.e. it's backing map has
and empty entry set). Regular struts tags work fine, such as property tags, url
tags, etc.
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: September 20, 2007 5:02 PM
To: Struts Users
Do you have the sx:head/ on your page?
musachy
On 9/20/07, Engelking, Nicholas [EMAIL PROTECTED] wrote:
The context is not null, it just contains nothing (i.e. it's backing map has
and empty entry set). Regular struts tags work fine, such as property tags,
url tags, etc.
-Original
Hi,
I am working on a Struts 2 page and page load times are way too high. I
tracked it down to the Struts head tag, which I have as follows: s:head
theme=ajax /
Without the tag, my page issues 3 requests and takes 453ms to load. With
the tag, the page issues 54 requests taking 12.24s to load.
I would actually love to know the answer to this problem because I am
working with something similar too. Thanks.
On 9/20/07, chengas123 [EMAIL PROTECTED] wrote:
Hi,
I am working on a Struts 2 page and page load times are way too high. I
tracked it down to the Struts head tag, which I have
If Dojo is being used for AJAX in this case, that's my guess. I know
from experience that Dojo, can issue a TON of requests even if you think
your only loading a small portion of it. Assuming this guess is
correct, Musachy, does S2 use a custom build of Dojo? If not, that
might be worth
To put it simple (and refresh my post as well :) , my question would be:
Can I pass an object as a macro parameter, and put it as a value of a form
element's name attribute which is generated inside the macro.
Any suggestions are welcome...
--
View this message in context:
I had the same issue... We use the ajax tabbed panel but no other dojo
widgets, but the s:head theme=ajax tag had dojo requiring all of the
dojo widget library.
This was causing our page to fire off 70+ requests when loading. As our app
needs to be accessed up to a thousand km away, tests showed
Hi
I would like to know whether it is possible to define super class name in JSP
file. Here is what my problem is:
Aformname is a form which extends Bformname (super class). A tile was created
with property names in
Bformname (super class). For defining id using
bean:define id=name
Hi Jason-
so by attentuating dojo includes you decreased initial load time for dojo
with the beneficial side effect of faster response to the browser?
Thanks/
Martin--
- Original Message -
From: Jason Wyatt [EMAIL PROTECTED]
To: 'Struts Users Mailing List' user@struts.apache.org
Arne,
How do I filter/add request parameters? In the old days (TM) I
simply added a filter, which wrapped a RequestWrapper around the
non-writable map. How can I do that now? The structure of the context
isn't quite clear to me, and I don't know where to set the new request
wrapper object...
Oguz,
You can perform a JSP include and get the rendered page.
Paul
On 9/19/07, Oguz Kologlu [EMAIL PROTECTED] wrote:
Hi,
Does anyone know how to execute an action on the server and get the
result on the server (without having to use something like commons
http client).
What I want is
Only on 2.1 Frank, if you set cache=true it will use a custom build
that includes the files needed by the S2 widgets. The first download
will be big but it will be cached by the browser.
To the OP: Are you using ajax? if not, don't set theme=ajax on head.
regards
musachy
On 9/20/07, Frank W.
Musachy, has this been fixed in 2.1? Are the number of requests
happening because we are using Dojo's lazy import feature?
Don
On 9/21/07, Musachy Barroso [EMAIL PROTECTED] wrote:
Only on 2.1 Frank, if you set cache=true it will use a custom build
that includes the files needed by the S2
I agree it could be made easier. I'd like to see it combined with a
flash scope-type interceptor so that more than just messages could be
passed via the session automatically.
As for your solution, you could implement the SessionAware interface
and get the session map directly, then you could do
Hi,
'request a process' mean i request on action thats i submit the page or
click the link for any one page. If you find the answer please help me?.
Thanks
K.Kalikumar
Laurie Harper wrote:
It's not clear what you're doing to cause the exception; what does
'request a process' mean?
Hi,
I think this is not a networking issue because if i was used in struts
1.1 here no error but if i am using in struts 1.3.5 i am getting this
error.If you find the answer please help us?
Thanks
K.Kalikumar
Paul Benedict-2 wrote:
An existing connection was forcibly closed by the remote
The OP should try that cache=true setting first obviously... I'd be
surprised if that didn't get rid of all the requests... we had exactly
the same experience in my current project, even though we're not using
S2, and we found the custom build solved the problem (in addition to
caching static
I'm not able to use the key within an s:if condition though..
Code :
s:iterator value=fundingmap.entrySet() status=fundingType
s:if test='%{key} == card'
/s:if
s:else
s:property value=%{key}/
/s:else
/s:iterator
It prints out the correct value in else condition but the comparison fails ;
please
I have the same problem. I'm using ajax and the response time of my pages
are
over 40s sometimes with the s:head theme=ajax / include.
Can someone tells me if this has been fixed in struts 2.1 ?
Is there a work around to this problem ?
Meissa
Frank W. Zammetti [EMAIL PROTECTED]
21/09/2007
[EMAIL PROTECTED] wrote:
s:head theme=ajax /
I don't even use ajax but rather xhtml. Why would it still include
all the Dojo stuff?
-Dale
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
55 matches
Mail list logo