Java based spell check

2011-06-27 Thread Ashish Kulkarni
Hi
Does anyone know of open source Java based spell check which does not call
google webservice for spell check? Like pspell in PHP which can be hosted in
intranet environment



-- 
Ashish
www.ayurwellness.com
www.mysoftwareneeds.com


[OT]Configure websphere for storing session in database

2010-07-08 Thread Ashish Kulkarni
Hi
Has anyone configured websphere to store session in DB2 on AS400,
or any other database,

I found this URL which explains how to do it, but i am not sure how to test
it, i am trying to configure this with DB2 on AS400

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/tprs_cnfp.html
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/tprs_cnfp.html

-- 
Ashish
www.ayurwellness.com
www.mysoftwareneeds.com


[OT] Bypass basic authentication for included webpage

2009-11-03 Thread Ashish Kulkarni
Hello
I have to include a webpage into my existing web application, this webpage
required basic authentication, so when i include this webpage into my
application and run i get a basic authentication pop up window, is there a
way i can pass user id, password in header or some thing so i dont get this
authentication window, any suggestions

-- 
Ashish
www.ayurwellness.com
www.mysoftwareneeds.com


Re: [OT] Bypass basic authentication for included webpage

2009-11-03 Thread Ashish Kulkarni
Hi
What i am trying to include is feed from a web camera which works on IP
address in network, there is a built in server in this webcamera which does
basic authentication. this wont allow anonymous access, can i use http
client or some thing to fake login from jsp page

On Tue, Nov 3, 2009 at 1:56 PM, Kawczynski, David 
david_kawczyn...@merck.com wrote:

 ore info is required:

 What security schema is employed?

 Is the included webpage in the same context as the including
 webpage?

 Does your webpage allow anonymous access?  If not, does the
 user's auth info match the included page's auth info?



  -Original Message-
  From: Ashish Kulkarni [mailto:ashish.kulkarn...@gmail.com]
  Sent: Tuesday, November 03, 2009 11:32 AM
  To: Struts Users Mailing List
  Subject: [OT] Bypass basic authentication for included webpage
 
  Hello
  I have to include a webpage into my existing web application,
  this webpage
  required basic authentication, so when i include this webpage into my
  application and run i get a basic authentication pop up
  window, is there a
  way i can pass user id, password in header or some thing so i
  dont get this
  authentication window, any suggestions
 
  --
  Ashish
  www.ayurwellness.com
  www.mysoftwareneeds.com
 
 Notice:  This e-mail message, together with any attachments, contains
 information of Merck  Co., Inc. (One Merck Drive, Whitehouse Station, New
 Jersey, USA 08889), and/or its affiliates Direct contact information for
 affiliates is available at http://www.merck.com/contact/contacts.html)
 that may be confidential, proprietary copyrighted and/or legally privileged.
 It is intended solely for the use of the individual or entity named on this
 message. If you are not the intended recipient, and have received this
 message in error, please notify us immediately by reply e-mail and then
 delete it from your system.


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




-- 
Ashish
www.ayurwellness.com
www.mysoftwareneeds.com


Re: [Struts 1.2]Validation and multiple struts-config files

2009-09-08 Thread Ashish Kulkarni
HiAny ideas?

On Fri, Aug 28, 2009 at 11:42 AM, Ashish Kulkarni 
ashish.kulkarn...@gmail.com wrote:

 HiIf i have 2 struts-config.xml file can i have ValidatorPlugIn tag in
 both struts-config.xml file,  will this work??

 I ran into some issue trying to do so, i was getting could not find
 testForm in local en_us kind of error when trying to add client side
 validation

 For example if i have

 struts-config1.xml with

 plug-in className=org.apache.struts.validator.ValidatorPlugIn
 set-property property=pathnames
  value=/WEB-INF/validator-rules.xml,*/WEB-INF/validation.xml*/
 /plug-in

 struts-config2.xml with
 plug-in className=org.apache.struts.validator.ValidatorPlugIn
 set-property property=pathnames
  value=/WEB-INF/validator-rules.xml,*/WEB-INF/validation_base.xml*/
 /plug-in

 and in my web.xml i define
 init-param
 param-nameconfig/param-name

 param-value
  /WEB-INF/struts-config1.xml,/WEB-INF/struts-config2.xml
 /param-value
  /init-param
 Will this work?
 --
 Ashish
 www.ayurwellness.com
 www.mysoftwareneeds.com




-- 
Ashish
www.ayurwellness.com
www.mysoftwareneeds.com


[Struts 1.2]Validation and multiple struts-config files

2009-08-28 Thread Ashish Kulkarni
HiIf i have 2 struts-config.xml file can i have ValidatorPlugIn tag in both
struts-config.xml file,  will this work??

I ran into some issue trying to do so, i was getting could not find testForm
in local en_us kind of error when trying to add client side validation

For example if i have

struts-config1.xml with

plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property property=pathnames
value=/WEB-INF/validator-rules.xml,*/WEB-INF/validation.xml*/
/plug-in

struts-config2.xml with
plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property property=pathnames
value=/WEB-INF/validator-rules.xml,*/WEB-INF/validation_base.xml*/
/plug-in

and in my web.xml i define
init-param
param-nameconfig/param-name

param-value
/WEB-INF/struts-config1.xml,/WEB-INF/struts-config2.xml
/param-value
/init-param
Will this work?
-- 
Ashish
www.ayurwellness.com
www.mysoftwareneeds.com


Re: Handle Japanese characters from jsp page into ActionClass

2009-07-28 Thread Ashish Kulkarni
HiSo basically in my web.xml i add CharacterEncodingFilter  as the first
filter and it will be handled in web application as first filter,
i have 3 different filters already defined, so
adding CharacterEncodingFilter on top will ensure that it will be the first
filter to be called



On Mon, Jul 27, 2009 at 4:32 PM, Greg Lindholm greg.lindh...@gmail.comwrote:

 That filter will work with struts 1. Just be sure it's early in the filter
 chain before anyone is reading the request.
 I always make it the first filter.

 On Mon, Jul 27, 2009 at 4:23 PM, Ashish Kulkarni 
 ashish.kulkarn...@gmail.com wrote:

  HiI am using struts 1.2.6 and not yes in struts 2,
  So should i just put in a general filter to do encoding?
 
  Ashish
 
  On Mon, Jul 27, 2009 at 4:10 PM, Greg Lindholm greg.lindh...@gmail.com
  wrote:
 
   On Mon, Jul 27, 2009 at 3:34 PM, Ashish Kulkarni 
   ashish.kulkarn...@gmail.com wrote:
  
HiI have a jsp page which displays data in UTF-8 encoding, there is a
   input
text field, when user enter japanese characters in this input text
 and
   data
is transferred to Actionclass i get junk value,
   
How do i handle japanese characters in ActionClass, do i have to do
anything
special in servlet or in JSP?
   
I did try to put request.setCharacterEncoding(UTF-8); in my Action
   class,
but still does not work.
   
JSP page displays proper japanese characters as it is uses UTF-8 for
encoding,
   
Is there a solution which will work for tomcat, weblogic and
 websphere
application server? or is encoding handled seperately by different
 app
servers
   
  
   Setting character encoding in your action is too late, the parameters
  have
   already been read from the request.
   You need to set the character encoding in a filter that runs before the
   struts2 filter.
  
   There is a simple filter that will do it.  You just need to add this
  filter
   to your web.xml before the struts2 filter.
  
   public class CharacterEncodingFilter implements Filter
   {
  public void doFilter(ServletRequest request, ServletResponse
 response,
   FilterChain next)
  throws IOException, ServletException
  {
  String encoding = request.getCharacterEncoding();
  if (encoding == null || encoding.length() == 0)
  {
  request.setCharacterEncoding(UTF-8);
  }
  
  next.doFilter(request, response);
  }
  
   }
  
 



Handle Japanese characters from jsp page into ActionClass

2009-07-27 Thread Ashish Kulkarni
HiI have a jsp page which displays data in UTF-8 encoding, there is a input
text field, when user enter japanese characters in this input text and data
is transferred to Actionclass i get junk value,

How do i handle japanese characters in ActionClass, do i have to do anything
special in servlet or in JSP?

I did try to put request.setCharacterEncoding(UTF-8); in my Action class,
but still does not work.

JSP page displays proper japanese characters as it is uses UTF-8 for
encoding,

Is there a solution which will work for tomcat, weblogic and websphere
application server? or is encoding handled seperately by different app
servers


Re: Handle Japanese characters from jsp page into ActionClass

2009-07-27 Thread Ashish Kulkarni
HiI am using struts 1.2.6 and not yes in struts 2,
So should i just put in a general filter to do encoding?

Ashish

On Mon, Jul 27, 2009 at 4:10 PM, Greg Lindholm greg.lindh...@gmail.comwrote:

 On Mon, Jul 27, 2009 at 3:34 PM, Ashish Kulkarni 
 ashish.kulkarn...@gmail.com wrote:

  HiI have a jsp page which displays data in UTF-8 encoding, there is a
 input
  text field, when user enter japanese characters in this input text and
 data
  is transferred to Actionclass i get junk value,
 
  How do i handle japanese characters in ActionClass, do i have to do
  anything
  special in servlet or in JSP?
 
  I did try to put request.setCharacterEncoding(UTF-8); in my Action
 class,
  but still does not work.
 
  JSP page displays proper japanese characters as it is uses UTF-8 for
  encoding,
 
  Is there a solution which will work for tomcat, weblogic and websphere
  application server? or is encoding handled seperately by different app
  servers
 

 Setting character encoding in your action is too late, the parameters have
 already been read from the request.
 You need to set the character encoding in a filter that runs before the
 struts2 filter.

 There is a simple filter that will do it.  You just need to add this filter
 to your web.xml before the struts2 filter.

 public class CharacterEncodingFilter implements Filter
 {
public void doFilter(ServletRequest request, ServletResponse response,
 FilterChain next)
throws IOException, ServletException
{
String encoding = request.getCharacterEncoding();
if (encoding == null || encoding.length() == 0)
{
request.setCharacterEncoding(UTF-8);
}

next.doFilter(request, response);
}

 }



[OT] Return Hashmap java object from servlet

2009-07-07 Thread Ashish Kulkarni
HiIs it possible to return Hashmap object from java Servlet,  What kind of
ContentType can i set to the response?

The other option is to set data from HashMap into XML and return it as XML
file.

for example.

I have servlet like below

public class ReturnObjectServlet extends HttpServlet
{
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{

processResponse(request, response);
}

public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{

processResponse(request, response);
}

private void processResponse(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException
{

   Map map1 = new HashMap();
   map1.put(ABC, XYZ);
   map1.put(ABC2, XYZ);
   map1.put(ABC3, XYZ);

// What kind of response type can i set??
 response.setContentType(text/xml; charset=UTF-8);
 PrintWriter out = response.getWriter();
 out.print(map1);
 out.close();

}


}


Struts validation with multiple struts-config.xml file (struts 1.2.6)

2009-06-15 Thread Ashish Kulkarni
HiI am having issues with struts validation when i have more then one
struts-config.xml file defined in web.xml

Struts performs no validation for the rules i have in validation.xml file,
which is part of struts-config.xml, but if i remove struts-config-admin.xml
from web.xml then it performs the required validation.

Question is
Can i not define plug-in tag in both configuration files?


here is my setup

in web.xml, i have defined 2 XML files as below
  init-param
param-nameconfig/param-name
param-value
/WEB-INF/struts-config.xml,/WEB-INF/struts-config-admin.xml
/param-value
/init-param

in strust-config.xml i have
plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property
value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml
property=pathnames /
/plug-in

and in struts-config-admin.xml i have

plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property
value=/WEB-INF/validator-rules.xml,/WEB-INF/validation_base.xml
property=pathnames /
/plug-in


[OT] Bandwidth calculation

2009-05-18 Thread Ashish Kulkarni
HiI have to find out how much data is transferred between the client and web
application server and from web application server and database, i want to
find out KB or MB of data per webpage request or per session.

I need to prepare a report for networking team to make sure that the
webapplication will work properly in intranet and not cause any traffice
jams

Does anyone have any idea on how to do this? any tools?
Any help is appreciated


Re: [OT] Authorization and Authentication Question

2009-03-11 Thread Ashish Kulkarni
HiThanks for the suggestion, this application which i need to do this is
developed using Struts 1.2.6, can i add Spring Security to this, just as a
drop in, is there any how to documents to add spring support to struts web
application

Ashish

On Tue, Mar 10, 2009 at 7:43 PM, Jim Kiley jhki...@summa-tech.com wrote:

