Could you tel me in detail/example?
tks in advance
john
--- On Tue, 4/7/09, Sidharth Bhatia wrote:
From: Sidharth Bhatia
Subject: RE: how to initialize database connection pool in struts 2?
To: "'Struts Users Mailing List'" , w...@wantii.com
Date: Tuesday, April 7, 2009, 11:06 PM
You ca
Hi,
tag will always be rendered with "href" attribute. This will by
default add href attribute pointing to the absolute location of the
enclosing JSP page. I believe "list.jsp" is the enclosing page in ur case.
If you want to change that then u should use optional ref attribute with
either "pag
You can also use struts 2 spring capability and have the connection given to
you through dependency injection.
Sid Bhatia
"Try not. Do... or do not. There is no try" -- Yoda
_
_ mailto:sidharth.bhat...@gmail.com
-Original Message-
From: Wes Wannemacher [mailto:w
On Tuesday 07 April 2009 21:38:44 john lee wrote:
> in structs 1, in APPLICATION/WEB-INF/web.xml, i have the following line
>
>
> DBInit
> neuco.db.DBInitServlet
> 1
>
>
> to initialize/launch default databse connection pool, how can i do this in
> struts 2 ?
>
Hi,
In my JSP page I am setting the base target value in the header .
I am not setting the Href value anywhere in my application. But when I run
the application I checked the source for that JSP page. the base tag have
2 attributes href and target.
https://abc.com/Ebooks/./common/Li
in structs 1, in APPLICATION/WEB-INF/web.xml, i have the following line
DBInit
neuco.db.DBInitServlet
1
to initialize/launch default databse connection pool, how can i do this in
struts 2 ?
tks in advance
john
Hey there. You are still having issues with that form. Maybe I can help. I
have seen a couple different versions in your various posts, but on your
latest version you look to have it set up right.
In previous posts your action had a a ruleName and ruleDays property itself.
In there your gette
you dont need an interceptor as you wont be modifying request params
sub in date value when you declare it in Action class
java class
public class SomeAction extends DefaultActionSupport {
{
private Date date=new Date("2006-06-26");
public void getDate() { return date ; }
public setDate(Dat
I think you can use date formatters in java.text to accomplish this
with no coding.
On Apr 7, 2009, at 6:36 PM, PEGASUS84 wrote:
I want create an interceptors wich converts the list of select tag
mese in
another string:1,2...
i make this:
package bean;
import com.opensymphony.xwork2.Act
I want create an interceptors wich converts the list of select tag mese in
another string:1,2...
i make this:
package bean;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.Interceptor;
import com.opensymphony.xwork2.Action;
public class convMese impl
Pegasus84 -
Please do not take this the wrong way, but may I suggest you get a
book on Struts 2 (or seriously read the wiki) and perhaps a basic web
JSP development book. I am certainly guilty of asking basic questions
myself, but this list IMHO should not be a first go to. You need to at
least *t
2009/4/7 john lee :
> no error when startup the tomcat.
Could you try access directly HelloWorld.jsp? Like this
http://localhost:8080/jiong2/HelloWorld.jsp
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail:
2009/4/7 Roberto Nunnari :
> do the above scenario permit the use of xml validation?
It shouldn't be a problem, did you double check that validations files
were transferred to the server?
Regards
--
Lukasz
http://www.lenart.org.pl/
--
2009/4/7 Security Management :
> Struts 2.1.6, here's my action.
>
>
>
> addExceptionForm
> ${rule}
>
>
You shouldn't use custom objects as a params, Ognl will change them to
Object.toString()
> public class AddExceptionForm extends SMCBaseAction
>
2009/4/7 PEGASUS84 :
> good evening;
> I've this question:
> I want crate a select tag with a list of 31 days.
> I create a java class with an ArrayList with 31 days but how can insert this
> ArrayList into a list of the select tag?
Don't duplicate topics, it doesn't help! I already answered your
2009/4/7 PEGASUS84 :
> public class DataOre {
> List giorno=new ArrayList();
>
>
>
> public DataOre(){
> giorno = new ArrayList();
You already created list, not needed
> <%...@page import="bean.DataOre"%>
> listValue="giorno" />
You can't use that bean directly, it has to be returned by g
What's the role of your action in this? Do you have a getter that
returns the list? Do you use it in the select tag?
Nils-H
On Tue, Apr 7, 2009 at 7:14 PM, PEGASUS84 wrote:
>
> please can you say me any solution
> because i don't undestand the documentation
>
>
>
>
> Security Management wrote:
>
Hi guys.
I'm trying to use declarative xml validation but I'm having trouble.
This is the scenario:
- struts 2.0.11
- struts configuration with action name="*-*"
- ModelDriven actions
do the above scenario permit the use of xml validation?
Thank you.
Robi
---
in struts.xml flip struts.devMode to "true" e.g.
Martin
__
Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
sein, so bitten wir hoeflich um
no error when startup the tomcat.
--- On Tue, 4/7/09, Nils-Helge Garli Hegvik wrote:
From: Nils-Helge Garli Hegvik
Subject: Re: my first struts 2 HelloWord.action still not working
To: "Struts Users Mailing List"
Date: Tuesday, April 7, 2009, 1:18 PM
Do you have any errors in the log (error
Do you have any errors in the log (errors during startup)? Does the
tomcat manager show the application as running?
Nils-H
On Tue, Apr 7, 2009 at 6:52 PM, john lee wrote:
> please help me.
>
> after i did all the necessary configuration, i did the following
>
> http://localhost:8080/jiong2/Hello
1)what is IRule?
2)paramName="rule" is not declared
An example of passing a parameter (in this case id) to your Action Class
otherAction?id=${id}
where otherAction Action Class accomodates parameter id by
private int id; //attribute declaration
public int getId() { return this.id; } //
please can you say me any solution
because i don't undestand the documentation
Security Management wrote:
>
> From the documentation: http://struts.apache.org/2.0.14/docs/select.html
>
> "" List: Iterable source to populate from. If the list is a Map (key,
> value), the Map key will become t
>From the documentation: http://struts.apache.org/2.0.14/docs/select.html
"" List: Iterable source to populate from. If the list is a Map (key,
value), the Map key will become the option 'value' parameter and the Map
value will become the option body. ""
Now, you have list as "DataOre". This is
this is my bean
package bean;
import java.util.*;
public class DataOre {
List giorno=new ArrayList();
public DataOre(){
giorno = new ArrayList();
giorno.add("Sunday");
giorno.add("Monday");
giorno.add("Tuesday");
giorno.add("Wednesday");
giorno.add("
i repeat my question
i want populate the list from action tag whit ArrayList which is in a bean
without to use action.
Can i do?
--
View this message in context:
http://www.nabble.com/please-help-me-tp22933522p22933522.html
Sent from the Struts - User mailing list archive at Nabble.com.
--
please help me.
after i did all the necessary configuration, i did the following
http://localhost:8080/jiong2/HelloWorld.action
but, receive the following:
HTTP Status 404 - /jiong2/HelloWorld.action
type Status report
message /jiong2/HelloWorld.action
description The requested resource (/j
Thanks for the reply.
My actionName was addExceptionForm in the redirect, but the action xml
element was actually addException, so it was a dumb mistake.
The exception showing up was a red-herring, and I agree that having it say
"ERROR" is confusing as all hell, because I was on the wrong track f
Does it actually fail, or does it just print the exception in the log?
Do you have devMode on?
Nils-H
On Tue, Apr 7, 2009 at 6:08 PM, Security Management
wrote:
> Struts 2.1.6, here's my action.
>
>
>
> addExceptionForm
> ${rule}
>
>
>
> public cla
Struts 2.1.6, here's my action.
addExceptionForm
${rule}
public class AddExceptionForm extends SMCBaseAction
{
private IRule rule;
public IRule getRule()
{
return rule;
}
public void setRule(IRule r)
{
good evening;
I've this question:
I want crate a select tag with a list of 31 days.
I create a java class with an ArrayList with 31 days but how can insert this
ArrayList into a list of the select tag?
--
View this message in context:
http://www.nabble.com/tag-select-tp22931262p22931262.html
Sen
I have the following form:
I have the following method in the Action class that runs before this:
public IRule getRule()
{
return this.r;
}
Now, IRule has the following:
public String getRuleName();
public void setRuleName(String n);
public Integer getRuleDays();
public void setRuleDa
If it works with tomcat alone it is likely not a struts issue, but post your
apache cnfig from httpd.conf and workers.properties and server.xml from
Tomcat. We have had good experience with mod_proxy_ajp if you have control
of the apache server.
abed wrote:
>
> Hello,
> I have Apache-2.2 acting
OK, so it gets archived, I added the following to log4j.properties:
log4j.logger.ognl=DEBUG, A1
And put the following in struts.xml:
constant name="struts.devMode" value="true" />
Thanks Terry,
Mike.
-Original Message-
From: terry.gard...@sun.com [mailto:terry.gard...@sun.com]
Sent: Tue
Nice! I thnk I will definitely give it a try. Seems like are always
building something, we build a lot of smallish apps for the health system.
Is it in the sandbox? I haven't looked for it.
krosenvold wrote:
>
>
>
> dusty wrote:
>>
>> Back in December Blake was asking about reloading the
OGNL should catch the underlying log levels, try setting that to debug
or DEBUG or whatever.
On Apr 7, 2009, at 9:03 AM, Security Management wrote:
Is there a way to turn on debugging for OGNL for struts 2? I have a
form
field that is not getting set on my action's object, and one that
wo
Is there a way to turn on debugging for OGNL for struts 2? I have a form
field that is not getting set on my action's object, and one that works
fine. If I change the form from POST to GET I can see the correct name and
value in the URL. Is there a way to make the OGNL stuff spit out the
travers
Posting your whole file would help. From the last error, looks like it's a
spring issue.
Peep this:
http://static.springframework.org/spring/docs/1.2.9/reference/beans.html
3.19 shows the web.xml configuration for your applicationContext.xml
-Original Message-
From: john lee [mailto:s
Sanchayan,
You should have used a different post than using my post. Its called
thread jacking. Please post a new one.
Thanks
Sanchayan Bandyopadhay wrote:
>
> I have multiple user types in my application and for each such user type I
> intend to keep one specific struts-config.xml file.
>
dusty wrote:
>
> Back in December Blake was asking about reloading the config using
> JavaRebel. Does anyone have any experience with this working? They are
> advertising "Works great with Struts2" on their website. I was going to
> give it a try but wanted to know if anyone already did some
I have multiple user types in my application and for each such user type I
intend to keep one specific struts-config.xml file.
In my web.xml, I have declared them as ...
config
/WEB-INF/struts-default.xml
config/agents
/WEB-INF/struts-agents.xml
My application starts wit
2009/4/1 srinivasch :
>
> WEB0100: Loading web module [budsystem] in virtual server [server] at
> [/budsystem]
> Starting Servlet Engine: Sun-Java-System/Application-Server
> Parsing configuration file [struts-default.xml]
> Parsing configuration file [struts-plugin.xml]
> Unable to locate configur
42 matches
Mail list logo