Hi,
I'm new in struts and i'm searching if I can do something that i need using
struts 2.
The situation is that I have 2 or more "packages" of templates, in example:
1 template sized to 320x200 and other in 1280x756. All in the same
application, the only diference is that diferent clients can see
I've done some blog articles on integrating Spring and Struts 2, which
include some example applications you may want to study if you're not
familiar with how to use these two technologies together.
See:
http://www.brucephillips.name/blog/index.cfm/2009/3/7/Using-Spring-In-A-Struts-2-Web-Applica
My struts portlet is not forwarding to the correct page. Is this method of
forwarding not right?
Action class:
public class HoldFileInfoSearchAction extends DispatchAction {
public ActionForward init(ActionMapping mapping, ActionForm form,
HttpServletRequest request) throws Ex
Ah perfect, I was not aware this was the case. Thanks!
Jim Kiley wrote:
Put the JSP under /WEB-INF -- it is accessible to Struts routing but not
directly viewable by end clients.
jk
On Fri, May 15, 2009 at 2:36 PM, Timothy Orme
wrote:
Hello All,
I'm in the process of migrating pages f
Put the JSP under /WEB-INF -- it is accessible to Struts routing but not
directly viewable by end clients.
jk
On Fri, May 15, 2009 at 2:36 PM, Timothy Orme
wrote:
> Hello All,
>
>I'm in the process of migrating pages from JSP's using snippets to
> struts actions. I'm wondering how people
Hello All,
I'm in the process of migrating pages from JSP's using snippets to
struts actions. I'm wondering how people have disabled access to JSP's so that
they cannot be accessed outside of the action anymore.
Right now if I have an action like:
/priv
I gotta say, that sounds really cool.
thanks
musachy
On Fri, May 15, 2009 at 2:23 PM, tsattler wrote:
>
> Greetings all.
>
> I have posted the initial release of Struts2Builder over at SourceForge.
>
> Struts2Builder is a Java code generation system. It will log into an
> existing Postgres or M
Greetings all.
I have posted the initial release of Struts2Builder over at SourceForge.
Struts2Builder is a Java code generation system. It will log into an
existing Postgres or MySql database, examine the metadata, and automatically
generate a real, live, functioning Struts2 / Spring / Hiberna
when we all get rich and retire somewhere like ohio or florida.. in summer
i vote for ohio
BTW whats going on for merger of WebLogic and Glassfish?
http://search.oracle.com/search/search?start=1&nodeid=&fid=&keyword=GlassFish&group=Oracle.com
and yes this is definitely O/T!
Martin Gainty
_
Let me also point out that request.getRequestURI() correctly returns only the
URI (excludes query string) for both WebSphere 5.1 and 6.1 for a non-Struts
application. As such, both WebSphere 5.1 and 6.1 are correctly meeting
Servlet specification (not a surprise here). However, problem arises only
If you're using annotation-based results, and you extend ActionSupport, the
dummy action class is just a few lines -- it has no class body at all.
jk
On Fri, May 15, 2009 at 9:53 AM, Jim Collings wrote:
> I take it back. I only thought I had it figured out. I'll use the
> dummy action. I find it
I take it back. I only thought I had it figured out. I'll use the
dummy action. I find it distasteful but it seems the best way.
Jim C.
On Fri, May 15, 2009 at 9:07 AM, Jim Kiley wrote:
> What I've done in this situation is put in the dummy action. Inevitably I
> find myself needing some kind
it has to be friday because all I can think about is happy hour :)
musachy
On Fri, May 15, 2009 at 9:23 AM, Dave Newton wrote:
> Musachy Barroso wrote:
>>
>> It was added after 2.1.6 and it will be available in 2.1.7, here is the
>> ticket:
>>
>> https://issues.apache.org/struts/browse/WW-3051
>
Musachy Barroso wrote:
It was added after 2.1.6 and it will be available in 2.1.7, here is the ticket:
https://issues.apache.org/struts/browse/WW-3051
you need to set:
Yeah! That's the one.
Man--I am ***so*** glad it's Friday.
It's Friday, right?
(Which reminds me--I have WebLogic now, s
Robert Graf-Waczenski wrote:
Zoran Avtarovski schrieb:
We upgraded to 2.1.6 and I remember that the messages starting
appearing in
the logs.
Here are the two entries in my log4j properties file to restrict
output only
to errors:
log4j.logger.com.opensymphony.xwork2.ognl.OgnlValueStack=ERROR
Don't send it to *me*, send it to the list.
Dave
Dave Newton wrote:
You'll want to send plain-text emails or otherwise escape your XML,
otherwise all we see is this:
k_ocel wrote:
applicationContext.xml
Code:
Which makes figuring out
It was added after 2.1.6 and it will be available in 2.1.7, here is the ticket:
https://issues.apache.org/struts/browse/WW-3051
you need to set:
musachy
On Fri, May 15, 2009 at 9:09 AM, Robert Graf-Waczenski wrote:
> Zoran Avtarovski schrieb:
>>
>> We upgraded to 2.1.6 and I remember that th
la parola d'accesso dovrebbe essere uguale al
confirmPassword
for field-validation
we would need to see the interceptor stack you're using, and the action
configuration as earlier suggested
for a complete dia
Zoran Avtarovski schrieb:
We upgraded to 2.1.6 and I remember that the messages starting appearing in
the logs.
Here are the two entries in my log4j properties file to restrict output only
to errors:
log4j.logger.com.opensymphony.xwork2.ognl.OgnlValueStack=ERROR
log4j.logger.org.apache.struts2.
What I've done in this situation is put in the dummy action. Inevitably I
find myself needing some kind of pre-processing before the JSP is loaded up
-- even when I don't initially believe that I will -- and the dummy action
is the right place for it.
jk
On Fri, May 15, 2009 at 7:40 AM, Jim Colli
We upgraded to 2.1.6 and I remember that the messages starting appearing in
the logs.
Here are the two entries in my log4j properties file to restrict output only
to errors:
log4j.logger.com.opensymphony.xwork2.ognl.OgnlValueStack=ERROR
log4j.logger.org.apache.struts2.util.TextProviderHelper=ERRO
Zoran Avtarovski schrieb:
It¹s in 2.1.6.
In fact I was glad they were there and also to be able to get rid of them.
Z.
In 2.1.6 already? We're using 2.1.6, so then i'd like to know how i
would enable this.
Thanks,
Robert
--
We use them for the ajax calls, by having a standard structure across all
ajax calls it makes life easier. It¹s simple enough to construct your own.
You can even grab the source from S1.
Z.
>
> Hi,
>
> I am converting an app from Struts1 to Struts2. It is using LabelValueBean.
>
> I would like
Yeah Dave, I need more lib than struts default agree.
thanks
2009/5/12 Dave Newton
> David Canos wrote:
>
>> I have upgraded an application to Struts 2.1.6. and error says:
>> ClassNotFoundException:org.springframework.core.SmartClassLoader
>> I have used all the libs that are attached in struts
It¹s in 2.1.6.
In fact I was glad they were there and also to be able to get rid of them.
Z.
>
> Dave Newton schrieb:
>> > Robert Graf-Waczenski wrote:
>>> >> Are there any plans in a (current or) future version of Struts2 to
>>> >> enable such a behavior?
>> >
>> > That was added a month or two
Hello,
upload.jsp page upload files and forward request to jupload.jsp page,
but struts2 intercept the request and say multipartRequest error.
How to not exclude this page from interception by struts2?
these two pages work good in struts classic.
Thanks.
_
You'll want to send plain-text emails or otherwise escape your XML,
otherwise all we see is this:
k_ocel wrote:
applicationContext.xml
Code:
Which makes figuring out any problems really har
hi guys
We are suffering a very strange behavior of the submit tag in a theme=simple
form.
I'm using Struts 2.0.12 with i18n done following [1].
this s:submit give us empty value
if you replace code before to:
" />
it works properly always.
can anyone with me an idea plz?
of course, no warning
hi.
i have annother problem!
i have a web-app project!
spring 2.5.3
(spring-web, spring-jdbc, spring-tx, spring-mock, spring-orm, spring-beans,
spring-core, spring-context), struts2 2.1.6, jboss-5.0.1.
applicationContext.xml
Code:
Martin Gainty wrote:
the 3rd parameter is a map
extraContext - a Map of extra parameters to be provided to the ActionProxy
xwork is the higher authority since it is a base library..here is the doc from
xwork 1.2.3
S2 uses XW2.
apparently Struts Doc is out of synch with xwork doc
No.
Dave
There is. Create a simple action in your struts xml file and map it to the
framework class ActionSupport (com.opensymphony.xwork2.ActionSupport).
I haven't done this myself (although I have derived my actions from
ActionSupport). But I believe it will do what you want.
Cheers,
Steve
-Origin
seems to be a disconnect between xwork and struts
the 3rd parameter is a map
extraContext - a Map of extra parameters to be provided to the ActionProxy
xwork is the higher authority since it is a base library..here is the doc from
xwork 1.2.3
createActionProxyhttp://www.opensymphony.com/xwork/ap
Dave Newton schrieb:
Robert Graf-Waczenski wrote:
Are there any plans in a (current or) future version of Struts2 to
enable such a behavior?
That was added a month or two ago.
Dave
-
To unsubscribe, e-mail: user-unsubscr...
Here's a bit of clarification:
page-one.jsp which is in /content
|
\-page-two <--Have to use this to access page two because
it, also is in "/content". This means calling an empty "execute()".
|
\-page-two.jsp
|
\page-two <--Page tw
Jim,
The normal process is to call the action e.g.
Struts will then (eventually) call the actions execute () method. This
returns a string that is mapped to the correct jsp page using a file like
my-struts.xml. The mapping will look something like: -
/content/EverythingOK.jsp
Rama Roshni wrote:
I am converting an app from Struts1 to Struts2. It is using LabelValueBean.
I would like to know is it available in Struts2 / or any other class or
interface instead of LabelValueBean.
Not really. It's largely unnecessary, though.
Dave
-
Robert Graf-Waczenski wrote:
Are there any plans in a (current or) future version of Struts2 to
enable such a behavior?
That was added a month or two ago.
Dave
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For
So I have a jsp that needs to submit to another jsp. Both are in /content.
When I use file-name.jsp I get 404. When I use file-name, I get the action
that file-name.jsp submits to.
Any ideas on how I can work around this?
Jim C.
I use this successfully.
credential.passwordRepeat.toUpperCase().equals(credential.password.toUpperCase())
On Thu, May 14, 2009 at 2:11 PM, Dave Newton wrote:
> manub wrote:
>
>> - I'm not able to perform an equality check on two p
Hi,
I am converting an app from Struts1 to Struts2. It is using LabelValueBean.
I would like to know is it available in Struts2 / or any other class or
interface instead of LabelValueBean.
Thankx
Hi,
first off: Sorry for the rude subject, this is meant to be catchy in
order to gain as much feedback as possible.
We are using Struts2 more and more in our large and nontrivial
application. I'd like to once again raise attention to a phenomenon that
has already been complained about by va
newton.dave wrote:
>
>
> Include the complete field validation configuration, the interceptor
> stack you're using, and the action configuration.
>
> Dave
>
>
Hi Dave,
I solved it. Thanks. Now I've got another question, still about validation.
I'm trying to write a custom field validator
42 matches
Mail list logo