 I'd agree.  Have your UserDetailsService implementation hit LDAP for
 authentication, and pass GrantedAuthorities[] on to the returned object by
 asking DB2 about that info if the user is authenticated.
 jk

 On Tue, Mar 10, 2009 at 6:44 PM, Wes Wannemacher w...@wantii.com wrote:

  On Tuesday 10 March 2009 17:56:30 Ashish Kulkarni wrote:
   HiIs it possible to Authenticate user using LDAP, but authorize using a
  DB2
   database,
   I have situation where i need to authenticate and authorize some web
  pages.
  
   I want to authenticate users against LDAP, but have to maintain
   authorization list, roles etc in DB2 database
  
   Has anyone done anything like this before, i am using Weblogic and
 tomcat
   application servers
  
 
  I would suggest using Spring Security. I think what you'll need to do is
  create a bean that implements the
  org.springframework.security.userdetails.UserDetailsService interface,
 then
  wire it into your configuration.
 
  --
 
  Wes Wannemacher
  Author - Struts 2 In Practice
  Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
  http://www.manning.com/wannemacher
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 


 --
 Jim Kiley
 Technical Consultant | Summa
 [p] 412.258.3346 [m] 412.445.1729
 http://www.summa-tech.com



Re: [OT] Authorization and Authentication Question

2009-03-11 Thread Ashish Kulkarni
HiThanks for the help, i will check and get back to this mail with the
results

On Wed, Mar 11, 2009 at 10:11 AM, Security Management 
list-subscripti...@secmgmt.com wrote:

 I got it working in less than a day using the docs.  The petshop tutorial
 page got me going.

 -Original Message-
 From: Ashish Kulkarni [mailto:ashish.kulkarn...@gmail.com]
 Sent: Wednesday, March 11, 2009 9:53 AM
 To: Struts Users Mailing List
 Subject: Re: [OT] Authorization and Authentication Question

 HiThanks for the suggestion, this application which i need to do this is
 developed using Struts 1.2.6, can i add Spring Security to this, just as a
 drop in, is there any how to documents to add spring support to struts web
 application

 Ashish

 On Tue, Mar 10, 2009 at 7:43 PM, Jim Kiley jhki...@summa-tech.com wrote:

  I'd agree.  Have your UserDetailsService implementation hit LDAP for
  authentication, and pass GrantedAuthorities[] on to the returned object
 by
  asking DB2 about that info if the user is authenticated.
  jk
 
  On Tue, Mar 10, 2009 at 6:44 PM, Wes Wannemacher w...@wantii.com
 wrote:
 
   On Tuesday 10 March 2009 17:56:30 Ashish Kulkarni wrote:
HiIs it possible to Authenticate user using LDAP, but authorize using
 a
   DB2
database,
I have situation where i need to authenticate and authorize some web
   pages.
   
I want to authenticate users against LDAP, but have to maintain
authorization list, roles etc in DB2 database
   
Has anyone done anything like this before, i am using Weblogic and
  tomcat
application servers
   
  
   I would suggest using Spring Security. I think what you'll need to do
 is
   create a bean that implements the
   org.springframework.security.userdetails.UserDetailsService interface,
  then
   wire it into your configuration.
  
   --
  
   Wes Wannemacher
   Author - Struts 2 In Practice
   Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
   http://www.manning.com/wannemacher
  
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
  
 
 
  --
  Jim Kiley
  Technical Consultant | Summa
  [p] 412.258.3346 [m] 412.445.1729
  http://www.summa-tech.com
 


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: [OT] Authorization and Authentication Question

2009-03-11 Thread Ashish Kulkarni
HiI was able to configure LDAP to do authentication, but how do i use
UserDetailsService,
is there any example of how to use this and implement it in my project to
get user and role from DB2 database


On Wed, Mar 11, 2009 at 10:50 AM, Ashish Kulkarni 
ashish.kulkarn...@gmail.com wrote:

 HiThanks for the help, i will check and get back to this mail with the
 results


 On Wed, Mar 11, 2009 at 10:11 AM, Security Management 
 list-subscripti...@secmgmt.com wrote:

 I got it working in less than a day using the docs.  The petshop
 tutorial
 page got me going.

 -Original Message-
 From: Ashish Kulkarni [mailto:ashish.kulkarn...@gmail.com]
 Sent: Wednesday, March 11, 2009 9:53 AM
 To: Struts Users Mailing List
 Subject: Re: [OT] Authorization and Authentication Question

 HiThanks for the suggestion, this application which i need to do this is
 developed using Struts 1.2.6, can i add Spring Security to this, just as a
 drop in, is there any how to documents to add spring support to struts web
 application

 Ashish

 On Tue, Mar 10, 2009 at 7:43 PM, Jim Kiley jhki...@summa-tech.com
 wrote:

  I'd agree.  Have your UserDetailsService implementation hit LDAP for
  authentication, and pass GrantedAuthorities[] on to the returned object
 by
  asking DB2 about that info if the user is authenticated.
  jk
 
  On Tue, Mar 10, 2009 at 6:44 PM, Wes Wannemacher w...@wantii.com
 wrote:
 
   On Tuesday 10 March 2009 17:56:30 Ashish Kulkarni wrote:
HiIs it possible to Authenticate user using LDAP, but authorize
 using
 a
   DB2
database,
I have situation where i need to authenticate and authorize some web
   pages.
   
I want to authenticate users against LDAP, but have to maintain
authorization list, roles etc in DB2 database
   
Has anyone done anything like this before, i am using Weblogic and
  tomcat
application servers
   
  
   I would suggest using Spring Security. I think what you'll need to do
 is
   create a bean that implements the
   org.springframework.security.userdetails.UserDetailsService interface,
  then
   wire it into your configuration.
  
   --
  
   Wes Wannemacher
   Author - Struts 2 In Practice
   Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and
 more
   http://www.manning.com/wannemacher
  
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
  
 
 
  --
  Jim Kiley
  Technical Consultant | Summa
  [p] 412.258.3346 [m] 412.445.1729
  http://www.summa-tech.com
 


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org





[OT] Authorization and Authentication Question

2009-03-10 Thread Ashish Kulkarni
HiIs it possible to Authenticate user using LDAP, but authorize using a DB2
database,
I have situation where i need to authenticate and authorize some web pages.

I want to authenticate users against LDAP, but have to maintain
authorization list, roles etc in DB2 database

Has anyone done anything like this before, i am using Weblogic and tomcat
application servers


Ash


what is difference between listing config file with comma delimited or by module

2009-02-25 Thread Ashish Kulkarni
HiCan some one explain with example difference between configuring multiple
config files separated by comma or as module

How does it affect the URL?
Can i define bean in one configuration file and action using this bean in
different configuration file?
I have an application where about 10 beans and action are common to all
modules, but then each module will have different bean and action classes,
So what would be a good strategy, to define all common bean and actions in
one configuration file, and have other configuration file in modules

Does anyone have an example explaining when to use comma delimited
configuration file versus defining in modules


migration of Struts

2009-02-23 Thread Ashish Kulkarni
HiI have inherited a struts 1.2.6 application, i need to add some features
to this web application.

what will be the best migration policy to latest version of Struts without
lot of efforts,

Should i migrate it to struts 1.3.10 or to latest version 2.1.6?

Is there any documentation for this migration to 1.3 or 2.1 version

I am using myeclipseide for coding, does this version support 2.1.6?

I don't want to put a lot of efforts in migration, but concentrate on adding
this new function

is it ok to add features using 1.2.6 struts?

any advice


display XML file in JSP page

2008-04-01 Thread Ashish Kulkarni
Hi
I need to display XML file in JSP page (raw XML file)
in my Action Class i read this XML file, but how do i display in proper
format in JSP, i want the XML file displayed as is.
Regards
Ashish


Re: display XML file in JSP page

2008-04-01 Thread Ashish Kulkarni
Hi
thanks it works

On 4/1/08, Laurie Harper [EMAIL PROTECTED] wrote:

 Ashish Kulkarni wrote:
  Hi
  I need to display XML file in JSP page (raw XML file)
  in my Action Class i read this XML file, but how do i display in proper
  format in JSP, i want the XML file displayed as is.
  Regards
  Ashish


 Don't use a JSP. Either link to the XML file directly (if it's somewhere
 accessible in your web application content) or write it to the response
 output stream in your action and return null to let Struts know the
 response has been completed.

 L.


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




Re: Compile error in JSP after upgrading from servlet specification 2.3 to 2.4

2008-03-31 Thread Ashish Kulkarni
Hi
That is all i did, upgraded web.xml to servlet specification 2.4
and tried start the project, i get following jsp compile error
The code at line 125 is
c:if test=${loginForm.map.singlesignon == '1'}

and the error i get is


org.apache.jasper.JasperException: /pages/index.jsp(125,15) According to TLD
or attribute directive in tag file, attribute test does not accept any
expressions
org.apache.jasper.servlet.JspServletWrapper.handleJspException(
JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java
:1054)
org.apache.struts.action.RequestProcessor.processForwardConfig(
RequestProcessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1192)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:412)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java
:1054)
org.apache.struts.action.RequestProcessor.processForwardConfig(
RequestProcessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1192)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:412)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.pfizer.maps.servlet.ApprovalsValidFilter.doFilter(
ApprovalsValidFilter.java:90)





On 3/28/08, Laurie Harper [EMAIL PROTECTED] wrote:

 Ashish Kulkarni wrote:
  Hi
  I get compile error in jsp at line
  c:if test=${loginForm.map.singlesignon == '1'}


 There's nothing wrong with that line. What is the full error you're
 getting? What do the surrounding lines of your JSP look like?


  I jsut upgraded web.xml from 2.3 to 2.4, i added following lines in
 web.xml
 

  [...]

 Are you sure that's the *only* thing you changed between the JSP
 compiling OK and getting an error? That seems kinda odd...

 L.


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




[OT] Read XML file from folder outside web application

2008-03-28 Thread Ashish Kulkarni
Hi
I can use servletContext.getResource('/WEB-INF/myconfig.xml'); to read
myconfig.xml file which is under WEB-INF from a servlet
If i keep this file at c:/test/myconfig.xml file, can i read it from
a servlet, if so how??

Ashish


Re: [OT] Read XML file from folder outside web application

2008-03-28 Thread Ashish Kulkarni
Hi
i did File f = new File(mypath); and it works
What is the danger of doing so?

Ashish

On 3/28/08, Antonio Petrelli [EMAIL PROTECTED] wrote:

 2008/3/28, Ashish Kulkarni [EMAIL PROTECTED]:

   I can use servletContext.getResource('/WEB-INF/myconfig.xml'); to read
   myconfig.xml file which is under WEB-INF from a servlet
   If i keep this file at c:/test/myconfig.xml file, can i read it from
   a servlet, if so how??


 You can read it with a File object, giving the absolute path, but in a
 web application is very, very... very very very dangerous!

 Antonio

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




Compile error in JSP after upgrading from servlet specification 2.3 to 2.4

2008-03-28 Thread Ashish Kulkarni
Hi
I get compile error in jsp at line
c:if test=${loginForm.map.singlesignon == '1'}

I jsut upgraded web.xml from 2.3 to 2.4, i added following lines in web.xml

web-app version=2.4
xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;


[OT] Write a thread to check database in web application

2007-11-05 Thread Ashish Kulkarni
Hi
I have to write a thread in web application which will check some values in
database, and then perform some function depending on the values.

There wont be any user input and this thread should be called after like 10
minutes, also i want to have a jsp page from where i can maintain this
thread, like stop, change the time it should run etc.

Are there any specific J2EE api i can use, or should i just use a time
thread, and store the handle to this thread in servlet context so i can
access and modify it..

Any suggections

