Marco Musachy,
I tried adding includeParams=all, as suggested, but this just included the
params that were used to hit the page in the first place.
I managed to get something almost working now... The submit button causes
the form to be posted to the action and refreshes the tab correctly. The
Yes, This is what is happening, I seperated out the condition for userType
from getSession and it turns out that it is the userType and not the session
which is showing NULL and hence logs out.
The user type becomes null when the screen refreshes, so its a problem with
the refresh, this is what i
Hi,
what i think is, when your page refresh an action is called, in that action
you may be resetting or removeing this attribute or there must be some kind
of code that is resetting this, as of i know there is no setting in web.xml
or struts-config where you can set refresh settings.
http://struts.apache.org/2.x/docs/textfield.html
you must be looking at the wrong , tag
Thanks,
Nuwan
- Original Message -
From: tom tom [EMAIL PROTECTED]
To: struts 2.0 forum users user@struts.apache.org
Sent: Thursday, May 17, 2007 1:30 AM
Subject: Struts 2 migration ISSUES-
Hi,
They are inside the .jar files that comes with the struts dist,
Thanks,
Nuwan
- Original Message -
From: vikas rao [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, May 17, 2007 2:04 AM
Subject: Re: RE Displaytag
Where does one download
Hi,
Is this struts 2 or 1.x?
in struts 2., we can create a theme , i think this may help you, but i am
not sure this is the best solution for your problem
http://www.vitarara.org/cms/struts_2_cookbook/creating_a_theme
Thanks,
Nuwan
- Original Message -
From: Allen Gilliland
Thanks for all the replies.
If I place the tld file, I get no errors when inserting the %@ taglib
uri=/WEB-INF/displaytag-el-12.tld prefix=display % line in the jsp.
And the code completion features also works when I start writing
display:table..., but the IDE (NetBeans 5.5) still gives an
Dave Newton wrote:
--- [EMAIL PROTECTED] wrote:
Say, if I want to display an item's value from the
map, what is the syntax?
I tried this, but obviously this was too intuitive.
s:property value=someMap[someKey] /
That's what I do. With names changed to protect the
innocent, here's one of my
Dale Newfield wrote:
Gena Batsyan wrote:
As I said, if using chain, the whole load of parameters is applied to
the second action, which I want to avoid, I want it to get nothing
except of what I'm explicitly define.
It sounds like you're trying to use the wrong tools. You're looking
for a
I have an object with String variable body. In the body is a newline
character then some text. When this is being posted the newline seems to
be being trimmed is there any way to stop this please?
__
Ufi Limited
Registered in
2007/5/17, David Harland [EMAIL PROTECTED]:
I have an object with String variable body. In the body is a newline
character then some text. When this is being posted the newline seems to
be being trimmed is there any way to stop this please?
Posted? Where?
And what are you using? Struts 1 or
I am using struts 2. I have the following class
code
public class test1 {
private String body;
public void setBody(String body){
this.body = body;
}
public String getBody(){
return body;
}
}
/code
I have a jsp with a textarea whose name is body. The text contained in
body is
2007/5/17, David Harland [EMAIL PROTECTED]:
I have a jsp with a textarea whose name is body. The text contained in
body is newline then some text. The form is then posted to an action
that then writes it away to the database. If I then go back to view the
same page the newlline character has
I am doing the following validation. Middle newlines and newlines at the
end are preserved but newlines at the beginning are vanishing. I can see
the newline at the beginning being returned from the db and hibernate
but they disappear when displayed in the jsp.
field-validator
2007/5/17, David Harland [EMAIL PROTECTED]:
I am doing the following validation. Middle newlines and newlines at the
end are preserved but newlines at the beginning are vanishing. I can see
the newline at the beginning being returned from the db and hibernate
but they disappear when displayed
If you want to stay with checkboxlist you'll need to define your own theme
with a template for checkboxes separated by br/s.
You can find information on how to do it at;
http://cwiki.apache.org/WW/themes-and-templates.html
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL
I want to initialize torque in Struts2. I've got the code to initialize torque
and it works fine.
The problem is where do I put that code.
Is there a place like an init method which is called just once?
Thx all for your help.
Vinod
-
Hi all,
I have this problem since I started using struts 2 and I still cannot find
the solution. Please help me. :)
Note : I didn't write all the codes.
I have a form.
s:form
%-- order is a property in orderItem bean--%
s:set name=order value=orderItem.order/
s:label
Hi all,
I have a a very strange and critical pb with my struts 2.0.1 application
that makes my tomcat server shutdown everyday between 5:40pm and 6:30pm
approx. I'm sure that this come from my application since the pb does not
occur when I remove it.
tomcat is a 5.5.20, my jdk is 1.5-009.
When my
I forgot to mention something. I implemented Preparable interface. And in
prepare method I can get the order.id from request. But I don't want to get
the value from getRequest().getParameter(order.id) to create the bean and
put it again on the value stack. I expect it to populate order bean again
Here are the details:
My jsp is iterating over a list of Beans. Each bean contains a Map of
key/value pairs both Strings, and a property that reflects the item chosen
previously from the Map the key. On my list page, I want to display the
values that correspond to the keys selected.
Here is
Hi,
Do you have any classes which invoke System.exit()?
or do u have any spring scheduler which will terminate tomcat?
or any error occurred before tomcat shutdown?
Best regards,
MK Tan
On 5/17/07, walidito [EMAIL PROTECTED] wrote:
Hi all,
I have a a very strange and critical pb with my
Off the top of my head, this smells a lot like a supporting app is
unavailable at this time, causing the crash of Struts. All signs point
to your Database being down. Is this the time of day your DB is being
backed up?
Skip Hollowell
walidito wrote:
Hi all,
I have a a very strange and
Hi,
I'm a bit confused. I need to decide if I'll use Freemarker or Struts
taglibs, and I don't know the differences between both. E.g. what's the
difference between s:iterator and @s.iterator, s:url and @s.url,
etc etc...
I have seen all the tutorials and examples I have found working with
k hall wrote:
I really like Struts 2 but has anyone had any success in testing Struts
2's action validation logic?
I also really like Struts2 and have been suffering the same irritation with
testing validation logic.
Having spent a while stepping through the code, it appears that the
FreeMarker is a template engine, with it's own syntax. JSP tags can be used
in FreeMarker, adding some configuration. In the case of Struts tags, no
configuration is required, and you can use them like you would in JSP except
a few differences, see this for details:
Hi,
I am using struts 1.3.8. I have menu buttons on the left side of the page.
What I have to is when I click the menu a submenu should open below it. Can
anyone please help me how to do this in struts without refreshing page.
Any help is appreciated.
Thanks and Regards
Viplav Kallepu
Hello,
I have an action with a prepare method. The prepare method loads some
objects to operate on for the editing, so I have the interceptor stack
setup with the params, prepare, params interceptors. My prepare method is
public void prepareCreate () {
if (m_projectId == null) {
What is a typical interceptor-stack for a Tiles app? I'm extending
tiles-default now and things work okay. However, it seems awful slow! How
much of this performance problem might have to do with struts.devMode =
true?
--
Scott
[EMAIL PROTECTED]
Anyone please...
newtostruts struts [EMAIL PROTECTED] wrote: I want to initialize torque in
Struts2. I've got the code to initialize torque and it works fine.
The problem is where do I put that code.
Is there a place like an init method which is called just once?
Thx all for your help.
yeah, this is for struts2. that's a shame, hacking my own theme just so
that my list gets formatted vertically seems overkill :(
-- Allen
Nuwan Chandrasoma wrote:
Hi,
Is this struts 2 or 1.x?
in struts 2., we can create a theme , i think this may help you, but i
am not sure this is the
Try this:
in struts-config.xml put this
plug-in className=comYourPlugin
/plug-in
And then define YourPlugin as:
...
import org.apache.struts.action.PlugIn;
public class YourPlugin implements PlugIn {
public void destroy() {
// holder for things to do
--- newtostruts struts [EMAIL PROTECTED] wrote:
newtostruts struts [EMAIL PROTECTED] wrote: I
want to initialize torque in Struts2. I've got the
code to initialize torque and it works fine.
The problem is where do I put that code.
Is there a place like an init method which is called
just
I agree! I would use checkboxes instead of a checkboxlist rather than
write my own theme. I did something like that recently:
ul
s:iterator value=questions
li
s:checkbox name=assignedQuestionIdMap[%{id}]/jsp:include
page=/web/includes/question.jsp/
/li
/s:iterator
/ul
On
Larry thanks for the reply.
I'm in Struts2 mode and I don't see a PlugIn interface anywhere.
Also, I read this on apache site ' Struts 1 provides a plugin class that
provides listener-like capabilities. The Struts 2 plugins are like Eclipse or
FireFox plugins, and not at all like
Dave,
I don't really have any preferrence at this time, I'll use anything that'll
work :o)
Could you please explain the ' context listener ' method you follow.
Thx
Dave Newton [EMAIL PROTECTED] wrote:
--- newtostruts struts wrote:
newtostruts struts wrote: I
want to initialize
Hi, I'm new to struts and liking what I've seen so far. I'm building a toy
application to learn the framework (A simple blogging app). I have an action
with a view() method that returns the string view. What happens is that a
link is clicked to view details about a particular blog, and a request
Then I have no clue other than newton.dave's approach ...
-Original Message-
From: newtostruts struts [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 17, 2007 2:46 PM
To: Struts Users Mailing List
Subject: RE: Init methods in Struts
Larry thanks for the reply.
I'm in Struts2 mode
--- newtostruts struts [EMAIL PROTECTED] wrote:
Could you please explain the ' context listener '
method you follow.
First one I found:
http://www.stardeveloper.com/articles/display.html?article=200901page=1
(Also has stuff about session listeners, but you can
ignore that.)
d.
--- Will Smith [EMAIL PROTECTED] wrote:
Everything works as expected, but I noticed that
when
the Blog_view view is rendered, my navigation links
now have that request parameter appended to them
when
the don't need it.
http://struts.apache.org/2.x/docs/url.html
See the includeParams
Gena Batsyan wrote:
Why not, we have two actions with absolutely distinct purposes, one for
entry creation and another for entity listing, but the listing has a
little feature to display messages.
If you have two actions you want to expose to your users, then by all
means they should both be
Dave,
That works great. Thank you so much.
Dave Newton [EMAIL PROTECTED] wrote:
--- newtostruts struts wrote:
Could you please explain the ' context listener '
method you follow.
First one I found:
http://www.stardeveloper.com/articles/display.html?article=200901page=1
i am having a strange problem with doing file uploads using a custom
interceptor stack. basically, if my custom interceptor stack does not
directly reference the defaultStack then i am not getting request
parameters from my multipart requests. the easiest way to describe it
is by showing.
I would like to see an example of using S2 tags to populate a few controls
once an item is selected from a combo box. Does someone have a cookbook for
this without giving me a bloody nose?
--
Scott
[EMAIL PROTECTED]
It must be some configuration issue. My simple application works fine in
Windows environment, but
we get this error on Sun Solaris. We use Sun App Server 8.2 and 8.1
accordingly. I failed to reproduce the problem on Windows, so this can be
just Solaris issue. I am sure that I reach the struts.xml
On 5/17/07, Dave Newton [EMAIL PROTECTED] wrote:
--- Will Smith [EMAIL PROTECTED] wrote:
Everything works as expected, but I noticed that
when
the Blog_view view is rendered, my navigation links
now have that request parameter appended to them
when
the don't need it.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Vikas,
vikas rao wrote:
Hi,
I am working on a bug in my application, the problem is, the session
expires
every 2 minutes or so and I have to log back in to continue, this is very
frustrating.
Do you have cookies enabled or are you using URL
You need to check the Sun App Server logs to see if there is any more
specific error detail there. If that doesn't give you enough information
to resolve the problem, you may need to configure Log4j in your webapp
to get Struts logging output.
L.
sr wrote:
It must be some configuration
--- Will Smith [EMAIL PROTECTED] wrote:
Is this something that is commonly needed?
Actually, I don't really know... Personally I think
defaulting to *not* including params would make more
sense as that is expected behavior.
*shrug*
d.
[EMAIL PROTECTED] wrote:
Here are the details:
My jsp is iterating over a list of Beans. Each bean contains a Map of
key/value pairs both Strings, and a property that reflects the item
chosen
previously from the Map the key. On my list page, I want to display
the
values that correspond to
אלחנן מעין wrote:
first of all , i know it's not all or nothing, i know that struts2 has a
plug-in for jsf, my question ism why? what does JSF connection to
struts2 gives me? i know that struts2 tags give me automatic validation
messages atttached to each control, automatic layout (too
You could point your input result to the same action you use to populate
the form in the first place. That way you can do the same data
pre-fetching on validation failure as you do on first displaying the form.
The other alternative would be to make sure all data you want to have
available is
2007/5/18, Laurie Harper [EMAIL PROTECTED]:
You could point your input result to the same action you use to populate
the form in the first place. That way you can do the same data
pre-fetching on validation failure as you do on first displaying the form.
how do you point to the previous action
Hello guys,
I'm getting this problem (an old problem I haven't seen since my first days
with Struts).
The problem occurs during my Maven2 Test Goals. (I'm using StrutsTestCase).
Right now I've been going on for the entire afternoon and I don't find my
problem.
Here is my checklist for this
I want to use ajax submit buttons to refresh tabs, but when ajax theme is
set, the buttons are wrapped in additional tr and td tags. This is doing
interesting and unhelpful things to our page layout.
This submit tag:
s:submit name=save value=Save formId=stcSearchForm
I need away to redirect to Action1 parameters and after processing and
creating an object, I need to pass this object to Action2 for further
processing.
That's what I am doing:
action name=getAccount class=action.AccountAction
method=getAccountById
result name=success
1)first instinct says to change the 'theme' as soap themes typically
interact with div tag
OR
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/JspContext.html
2)override the setContext with a new context (JspContext) where
the JspContext you are creating has the selected attributes
It's working now. I just changed the redirect-action to chain. I don't
know what's the difference, but it's working.
Mansour wrote:
I need away to redirect to Action1 parameters and after processing
and creating an object, I need to pass this object to Action2 for
further processing.
--- Martin Gainty [EMAIL PROTECTED] wrote:
1)first instinct says to change the 'theme' as soap
themes typically interact with div tag
I think he means ajax.
I don't know which bits of the ajax are rendered by
the tag template. The idea is correct; if you don't
want the extra decorations you'll
--- Mansour [EMAIL PROTECTED] wrote:
It's working now. I just changed the redirect-action
to chain. I don't know what's the difference, but
it's working.
I'd recommend exploring the differences a bit more;
there might be some important things to learn about
how HTTP works, the nature of
Hi,
I am using bean:write tag to display properties
(return type Double) of my form bean.
I am also using formatKey attribute to format the
output.
This is the format key I have mentioned in
ApplicationResources.properties file.
display.currency=#,## 0.00
Formatting works fine. But negative
No, I didnt use URL rewriting or cookies, session.setAttribute() was used,
but that wasnt the problem, i figured it out, the problem was that there was
somehow there was this :
window.event.clientx and clienty rules in the jsp page which, if true, would
take the control to the log out page and
I have the same problem using jboss, how is your action writed ?
Herrera
sudeepj2ee wrote:
HI
I am using jetty server and the zip file download part of showcase is not
working in the jetty its giving the following error-:
java.lang.IllegalArgumentException: Can not find a
i warned you about this :)
- Original Message -
From: vikas rao [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Friday, May 18, 2007 2:59 AM
Subject: Re: Session Expires too early! Help!
No, I didnt use URL rewriting or cookies, session.setAttribute()
Hi,
the bean:write is using the
http://java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormat.html to
format number, you can get a idea from this page how to format numbers,
Thanks,
Nuwan
- Original Message -
From: chamal desilva [EMAIL PROTECTED]
To: user@struts.apache.org
65 matches
Mail list logo