Re: SELECT ... FOR UPDATE

2006-08-25 Thread Scott Van Wart
Konrad Billewicz wrote: I know that my problem hasn't do much with JBoss but I decided to post it here. If you know more suitable place, show me it please. I have a Session EJB deployed on JBoss. I'm using JDBCTemplate (from Spring framework) to connect with Oracle 9i database (defined as dat

SELECT ... FOR UPDATE

2006-08-25 Thread Konrad Billewicz
Hello, I know that my problem hasn't do much with JBoss but I decided to post it here. If you know more suitable place, show me it please. I have a Session EJB deployed on JBoss. I'm using JDBCTemplate (from Spring framework) to connect with Oracle 9i database (defined as datasource in JBoss

Re: [JAVA]How to get datatbase connection from lookup to datatsource name in a standalone java application

2006-08-25 Thread Scott Van Wart
Jimmy Emmanual wrote: 1. Bind datasource to a file system context try { Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory"); env.put(Context.PROVIDER_URL, "file:/C:/temp/jndi"); Problem with that is, if

Re: Tiles & JSP question

2006-08-25 Thread Monkeyden
Yes, Adam, you MUST be a little more cordial. If there's anyone you don't want to off, it's yourself. On 8/25/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: Adam Gordon wrote: > Duh > > I was thinking to myself how rude a reply this was... then I noticed the sender was the same. Nice

RE: [JAVA]How to get datatbase connection from lookup to datatsource name in a standalone java application

2006-08-25 Thread Jimmy Emmanual
1. Bind datasource to a file system context try { Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory"); env.put(Context.PROVIDER_URL, "file:/C:/temp/jndi"); // create the context Context context =

Re: Re: converting \n to with bean:write tag

2006-08-25 Thread Jerome Gagner
${fn:replace(variable,"\n",""} may do what you want. On 8/25/06, Laurie Harper <[EMAIL PROTECTED]> wrote: temp temp wrote: > I am using struts bean tag bean:write .Is there any option in the tag which converts \n character to No, there isn't. What's the use case you want this for?

Re: converting \n to with bean:write tag

2006-08-25 Thread Laurie Harper
temp temp wrote: I am using struts bean tag bean:write .Is there any option in the tag which converts \n character to No, there isn't. What's the use case you want this for? L. - To unsubscribe, e-mail: [EMAIL P

Re: Saving a bean in a specific context!!

2006-08-25 Thread Michael Jouravlev
On 8/25/06, vinicius <[EMAIL PROTECTED]> wrote: I know how to save a bean in the session context, doinh this: request.getSession().setAttribute("beanName",Object); But i don't find how I save a bean in the Aplicattion or page context!! Could someone help me?? Google surely can help to

Re: [Struts 2] Templating available like Tiles

2006-08-25 Thread Greg Reddin
On Aug 25, 2006, at 12:40 PM, Garner Shawn wrote: Is there templating available like Tiles where I can define a template JSP with a header,side menu, body, and footer and then just reuse it accross pages? Matt Raible created a solution[1] for WebWork using Tiles 2.0. I'm not sure if it wil

Saving a bean in a specific context!!

2006-08-25 Thread vinicius
I know how to save a bean in the session context, doinh this: request.getSession().setAttribute("beanName",Object); But i don't find how I save a bean in the Aplicattion or page context!! Could someone help me?? Thanks -- At.: Vinicius Dittgen Analista Programador - T.I. www.fcdl-rs.co

Re: [Struts 2] Templating available like Tiles

2006-08-25 Thread Ted Husted
There is a Tiles result in the distribution that you could try. * http://cwiki.apache.org/WW/tiles-result.html Once configured, in the struts.xml, you can refer to the tiles as if they were pages, just like Struts 1: userForm userList Or, so I'm told :) Many WW/S2 developers use S

Re: Problem with JSTL and Struts tag But Not with

2006-08-25 Thread Laurie Harper
Exactly. JSP does not allow a custom action to appear within another custom action's attribute values. is a custom action; is just an HTML tag. If you're using Servlet 2.4 / JSP 2.0 or above, you can achieve what you want like this: ">text L. Vishal Seth wrote: Nested tags...i guess

Re: [1.3] Session ActionMessages won't go away

2006-08-25 Thread Niall Pemberton
On 8/25/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: Niall Pemberton wrote: > Dam, looks like I missed updating the tiles version of the > chain-config.xml - the version in struts-core-1.3.5.jar has that > command. Could you file a JIRA issue for this please: > > https://issues.apache.org/struts

[Struts 2] Templating available like Tiles

2006-08-25 Thread Garner Shawn
Is there templating available like Tiles where I can define a template JSP with a header,side menu, body, and footer and then just reuse it accross pages? I see there are themes and templates in the documentation but it usually is simple pages or bits of code generated so I'm not sure if this can

Re: Struts war files

2006-08-25 Thread Frank W. Zammetti
I would suggest putting your JARs at the EAR level (root of the EAR) and reference them as utility JARs from the WAR. We've actually started to do this for ALL JARs in our EAR projects, just to avoid potential classloader issues in Websphere. Frank RathinaGanesh MeenakshiSundaram wrote: Gre

Struts war files

2006-08-25 Thread RathinaGanesh MeenakshiSundaram
Greetings, I have an ear project and have the following structure EAR |- EJB |- WAR | WEB-INF (Which has all the Struts jars...etc) Now, I want to include another web project(with a different context) within the same EAR project and need a structure like the following

converting \n to with bean:write tag

2006-08-25 Thread temp temp
I am using struts bean tag bean:write .Is there any option in the tag which converts \n character to - All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.

Re: [1.3] Session ActionMessages won't go away

2006-08-25 Thread Scott Van Wart
Niall Pemberton wrote: Dam, looks like I missed updating the tiles version of the chain-config.xml - the version in struts-core-1.3.5.jar has that command. Could you file a JIRA issue for this please: https://issues.apache.org/struts/browse/STR Okie, https://issues.apache.org/struts/browse/STR

Re: [1.3] Session ActionMessages won't go away

2006-08-25 Thread Niall Pemberton
On 8/25/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: Niall Pemberton wrote: > The functionality to automtaically remove messages cached in the > session was missing from Struts 1.3.x and only added recently in the > Struts 1.3.5 version: > >http://issues.apache.org/struts/browse/STR-2883 >

Re: Tiles & JSP question

2006-08-25 Thread Scott Van Wart
Adam Gordon wrote: Duh I was thinking to myself how rude a reply this was... then I noticed the sender was the same. Nicely done :). - Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [1.3] Session ActionMessages won't go away

2006-08-25 Thread Scott Van Wart
Niall Pemberton wrote: The functionality to automtaically remove messages cached in the session was missing from Struts 1.3.x and only added recently in the Struts 1.3.5 version: http://issues.apache.org/struts/browse/STR-2883 http://svn.apache.org/viewvc?view=rev&revision=412834 Are you

Re: Tiles & JSP question

2006-08-25 Thread Adam Gordon
Duh Adam Gordon wrote: Is there a way to retrieve a non-interpreted attribute value from a Tiles file? Specifically, if my Tiles def looks like this: Is there a tag I can use that will just return the String value of the above "body" attribute rather than trying to

Tiles & JSP question

2006-08-25 Thread Adam Gordon
Is there a way to retrieve a non-interpreted attribute value from a Tiles file? Specifically, if my Tiles def looks like this: Is there a tag I can use that will just return the String value of the above "body" attribute rather than trying to interpret it? Both the and

Re: Splitting validation.xml

2006-08-25 Thread Yujun Liang
Actaully, I am working on a Struts application which contains more than 100 actions and tiles and validation forms, it is extremely difficult to do version control if different things are touched. In order to better control the source code, I extended ActionServelt, TilePlugin and ValidationPlugin

error in mapping

2006-08-25 Thread Sonu S
hi 2 all, I am using dynaValidatiorForm in my application. i am getting some error related to mapping. i checked my code everything seems to be ok. My code is. in struts config: in JSP i am giving in web browser i am getting 400 Invalid path was

Re: Pass value from validation.xml to error message? Bob Harrison greenhorn Member # 122590 Pass value from validation.xml to error message? Bob Harrison greenhorn Member # 122590 Pass value from vali

2006-08-25 Thread Niall Pemberton
There isn't any way to do this. Also if there was a way theres a danger that by re-displaying what the user keys in you could be opening your app up to an XSS vulnerability: http://wiki.apache.org/struts/StrutsXssVulnerability Niall On 8/25/06, Robert Harrison <[EMAIL PROTECTED]> wrote: I can

Re: exception java.lang.IllegalArgumentException: No bean specified while using indexed properties

2006-08-25 Thread Puneet Lakhina
On 8/25/06, krishan rathi <[EMAIL PROTECTED]> wrote: Hi all I am getting following exception java.lang.IllegalArgumentException: No bean specified while using indexed properties in struts. MyForm Bean is public class ReportItemForm extends ActionForm { FormItem [] formItem=null; pu

Re: [OT] request.getServletPath() val not same in Filter & Servlet

2006-08-25 Thread pantichd
Here is what I came up with to get around this issue. Intead of using this: String requestedUrl = request.getServletPath(); I have started using this: String requestedUrl = hreq.getRequestURI().replaceAll(hreq.getContextPath(), ""); Does anyone know if there are any other issues (alwa

custom validation

2006-08-25 Thread Arun
Hi, I am about to design a form. When we type something is a text box the same should be added as a list item in the list box that lies below. The same value sould be inserted into the database so that it is persisted. I used html:optionCollection for that part along with dbcp connection poolin

Re: [OT] request.getServletPath() val not same in Filter & Servlet

2006-08-25 Thread pantichd
Hmm, that's a great tip. Wasn't aware of that. Now I just need to find out where that invoker servlet is defined on the Netweaver platform. Thanks! Scott Van Wart-2 wrote: > > pantichd wrote: >> Hello, >> >> Sorry for posting this in Struts mailing list but I can't seem to get an >> answer on

RE: [OT] request.getServletPath() val not same in Filter & Servlet

2006-08-25 Thread pantichd
The name of the app is 'app1' The 'servlet' part of the address is required by the App Server (or configurable somewhere that I don't know about). By the way, we're using SAP's Netweaver Developer Studio. As for the web.xml setting... The only thing I have in web.xml is this Servlet

Re: [OT] request.getServletPath() val not same in Filter & Servlet

2006-08-25 Thread Martin Gainty
Agreed- value contained in in web.xml will display the address M- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed.

Pass value from validation.xml to error message? Bob Harrison greenhorn Member # 122590 Pass value from validation.xml to error message? Bob Harrison greenhorn Member # 122590 Pass value from validati

2006-08-25 Thread Robert Harrison
I can't find an example of how to insert an invalid credit card number into the error message "errors.creditcard={0} is an invalid credit card number". I'm using Struts 1.2.8 Here's my validation.xml snippet: cCard ${ccnum} With the above snippet, the error message produced is: "${ccnum}

Re: one error when I use the dbcp in struts,

2006-08-25 Thread 黄叶
thx 在06-8-25,Antonio Petrelli <[EMAIL PROTECTED]> 写道: 黄叶 ha scritto: > hi, guys. > when I use the struts and dbcp for configure the database pool. > > if the data is very large, the tomcat always throw a exception: > > java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error > e

RE: Problem whith a select

2006-08-25 Thread José María Tristán
Thank you very much. -Mensaje original- De: Antonio Petrelli [mailto:[EMAIL PROTECTED] Enviado el: viernes, 25 de agosto de 2006 11:26 Para: Struts Users Mailing List Asunto: Re: Problem whith a select José María Tristán ha scritto: > Hello: > > I have a select where i have select

RE: Struts 1.2 and the Validator Framework, how does this work ?

2006-08-25 Thread Raghuveer
I think your Configuration Struts+Validator may be giving problem. -Original Message- From: Li [mailto:[EMAIL PROTECTED] Sent: Friday, August 25, 2006 1:02 PM To: Struts Users Mailing List Subject: Re: Struts 1.2 and the Validator Framework, how does this work ? did you configure your

RE: html:optionsCollection usage

2006-08-25 Thread Raghuveer
hi sheetal, A collection with labelvalue bean in Struts UTIL package would solve populating data automatically in DAO arlCompany.add(new LabelValueBean(resultSet.getString("Company_Name"),resultSet.getString("Company_ID"))); in ACTION if(arlCompaniesTemp != null && arlCompaniesTemp.size()>0){

Re: html:optionsCollection usage

2006-08-25 Thread Eider Iturbe
Hi, In order to use tag, you have to define and set a "Collection" type object in your ActionForm. In this object, you'll have your list. public class myFormBean extends ActionForm { private String idSelected = null; ... private Collection myList = new ArrayList(); ... } And the Collection is

Re: Struts 1.2 and the Validator Framework, how does this work ?

2006-08-25 Thread Niall Pemberton
Usually this error occurs when people upgrade to a later version of Struts, but forget to upgrade the validator-rules.xml to the one shipped with the new Struts version. http://wiki.apache.org/struts/StrutsUpgrade Niall On 8/25/06, Ingimar Erlingsson <[EMAIL PROTECTED]> wrote: Hello! trying t

exception java.lang.IllegalArgumentException: No bean specified while using indexed properties

2006-08-25 Thread krishan rathi
Hi all I am getting following exception java.lang.IllegalArgumentException: No bean specified while using indexed properties in struts. MyForm Bean is public class ReportItemForm extends ActionForm { FormItem [] formItem=null; public void setItem(int index, FormItem formItem){

Re: Problem whith a select

2006-08-25 Thread Antonio Petrelli
José María Tristán ha scritto: Hello: I have a select where i have select one value. When I submit the form the method get load this value. But, if after, I not select any value the method set don't is call. It seems to be a Struts issue: http://issues.apache.org/struts/browse/STR-

Re: [1.3] Session ActionMessages won't go away

2006-08-25 Thread Niall Pemberton
The functionality to automtaically remove messages cached in the session was missing from Struts 1.3.x and only added recently in the Struts 1.3.5 version: http://issues.apache.org/struts/browse/STR-2883 http://svn.apache.org/viewvc?view=rev&revision=412834 Are you using Struts 1.3.5? Als

Problem whith a select

2006-08-25 Thread José María Tristán
Hello: I have a select where i have select one value. When I submit the form the method get load this value. But, if after, I not select any value the method set don't is call. An example: MARC1 (Select)

Re: html:optionsCollection usage

2006-08-25 Thread sheetal
Bumia, Nirav (Cognizant) wrote: Hi can anybody tell me how to use tag I want to use it to dynamically generate the list options. Thanks. This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If

html:optionsCollection usage

2006-08-25 Thread Bumia, Nirav \(Cognizant\)
Hi can anybody tell me how to use tag I want to use it to dynamically generate the list options. Thanks. This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipien

Re: one error when I use the dbcp in struts,

2006-08-25 Thread Antonio Petrelli
黄叶 ha scritto: > hi, guys. > when I use the struts and dbcp for configure the database pool. > > if the data is very large, the tomcat always throw a exception: > > java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error > establishing socket. MS JDBC driver for SQL Server is very

Re: Forward to the same page

2006-08-25 Thread Antonio Petrelli
Thomas Hamacher ha scritto: How do I forward to the same page I was coming from? The typical example for this is the "change-language-problem". Someone is on one page and simply wants to change the language and expects to see the same page in a different language. Just an idea, tag has th

Re: Radio Button

2006-08-25 Thread krishan rathi
use the code given below cheers krishan rathi. sheetal <[EMAIL PROTECTED]> wrote: Hi, To prepopulate, list box , I had attached LabelValueBean, with the select's collection ,attribute ">property="value" labelProperty="label" /> But Does anybody knows how to associate l

Re: Creating a DynaBean from an ActionForm on the fly

2006-08-25 Thread Jakub Milkiewicz
Hi Look at common beanutils documentation. There is something called WrapDynaBean . 2006/8/23, Scott Van Wart <[EMAIL PROTECTED]>: Is it possible to get a DynaBean object

Re: Struts 1.2 and the Validator Framework, how does this work ?

2006-08-25 Thread Li
did you configure your app and validation framework properly? can you paste full stack of error? On 8/25/06, Ingimar Erlingsson <[EMAIL PROTECTED]> wrote: Hello! trying to get the validator framework in struts to work from within eclipse/exadel, using struts 1.2. following an example in the bo

Struts 1.2 and the Validator Framework, how does this work ?

2006-08-25 Thread Ingimar Erlingsson
Hello! trying to get the validator framework in struts to work from within eclipse/exadel, using struts 1.2. following an example in the book 'professional jakarta struts' from WROX , that is chapter 12, but always getting errors like the following. The example is a simple form, submitting a name