Ashish


Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Ashish Kulkarni
Hi
I dont need more then one thread, or a timer job i would say, this timer
should sleep and then activate like after 10 minutes, check the database, if
there is nothing to do go back to sleep.
I will look into quartz, is it ok to use Java Timer and TimerTask to do it.
For example this will be my taslk
 class MyTimerTask extends TimerTask
{
 public void run()
{
  //Class to check for database
}
}

Timer tt = new Timer();
tt.scheduleAtFixedRate(myTimerTask, 10, 10);

In ServletContext i will save instance of myTimerTask and then provide a jsp
to stop or start this Task


I will make sure that the class with does check database function will not
go in loop or be there for ever

Any suggestions





On 11/5/07, Frank W. Zammetti [EMAIL PROTECTED] wrote:

 On Mon, November 5, 2007 10:40 am, Ashish Kulkarni wrote:
  Hi
  I have to write a thread in web application which will check some values
  in
  database, and then perform some function depending on the values.
 
  There wont be any user input and this thread should be called after like
  10
  minutes, also i want to have a jsp page from where i can maintain this
  thread, like stop, change the time it should run etc.
 
  Are there any specific J2EE api i can use, or should i just use a time
  thread, and store the handle to this thread in servlet context so i can
  access and modify it..

 Spawning threads in a servlet container is generally considered Bad
 Voodoo(tm).  If memory serves, it's even outlawed by the servlet spec.

 That being said, we've all done it, we'll all probably do it again, so
 mheh with the recommendations :)

 *That* being said, the key thing is to be extra careful doing it.  Make
 sure the thread code is as bullet-proof as possible, most especially when
 it comes to resource usage.  The reason spawning such threads is a bad
 idea in the first place is because they are not under control of the
 container and cannot be managed, nor can the resources it uses.
 Therefore, you'll need to do that yourself and be sure you play nice
 within the container.

 Also, be sure to mark it a daemon thread, otherwise you'll find it can and
 will hold up shutdown of the container.  Bumping its priority as low as
 possible is probably also a good idea.

 Or you can do as Chris said and use Quartz, which will deal with most of
 these concerns for you.  I say most because you can still write bad Quartz
 jobs that bork things as badly as if you didn't use Quartz at all, but
 it'll help a little bit.

  Ashish

 Frank

 --
 Frank W. Zammetti
 Founder and Chief Software Architect
 Omnytex Technologies
 http://www.omnytex.com
 AIM/Yahoo: fzammetti
 MSN: [EMAIL PROTECTED]
 Author of Practical Ajax Projects With Java Technology
 (2006, Apress, ISBN 1-59059-695-1)
 and JavaScript, DOM Scripting and Ajax Projects
 (2007, Apress, ISBN 1-59059-816-4)
 Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!


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




[OT] Blogging Website information

2007-10-14 Thread Ashish Kulkarni
Hi
I was wondering if any one knows or uses blogging website where we can put
Java, HTML, Javascript code and it will be formatted differently, for
example if you have used http://forum.java.sun.com you can specify
[code][/code] and it formats it differently

What i need to do is, write some template programs and description on these
blog sites so can refer them in future,
or some notes etc


Ashish


Re: [OT] Need suggestion about designing web application

2007-09-27 Thread Ashish Kulkarni
Hi
But suppose i  have to install the same war file on same application server,
one installtion pointing towards database1, and
other installation pointing towards database 2.
And this is quite possible to happen, if database 1 is prodution database
for site1 and database 2 is production database for site 2.

So there cannot be one JNDI name, but 2 JNDI in web application server,
so what about this scenario

On 9/27/07, Antonio Petrelli [EMAIL PROTECTED] wrote:

 2007/9/27, Ashish Kulkarni [EMAIL PROTECTED]:
  Hi
  We a to develop a web application which we want to be able to deploy on
 any
  J2EE compatiable application server.
  We would create a war file for deployment, but there is a issue with
  database connection,
  We do not know the JNDI name,
  So we thought we would put xml file under WEB-INF folder, and after
  deploying the application, modify the JNDI name in this XML and restart
 the
  application,
  Is this a good way of doing it, since BEA recommends not to modify any
 thing
  after deploying the application,
  We would be giving this war file to more then one deployment, and we do
 not
  want to maintain different war files one for each deployment, but just
 have
  one far which we can use for deployment in all servers.

 IMHO, you have to decide (and not change) your data source JNDI name,
 and then configure it in the container.

 Antonio

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




Re: [OT] Need suggestion about designing web application

2007-09-27 Thread Ashish Kulkarni
Hi
This sounds intresting
I am also working on an application which is suppose to get data from more
then one database and then merge and create one xml file and send it back.

So in this case, i will have to work with more then one JNDI,
Has anyone experience with working this kind of application, any
suggestions.
I am using ibatis for SQL mapping

Ashish

On 9/27/07, Nils-Helge Garli [EMAIL PROTECTED] wrote:

 The idea of the local JNDI reference (which exists for the application
 instance only) is to decouple it from the actual, physical JNDI name
 of the resource. The mapping of the datasource name is (usually) done
 when the application is deployed. I am not familiar with how WebLogic
 handle this, but maybe this website can help:
 http://edocs.bea.com/wls/docs92/webapp/configureresources.html

 Nils-H

 On 9/27/07, Ashish Kulkarni [EMAIL PROTECTED] wrote:
  Hi
  But suppose i  have to install the same war file on same application
 server,
  one installtion pointing towards database1, and
  other installation pointing towards database 2.
  And this is quite possible to happen, if database 1 is prodution
 database
  for site1 and database 2 is production database for site 2.
 
  So there cannot be one JNDI name, but 2 JNDI in web application server,
  so what about this scenario
 
  On 9/27/07, Antonio Petrelli [EMAIL PROTECTED] wrote:
  
   2007/9/27, Ashish Kulkarni [EMAIL PROTECTED]:
Hi
We a to develop a web application which we want to be able to deploy
 on
   any
J2EE compatiable application server.
We would create a war file for deployment, but there is a issue with
database connection,
We do not know the JNDI name,
So we thought we would put xml file under WEB-INF folder, and after
deploying the application, modify the JNDI name in this XML and
 restart
   the
application,
Is this a good way of doing it, since BEA recommends not to modify
 any
   thing
after deploying the application,
We would be giving this war file to more then one deployment, and we
 do
   not
want to maintain different war files one for each deployment, but
 just
   have
one far which we can use for deployment in all servers.
  
   IMHO, you have to decide (and not change) your data source JNDI name,
   and then configure it in the container.
  
   Antonio
  
   -
   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]




[OT] Need suggestion about designing web application

2007-09-26 Thread Ashish Kulkarni
Hi
We a to develop a web application which we want to be able to deploy on any
J2EE compatiable application server.
We would create a war file for deployment, but there is a issue with
database connection,
We do not know the JNDI name,
So we thought we would put xml file under WEB-INF folder, and after
deploying the application, modify the JNDI name in this XML and restart the
application,
Is this a good way of doing it, since BEA recommends not to modify any thing
after deploying the application,
We would be giving this war file to more then one deployment, and we do not
want to maintain different war files one for each deployment, but just have
one far which we can use for deployment in all servers.

Any Ideas

Ashish


reading properties file in action class

2007-08-31 Thread Ashish Kulkarni
Hi
I have abc.properties and abc_fr.properties file,
if i have to print values from properties file in jsp i use tag
bean:message key=PL1143.datecompare/ and it will print value depending
on locale,
But what i want to get those values in action class, is there an direct
method to do so,
Like some thing getText(PL1143.datecompare)
i can read load properties file using servletContext, but i want to avoid
that.
is there any method in struts action for helping in doing so


Re: reading properties file in action class

2007-08-31 Thread Ashish Kulkarni
Hi
Thanks, it works

On 8/31/07, nuwan chandrasoma [EMAIL PROTECTED] wrote:

 Hi,

 use getResources() method in the action

 Thanks,

 Nuwan

 On 8/31/07, Ashish Kulkarni [EMAIL PROTECTED] wrote:
 
  Hi
  I have abc.properties and abc_fr.properties file,
  if i have to print values from properties file in jsp i use tag
  bean:message key=PL1143.datecompare/ and it will print value
 depending
  on locale,
  But what i want to get those values in action class, is there an direct
  method to do so,
  Like some thing getText(PL1143.datecompare)
  i can read load properties file using servletContext, but i want to
 avoid
  that.
  is there any method in struts action for helping in doing so
 



Validation using validation.xml issue

2007-08-31 Thread Ashish Kulkarni
Hi
I have a defined following bean in struts-config.xml
form-property name=color type=java.lang.String /
form-property name=datereqList type=java.util.List /

In my action class i set datereqList and pass it along to the jsp, the jsp
displays it as drop down box,
in my validtion.xml i am checking to make sure that color is not blank,
So when validation finds that color is blank it send response to the jsp
page, but now datereqList is not in request, since it is lost.

What is the best way to solve it, should i put datereqList in session?


Ashish


Re: Validation using validation.xml issue

2007-08-31 Thread Ashish Kulkarni
Hi
The error is thrown by validator frame work, and hence it never reaches
action class where i can load those list again,
I am not very sure how validtor framework works

Ashish

On 8/31/07, Laurie Harper [EMAIL PROTECTED] wrote:

 Ashish Kulkarni wrote:
  Hi
  I have a defined following bean in struts-config.xml
  form-property name=color type=java.lang.String /
  form-property name=datereqList type=java.util.List /
 
  In my action class i set datereqList and pass it along to the jsp, the
 jsp
  displays it as drop down box,
  in my validtion.xml i am checking to make sure that color is not blank,
  So when validation finds that color is blank it send response to the jsp
  page, but now datereqList is not in request, since it is lost.
 
  What is the best way to solve it, should i put datereqList in session?

 It sounds like you have your action's 'input' property pointing directly
 at the JSP. Your best bet is to have two action mappings, one for
 displaying the form and one for processing it on submission. Then set
 the second mapping's 'input' to point to the first mapping. Now,
 whenever the form is displayed -- either initially, or following
 validation errors -- the form-display action will be called, giving you
 a place to load the list into the form.

 L.


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




Re: Struts and Weblogic 10.0 issue

2007-08-30 Thread Ashish Kulkarni
Hi
This error is in Identity.jsp
, which is part of weblogic console application, and not my application,
so i dont have the source of this jsp

On 8/30/07, vamsi [EMAIL PROTECTED] wrote:

 Can you look at this
  input must be followed by either attribute specifications,  or
 /.
  at

 - Original Message -
 From: Ashish Kulkarni [EMAIL PROTECTED]
 To: Struts Users Mailing List user@struts.apache.org
 Sent: Wednesday, August 29, 2007 7:18 PM
 Subject: Re: Struts and Weblogic 10.0 issue


  Hi
  This is the error i get from weblogic console application
 
  Error opening /jsp/app/install/Identity.jsp.
  The source of this error is javax.servlet.ServletException:
  javax.xml.transform.TransformerException:
  javax.xml.transform.TransformerException:
  com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Element
  type
  input must be followed by either attribute specifications,  or
 /.
  at
  weblogic.servlet.jsp.PageContextImpl.handlePageException(
  PageContextImpl.java:418) at
 
 jsp_servlet._jsp._app._install.__identity._jspService(__identity.java:163)
  at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at
  weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(
  StubSecurityHelper.java:226) at
  weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
  StubSecurityHelper.java:124) at
  weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java
 :283)
  at
  weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java
 :175)
  at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(
  RequestDispatcherImpl.java:503) at
  weblogic.servlet.internal.RequestDispatcherImpl.include(
  RequestDispatcherImpl.java:431) at
 
 org.apache.beehive.netui.pageflow.scoping.internal.ScopedRequestDispatcher.include
  (ScopedRequestDispatcher.java:119) at
  com.bea.netuix.servlets.controls.content.JspContent.beginRender(
  JspContent.java:541) at
  com.bea.netuix.servlets.controls.content.NetuiContent.beginRender(
  NetuiContent.java:363) at com.bea.netuix.nf.ControlLifecycle$7.visit(
  ControlLifecycle.java:483) at
  com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
  ControlTreeWalker.java:518) at
  com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
  ControlTreeWalker.java:529) at
  com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
  ControlTreeWalker.java:529) at
  com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
  ControlTreeWalker.java:529) at
  com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
  ControlTreeWalker.java:529) at
  com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
  ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walk(
  ControlTreeWalker.java:220) at
  com.bea.netuix.nf.Lifecycle.processLifecycles
 
 
 
 
  On 8/28/07, Paul Benedict [EMAIL PROTECTED] wrote:
 
  Can you paste in the line of the JSP that is erring?
 
  On 8/28/07, Ashish Kulkarni [EMAIL PROTECTED] wrote:
  
   Hi
   It seems that weblogic console application may have error installing
   application developed using struts, i was able to deploy the
   application
   using command on dos
  
   Ashish
  
   On 8/28/07, Ashish Kulkarni [EMAIL PROTECTED] wrote:
   
