I webshpere Struts

2003-09-18 Thread Abhijeet Mahalkar
Is there anybody working on struts -- websphere server architecture i have few queries 
regarding deploying the complete module using JSp-- structs -- sessionbeans --- 
entitybeans --- Database architecture it's not getting deployed properly... 
can anyone guide me to get the proper link on this...

thanks
abhijeet


- Original Message - 
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 18, 2003 2:56 PM
Subject: RE: calls each method twice , logging everthing twice?


I had a similar bug in IE6 where I had a submit button that invoked a js
method that did some stuff and then called form.submit(). In IE5 Id only
have one submission, but in 6 it would do the submission from my call to
submit() AND do the submit buttons submit as well.

-Original Message-
From: Raju, Saravanan [mailto:[EMAIL PROTECTED]
Sent: Thursday, 18 September 2003 16:09
To: Struts Users Mailing List
Subject: RE: calls each method twice , logging everthing twice?


please check that you are not submitting the form twice using java script or
so.

one in onSubmit handler and other progrmatically using form.submit();


> Thanks,
> --
> Saravanan Raju
> Sr.Analyst
> SYNTEL (India) Ltd.
> Chennai Development Centre
> Tel: +91-44-22301101 (Board) Extn : 202
> Fax: +91-44-22300369
> e-mail :  mailto:[EMAIL PROTECTED]
> Website:  http://www.syntelinc.com
> --
>
>
>
> -Original Message-
> From: Andrew Hill [SMTP:[EMAIL PROTECTED]
> Sent: Thursday, September 18, 2003 12:15 PM
> To: Struts Users Mailing List
> Subject: RE: calls each method twice , logging everthing twice?
>
> It looks as though the browser is sending two requests for the page.
>
> Not familiar with tiles so am not sure about the exception your getting
> though.
>
> -Original Message-
> From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 18 September 2003 14:26
> To: Struts Users Mailing List
> Subject: calls each method twice , logging everthing twice?
>
>
> hi,
> we are using jdeveloper as ide , and struts as framework ,,
> I dont know when it is started but in debug mode it calls each method
> twice
> (calls action class execute method twice ) and struts gives followig
> message
> after calling my first action class (loginAction)  ,,
> it seccessfull execute and fiinds mapping for the login,,
> but gives the following message while sending response to the client,
> is there anybody encountered with this problem ?
>
> here is the STRUTS log info, as you can see it does processActionForward
> twice
>
> [INFO] RequestProcessor - -Processing a 'POST' for path '/Login'
> [INFO] RequestProcessor - -Processing a 'POST' for path '/Login'
> processActionForward(/pages/bireysel/common/welcome.jsp, false)
> processActionForward(/pages/bireysel/common/welcome.jsp, false)
>
>
> ERROR on the browser:
>
> java.lang.NullPointerException
> org.apache.struts.tiles.ComponentDefinition
> org.apache.struts.tiles.xmlDefinition.FactorySet.getDefinition(java.lang.S
> tr
> ing, javax.servlet.ServletRequest, javax.servlet.ServletContext)
> FactorySet.java:156
> org.apache.struts.tiles.ComponentDefinition
> org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper.getD
> ef
> inition(java.lang.String, javax.servlet.ServletRequest,
> javax.servlet.ServletContext)
> ComponentDefinitionsFactoryWrapper.java:56
> boolean
> org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(java.
> la
> ng.String, boolean, javax.servlet.http.HttpServletRequest,
> javax.servlet.http.HttpServletResponse)
> TilesRequestProcessor.java:175
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

Confidential:  This electronic message and all contents contain information
from Syntel, Inc. which may be privileged, confidential or otherwise
protected from disclosure. The information is intended to be for the
addressee only. If you are not the addressee, any disclosure, copy,
distribution or use of the contents of this message is prohibited.  If you
have received this electronic message in error, please notify the sender
immediately and destroy the original message and all copies.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: I webshpere Struts

2003-09-18 Thread Ruben Carvalho
I've just started developing a new project using Websphere IDE but the application 
will run on Weblogic. We're using the TestServer that comes with Websphere and we're 
having the same problem with the Database access, using entity beans. Eventhough the 
server has the JNDI names configured properly, I keep getting an exception saying that 
the JNDI name can't be found. I manage to call the session beans in my web module but 
no entity beans.
 
Is there anybody using this arquitecture?
 
Thanks
 
Rúben Carvalho

-Mensagem original- 
De: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] 
Enviada: qui 18-09-2003 11:29 
Para: Struts Users Mailing List 
Cc: 
Assunto: I webshpere Struts 



Is there anybody working on struts -- websphere server architecture i have few 
queries regarding deploying the complete module using JSp-- structs -- sessionbeans 
--- entitybeans --- Database architecture it's not getting deployed properly...
can anyone guide me to get the proper link on this...

thanks
abhijeet


- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 18, 2003 2:56 PM
Subject: RE: calls each method twice , logging everthing twice?


I had a similar bug in IE6 where I had a submit button that invoked a js
method that did some stuff and then called form.submit(). In IE5 Id only
have one submission, but in 6 it would do the submission from my call to
submit() AND do the submit buttons submit as well.

-Original Message-
From: Raju, Saravanan [mailto:[EMAIL PROTECTED]
Sent: Thursday, 18 September 2003 16:09
To: Struts Users Mailing List
Subject: RE: calls each method twice , logging everthing twice?


please check that you are not submitting the form twice using java script or
so.

one in onSubmit handler and other progrmatically using form.submit();


> Thanks,
> --
> Saravanan Raju
> Sr.Analyst
> SYNTEL (India) Ltd.
> Chennai Development Centre
> Tel: +91-44-22301101 (Board) Extn : 202
> Fax: +91-44-22300369
> e-mail :  mailto:[EMAIL PROTECTED]
> Website:  http://www.syntelinc.com
> --
>
>
>
> -Original Message-
> From: Andrew Hill [SMTP:[EMAIL PROTECTED]
> Sent: Thursday, September 18, 2003 12:15 PM
> To: Struts Users Mailing List
> Subject: RE: calls each method twice , logging everthing twice?
>
> It looks as though the browser is sending two requests for the page.
>
> Not familiar with tiles so am not sure about the exception your getting
> though.
>
> -Original Message-
> From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 18 September 2003 14:26
> To: Struts Users Mailing List
> Subject: calls each method twice , logging everthing twice?
>
>
> hi,
> we are using jdeveloper as ide , and struts as framework ,,
> I dont know when it is started but in debug mode it calls each method
> twice
> (calls action class execute method twice ) and struts gives followig
> message
> after calling my first action class (loginAction)  ,,
> it seccessfull execute and fiinds mapping for the login,,
> but gives the following message while sending response to the client,
> is there anybody encountered with this problem ?
>
> here is the STRUTS log info, as you can see it does processActionForward
> twice
>
> [INFO] RequestProcessor - -Processing a 'POST' for path '/Login'
> [INFO] RequestProcessor - -Processing a 'POST' for path '/Login'
> processActionForward(/pages/bireysel/common/welcome.jsp, false)
> processActionForward(/pages/bireysel/common/welcome.jsp, false)
>
>
> ERROR on the browser:
>
> java.lang.NullPointerException
> org.apache.struts.tiles.ComponentDefinition
> org.apache.struts.tiles.xmlDefinition.FactorySet.getDefinition(java.lang.S
> tr
> ing, javax.servlet.ServletRequest,

RE: I webshpere Struts

2003-09-18 Thread Kazda Juraj
I'm using this architecture and everything works... What kind of JNDI name it can't 
find? Bean or Datasource? Do you really have declared in web.xml and implemented 
corresponding interfaces (ie. local reference vs local interface)?

In case of local, are you using in your code "java:comp/env" namespace?

-juraj.


 

-Original Message-
From: Ruben Carvalho [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 18, 2003 12:48 PM
To: Struts Users Mailing List
Subject: RE: I webshpere Struts

I've just started developing a new project using Websphere IDE but the application 
will run on Weblogic. We're using the TestServer that comes with Websphere and we're 
having the same problem with the Database access, using entity beans. Eventhough the 
server has the JNDI names configured properly, I keep getting an exception saying that 
the JNDI name can't be found. I manage to call the session beans in my web module but 
no entity beans.
 
Is there anybody using this arquitecture?
 
Thanks
 
Rúben Carvalho

-Mensagem original- 
De: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] 
Enviada: qui 18-09-2003 11:29 
Para: Struts Users Mailing List 
    Cc: 
Assunto: I webshpere Struts 



Is there anybody working on struts -- websphere server architecture i have few 
queries regarding deploying the complete module using JSp-- structs -- sessionbeans 
--- entitybeans --- Database architecture it's not getting deployed properly...
can anyone guide me to get the proper link on this...

thanks
abhijeet


- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 18, 2003 2:56 PM
Subject: RE: calls each method twice , logging everthing twice?


I had a similar bug in IE6 where I had a submit button that invoked a js
method that did some stuff and then called form.submit(). In IE5 Id only
have one submission, but in 6 it would do the submission from my call to
submit() AND do the submit buttons submit as well.

-Original Message-
From: Raju, Saravanan [mailto:[EMAIL PROTECTED]
Sent: Thursday, 18 September 2003 16:09
To: Struts Users Mailing List
Subject: RE: calls each method twice , logging everthing twice?


please check that you are not submitting the form twice using java script or
so.

one in onSubmit handler and other progrmatically using form.submit();


> Thanks,
> --
> Saravanan Raju
> Sr.Analyst
> SYNTEL (India) Ltd.
> Chennai Development Centre
> Tel: +91-44-22301101 (Board) Extn : 202
> Fax: +91-44-22300369
> e-mail :  mailto:[EMAIL PROTECTED]
> Website:  http://www.syntelinc.com
> --
>
>
>
> -Original Message-
> From: Andrew Hill [SMTP:[EMAIL PROTECTED]
> Sent: Thursday, September 18, 2003 12:15 PM
> To: Struts Users Mailing List
> Subject: RE: calls each method twice , logging everthing twice?
>
> It looks as though the browser is sending two requests for the page.
>
> Not familiar with tiles so am not sure about the exception your getting
> though.
>
> -Original Message-
> From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 18 September 2003 14:26
> To: Struts Users Mailing List
> Subject: calls each method twice , logging everthing twice?
>
>
> hi,
> we are using jdeveloper as ide , and struts as framework ,,
> I dont know when it is started but in debug mode it calls each method
> twice
> (calls action class execute method twice ) and struts gives followig
> message
> after calling my first action class (loginAction)  ,,
> it seccessfull execute and fiinds mapping for the login,,
> but gives the following message while sending response to the client,
> is there anybody encountered with this problem ?
>
> here is the STRUTS log info, as you can see it does processActionForward
> twice
>
> [INFO] RequestProcessor - -Processing a 'POST' for path '/Login'
> [INFO] RequestProce

Re: I webshpere Struts

2003-09-18 Thread Abhijeet Mahalkar
I am facing the problem for DSN JNDI  it says jdbc/newodgds_CMP dsn not found when i 
specify jdbc/newodgds jndi name...

abhijeet


- Original Message - 
From: "Kazda Juraj" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 18, 2003 4:39 PM
Subject: RE: I webshpere Struts


I'm using this architecture and everything works... What kind of JNDI name it can't 
find? Bean or Datasource? Do you really have declared in web.xml and implemented 
corresponding interfaces (ie. local reference vs local interface)?

In case of local, are you using in your code "java:comp/env" namespace?

-juraj.


 

-Original Message-
From: Ruben Carvalho [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 18, 2003 12:48 PM
To: Struts Users Mailing List
Subject: RE: I webshpere Struts

I've just started developing a new project using Websphere IDE but the application 
will run on Weblogic. We're using the TestServer that comes with Websphere and we're 
having the same problem with the Database access, using entity beans. Eventhough the 
server has the JNDI names configured properly, I keep getting an exception saying that 
the JNDI name can't be found. I manage to call the session beans in my web module but 
no entity beans.
 
Is there anybody using this arquitecture?
 
Thanks
 
Rúben Carvalho

-Mensagem original- 
De: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] 
Enviada: qui 18-09-2003 11:29 
Para: Struts Users Mailing List 
Cc: 
Assunto: I webshpere Struts 



Is there anybody working on struts -- websphere server architecture i have few queries 
regarding deploying the complete module using JSp-- structs -- sessionbeans --- 
entitybeans --- Database architecture it's not getting deployed properly...
can anyone guide me to get the proper link on this...

thanks
abhijeet


- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 18, 2003 2:56 PM
Subject: RE: calls each method twice , logging everthing twice?


I had a similar bug in IE6 where I had a submit button that invoked a js
method that did some stuff and then called form.submit(). In IE5 Id only
have one submission, but in 6 it would do the submission from my call to
submit() AND do the submit buttons submit as well.

-Original Message-
From: Raju, Saravanan [mailto:[EMAIL PROTECTED]
Sent: Thursday, 18 September 2003 16:09
To: Struts Users Mailing List
Subject: RE: calls each method twice , logging everthing twice?


please check that you are not submitting the form twice using java script or
so.

one in onSubmit handler and other progrmatically using form.submit();


> Thanks,
> --
> Saravanan Raju
> Sr.Analyst
> SYNTEL (India) Ltd.
> Chennai Development Centre
> Tel: +91-44-22301101 (Board) Extn : 202
> Fax: +91-44-22300369
> e-mail :  mailto:[EMAIL PROTECTED]
> Website:  http://www.syntelinc.com
> --
>
>
>
> -Original Message-
> From: Andrew Hill [SMTP:[EMAIL PROTECTED]
> Sent: Thursday, September 18, 2003 12:15 PM
> To: Struts Users Mailing List
> Subject: RE: calls each method twice , logging everthing twice?
>
> It looks as though the browser is sending two requests for the page.
>
> Not familiar with tiles so am not sure about the exception your getting
> though.
>
> -Original Message-
> From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 18 September 2003 14:26
> To: Struts Users Mailing List
> Subject: calls each method twice , logging everthing twice?
>
>
> hi,
> we are using jdeveloper as ide , and struts as framework ,,
> I dont know when it is started but in debug mode it calls each method
> twice
> (calls action class execute method twice ) and struts gives followig
> message
> after calling my first action class (loginAction)  ,,
> it seccessfull execute and fiinds mapping for the login,,
> but gives the following message while sending response to the client,
> is there anybody encountered with this problem ?
>
> here is the STRUTS log info, as you can see it does processActionForward
> twice
>
> [INFO] RequestProcessor - -Processing a 'POST' for path '/Login'
> [INFO] RequestProcessor - -Processing a 'POST' for path '/Login'
> processActionForward(/pages/bireysel/common/welcome.jsp, false)
> processActionForward(/pages/bireysel/common/welcome.jsp, false)
>
>
> ERROR on the browser:
>
> java.lang.NullPointerException
> org.apache.struts.tiles.ComponentDefinition
> org.apache.struts.tiles.xmlDef

RE: I webshpere Struts

2003-09-18 Thread Ruben Carvalho
I think everything is configured properly. When I ask for a JNDI name starting with 
java:comp/env/--- I always get that --- wasn't found. Can I ask you for a bit of your 
web.xml where you define an entity and a session bean and a bit of your ejb.xml with 
the same?
 
Thanks a lot.
 
Rúben

-Mensagem original- 
De: Kazda Juraj [mailto:[EMAIL PROTECTED] 
Enviada: qui 18-09-2003 12:09 
Para: Struts Users Mailing List 
Cc: 
Assunto: RE: I webshpere Struts



I'm using this architecture and everything works... What kind of JNDI name it 
can't find? Bean or Datasource? Do you really have declared in web.xml and implemented 
corresponding interfaces (ie. local reference vs local interface)?

In case of local, are you using in your code "java:comp/env" namespace?

-juraj.




-Original Message-
From: Ruben Carvalho [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 12:48 PM
To: Struts Users Mailing List
    Subject: RE: I webshpere Struts

I've just started developing a new project using Websphere IDE but the 
application will run on Weblogic. We're using the TestServer that comes with Websphere 
and we're having the same problem with the Database access, using entity beans. 
Eventhough the server has the JNDI names configured properly, I keep getting an 
exception saying that the JNDI name can't be found. I manage to call the session beans 
in my web module but no entity beans.

Is there anybody using this arquitecture?

Thanks

Rúben Carvalho

-Mensagem original-
De: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
Enviada: qui 18-09-2003 11:29
Para: Struts Users Mailing List
    Cc:
Assunto: I webshpere Struts
   
   

Is there anybody working on struts -- websphere server architecture i 
have few queries regarding deploying the complete module using JSp-- structs -- 
sessionbeans --- entitybeans --- Database architecture it's not getting deployed 
properly...
can anyone guide me to get the proper link on this...
   
thanks
abhijeet
   
   
- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 18, 2003 2:56 PM
Subject: RE: calls each method twice , logging everthing twice?
   
   
I had a similar bug in IE6 where I had a submit button that invoked a 
js
method that did some stuff and then called form.submit(). In IE5 Id 
only
have one submission, but in 6 it would do the submission from my call 
to
submit() AND do the submit buttons submit as well.
   
-Original Message-
From: Raju, Saravanan [mailto:[EMAIL PROTECTED]
Sent: Thursday, 18 September 2003 16:09
To: Struts Users Mailing List
Subject: RE: calls each method twice , logging everthing twice?
   
   
please check that you are not submitting the form twice using java 
script or
so.
   
one in onSubmit handler and other progrmatically using form.submit();
   
   
> Thanks,
> --
> Saravanan Raju
> Sr.Analyst
> SYNTEL (India) Ltd.
> Chennai Development Centre
> Tel: +91-44-22301101 (Board) Extn : 202
> Fax: +91-44-22300369
> e-mail :  mailto:[EMAIL PROTECTED]
> Website:  http://www.syntelinc.com
> --
>
>
>
> -Original Message-
> From: Andrew Hill [SMTP:[EMAIL PROTECTED]
> Sent: Thursday, September 18, 2003 12:15 PM
> To: Struts Users Mailing List
> Subject: RE: calls each method twice , logging everthing twice?
>
> It looks as though the browser is sending two requests for the page.
>
> Not familiar with tiles so am not sure about the exception your 
getting
> though.
  

Re: I webshpere Struts

2003-09-18 Thread Abhijeet Mahalkar
Thanks for reply

This is my ejb-jar.xml. where i have class SettingsPK which contains 3 field which i 
want to use as my primary key.
do  I need to specify following tag for all 3 Fields?
 indus.security.setting.SettingsPK
And one more quetion what is the purpose of this tag? why do we specify abstract 
schema to it ?
  col_mst_settings2
Please guide me...

thanks
Abhijeet
XML is as below...


http://java.sun.com/dtd/ejb-jar_2_0.dtd";>
   
  Settings Entity Bean
  Settings Entity Bean
  
 
Settings Entity Bean CMP 2.0
Settings Entity Bean CMP 2.0
 col_mst_settings
 indus.security.setting.SettingEntityHome
 indus.security.setting.SettingEntityRemote
 indus.security.setting.SettingEntityBean
 Container
 indus.security.setting.SettingsPK
 False
 2.x
col_mst_settings2
 
   orgcode
  
  
   conditiontype
  
  
   condition
  
  
   desc
  
  
   valuetype
  
  
   value
  
  
   fromvalue
  
  
   tovalue
  
  
   field1
  
  
   field2
  
  
   feild3
  
  
   allowupdate
  
  
   userid
  
  
   updtimestamp
  
 
  
  
 
Generated unchecked method permission


   Generated method element for all methods
   col_mst_settings
   *

 
  
   


- Original Message - 
From: "Ruben Carvalho" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 18, 2003 5:17 PM
Subject: RE: I webshpere Struts


I think everything is configured properly. When I ask for a JNDI name starting with 
java:comp/env/--- I always get that --- wasn't found. Can I ask you for a bit of your 
web.xml where you define an entity and a session bean and a bit of your ejb.xml with 
the same?
 
Thanks a lot.
 
Rúben

-Mensagem original- 
De: Kazda Juraj [mailto:[EMAIL PROTECTED] 
Enviada: qui 18-09-2003 12:09 
Para: Struts Users Mailing List 
Cc: 
Assunto: RE: I webshpere Struts



I'm using this architecture and everything works... What kind of JNDI name it can't 
find? Bean or Datasource? Do you really have declared in web.xml and implemented 
corresponding interfaces (ie. local reference vs local interface)?

In case of local, are you using in your code "java:comp/env" namespace?

-juraj.




-Original Message-
From: Ruben Carvalho [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 12:48 PM
To: Struts Users Mailing List
Subject: RE: I webshpere Struts

I've just started developing a new project using Websphere IDE but the application 
will run on Weblogic. We're using the TestServer that comes with Websphere and we're 
having the same problem with the Database access, using entity beans. Eventhough the 
server has the JNDI names configured properly, I keep getting an exception saying that 
the JNDI name can't be found. I manage to call the session beans in my web module but 
no entity beans.

Is there anybody using this arquitecture?

Thanks

Rúben Carvalho

-Mensagem original-
De: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
Enviada: qui 18-09-2003 11:29
    Para: Struts Users Mailing List
Cc:
Assunto: I webshpere Struts
   
   

Is there anybody working on struts -- websphere server architecture i have few 
queries regarding deploying the complete module using JSp-- structs -- sessionbeans 
--- entitybeans --- Database architecture it's not getting deployed properly...
can anyone guide me to get the proper link on this...
   
thanks
abhijeet
   
   
- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 18, 2003 2:56 PM
Subject: RE: calls each method twice , logging everthing twice?
   
   
I had a similar bug in IE6 where I had a submit button that invoked a js
method that did some stuff and then called form.submit(). In IE5 Id only
have one submission, but in 6 it would do the submission from my call to
submit() AND do the submit buttons submit as well.
   
-Original Message-
From: Raju, Saravanan [mailto:[EMAIL PROTECTED]
Sent: Thursday, 18 September 2003 16:09
To: Struts Users Mailing List
Subject: RE: calls each method twice , logging everthing twice?
   
   
please check that you are not submitting the form twice using java script or
so.
   
one in onSubmit handler and other progrmatically using form.submit();
   
   
> Thanks,
> --
> Saravanan Raju
> Sr.Analyst

RE: I webshpere Struts

2003-09-18 Thread guo yingshou
"java:comp/..." is a component's logical name,In order
to use this naming context prefix to look up your
component,you usually have to do 2 things:
  1,declare your component in standard dd using
ejb-ref or resource-ref,depending on what it is.
  2,mappping the name to the real jndi name using
vendor specific dd.

I prefer to write a simple jsp page as following to
have a look at the real naming context structure of my
application server.


<%
  Context ctx = new InitialContext();
  String dir = request.getParameter("dir");
  dir = (dir == null) ? "" : dir.trim();
  NamingEnumeration enu = ctx.list(dir);
  while(enu.hasMoreElements()){
out.print(enu.nextElement() + "");
  }
%>

Use dir query to switch to the jndi context you want
to  list. 
For example,
To have a look at what got bound under root entry,just
point to the above jsp.

To look at what got bound under "java:",browse like
this: http:///../...jsp?dir=java:

Hope it helps.

 --- Ruben Carvalho <[EMAIL PROTECTED]>
的正文:> I think everything is configured properly.
When I
> ask for a JNDI name starting with java:comp/env/---
> I always get that --- wasn't found. Can I ask you
> for a bit of your web.xml where you define an entity
> and a session bean and a bit of your ejb.xml with
> the same?
>  
> Thanks a lot.
>  
> R煤ben
> 
>   -Mensagem original- 
>   De: Kazda Juraj [mailto:[EMAIL PROTECTED] 
>   Enviada: qui 18-09-2003 12:09 
>   Para: Struts Users Mailing List 
>   Cc: 
>   Assunto: RE: I webshpere Struts
>   
>   
> 
>   I'm using this architecture and everything works...
> What kind of JNDI name it can't find? Bean or
> Datasource? Do you really have declared in web.xml
> and implemented corresponding interfaces (ie. local
> reference vs local interface)?
>   
>   In case of local, are you using in your code
> "java:comp/env" namespace?
>   
>   -juraj.
>   
>   
>   
>   
>   -Original Message-
>   From: Ruben Carvalho
> [mailto:[EMAIL PROTECTED]
>   Sent: Thursday, September 18, 2003 12:48 PM
>   To: Struts Users Mailing List
>   Subject: RE: I webshpere Struts
>   
>   I've just started developing a new project using
> Websphere IDE but the application will run on
> Weblogic. We're using the TestServer that comes with
> Websphere and we're having the same problem with the
> Database access, using entity beans. Eventhough the
> server has the JNDI names configured properly, I
> keep getting an exception saying that the JNDI name
> can't be found. I manage to call the session beans
> in my web module but no entity beans.
>   
>   Is there anybody using this arquitecture?
>   
>   Thanks
>   
>   R煤ben Carvalho
>   
>   -Mensagem original-
>   De: Abhijeet Mahalkar
> [mailto:[EMAIL PROTECTED]
>   Enviada: qui 18-09-2003 11:29
>   Para: Struts Users Mailing List
>   Cc:
>   Assunto: I webshpere Struts
>  
>  
>   
>   Is there anybody working on struts --
> websphere server architecture i have few queries
> regarding deploying the complete module using JSp--
> structs -- sessionbeans --- entitybeans --- Database
> architecture it's not getting deployed properly...
>   can anyone guide me to get the proper link
> on this...
>  
>   thanks
>   abhijeet
>  
>  
>   - Original Message -
>   From: "Andrew Hill"
> <[EMAIL PROTECTED]>
>   To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
>   Sent: Thursday, September 18, 2003 2:56 PM
>   Subject: RE: calls each method twice ,
> logging everthing twice?
>  
>  
>   I had a similar bug in IE6 where I had a
> submit button that invoked a js
>   method that did some stuff and then called
> form.submit(). In IE5 Id only
>   have one submission, but in 6 it would do
> the submission from my call to
>   submit() AND do the submit buttons submit
> as well.
>  
>   -Original Message-
>   From: Raju, Saravanan
> [mailto:[EMAIL PROTECTED]
>   Sent: Thursday, 18 September 2003 16:09
>   To: Struts Users Mailing List
>   Subject: RE: calls each method twice ,
> logging everthing twice?
>