Hi
This is an existing application, which was running on websphere and
tomcat, and now have to installed on weblogic 10.0
So what is the work around, to get this application installed and
   running
on weblogic,
I got the error when installing this application on weblogic
   
Ashish
   
On 8/28/07, John Liptak [EMAIL PROTECTED] wrote:


 Weblogic 9+ includes struts with weblogic, so you may not be
 running
 1.2.6
 unless you have taken care to preferr your applications classes
 over
   the
 standard version.  To read more, look at

  http://e-docs.bea.com/wls/docs90/programming/classloading.html#1082452

 While there isn't 10 specific information on this page, the
 general
 struts
 support information is at


  
 
 http://support.bea.com/application_content/product_portlets/support_patterns/wls/InvestigatingStrutsWithWebLogicServerPattern.html#Debugging_the_WebLogic_Classloader

 Another possibility is that wls 10 is using a different XML
 parser
   that
 is
 catching an error that was not caught before.

 It looks like you are getting the exception during install
 (correct?).  I
 would try turning off jsp pre-compilation for your application
 and
  try
 and
 get the error at runtime, vs. application deployment.

 Other than that, can you show the input field that is causing the
 exception?


 Ashish Kulkarni-2 wrote:
 
  Hi
  Has anybody run into problem installting struts based web
   application
 on
  Weblogic 10.0?
  I have a struts application using struts 1.2.6, which i am
 trying
  to
  install
  on weblogic and i keep getting the following error

Re: Struts and Weblogic 10.0 issue

2007-08-29 Thread Ashish Kulkarni
Hi
This is the error i get from weblogic console application

Error opening /jsp/app/install/Identity.jsp.
The source of this error is javax.servlet.ServletException:
javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException:
com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Element type
input must be followed by either attribute specifications,  or /. at
weblogic.servlet.jsp.PageContextImpl.handlePageException(
PageContextImpl.java:418) at
jsp_servlet._jsp._app._install.__identity._jspService(__identity.java:163)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(
StubSecurityHelper.java:226) at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
StubSecurityHelper.java:124) at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(
RequestDispatcherImpl.java:503) at
weblogic.servlet.internal.RequestDispatcherImpl.include(
RequestDispatcherImpl.java:431) at
org.apache.beehive.netui.pageflow.scoping.internal.ScopedRequestDispatcher.include
(ScopedRequestDispatcher.java:119) at
com.bea.netuix.servlets.controls.content.JspContent.beginRender(
JspContent.java:541) at
com.bea.netuix.servlets.controls.content.NetuiContent.beginRender(
NetuiContent.java:363) at com.bea.netuix.nf.ControlLifecycle$7.visit(
ControlLifecycle.java:483) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:518) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walk(
ControlTreeWalker.java:220) at com.bea.netuix.nf.Lifecycle.processLifecycles




On 8/28/07, Paul Benedict [EMAIL PROTECTED] wrote:

 Can you paste in the line of the JSP that is erring?

 On 8/28/07, Ashish Kulkarni [EMAIL PROTECTED] wrote:
 
  Hi
  It seems that weblogic console application may have error installing
  application developed using struts, i was able to deploy the application
  using command on dos
 
  Ashish
 
  On 8/28/07, Ashish Kulkarni [EMAIL PROTECTED] wrote:
  
   Hi
   This is an existing application, which was running on websphere and
   tomcat, and now have to installed on weblogic 10.0
   So what is the work around, to get this application installed and
  running
   on weblogic,
   I got the error when installing this application on weblogic
  
   Ashish
  
   On 8/28/07, John Liptak [EMAIL PROTECTED] wrote:
   
   
Weblogic 9+ includes struts with weblogic, so you may not be running
1.2.6
unless you have taken care to preferr your applications classes over
  the
standard version.  To read more, look at
   
 http://e-docs.bea.com/wls/docs90/programming/classloading.html#1082452
   
While there isn't 10 specific information on this page, the general
struts
support information is at
   
   
 
 http://support.bea.com/application_content/product_portlets/support_patterns/wls/InvestigatingStrutsWithWebLogicServerPattern.html#Debugging_the_WebLogic_Classloader
   
Another possibility is that wls 10 is using a different XML parser
  that
is
catching an error that was not caught before.
   
It looks like you are getting the exception during install
(correct?).  I
would try turning off jsp pre-compilation for your application and
 try
and
get the error at runtime, vs. application deployment.
   
Other than that, can you show the input field that is causing the
exception?
   
   
Ashish Kulkarni-2 wrote:

 Hi
 Has anybody run into problem installting struts based web
  application
on
 Weblogic 10.0?
 I have a struts application using struts 1.2.6, which i am trying
 to
 install
 on weblogic and i keep getting the following error
 This application works fine in Websphere, tomcat, Sun

 Error opening /jsp/app/install/Identity.jsp.
 The source of this error is javax.servlet.ServletException:
 javax.xml.transform.TransformerException:
 javax.xml.transform.TransformerException :
 com.sun.org.apache.xml.internal.utils.WrappedRuntimeException:
  Element
 type
 input must be followed by either attribute specifications, 
 or
/.
 at
 weblogic.servlet.jsp.PageContextImpl.handlePageException(
 PageContextImpl.java:418) at jsp_servlet._jsp._app._install.


 Ashish


   
--
View this message in context:
   
 
 http://www.nabble.com/Struts-and-Weblogic

Re: Struts and Weblogic 10.0 issue

2007-08-29 Thread Ashish Kulkarni
Done, voted for it
On 8/29/07, John Liptak [EMAIL PROTECTED] wrote:


 Know bug CR321242.  Vote for it if you have a support contract.


 --
 View this message in context:
 http://www.nabble.com/Struts-and-Weblogic-10.0-issue-tf4341662.html#a12388355
 Sent from the Struts - User mailing list archive at Nabble.com.


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




Re: Struts and Weblogic 10.0 issue

2007-08-29 Thread Ashish Kulkarni
Hi
 I cannot give you the actual JSP as this JSP is not with in my application,
this is a JSP in weblogic console
application, It can only be obtained from BEA i guess.

Ashish



On 8/29/07, Paul Benedict [EMAIL PROTECTED] wrote:

 Can I actually see the line of the JSP that fails? You showed me the stack
 trace. I want to see the actual JSP line.

 On 8/29/07, Ashish Kulkarni [EMAIL PROTECTED] wrote:
 
  Done, voted for it
  On 8/29/07, John Liptak [EMAIL PROTECTED] wrote:
  
  
   Know bug CR321242.  Vote for it if you have a support contract.
  
  
   --
   View this message in context:
  
 
 http://www.nabble.com/Struts-and-Weblogic-10.0-issue-tf4341662.html#a12388355
   Sent from the Struts - User mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 



Re: Struts and Weblogic 10.0 issue

2007-08-28 Thread Ashish Kulkarni
Hi
This is an existing application, which was running on websphere and tomcat,
and now have to installed on weblogic 10.0
So what is the work around, to get this application installed and running on
weblogic,
I got the error when installing this application on weblogic

Ashish

On 8/28/07, John Liptak [EMAIL PROTECTED] wrote:


 Weblogic 9+ includes struts with weblogic, so you may not be running 1.2.6
 unless you have taken care to preferr your applications classes over the
 standard version.  To read more, look at
 http://e-docs.bea.com/wls/docs90/programming/classloading.html#1082452

 While there isn't 10 specific information on this page, the general struts
 support information is at

 http://support.bea.com/application_content/product_portlets/support_patterns/wls/InvestigatingStrutsWithWebLogicServerPattern.html#Debugging_the_WebLogic_Classloader

 Another possibility is that wls 10 is using a different XML parser that is
 catching an error that was not caught before.

 It looks like you are getting the exception during install (correct?).  I
 would try turning off jsp pre-compilation for your application and try and
 get the error at runtime, vs. application deployment.

 Other than that, can you show the input field that is causing the
 exception?


 Ashish Kulkarni-2 wrote:
 
  Hi
  Has anybody run into problem installting struts based web application on
  Weblogic 10.0?
  I have a struts application using struts 1.2.6, which i am trying to
  install
  on weblogic and i keep getting the following error
  This application works fine in Websphere, tomcat, Sun
 
  Error opening /jsp/app/install/Identity.jsp.
  The source of this error is javax.servlet.ServletException:
  javax.xml.transform.TransformerException:
  javax.xml.transform.TransformerException:
  com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Element
  type
  input must be followed by either attribute specifications,  or
 /.
  at
  weblogic.servlet.jsp.PageContextImpl.handlePageException(
  PageContextImpl.java:418) at jsp_servlet._jsp._app._install.
 
 
  Ashish
 
 

 --
 View this message in context:
 http://www.nabble.com/Struts-and-Weblogic-10.0-issue-tf4341662.html#a12368101
 Sent from the Struts - User mailing list archive at Nabble.com.


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




Re: Struts and Weblogic 10.0 issue

2007-08-28 Thread Ashish Kulkarni
Hi
It seems that weblogic console application may have error installing
application developed using struts, i was able to deploy the application
using command on dos

Ashish

On 8/28/07, Ashish Kulkarni [EMAIL PROTECTED] wrote:

 Hi
 This is an existing application, which was running on websphere and
 tomcat, and now have to installed on weblogic 10.0
 So what is the work around, to get this application installed and running
 on weblogic,
 I got the error when installing this application on weblogic

 Ashish

 On 8/28/07, John Liptak [EMAIL PROTECTED] wrote:
 
 
  Weblogic 9+ includes struts with weblogic, so you may not be running
  1.2.6
  unless you have taken care to preferr your applications classes over the
  standard version.  To read more, look at
  http://e-docs.bea.com/wls/docs90/programming/classloading.html#1082452
 
  While there isn't 10 specific information on this page, the general
  struts
  support information is at
 
  http://support.bea.com/application_content/product_portlets/support_patterns/wls/InvestigatingStrutsWithWebLogicServerPattern.html#Debugging_the_WebLogic_Classloader
 
  Another possibility is that wls 10 is using a different XML parser that
  is
  catching an error that was not caught before.
 
  It looks like you are getting the exception during install
  (correct?).  I
  would try turning off jsp pre-compilation for your application and try
  and
  get the error at runtime, vs. application deployment.
 
  Other than that, can you show the input field that is causing the
  exception?
 
 
  Ashish Kulkarni-2 wrote:
  
   Hi
   Has anybody run into problem installting struts based web application
  on
   Weblogic 10.0?
   I have a struts application using struts 1.2.6, which i am trying to
   install
   on weblogic and i keep getting the following error
   This application works fine in Websphere, tomcat, Sun
  
   Error opening /jsp/app/install/Identity.jsp.
   The source of this error is javax.servlet.ServletException:
   javax.xml.transform.TransformerException:
   javax.xml.transform.TransformerException :
   com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Element
   type
   input must be followed by either attribute specifications,  or
  /.
   at
   weblogic.servlet.jsp.PageContextImpl.handlePageException(
   PageContextImpl.java:418) at jsp_servlet._jsp._app._install.
  
  
   Ashish
  
  
 
  --
  View this message in context:
  http://www.nabble.com/Struts-and-Weblogic-10.0-issue-tf4341662.html#a12368101
  Sent from the Struts - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



logging with Log4J

2007-08-27 Thread Ashish Kulkarni
Hi
Does anyone have an exmple of using log4j for logging struts messages,
I have an web application where i use log4j for logging, i have a
mapslog4j.xml file in WEB-INF folder and load this log file using
DOMConfigurator in a servlet.
This servlet is loaded before struts servlet,
but some how this is not
working, i do not get any logs from struts in my log file,


Ashish


effect of removing commons-logging from classpath?

2007-08-24 Thread Ashish Kulkarni
Hi
I have a struts 1.2.4 application, and i have log4j.jar and
commons-logging.jar in classpath
In my application i use log4j for logging,
i wanted to know what would be effect of removing commons-logging.jar file
from classpath


Re: effect of removing commons-logging from classpath?

2007-08-24 Thread Ashish Kulkarni
Hi
How do i configure sturts logging then, i have a log4j.properties file where
i set my application logging, can i use the same for struts logging

Ashish

On 8/24/07, Paul Benedict [EMAIL PROTECTED] wrote:

 Impossible. Struts is built with Commons Logging.

 On 8/24/07, Ashish Kulkarni [EMAIL PROTECTED] wrote:
 
  Hi
  I have a struts 1.2.4 application, and i have log4j.jar and
  commons-logging.jar in classpath
  In my application i use log4j for logging,
  i wanted to know what would be effect of removing commons-logging.jarfile
  from classpath
 



Re: [OT] Question about performance with last array

2007-08-10 Thread Ashish Kulkarni
Hi
This is what i have to do,
suppose have 3 points A-B-C then
i have to find the shortest distance to travel, but this is not as simple as
travel sales man problem because
A-B is not as same as B-C
So suppose i have
A-B is 2
A-C is 1
B-A is 3
B-C is 2
C-A is 4
C-B is 3
then i have find what is the best of A-B-C or A-C-B or some thing else,
any ideas?



On 8/10/07, Antonio Petrelli [EMAIL PROTECTED] wrote:

 2007/8/10, Ashish Kulkarni [EMAIL PROTECTED]:
  Hi
  I have a program which creates permutations for 10 letters, so the
 values i
  get is 10 ^10 which is more then 3 million

 Do you mean permutations (the same letters ordered in different ways)
 or dispositions with repetition (the 10-letter group can be taken from
 the 26 letters of the alphabet, can be repeated and can stay in any
 order)?
 Permutations: 10! possibilities
 Dispositions with repetition: 26^10

  Now i have to go through all 3 million records and do some calculations
 to
  determine the best possible combination .
 
  Any ideas what i should use, LinkedList, ArrayList, HashMap,
  what would be the best way performance wise
 
  should i use primitive or objects for calculations.
  Any suggestions on approaching this problem.

 IMHO it's better not to do it! :-) AFAICT, either way you are using
 permutations or dispositions with repetition, it is a O(e^n) problem,
 i.e. exponential complexity.
 I think that you need to change the problem, or solve it in another
 way, to go down to polynomial complexity.
 The answer, then, is that the complexity does not depend on the
 array-like structure you are using.

 Just my 0.02 euros.
 Antonio

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




[OT] Question about performance with last array

2007-08-09 Thread Ashish Kulkarni
Hi
I have a program which creates permutations for 10 letters, so the values i
get is 10 ^10 which is more then 3 million
Now i have to go through all 3 million records and do some calculations to
determine the best possible combination .

Any ideas what i should use, LinkedList, ArrayList, HashMap,
what would be the best way performance wise

should i use primitive or objects for calculations.
Any suggestions on approaching this problem.

Ashish


[OT] mathematical algorithm in java

2007-05-18 Thread Ashish Kulkarni

Hi
Are there any mathematical algorithm in java, for example CPM, or branch and
bound algorithm
Open source is good, but not a requirement, anything in C or C++ is also
okay, can try to call them from java
Can anyone provide some links for them


Ashish


[OT] How to handle non UTF characters in XML

2007-04-16 Thread Ashish Kulkarni

Hi
I have java class which creates an XML file from SQL resultset,
It works fine in USA, but i am having issues when this process runs in
Germany where they have non UTF characters in there database like ü or á.
How do we handle this kind of situation in XML file, i set the XML file to
be of UTF-8 type,

the java code which creates the XML file is as below

Document document = builder.newDocument();
Element root = (Element) document.createElement(rootElement);
document.appendChild(root);
// create element with ResultSetMetaData Name
Element record = document.createElement(rm.getColumnName(i));

// add text node with the actual value
record.appendChild(document.createTextNode(rs.getString(k));


Ashish


Re: [OT] How to handle non UTF characters in XML

2007-04-16 Thread Ashish Kulkarni

Hi
Here is the code where i read the dom tree and then convert it to a String,
then convert this string into Byte array and then user
DocumentBuilder().parse to parse it.

I get error in factory.newDocumentBuilder().parse(byteArray);


TransformerFactory tFactory =
   TransformerFactory.newInstance();
   Transformer transformer = tFactory.newTransformer();
   StringWriter writer = new StringWriter();
   DOMSource source = new DOMSource(doc);
   transformer.transform(source, new StreamResult(writer));
   String obj = writer.toString();
ByteArrayInputStream byteArray = new ByteArrayInputStream(obj.getBytes());
Document doc = factory.newDocumentBuilder().parse(byteArray);


Ashish
On 4/16/07, Joe Germuska [EMAIL PROTECTED] wrote:


On 4/16/07, Christopher Schultz [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Ashish,

 Ashish Kulkarni wrote:
  I have java class which creates an XML file from SQL resultset,
  It works fine in USA, but i am having issues when this process runs in
  Germany where they have non UTF characters in there database like ü or
 á.

 I think you mean non-lower-ASCII. This characters are certainly covered
 by UTF-8.

  How do we handle this kind of situation in XML file, i set the XML
file
 to
  be of UTF-8 type.

 How do you set the file type to UTF-8?


I'm assuming Ashish is talking about the encoding attribute of the XML
declaration in the first line of the file.

Chris is correct that the real magic happens when you serialize the DOM to
a
file, but you should be sure to use the same encoding with the writer that
actually creates the file as you do in the XML declaration.  If your
characters aren't UTF-8 then don't use UTF-8.  Any decent XML reading
software will recognize the encoding when the file is read.

Joe

--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com

The truth is that we learned from João forever to be out of tune.
-- Caetano Veloso



Issue in compiling application in websphere

2007-04-11 Thread Ashish Kulkarni

Hi
I am getting the following jsp compilation error in websphere 5.1
org.apache.jasper.compiler.ParseException:
/pages/purchasing/contract.jsp(128,61) Attribute system has no value
   at org.apache.jasper.compiler.JspReader.parseAttributeValue(
JspReader.java:599)

This jsp compiles fine in tomcat

This is what i have in my jsp
html:form action=pages/purchase/ContractApprovalAction focus=comment
   html:hidden value=%= sppu0016.getSTEREGFLG() %
property=siteregflg / (This is line 128)
   html:hidden value=%=(String)request.getAttribute(system)%
property=system  /
/html:form

This is how i have defined in struts-config.xml file

form-bean name=ContractApprovalForm
   type=org.apache.struts.validator.DynaValidatorForm
   dynamic=true
   form-property name=data
   type=com.pfizer.maps.file.purchase.SPPU0016 /
   form-property name=prcvar type=java.util.List /
   form-property name=comment type=java.lang.String /
   form-property name=comment1 type=java.lang.String /
   form-property name=system type=java.lang.String /
   form-property name=envName type=java.lang.String /
   form-property name=ttype type=java.lang.String /
   form-property name=reasoncode type=java.lang.String /
   form-property name=reasondesc type=java.lang.String /
   form-property name=reasonCodeValues type=java.util.List /
   form-property name=contractNotes type=java.util.List /
   form-property name=contractLineNotes type=java.util.List /
   form-property name=priceBreaks type=java.util.List /
   /form-bean

Any idea what it might be

Ashish


Re: Issue in compiling application in websphere

2007-04-11 Thread Ashish Kulkarni

Hi
I got the issue, it is the double quote ,
i change the jsp from
html:hidden value=%= sppu0016.getSTEREGFLG() % property=siteregflg /

to

html:hidden value='%= sppu0016.getSTEREGFLG() %' property=siteregflg /

and it worked, i dont understand by websphere was not able to compile with
double quotes

Ashish


On 4/11/07, Ashish Kulkarni [EMAIL PROTECTED] wrote:


Hi
I am getting the following jsp compilation error in websphere 5.1
org.apache.jasper.compiler.ParseException:
/pages/purchasing/contract.jsp(128,61) Attribute system has no value
at org.apache.jasper.compiler.JspReader.parseAttributeValue (
JspReader.java:599)

This jsp compiles fine in tomcat

This is what i have in my jsp
html:form action=pages/purchase/ContractApprovalAction focus=comment
html:hidden value=%= sppu0016.getSTEREGFLG() %
property=siteregflg / (This is line 128)
html:hidden value=%=(String)request.getAttribute(system)%
property=system  /
/html:form

This is how i have defined in struts-config.xml file

form-bean name=ContractApprovalForm
type=org.apache.struts.validator.DynaValidatorForm
dynamic=true
form-property name=data
type=com.pfizer.maps.file.purchase.SPPU0016 /
form-property name=prcvar type= java.util.List /
form-property name=comment type=java.lang.String /
form-property name=comment1 type=java.lang.String /
form-property name=system type=java.lang.String /
form-property name=envName type=java.lang.String /
form-property name=ttype type= java.lang.String /
form-property name=reasoncode type=java.lang.String /
form-property name=reasondesc type=java.lang.String /
form-property name=reasonCodeValues type=java.util.List
/
form-property name=contractNotes type=java.util.List /
form-property name=contractLineNotes type= java.util.List
/
form-property name=priceBreaks type=java.util.List /
/form-bean

Any idea what it might be

Ashish







Java Source Compare utility

2006-07-19 Thread Ashish Kulkarni

Hi
Is there any open source Java source comparision utility,
I have 2 versions of smae code and want to find what are the excat changes,
Thanx
Ashish


[OT] utility to print DOM object of XML file

2006-05-24 Thread Ashish Kulkarni

Hi
Is there a apache or some utility which will print XML file if i provide a
document object.
I am writing a program to build XML file in memory and then write it to a
file, i need this utility for debug so i can print the xml file in standard
output, (screen or log file) .
I am using java 1.4.2 , and dont have JDOM or xerces,
Or does anyone have a code that will print the dom object from memory
I just dont wanna write one more code to do this work

Ashish


Issue with DHTML and DIV position

2006-05-02 Thread Ashish Kulkarni
Hi
I am attaching a html file along this mail, and also posting a shorttext URL to view the html file
What i basically want to do is get the div with id=showtwo below the 2 link displayed 
Can anyone help with this issue

The code link is
http://www.shortText.com/zlj8z

or you can download the html file along this mail, or the get the html text pasted in this mail

html
head
 titlePostion Text/title
 script language=_javascript_
 function hideAll()
 {
 document.getElementById(showone).style.visibility='hidden';
 document.getElementById(showtwo).style.visibility='hidden';
 }
 function showOne()
 {
 hideAll();
 document.getElementById(showone).style.visibility='visible';
 }
 function showTwo()
 {
 hideAll();
 document.getElementById(showtwo).style.visibility='visible';
 }
 /script
/head

body
  div id=top_div
  table width=100% align=center
  tr 
  td
  a href="" One/anbsp; nbsp;
  a href="" Two/a
  /td
  /tr
  /table
  /div
  div id=showone style=visibility= visible; position: relative;
  table width=100% align=center
  tr 
  td height=100px;
  This is showing number one DIV
  /td
  /tr
  /table
  /div
  div id=showtwo style=visibility= hidden; position: relative;
  table width=100% align=center
  tr 
  td height=100px;
 DIV Number 2 is showed now
  /td
  /tr
  /table
  /div

/body
/html


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

Re: ************* forwarding to a servlet from my jsp ***********

2006-04-19 Thread Ashish Kulkarni
Hi
You have use following code in jsp

RequestDispatcher dispatcher = request.getRequestDispatcher(servlet path);
dispatcher.forward(request, response);



On 4/19/06, Sony Thomas [EMAIL PROTECTED] wrote:

 Hi,

 I have a struts application. From one of the jsp pages I have to forward
 to a servlet when I submit the jsp. Can anyone help me to  find a
 solution for this problem. I have two buttons in my JSP. When I click
 one of the buttons it should go to the action class. When I click the
 other button it should forward to a servlet. I have a javascript
 function. Inside javascript function I am checking which of the button
 is clicked. Can anyone tell me from inside javascript function how is it
 possible to forward to the servlet.

 Thanks in advance and this is bit urgent please help.

 sony

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




[OT] Need information about books to buy

2006-04-07 Thread Ashish Kulkarni
Hi
I need to buy couple of books, 1 for AJAX, and 2 for
Webservices,
I know the basics of Ajax and Webservices, and need to
use them in real time application

These are the onces i have seen, need input from
people who have read them so can purchase them

Ajax
1 Ajax Hacks, by Bruce W. Perry Oreilly Publication
2 Ajax in Action

Webservices
1 J2EE Web Services by Richard Monson-Haefel
Addison-Wesley Professional
2 Java Web Services
By David A. Chappell, Tyler Jewell
Oreilly Publication

Or Any other which will have lot of working code
examples and different strageries 


A$HI$H

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



issue with Struts , DWR, javascript in Firefox browser

2006-04-04 Thread Ashish Kulkarni
Hi
I am trying to do a test application using struts, DWR
I am having problem with document.getElementById
method in javascript, this works fine in IE 6.0 and
opera
I am using struts tag
html:text title=last property=last size=60
readonly=true /

and then in my javascript doing the following
 document.getElementById('last').value= data;

Firefox gives me javascript error, element with name
last not found,
but if i define this field as 
INPUT type=text name=last id=last size=60
maxlength=50 value= readonly=readonly

It works in firefox, so how can i define struts tag to
get the id attribute , or is there a work around

Ashish

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: issue with Struts , DWR, javascript in Firefox browser

2006-04-04 Thread Ashish Kulkarni
Hi
Thanx for the answer, where in documenation is it
written that styleId is id??

Ashish

--- Slattery, Tim - BLS [EMAIL PROTECTED]
wrote:

  I am trying to do a test application using struts,
 DWR
  I am having problem with document.getElementById
  method in javascript, this works fine in IE 6.0
 and
  opera
  I am using struts tag
  html:text title=last property=last size=60
 readonly=true /
  
  and then in my javascript doing the following  
  document.getElementById('last').value= data;
  
  Firefox gives me javascript error, element with
 name
  last not found,
  but if i define this field as 
  INPUT type=text name=last id=last size=60
 
  maxlength=50 value= readonly=readonly
  
  It works in firefox, so how can i define struts
 tag to
  get the id attribute , or is there a work around
 
 You've hit the nail on the head, you need to tell
 the html:text tag to
 output an id attribute. You do that by using the
 styleId attribute of
 the tag:
 
 html:text title=last property=last size=60
 readonly=true
 styleId=last/ 
 
 
 --
 Tim Slattery
 [EMAIL PROTECTED]
 
 

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


A$HI$H

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Has anyone intregrated DWR with AJAX?

2006-04-04 Thread Ashish Kulkarni
hi
I have a website which is developed using struts, I am
looking to convert some of it to AJAX and working on
different approaches, 
In my current application, i have a common Action
class which has all the common functions like getting
the information stored in ServletContext, or Session
or getting the connection from JNDI
I am using Ibatis SQL mapping to run SQL querries,
with SqlMapClient stored in ServletContext.
What would be the best way to start converting to DWR,
in DWR i can just define simple java beans (POJO).
I can get access to servlet request, etc using 
WebContext ctx = WebContextFactory.get();
req = ctx.getHttpServletRequest();

This is what i am planning, using Action class and
ActionForm to load initial data on jsp, and then use
DWR to update information on this screen jsp after
user does some funtions.

Is this the right approach?
Can i access this form bean (in request scope in java
bean class)

What are other possible ways to do so

Ashish

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



using AJAX and Struts Action class how to refresh data on jsp page

2006-04-03 Thread Ashish Kulkarni
hi
I am trying to learn AJAX and struts together (will
use some standard solution later)
This is what i am doing, 
In my jsp i have 2 text fields FirstName and LastName
when the user enters FirstName and hits enter i call a
javascript which creates XMLHttpRequest objects, and
calls a Action class using GET , it send parameter as
name  some thing like this
GetNameAction.do?first=name

this Action class then populates last name, 
In servlet i would just do 
PrintWriter out = response.getWriter();
out.println(last); and works fine, but i dont want to
do it that way,
In Struts, i want to populate ActionForm, and then
refresh jsp page

How do i do it

Ashish

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: using AJAX and Struts Action class how to refresh data on jsp page

2006-04-03 Thread Ashish Kulkarni
Frank
I dont want to update all the jsp page, only the last
name text field,
I am able to do so if i do 
PrintWriter out = response.getWriter();
out.println(last);
return null;

but suppose, i have 10-15 fields that need to be
updated, how will i pass data ack to jsp
Is there a way to pass java object to jsp, and then
some how refresh these 10-15 fields.
I dont want to write html generating code in
ActionClass, but just send data and jsp handle it. and
refresh those 10-15 fields

I have looked at DWR also, but it only handles Java
Beans, how do i make it call ActionClass, i need this
because i have to get information about session,
request, servlet context and then process data.
Is it possible to do get all this information using
DWR and also about security, i have ServletFilter in
place which checks few things for security, how will
it be affected uwing DWR

Ashish

--- Frank W. Zammetti [EMAIL PROTECTED] wrote:

 On Mon, April 3, 2006 1:19 pm, Ashish Kulkarni said:
  In Struts, i want to populate ActionForm, and then
  refresh jsp page
 
 This is pretty much the exact opposite of what AJAX
 is for :)  Refreshing
 the whole page is what your actually tring to avoid
 with AJAX.
 
 You can populate the form fields yourself in a
 Javascript callback
 function, or I suppose you could fire off a refresh
 of the page from a
 callback if you really wanted to do that.
 
 Have a look here:
 
 http://www.omnytex.com/articles
 
 This has an article about doing AJAX with Struts,
 and shows some examples
 of updating form fields.
 
 You may also want to see this Wiki page:
 
 http://wiki.apache.org/struts/AjaxStruts
 
 And, if you don't feel like writing the client-side
 code yourself, have a
 look at this library:
 
 http://javawebparts.sourceforge.net
 
 Specifically, click the Javadocs link, and then
 navigate to the AjaxTags
 package.  This is a taglib for implementing AJAX in
 an application, Struts
 or otherwise, in a completely declarative fashion,
 without having to write
 a lot (or any!) Javascript yourself.
 
 Alternatively, I'm a big fan of DWR:
 
 http://getahead.ltd.uk/dwr
 
 Although AjaxTags will save you from writing a lot
 of script yourself, DWR
 is a more RPC-like mechanism, and handles
 transmutation of Java objects to
 Javascript objects, and really works very well.
 
  Ashish
 
 Frank
 

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


A$HI$H

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



[OT] Web application for pushing contents

2006-03-22 Thread Ashish Kulkarni
Hi
We have an requirement where we want to update
contents on a webpage automatically after 2 hours.
I was doing to research if i can do it using push
technology, for example our webapplication (written in
struts) will push data to these client machines, after
2 hours and refresh the display page there, with a jpg
image or some thing.
Has anyone any pointers for doing this, is it possible
to do it?
or should we just a microsoft scheduler and a batch
file which will open a html page with request to
server after 2 hours.

Regards

Ashish

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



[OT]Struts - AJAX, best solution

2006-03-14 Thread Ashish Kulkarni
Hi
I have a couple of questions below 
1 What is the best soluction to have struts and AJAX
work together?
I have read about DWR, Java Web parts, AjaxAnywhere, 
But which is the good one, and why?

2 What is better for response XML file or comman
delimeted string, or build HTML in action class and
pass it to java script to replace it.


3 Also if i have my own java script to do Ajax
what do i return in Action class, normally in action
class i do
mapping.findForward(success); after loading the
form, this will redirect response to the required JSP.
How does this change in AJAX, how do i reload only
part of JSP.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



[OT] Utility to create DDL from a database

2006-01-19 Thread Ashish Kulkarni
Hi
Is there any open source utility which i can use to
create DDL from an existing database, so i can use it
to run to create tables on other database.
This utility should be smart enough to create DDL
statements for tables with primary key, before tables
with foreign key.
That way when i run the DDL to create tables on other
database there wont be referential integrity errors.
Is there some thing like this out in market.

Also is there a open source utility to run SQL
statemens againts database 

Ashish

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: [OT] Utility to create DDL from a database

2006-01-19 Thread Ashish Kulkarni
Hi
there is a export tool, but the problem it creates DDL
sorted by table names, and it does not take into
account any database relationships, i may have to go
in manually and creates script..
for example there may be a table ABC which has a
foreign key constraint with table XYZ.
This database utility created DDL for ABC first and
then for XYZ.
So i run these DDL statements it gives error saying
that table XYZ is not created.
So i need some utility which will create DDL
considering these constraints

Ashish


--- [EMAIL PROTECTED] wrote:

 Doesn't your database include such an export tool? 
 What database are
 you using?
 
 Ashish Kulkarni inquired
  Is there any open source utility which i can use
 to
  create DDL from an existing database, so i can use
 it
  to run to create tables on other database.
  This utility should be smart enough to create DDL
  statements for tables with primary key, before
 tables
  with foreign key.
  That way when i run the DDL to create tables on
 other
  database there wont be referential integrity
 errors.
  Is there some thing like this out in market.
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



[OT] utility or tool to convert HTML and JSP tags to struts or JSF tags again

2006-01-13 Thread Ashish Kulkarni
Hi
we some HTML pages and jsp pages, which we want to
convert to struts, or JSF
Is there a utility which would read this html or jsp
page and convert the tags to struts tags?
I thought struts-console did it, but it seems it does
not do it
Is there any utilities out there open source, free
possibly

Ashish

A$HI$H

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



How to update part of JSP using AJAX and struts action class

2006-01-12 Thread Ashish Kulkarni
Hi
I have a jsp where there are 2 drop down boxes,
I want to populate the value in second drop down box
depending on the selection of first dropdown box,
Suppose onClick event on first dropdown box i call a
struts Action  using AJAX, this Action class populates
the Form bean and sends it back to 
How can in ajax i can access this form bean, get the
data, once i get the data i can update drop down using
DHTML,
Is there some framework or tutorial for doing this.
I am populating form bean to make this application
workable in non AJAX supporting browser also, and all
my existing application is written this way and i dont
want to change a lot in it

Ashish

A$HI$H

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Create tabs using struts

2006-01-12 Thread Ashish Kulkarni
Hi
Is there a any facility to create tabs in struts?
I want to create a jsp page where user can click on
link in one tab and the selected link will open more
details in other tab, that way i dont have to reload
all the page each time user click on link, 
i am planning to use AJAX to update other tab


Ashish

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



convert html or jsp tags to struts tags

2006-01-12 Thread Ashish Kulkarni
Hi
Is there a open source or free utility to convert html
tags and jsp tags to equivalant struts tags?
I have some HTML pages and plain  jsp pages which i
would like to convert to struts tags


Ashish

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Create tabs using struts- URL does not work

2006-01-12 Thread Ashish Kulkarni
hi there
the short description URL
http://www.jroller.com/page/javadujour/20060110
does not work, give 403 error
Just one more question, i can i programmatically
decide which tab is to be displayed, for example, user
clicks a button on tab1 , can i open tab 2 and load
information and show it to user
Ashish

--- Michael Jouravlev [EMAIL PROTECTED] wrote:

 On 1/12/06, Wendy Smoak [EMAIL PROTECTED] wrote:
  On 1/12/06, Michael Jouravlev [EMAIL PROTECTED]
 wrote:
 
   Oops, bad URL for live demo. Here is the proper
 one:
  

http://www.superinterface.com/jspcontrols/tabcontrol/index.jsp
 
  Nice. :)  How would you you conditionally display
 each tab based on
  user role(s)?
 
 Right now there is no security-specific tag or
 attribute. What you can
 do now is either:
 
 * surround each tab with Struts/JSTL conditional
 tags, or
 * create a tag/servlet that spits out only the tags
 that are
 appropriate for current component state (this would
 have to be my job,
 actually).
 
 For example, this is how the Tigris-style tabs can
 be defined
 (copy/paste style):
 
 === cut here ===
   table class=tabs border=0 cellspacing=0
 cellpadding=0
 tr
 
   %-- First tab is active --%
   c:if test='${empty currentTab || currentTab
 == tab1}'
 table class=tigristabs border=0
 cellspacing=0
   tr
 thjc:link event=tab1event
 value=Tab1 //th
 tdjc:link event=tab2event
 value=Tab2 //td
   /tr
 /table
   /c:if
 
   %-- Second tab is active --%
   c:if test='${currentTab == tab2}'
 table class=tigristabs border=0
 cellspacing=0
   tr
 tdjc:link
 event=tab1eventTab1/jc:link/td
 thjc:link
 event=tab2eventTab2/jc:link/th
   /tr
 /table
   /c:if
 /tr
   /table
 === cut here ===
 
 You can put whatever you want into JSTL condition.
 The tab component
 that I have now is more of a template that you can
 adjust for your
 content and design, than a parameterizable tag. If
 you interested, see
 this short intro:
 http://www.jroller.com/page/javadujour/20060110
 
 But nothing prevents me from putting this markup
 inside a Tab tag. I
 think I will do that, and I will add role
 attribute as well, just
 like you have in Struts Menu. Or do you want to have
 it in a different
 way? I am all ears :-)
 
 I am doing my releases step by step, hopefully it
 won't take long for
 1.0 version ;-) Thanks for heads up!
 
 Michael.
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Create tabs using struts

2006-01-12 Thread Ashish Kulkarni

Hi
Where can i download it and test it, also the URL for
short desciption does not work
--- Michael Jouravlev [EMAIL PROTECTED] wrote:

 Will something like this work:

http://www.superinterface.com/jspcontrols/tabcontrol/
 Here is a short description how to customize it:
 http://www.jroller.com/page/javadujour/20060110
 
 Works in both Ajax and non-Ajax mode.
 
 Michael.
 
 On 1/12/06, Ashish Kulkarni
 [EMAIL PROTECTED] wrote:
  Hi
  Is there a any facility to create tabs in struts?
  I want to create a jsp page where user can click
 on
  link in one tab and the selected link will open
 more
  details in other tab, that way i dont have to
 reload
  all the page each time user click on link,
  i am planning to use AJAX to update other tab
 
 
  Ashish
 

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


A$HI$H

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



html:select tag question

2006-01-11 Thread Ashish Kulkarni
Hi
I am a bit confused about using html:select and
html:optionCollection tag 
Suppose i have defined following in struts-config.xml
file
form-bean name=viewlinephase
type=org.apache.struts.action.DynaActionForm
form-property name=selectedView
type=java.lang.String /
form-property name=viewNames
type=java.util.Vector /
/form-bean
I have a bean where in i have get and set method for
name and desctiption, suppose the bean is called
MyBean and viewNames vector is populated by MyBean
class

How do i define it in jsp page, 
what i want is some thing like this in html page
SELECT name=selectedView size=4
OPTION value=test
test data
/OPTION
OPTION value=test1 selected
test dtaa 1
/OPTION
/SELECT

Where test is name and test data1 is description in
MyData bean. also data value selectedView should be
the selected value in option
I have looked the examples supplied but still could
not figure out how it works

Ashish


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



How to iterate using c:forEach with DynaActionForm

2006-01-11 Thread Ashish Kulkarni
Hi
I have defined a DynaValidatorForm in
struts-config.xml file like this
form-bean name=viewlinephase
type=org.apache.struts.action.DynaActionForm
 form-property name=viewNames
type=java.util.Collection /
/form-bean

In My jsp i have defined a Action class which uses
this bean 
I want to iterate through all viewNames in my jsp
using c:forEach.. tag
How do i go it
I tried
c:forEach var=viewName
items=${viewlinephase.viewNames}
  html:option value=${viewName.l082CODE}
c:out value=${viewName.nameDesc}/
  /html:option
/c:forEach

But i get Unable to find a value for viewNames in
object of class
org.apache.struts.action.DynaActionForm using
operator .

How do i do it

Ashish 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: How to iterate using c:forEach with DynaActionForm

2006-01-11 Thread Ashish Kulkarni
Hi
Thanx now it works, 
but i have another issue, 
what i am trying is this
html:select property=selectedViewsize=5 
 c:forEach var=viewName
items=${viewlinephase.map.viewNames}
  html:option value=${viewName.l1082CODE}
c:out value=${viewName.nameDesc}/
  /html:option
 /c:forEach
/html:select

viewName.nameDescis workig fine, and value is getting
substituated, but viewName.l1082CODE is not getting
substituted
my bean is as follows
public class PL1082Bean
{
private String l082CODE;
private String l082DESC;


public String getL082CODE()
{
return l082CODE;
}
public void setL082CODE(String l082code)
{
l082CODE = l082code;
}
public String getL082DESC()
{
return l082DESC;
}
public void setL082DESC(String l082desc)
{
l082DESC = l082desc;
}
public String getNameDesc()
{
return l082CODE +   + l082DESC;
}

Ashish
--- Rahul Akolkar [EMAIL PROTECTED] wrote:

 On 1/11/06, Ashish Kulkarni
 [EMAIL PROTECTED] wrote:
  Hi
  I have defined a DynaValidatorForm in
  struts-config.xml file like this
  form-bean name=viewlinephase
  type=org.apache.struts.action.DynaActionForm
   form-property name=viewNames
  type=java.util.Collection /
  /form-bean
 
  In My jsp i have defined a Action class which uses
  this bean
  I want to iterate through all viewNames in my jsp
  using c:forEach.. tag
  How do i go it
  I tried
  c:forEach var=viewName
  items=${viewlinephase.viewNames}
 snip/
 
 ${viewlinephase.map.viewNames}
 
 You'll be able to CGLib enhance if you wish in
 1.3.x.
 
 -Rahul
 
 
   html:option value=${viewName.l082CODE}
 c:out value=${viewName.nameDesc}/
   /html:option
  /c:forEach
 
  But i get Unable to find a value for viewNames
 in
  object of class
  org.apache.struts.action.DynaActionForm using
  operator .
 
  How do i do it
 
  Ashish
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: How to iterate using c:forEach with DynaActionForm

2006-01-11 Thread Ashish Kulkarni
Hello
I did a typing mistake here, i did have 
html:option value=${viewName.l082CODE} in my code,
corcoresponding to getL082CODE method in my bean

Ashish
--- Rahul Akolkar [EMAIL PROTECTED] wrote:

 On 1/11/06, Ashish Kulkarni
 [EMAIL PROTECTED] wrote:
  Hi
  Thanx now it works,
  but i have another issue,
  what i am trying is this
  html:select property=selectedViewsize=5 
   c:forEach var=viewName
  items=${viewlinephase.map.viewNames}
   html:option value=${viewName.l1082CODE}
 c:out value=${viewName.nameDesc}/
   /html:option
   /c:forEach
  /html:select
 
  viewName.nameDescis workig fine, and value is
 getting
  substituated, but viewName.l1082CODE is not
 getting
  substituted
 snip/
 
 No such getter below (but there is one for
 viewName.l082CODE).
 
 -Rahul
 
 
  my bean is as follows
  public class PL1082Bean
  {
 private String l082CODE;
 private String l082DESC;
 
 
 public String getL082CODE()
 {
 return l082CODE;
 }
 public void setL082CODE(String l082code)
 {
 l082CODE = l082code;
 }
 public String getL082DESC()
 {
 return l082DESC;
 }
 public void setL082DESC(String l082desc)
 {
 l082DESC = l082desc;
 }
 public String getNameDesc()
 {
 return l082CODE +   + l082DESC;
 }
 
  Ashish
 snap/
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



[OT] IDE for developing portals

2005-12-28 Thread Ashish Kulkarni
Hello

What are the IDE available for developing web portals.
I know a few like bowstreet (www.bowstreet.com) or IBM
rational
developer(http://www-128.ibm.com/developerworks/rational/products/rad/)


are there anyother tools which i sould look at,
preferrably open source.

Ashish




__ 
Yahoo! for Good - Make a difference this year. 
http://brand.yahoo.com/cybergivingweek2005/

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



Re: Discussion forum software -- open source

2005-12-28 Thread Ashish Kulkarni
Hi
you can have a look at Jforum at
http://www.jforum.net/
a good software for helpdesk and discussion forum

Ashish
www.shriayurveda.com

--- slam dunk [EMAIL PROTECTED] wrote:

 Some of the add on modules to phpBB might not be
 commercial use friendly.
 Though most likely you won't need them.
 You can also use Mozilla's bugzilla as a discussion
 forum. Its written in
 Perl.
 The best solution is which supports email
 notifications(mailing-list like)
 and web discussion forum.
 
 On 12/27/05, Jonnalagadda, Sumithra
 [EMAIL PROTECTED] wrote:
 





__ 
Yahoo! for Good - Make a difference this year. 
http://brand.yahoo.com/cybergivingweek2005/

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



[OT] utility to move data from one database to other

2005-12-15 Thread Ashish Kulkarni
Hi
Is there any open source utility which will help in
moving data from one database to other, 
Does this utility works with most available and
commonly used databases.


Ashish

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



[OT] using Sun java studio creator or Sun Java Studio Enterprise

2005-12-13 Thread Ashish Kulkarni
Hi
Has anyone used either of the tools from Sun, 

what is the difference between them? 

do they support struts development?

What is your opinion about them, currently i am using
myeclipseide are they worth switching? 

Is there a way to migrate existing projects 


Ashish

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



struts portal bridge question

2005-11-21 Thread Ashish Kulkarni
Hi
Is there any tutorial, or document which shows how to
use this struts portal bridge,
Is there a place to download all the required jar
files etc
i checked this site
http://portals.apache.org/bridges/multiproject/portals-bridges-struts/index.html
but did not got a lot of info or documentation

Ashish



__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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



[OT]what techonolgies will you use to develop a new web application

2005-11-09 Thread Ashish Kulkarni
Hi
Suppose i have to develop a new web application
what are the best and latest techonlogies you
recommend to use.

1 Framework : struts,struts+shale,jsf,tapestry
2 front end(jsp): AJAX with JSF tages or with JSTL
3 database connection: ibatis, hibernate, object
relation dataase mapping
4 business logic: EJB, spring or something else


Ashish




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



Re: [OT]what techonolgies will you use to develop a new web application

2005-11-09 Thread Ashish Kulkarni
Hi
i have to develop a simple web application for CRUD

Ashish

--- Larry Meadors [EMAIL PROTECTED] wrote:

 That is like asking If you were going to build a
 house, where would
 you build it?
 
 Sooo many variables.
 
 I am currently working on an app that uses
 Spring+Struts+Tiles+iBATIS+Tomcat.
 
 Provide some more details on what the app will do,
 and you will get
 more accurate answers.
 
 Larry
 
 
 On 11/9/05, Ashish Kulkarni
 [EMAIL PROTECTED] wrote:
  Hi
  Suppose i have to develop a new web application
  what are the best and latest techonlogies you
  recommend to use.
 
  1 Framework : struts,struts+shale,jsf,tapestry
  2 front end(jsp): AJAX with JSF tages or with JSTL
  3 database connection: ibatis, hibernate, object
  relation dataase mapping
  4 business logic: EJB, spring or something else
 
 
  Ashish
 
 
 
 
  __
  Yahoo! Mail - PC Magazine Editors' Choice 2005
  http://mail.yahoo.com
 
 

-
  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]
 
 





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



[OT] how to convert an existing struts web application into portal

2005-11-09 Thread Ashish Kulkarni
Hi
We have developed a webapplication using struts, i was
wondering is there a straight forward way to convert
it into a portal?

or do we have to develop it again

Are any good resources avalibale to learn more about
portal development

Ashish




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



[OT] How do we answer, How heavy the application is?

2005-11-08 Thread Ashish Kulkarni
Hi
I have developed a web application using struts, it
has about 50 action class, about 30 servlets for
applet servlet communication and about 90 jsp.
Now there is another person who wants to host this
application and he wants to know How much heavy the
application is
So how do i answer him, is there some kind of
measurement we can use to gauge this application, or
how do we know how much amount of memory is it going
to consume.
My best bet is, there wont be more 75 people logged to
this application at any given point

Any suggestions on answering this question


Ashish



__ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs

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



How do i do this validation in struts using validWhen

2005-11-01 Thread Ashish Kulkarni
Hi
Suppose i have entry text fields on a jsp, named ttype
and comment,
i want to add a validation saying that if ttype='2',
then comment cannot be blank, if ttype='3' or any
other value then comment can be blank,

what i am trying is following
form name=ContractApprovalForm
 field property=comment depends=validWhen
arg0 key=errors.comment /
 var
var-nametest/var-name
var-value(ttype==2) and (comment !=
null)/var-value
/var
 /field
/form
Will this work

Ashish




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



how do know if the validtor function is called or not

2005-10-31 Thread Ashish Kulkarni
Hi
I want to validate 1 field from jsp, if other field
value is '3'.
so i added the following validation in validation.xml
form name=POApprovalForm
 field property=comment depends=validwhen
  arg0 key=errors.comment /
var
 var-namettype/var-name
 var-value2/var-value
/var
 /field
/form
but it seems it is not working, here is what i have
defined in my struts-config.xml file
action name=POApprovalForm   
type=com.pfizer.maps.action.purchase.POApprovalAction
validate=true input=/pages/ApprovalDataDisplay.jsp
scope=request
path=/pages/purchase/POApprovalAction
forward name=success
path=/pages/approvals/ApprovalDataDispatchAction.do?nextpage=home
/
forward name=all
path=/pages/approvals/ApprovalDataDispatchAction.do?nextpage=all
/
forward name=error
path=/pages/purchasing/po.jsp /
/action

And this is how i have defined it in my jsp
function submitResubmit()
{
document.POApprovalForm.ttype.value=2;
document.POApprovalForm.submit();
}
html:form action=pages/purchase/POApprovalAction
focus=comment

How do i find out why it is not working, is is
possible to debug this issue

Ashish



__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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



[OT] properties file editor , or plugin for eclipse 3.1.1

2005-10-14 Thread Ashish Kulkarni
Hi
Is there a good properties file editor as plugin for
eclipse,
This properties file editor must be able edit at the
same time properties files for different locale, for
example
if i add a property to my.properties, then it must be
able to add it my_fr.properties, my_ru.properties etc
Also if possible highlight missing properties , and
syn property files
Ashish





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



Re: [OT] Struts , Portal how does this fit

2005-10-06 Thread Ashish Kulkarni
Hi
We have developed a intranet site using struts, and it
works great, i was curious what would i have to do if
i have to make this website a part of portal,
we have a group which manages portals, so will have
change to build a war file, and give it to this team
so they can deploy it in there portal server

Ashish

--- Leon Rosenberg [EMAIL PROTECTED]
wrote:

 Just out of the interest, what are the feature of a
 portal server, I
 don't have either way?
 
 On 10/6/05, Martin Gainty [EMAIL PROTECTED]
 wrote:
  Indeed The websphere portal server is a
 comprehensive approach when
  deploying in IBM environments..
 
  If you are looking for an approach which works
 with Oracle DB /OC4J I would
  encourage you to look at Oracle PDK (which is
 JSR168 compatible)
 

http://www.oracle.com/technology/products/ias/portal/pdk.html
 
  But if you want a more vendor-neutral solution
 take a look at Jetspeed
  http://portals.apache.org/jetspeed-1/
  which works well with templating AND content
 publication frameworks such as
  CoCoon
 
  HTH,
  Martin-
 
  - Original Message -
  From: Kjersti Berg [EMAIL PROTECTED]
  To: Struts Users Mailing List
 user@struts.apache.org
  Sent: Thursday, October 06, 2005 2:12 AM
  Subject: Re: [OT] Struts , Portal how does this
 fit
 
 
  The WebSphere Portal Server comes with it's own
 implementation of
  Struts for portlet developement.
 
  Kjersti
 
  On 05/10/05, Ashish Kulkarni
 [EMAIL PROTECTED] wrote:
  
  
Hi
1 . Suppose we have a site up and running which
 has
been developed using struts, can this website
 be a
part of portal,
2 . If we have to develop a portal, can we use
struts.
  
Is there a tutorial, or how to for creating a
 portal
using struts, or converting a existing website
developed using struts into a portal
  
Ashish
  
  
  
  
  
  
  
  

__
   Yahoo! for Good
   Donate to the Hurricane Katrina relief effort.
   http://store.yahoo.com/redcross-donate3/
  
  
  

-
   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]
 
 
 

-
  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]
 
 




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



[OT] Struts , Portal how does this fit

2005-10-05 Thread Ashish Kulkarni

 
 Hi
 1 . Suppose we have a site up and running which has
 been developed using struts, can this website be a
 part of portal, 
 2 . If we have to develop a portal, can we use
 struts.
 
 Is there a tutorial, or how to for creating a portal
 using struts, or converting a existing website
 developed using struts into a portal
 
 Ashish
 
 





__ 
Yahoo! for Good 
Donate to the Hurricane Katrina relief effort. 
http://store.yahoo.com/redcross-donate3/ 


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



Re: loosing style sheet, when reloading or visiting the jsp page again..found the reason

2005-10-04 Thread Ashish Kulkarni
Hi
the issue was i had defined style sheet link href..
above 
html:base/ tag
i just moved the style sheet definiation below
html:base/ tag and now it works

I wonder what may be the reason for not working 

Ashish

--- Wendy Smoak [EMAIL PROTECTED] wrote:

 From: Ashish Kulkarni [EMAIL PROTECTED]
 
  i include the style sheet
 
 Have you compared the HTML of the page when the
 stylesheet works vs. when it 
 is lost?
 
 When this happened to me, I found that a ;jessionid
 was getting appended to 
 the stylesheet URL.  (But my situation was the other
 way around-- the 
 stylesheet was missing on the *first* page access,
 until the session cookie 
 was established and the ;jsessionid stopped getting
 appended.)
 
 If it's still not working, post the part of the JSP
 that includes the 
 stylesheet, and both versions of the HTML it
 generates.  Something has to be 
 different.
 
 -- 
 Wendy Smoak 
 
 

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




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



loosing style sheet, when reloading or visiting the jsp page again

2005-10-03 Thread Ashish Kulkarni
Hello
I have a jsp page where in i have defined a style
sheet, when i reload the page, or revisit the page
from some other link i loose the style sheet, and the
page looks ugly
does anyone know why this happens, and how to resolve
this
It happens in IE and mozilla browser

Ashish



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



[OT]Open source Backup software for windows

2005-09-28 Thread Ashish Kulkarni
Hello
Does anyone know or used an open source for databaup
from windows XP, i need this software to be able
select folders for backup, backup files changed, add
if does not exist, and schedule backup from my laptop
and desktop


Ashish



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



[OT] question about XSL and XPATH

2005-09-27 Thread Ashish Kulkarni
Hi
suppose i have a XML file as below, i want to print
only value where id = name. I want to do this using
XSL, not java program
for example once i read throug all the XML file, i
should get output as 123 and 456

 
xml
nameabc/name
namexyz/name
data
idabc/id
value123/value
/data
data
idxyz/id
value456/value
/data
data
idjkl/id
value998/value
/data
/xml


This is the XSL i have been trying

xsl:for-each  select=/
xsl:for-each  select=data
xsl:if test=name=id  
 what test condition do i put here, this does
not work
xsl:value-of select=value /
/xsl:if
/xsl:for-each
 
/xsl:for-each





__ 
Yahoo! for Good 
Donate to the Hurricane Katrina relief effort. 
http://store.yahoo.com/redcross-donate3/ 


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



[OT]properties file question

2005-08-31 Thread Ashish Kulkarni
Hi
i have a properties file where in i define all the
connection options like
date format=iso
time format=hms
I am having problem with this file when running in
turkey because of space character.
is there a way i can convert this properties file to
work in all languages

Ashish

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



[OT] Find properties file in classpath

2005-08-17 Thread Ashish Kulkarni
Hi
how do i find all the properties file available in
classpath??

Ashish

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [OT] Find properties file in classpath

2005-08-17 Thread Ashish Kulkarni
Hi
is there a problem if i do some thing like below

URL url = null;
url =
this.getClass().getClassLoader().getResource(approvals.properties);
if(url== null)
{
   
ClassLoader.getSystemResource(approvals.properties);
}


Ashish

--- Ashish Kulkarni [EMAIL PROTECTED]
wrote:

 Hi
 how do i find all the properties file available in
 classpath??
 
 Ashish
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [OT] Web application for software distribution..any solution

2005-08-08 Thread Ashish Kulkarni


--- Ashish Kulkarni [EMAIL PROTECTED]
wrote:

 Hi
 We have a developed a inhouse web application for
 internal clients, these internal clients are at
 various locations in USA.
 I need a web application to deliver this developed
 web
 application war file, and jar files.
  So basically some thing like apache website, to
 deliver software to internal clients.
 Is there some thing like that which i can download
 install it on application server and start using??
 I was looking for a open source web application to
 do
 the above task,
 my requirements are
 1, Login to web application to look for software to
 download
 2, Show different builds, like stable built, night
 built, beat built for users to download
 3, Create whats new document for users to know what
 bugs have been fixed, and new ehancements added
 4, List of classes modified
 5, report error and sort of forum for discussion.
 6, maintain change documents and design
 specifications, so can be part of web application 
 7, allow users to ask for specific funcatinality
 (JCP
 sort of thing where user can define specifications
 to
 be added in software)
  
 Ashish
 
 
   
 
 Start your day with Yahoo! - make it your home page 
 http://www.yahoo.com/r/hs 
  
 

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


A$HI$H




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



[OT]Web application for software distribution...any solution

2005-08-08 Thread Ashish Kulkarni
Hi
 We have a developed a inhouse web application for
 internal clients, these internal clients are at
 various locations in USA.
 I need a web application to deliver this developed
 web application war file, and jar files.
  So basically some thing like apache website, to
 deliver software to internal clients.
 Is there some thing like that which i can download
 install it on application server and start using??
 I was looking for a open source web application to
 do
 the above task,
 my requirements are
 1, Login to web application to look for software to
 download
 2, Show different builds, like stable built, night
 built, beat built for users to download
 3, Create whats new document for users to know what
 bugs have been fixed, and new ehancements added
 4, List of classes modified
 5, report error and sort of forum for discussion.
 6, maintain change documents and design
 specifications, so can be part of web application 
 7, allow users to ask for specific funcatinality
 (JCP
 sort of thing where user can define specifications
 to
 be added in software)
 
 Ashish

A$HI$H

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



[OT] Web application for software distribution

2005-08-07 Thread Ashish Kulkarni
Hi
We have a developed a inhouse web application for
internal clients, these internal clients are at
various locations in USA.
I need a web application to deliver this developed web
application war file, and jar files.
 So basically some thing like apache website, to
deliver software to internal clients.
Is there some thing like that which i can download
install it on application server and start using??
I was looking for a open source web application to do
the above task,
my requirements are
1, Login to web application to look for software to
download
2, Show different builds, like stable built, night
built, beat built for users to download
3, Create whats new document for users to know what
bugs have been fixed, and new ehancements added
4, List of classes modified
5, report error and sort of forum for discussion.
6, maintain change documents and design
specifications, so can be part of web application 
7, allow users to ask for specific funcatinality (JCP
sort of thing where user can define specifications to
be added in software)
 
Ashish




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



[OT]Blocking authority to access JSP

2005-08-02 Thread Ashish Kulkarni
Hi
I have been trying to block access to jsp directly,
here is my folder structure
pages --
|


A$HI$H




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



[OT]Blocking authority to access JSP - ignore previous mail

2005-08-02 Thread Ashish Kulkarni
Hi
I have been trying to block access to jsp directly,
here is my folder structure
pages --
|
 --index.jsp 
 --access.jsp 
 --logo.gif

In my web-xml file if i add
web-resource-name
Restrict access to JSP pages
 /web-resource-name
 url-pattern/pages/*/url-pattern
/web-resource-collection
it blocks logo.gif also, 

and i cannot add 
web-resource-name
Restrict access to JSP pages
 /web-resource-name
 url-pattern/pages/*.jsp/url-pattern
/web-resource-collection
because it gives me
java.lang.IllegalArgumentException: Invalid
url-pattern /pages/*.jsp in security constraint

So how do i block access to all jsp in pages folder




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



  1   2   >