RE: debuging in eclipse

2006-02-22 Thread Chandra.Ravinithala

Is your server(i.e tomcat or Jboss or whatever) running and listening
for debugging connections?

here is how I use Tomcat, JBoss and Eclipse to build and debug
applications.

Which ever platform you are using (tomcat or JBoss) you need to start
them with the JPDA debugging enabled. For tomcat this is very easy. In
the $CATALINA_HOME/bin directory there is a script catalina.sh. If you
provide the arguments 'jpda start' tomcat will startup and listen on
port 8000 for a debugger connection.

With JBoss its only slightly more complicated. Basically you need to
specify the JAVA_OPTS to have java start up listening for debugger
connections. I typically copy the $JBOSS_HOME/bin/run.sh to
$JBOSS_HOME/bin/run-debug.sh but you can just as easily setup the
JAVA_OPTS environment variable and use the run.sh script. 

The value of JAVA_OPTS needs have -Xdebug
-Xrunjdwp:server=y,transport=dt_socket,address=4142,suspend=n specified.


here is the official info on the connection arguments:
http://java.sun.com/j2se/1.4.2/docs/guide/jpda/conninv.html
Once you have JBoss or Tomcat running and listening for debugging
connections you are good to go for connectin with Eclipse. Ofcourse you
need have mention the same listen port in your 'debug launch
configuration'  of eclipse.

Hope this will help.

Chandra

-Original Message-
From: Shasirekha Engala [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 22, 2006 5:37 PM
To: user@struts.apache.org
Subject: Reg: debuging in eclipse

Hi

I have some problem related to eclipse. When I am trying to debug my
struts application I am getting the error as "Failed to connect to
remote VM".
Can I get solution to this problem.


Regards
Shasi



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

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



RE: question

2006-02-23 Thread Chandra.Ravinithala
Which version of Struts are you using?

>From Struts 1.0:
DEPRECATIONS - The entire custom tag library that is documented in
struts-form.tld has been deprecated because this library has been
renamed struts-html.tld instead; for ref:
http://struts.apache.org/struts-action/userGuide/release-notes-1.0-b3.ht
ml

 If you still want to use struts-form.tld then there is no "property"
attribute as far as I remember; It should be "name" instead "property"

Hope this will help

Chandra

-Original Message-
From: red phoenix [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 23, 2006 12:48 PM
To: Struts Users Mailing List
Subject:  question

I have a JSP file,and I use  in this page,but it raise
error,my code is follows:

<%@ taglib uri="/WEB-INF/struts-form.tld" prefix="html" %>  
 
   

and my Form is follows:
..
public ActionErrors validate(ActionMapping mapping,HttpServletRequest
request) {
ActionErrors errors = new ActionErrors(); if(abc!=null &&
abc.length()>0){
   errors.add("abc",new ActionError("error.abc.required"));
 }
 return errors;
}

When I run it,it raise following error:
org.apache.jasper.JasperException: /index.jsp(8,15) Attribute property
invalid for tag errors according to TLD
org.apache.jasper.servlet.JspServletWrapper.handleJspException(
JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va
:375)
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.ActionServlet.processValidate(ActionServlet.jav
a
:2149)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1565)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

I have looked up  API,I find it have property attribute:
  property Name of the property for which error messages should be
displayed. If not specified, all error messages (regardless of property)
are displayed. (RT EXPR)

Why raise above error? How to do with it?

Thanks in advance!

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



RE: Sorting & paging search results with delete button for each row?

2006-02-23 Thread Chandra.Ravinithala
Not sure if you are looking for a good open source solutions here.
If you are, have a look at the following site:

http://extremecomponents.org/extremesite/welcome.jsp

Chandra 

-Original Message-
From: Narayanan, Shiva [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 23, 2006 8:23 PM
To: Struts Users Mailing List
Subject: RE: Sorting & paging search results with delete button for each
row?

I would like to page and sort the data (10 thousand records) retrieved
from the database. I don't want to sort it in memory. 

I am using Struts & DAO Hibernate) and want to page search results and
sort the data within that page. Also, I should have delete button for
each row and this button should post to a DeleteAction.

How do you achieve this using display tag?

Thanks in advance!!
 
-Original Message-
From: Lixin Chu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 22, 2006 5:40 PM
To: Struts Users Mailing List
Subject: Re: Sorting & paging search results with delete button for each
row?

why displaytag does not meet your requirements ?

On 2/22/06, Narayanan, Shiva <[EMAIL PROTECTED]>
wrote:
>
> Hello All,
>
> What is the best way to sort and page search results, (with delete
button
> for each row) using Struts? Are there are any open source tag
libraries to
> achieve this?
>
>
>
> Looked at displaytag. I want to retrieve data from the database using 
> hibernate.
>
>
>
> Many Thanks!!
>
>
>

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

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



RE: Using message resources in non-action class

2006-03-12 Thread Chandra.Ravinithala

The following should work.

MessageResources messageresources = (MessageResources)
servlet.getServletContext().getAttribute("allMessages"); 


Chandra

-Original Message-
From: Anuradha S.Athreya [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 13, 2006 1:09 PM
To: 'Struts Users Mailing List'
Subject: Using message resources in non-action class

In my struts application, I have resources file application.properties.
This has been configured in the struts-config.xml file 

 
 
 Now, I would like to use this in my source code , in a non-action
class. 
 
 I tried the following 
 
 MessageResources messageresources =
MessageResources.getMessageResources("allMessages");
 
 When i tried to retrieve the message in the file 
 
 String message = messageresources.getMessage("username.invalid"); 
 
 the message is null,altho' corresponding message for the key
"username.invalid" is defined in the application.properties file.

Can someone indicate the missing link?

Regards,
Anuradha S.Athreya 


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



RE: Using message resources in non-action class

2006-03-13 Thread Chandra.Ravinithala
Use resource bundle:

ResourceBundle messageresources  =
ResourceBundle.getBundle("ApplicationResources");

Or

Properties messageresources = new Properties();
BufferedInputStream is = new BufferedInputStream(
getClass().getResourceAsStream("ApplicationResources"));
properties.load(is);

Chandra



-Original Message-
From: starki78 [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 13, 2006 1:21 PM
To: user
Subject: RE: Using message resources in non-action class

Yes this is a good solution!
Do you also have a solution
to access these message resources from a plain java-class there you
don't have the servlet context?

Nice greetings


-- Initial Header ---

>From  : [EMAIL PROTECTED]
To  : user@struts.apache.org, [EMAIL PROTECTED]
Cc  : 
Date  : Mon, 13 Mar 2006 13:11:34 +0530
Subject : RE: Using message resources in non-action class







> 
> The following should work.
> 
> MessageResources messageresources = (MessageResources) 
> servlet.getServletContext().getAttribute("allMessages");
> 
> 
> Chandra
> 
> -Original Message-
> From: Anuradha S.Athreya [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 13, 2006 1:09 PM
> To: 'Struts Users Mailing List'
> Subject: Using message resources in non-action class
> 
> In my struts application, I have resources file
application.properties.
> This has been configured in the struts-config.xml file
> 
>   />
>  
>  Now, I would like to use this in my source code , in a non-action 
> class.
>  
>  I tried the following
>  
>  MessageResources messageresources =
> MessageResources.getMessageResources("allMessages");
>  
>  When i tried to retrieve the message in the file
>  
>  String message = messageresources.getMessage("username.invalid");
>  
>  the message is null,altho' corresponding message for the key 
> "username.invalid" is defined in the application.properties file.
> 
> Can someone indicate the missing link?
> 
> Regards,
> Anuradha S.Athreya
> 
> 
> -
> 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]



RE: Using message resources in non-action class

2006-03-13 Thread Chandra.Ravinithala
 
http://java.sun.com/j2se/1.4.2/docs/api/java/util/ResourceBundle.html

Check the description for the following method: 
public static ResourceBundle getBundle(String baseName, Locale locale,
ClassLoader loader)

Give it a shot

Chandra

-Original Message-
From: starki78 [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 13, 2006 2:32 PM
To: user
Subject: RE: Using message resources in non-action class

Hi This would be a very good solution but when I test it this way:

 public static void main(String args[])
  {
   ResourceBundle messageresources =
   ResourceBundle.getBundle("ApplicationResources");
 }

I always get an exception: 
java.util.MissingResourceException: Can't find bundle for base name
ApplicationResources

The test class is in the same path as the bundle!

Can you help me?

Nice greetings
Starky
 


-- Initial Header ---

>From  : [EMAIL PROTECTED]
To  : user@struts.apache.org
Cc  : 
Date  : Mon, 13 Mar 2006 14:08:09 +0530
Subject : RE: Using message resources in non-action class







> Use resource bundle:
> 
> ResourceBundle messageresources  =
> ResourceBundle.getBundle("ApplicationResources");
> 
> Or
> 
> Properties messageresources = new Properties();
> BufferedInputStream is = new BufferedInputStream(
> getClass().getResourceAsStream("ApplicationResources"));
> properties.load(is);
> 
> Chandra
> 
> 
> 
> -Original Message-
> From: starki78 [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 13, 2006 1:21 PM
> To: user
> Subject: RE: Using message resources in non-action class
> 
> Yes this is a good solution!
> Do you also have a solution
> to access these message resources from a plain java-class there you
> don't have the servlet context?
> 
> Nice greetings
> 
> 
> -- Initial Header ---
> 
> From  : [EMAIL PROTECTED]
> To  : user@struts.apache.org, [EMAIL PROTECTED]
> Cc  : 
> Date  : Mon, 13 Mar 2006 13:11:34 +0530
> Subject : RE: Using message resources in non-action class
> 
> 
> 
> 
> 
> 
> 
> > 
> > The following should work.
> > 
> > MessageResources messageresources = (MessageResources) 
> > servlet.getServletContext().getAttribute("allMessages");
> > 
> > 
> > Chandra
> > 
> > -Original Message-
> > From: Anuradha S.Athreya [mailto:[EMAIL PROTECTED]
> > Sent: Monday, March 13, 2006 1:09 PM
> > To: 'Struts Users Mailing List'
> > Subject: Using message resources in non-action class
> > 
> > In my struts application, I have resources file
> application.properties.
> > This has been configured in the struts-config.xml file
> > 
> >   parameter="resources.application"
> > />
> >  
> >  Now, I would like to use this in my source code , in a non-action 
> > class.
> >  
> >  I tried the following
> >  
> >  MessageResources messageresources =
> > MessageResources.getMessageResources("allMessages");
> >  
> >  When i tried to retrieve the message in the file
> >  
> >  String message = messageresources.getMessage("username.invalid");
> >  
> >  the message is null,altho' corresponding message for the key 
> > "username.invalid" is defined in the application.properties file.
> > 
> > Can someone indicate the missing link?
> > 
> > Regards,
> > Anuradha S.Athreya
> > 
> > 
> >
-
> > 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]

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



RE: Invalidating a session using JAVASCRIPT

2006-03-21 Thread Chandra.Ravinithala
Use 

...


  function callAMethod(){
submit to server(may be a servlet);
  }


I have not tested this by summiting to a servlet.But, I am sure
onUnload() works when you click on browser 'X;

Chandra

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Tuesday, March 21, 2006 4:08 PM
To: Struts Users Mailing List
Subject: Re: Invalidating a session using JAVASCRIPT

Hi Sahil,
I believe this can be done by implementing the
HttpSessionBindingListenerInterface.The HttpSessionBindingListener
interface is implemented by the classes whose objects need to receive
notifications whenever they are added to or removed from a session. We
do not have to inform the container about such objects explicitly via
the deployment descriptor. Whenever an object is added to or removed
from any session, the container introspects the interfaces implemented
by that object. If the object implements the HttpSessionBindingListener
interface, the container calls the corresponding notification methods

Rajasekhar Cherukuri
Tata Consultancy Services Limited
Air-India Building 11th Floor,
Nariman Point ,
Mumbai - 400 021,Maharashtra
India
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com




"Sahil Gupta" <[EMAIL PROTECTED]>
03/21/2006 04:08 PM
Please respond to
"Struts Users Mailing List" 


To

cc

Subject
Invalidating a session using JAVASCRIPT






Hi,
 
Can anyone tell me how to  logout a user (invalidate his Session) when a
user directly closes his browser window. 
 
Thanks.

Regards,

Sahil Gupta

Extn : 233
Email : [EMAIL PROTECTED]  
**
NetEdge Computing Global Solutions Private Limited. 
A-14, Sector-7, NOIDA U.P. 201-301
Tel #  91-120-2423281, 2423282 
Fax #  91-120-2423279 
URL  http//www.netedgecomputing.com 
**
This message may contain confidential and/or privileged information. If
you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose or take any action based on
this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation. 
 

ForwardSourceID:NT0001060A 


Notice: The information contained in this e-mail message and/or
attachments to it may contain confidential or privileged information. If
you are not the intended recipient, any dissemination, use, review,
distribution, printing or copying of the information contained in this
e-mail message and/or attachments to it are strictly prohibited. If you
have received this communication in error, please notify us by reply
e-mail or telephone and immediately and permanently delete the message
and any attachments. Thank you

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



RE: Session without cookies

2006-04-24 Thread Chandra.Ravinithala
I think some where(may be in the action class association with the action 
/test.do) you are creating new session each time for each request. Most 
possible mistake could be using

Request.getSession(true);

See below documentation from Servlet Specifications
**
getSession()
public HttpSession getSession()
Returns the current session associated with this request, or if the 
request does not have a session, creates one.
Returns: the HttpSession associated with this request
See Also: getSession(boolean)

getSession(boolean)
public HttpSession getSession(boolean create)
Returns the current HttpSession associated with this request or, if if 
there is no current session and create is true, returns a new session. If 
create is false andthe request has no valid HttpSession, this method 
returns null.

To make sure the session is properly maintained, you must call this method 
before the response is committed. If the container is using cookies to maintain 
session integrity and is asked to create a new session when the response is 
committed, an IllegalStateException is thrown.

Parameters:
true - to create a new session for this request if necessary; 
false to return null if there’s no current session Returns: the HttpSession 
associated with this request or null if create is false and the request has no 
valid session
See Also: getSession() 
**

Chandra
-Original Message-
From: Chan Michael [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 24, 2006 2:48 PM
To: user@struts.apache.org
Subject: Session without cookies

Hi All,

I have been searching for hours and still cannot find any useful info. Hope you 
can help.

I am building a Struts app. (Struts 1.2.4 + Tomcat 5.5
+ Apache 2.0.55 + Spring 1.2.6) and want to use
session without
enabling cookies. I use  to create links so ;jsessionid is appended 
to the end. Fine. The problem I have is every time I access a page, a new 
session id is created so essentially everything stored in session is lost. Here 
is some output from my test action,
test.do:

test.do
=
HttpSession session = request.getSession(); System.out.println("Is session new? 
" + session.isNew()); System.out.println("Session id: " + session.getId());

First access
=
Is session new? true
Session id: B9F9E135DCBAC90AB2B5AEBCE901FAA5

Second access
=
Is sesssion new? false
Session id: 8CCE7A388E76C0F56016E8F41E29E0E5

The session is not new but the id is different...I already set in Tomcat 
server.xml



What am I missing??

Thanks in advance.

Michael

___
 YM - �x息
 就算你�]有上�W,你的朋友仍可以留下��息�o你,��你上�W�r就能立即看到,任何�f��都�幼呤А�
 http://messenger.yahoo.com.hk

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

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



RE: Example needed for saveToken

2006-05-02 Thread Chandra.Ravinithala
Some useful code:

The action code may look like this.

// Check for a valid token
if(isTokenValid(request)){
// If the token is valid, reset it and perform the business logic
resetToken(request);
insertRecord(request);//Business logic call.
return mapping.findForward(Globals.FORWARD_SUCCESS);
}
else{
// If not valid, save a new token and forward appropriately
saveToken(request);
return mapping.findForward(Globals.FORWARD_INSERT);
}

If the Token is not found in the request, the request will go through
the else block, a Token will be saved, and the user will be directed to
the appropriate page for inputting new data . Assuming a Struts
 tag is used on that page, the Token will be added
appropriately to the request. When the form is submitted, the request
goes through the if block. By resetting the Token here, we ensure that
if the user clicks back and tries to resubmit the form, the 
will not be re-created. 


Chandra

-Original Message-
From: starki78 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 02, 2006 2:24 PM
To: user
Subject: Example needed for saveToken

Ciao!

I need some mechanism for preventing a user of starting several long
database queries by clicking a submit button.
Therefor I' would like to use the save token of struts.
If the token is not valid the user should get a message and be
redirected to the inputPage.

Where do I have to use saveToken?

Can someone give me an example that works properly?

Thanks!
Starki








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

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



RE: Example needed for saveToken

2006-05-02 Thread Chandra.Ravinithala
http://jaxmag.com/itr/online_artikel/psecom,id,648,nodeid,147.html

More in saveToken();

 Chandra

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 02, 2006 2:32 PM
To: user@struts.apache.org
Subject: RE: Example needed for saveToken

Some useful code:

The action code may look like this.

// Check for a valid token
if(isTokenValid(request)){
// If the token is valid, reset it and perform the business logic
resetToken(request);
insertRecord(request);//Business logic call.
return mapping.findForward(Globals.FORWARD_SUCCESS);
}
else{
// If not valid, save a new token and forward appropriately
saveToken(request);
return mapping.findForward(Globals.FORWARD_INSERT);
}

If the Token is not found in the request, the request will go through
the else block, a Token will be saved, and the user will be directed to
the appropriate page for inputting new data . Assuming a Struts
 tag is used on that page, the Token will be added
appropriately to the request. When the form is submitted, the request
goes through the if block. By resetting the Token here, we ensure that
if the user clicks back and tries to resubmit the form, the 
will not be re-created. 


Chandra

-Original Message-
From: starki78 [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 02, 2006 2:24 PM
To: user
Subject: Example needed for saveToken

Ciao!

I need some mechanism for preventing a user of starting several long
database queries by clicking a submit button.
Therefor I' would like to use the save token of struts.
If the token is not valid the user should get a message and be
redirected to the inputPage.

Where do I have to use saveToken?

Can someone give me an example that works properly?

Thanks!
Starki








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



RE: calling bean reset() in Action class?

2006-12-11 Thread Chandra.Ravinithala
Did you override the reset() method?.

Abstract ActionForm has no implementation for reset() method; if you
want to set the values to be blank/default values on reset() method call
- override reset() method.
public abstract class ActionForm implements Serializable {



 public void reset(ActionMapping mapping, HttpServletRequest request) {

;   // Default implementation does nothing

}

 }

BTW, this w.r.t struts 1.2.4

Chandra

-Original Message-
From: Mallik [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 11, 2006 3:36 PM
To: user@struts.apache.org
Subject: calling bean reset() in Action class?


Hi friends
i have a form that contain some text fields where user enters data and
click save, then i am saving and returning to the same page.
here the previous values are redisplaying(which should not) even
succefully added to database.
for this i feel that by calling reset method of form bean we can
overcome.
i did it but failed .
this is my code:(part of action class)

-
DynaValidatorForm df = (DynaValidatorForm)form;
df.reset(mapping,request); return mapping.findForward("saved");


--
where i did mistake or is this right way or any other to do this

help me please
thanks in advance

ur's
Mallik
--
View this message in context:
http://www.nabble.com/calling-bean-reset%28%29-in-Action-class--tf279298
2.html#a7792121
Sent from the Struts - User mailing list archive at Nabble.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]



RE: ajax:autocomplete tag

2006-06-14 Thread Chandra.Ravinithala
Check this: http://java.sun.com/developer/EJTechTips/2005/tt1122.html

This has a simple example on how to return the list of employee(Ajax
way). 

Note: This does not use the tags you mentioned. But would give one more
perspective. Ignore if does not help.

Chandra 

-Original Message-
From: Sony Thomas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 14, 2006 4:39 PM
To: user@struts.apache.org
Subject: ajax:autocomplete tag 

Hi,

I am a newbie in ajax. I want to use ajax in my application. Let me
explain my requirement :

when I enter a character in the text field i have to call an action. 
Inside my action i have to load all the users and send  it back to jsp
so that I can display.

I am able to call the action class from my jsp. But my problem is how
will I set the list of users to response.Can anyone help me please 


What to do in my action to show the Userlist in jsp ? Please it is very 
urgent 

Here is my jsp code :








Here is my Action class code :

public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, 
HttpServletResponse response) {
  
   
logger.info("** Inside ajaxAutoCompleteAction **
");
try{
  ArrayList usersList = (ArrayList)UserManager.loadAll();
 
//  return new AjaxXmlBuilder().addItems(usersList, "model", 
"make").toString();
}catch(BusinessObjectException e){
e.printStackTrace();
}
return mapping.findForward("success");
}



Thanks in advance


Sony Thomas

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

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



RE: About Display Tag

2006-07-24 Thread Chandra.Ravinithala
I have used http://extremecomponents.org/extremesite/index.jsp

Pretty neat.

Chandra 

-Original Message-
From: Paul Benedict [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 24, 2006 12:52 PM
To: Struts Users Mailing List
Subject: Re: About Display Tag

http://displaytag.sourceforge.net/11/ has good examples. It's nothing
specific to Struts; it works with anything JSP.

"senthil.s" <[EMAIL PROTECTED]> wrote:   Hi All
 Anyone can tell me the process  of using DisplayTag for Pagination
in struts.
  
 With Regards
 Senthil.S
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. If you have received this email in error please notify the
system manager. Please note that any views or opinions presented in this
email are solely those of the author and do not necessarily represent
those of IC Infotech. Finally, the recipient should check this email and
any attachments for the presence of viruses. IC Infotech accepts no
liability for any damage caused by any virus transmitted by this mail.

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


-
How low will we go? Check out Yahoo! Messenger's low  PC-to-Phone call
rates.

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



RE: Plz Help, Urgent

2006-08-10 Thread Chandra.Ravinithala
If its tomcat, worth clearing the cache. Goto work/Catalina/ and remove
whatever in there.

Chandra

-Original Message-
From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 10, 2006 4:47 PM
To: user@struts.apache.org
Subject: Plz Help, Urgent

Hi All,
   
  I developed an application which forwards menuitems.jsp as we login
and it was working fine.
  I changed the name of the jsp into MenuItems.jsp and trying to access,
it gives the following error.  I felt it unable to find the class file.
So, undeployed the application and deployed again.  Still its giving the
same problem.
  Can anyone tell me why is it so.  

javax.servlet.ServletException: org/apache/jsp/MenuItems_jsp (wrong
name: org/apache/jsp/menuitems_jsp)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:362)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:1063)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
ocessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:362)  
  
  root cause 
java.lang.NoClassDefFoundError: org/apache/jsp/MenuItems_jsp (wrong
name: org/apache/jsp/menuitems_jsp)
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
java.net.URLClassLoader$1.run(URLClassLoader.java:195)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:158)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:71)
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:
589)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper
.java:137)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:305)  
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:362)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:1063)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
ocessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:362)  

Thanks and Regards,

Lakshmi


-
 Here's a new way to find what you're looking for - Yahoo! Answers 

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



RE: Plz Help, Urgent

2006-08-10 Thread Chandra.Ravinithala

You can locate that in Drive:\Program
Files\netbeans-5.5beta2\enterprise3\apache-tomcat-5.5.17\work. But,
having going thru the exception in details - you try what Kalpesh and
Shervin Asgari mentioned.

Chandra

-Original Message-
From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 10, 2006 5:04 PM
To: Struts Users Mailing List
Subject: RE: Plz Help, Urgent

Am using NetBeans bundled with Tomcat, i could not fine work folder in
the ide, but anyhow, i tried to delete the content in it.  Still i get
the same error.  I even tried to clean and build the project.
  

[EMAIL PROTECTED] wrote:
  If its tomcat, worth clearing the cache. Goto work/Catalina/ and
remove whatever in there.

Chandra

-Original Message-
From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 10, 2006 4:47 PM
To: user@struts.apache.org
Subject: Plz Help, Urgent

Hi All,

I developed an application which forwards menuitems.jsp as we login and
it was working fine.
I changed the name of the jsp into MenuItems.jsp and trying to access,
it gives the following error. I felt it unable to find the class file.
So, undeployed the application and deployed again. Still its giving the
same problem.
Can anyone tell me why is it so. 

javax.servlet.ServletException: org/apache/jsp/MenuItems_jsp (wrong
name: org/apache/jsp/menuitems_jsp)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:362)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:1063)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
ocessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:362) 

root cause
java.lang.NoClassDefFoundError: org/apache/jsp/MenuItems_jsp (wrong
name: org/apache/jsp/menuitems_jsp)
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
java.net.URLClassLoader$1.run(URLClassLoader.java:195)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:158)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:71)
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:
589)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper
.java:137)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:305) 

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:362)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:1063)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
ocessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi
lter.java:362) 

Thanks and Regards,

Lakshmi


-
Here's a new way to find what you're looking for - Yahoo! Answers 

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




-
 Here's a new way to find what you're looking for - Yahoo! Answers 

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



RE: problem with processValidate in RequestProcessor.java

2006-08-31 Thread Chandra.Ravinithala
Check this - http://issues.apache.org/struts/browse/STR-1960

Might help

Chandra 

-Original Message-
From: Raghuveer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 31, 2006 4:50 PM
To: user@struts.apache.org
Subject: problem with processValidate in RequestProcessor.java

I am getting "Rolling back multipart request" is logged after executing
Multipart request.

What i need to do to resolve this issue.


  // Special handling for multipart request
if (form.getMultipartRequestHandler() != null) {
if (log.isTraceEnabled()) {
log.trace("  Rolling back multipart request");
}
form.getMultipartRequestHandler().rollback();
}

--
9,967~DEBUG~org.apache.struts.action.RequestProcessor~  Validating input
form properties
2006-08-31 14:40:39,967~DEBUG~org.apache.struts.action.RequestProcessor~
No errors detected, accepting input
2006-08-31 14:40:39,967~DEBUG~org.apache.struts.action.RequestProcessor~
Looking for Action instance for class
com.pwc.acs.web.op.actions.DispatchAction


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

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



RE: exception

2006-09-06 Thread Chandra.Ravinithala
Did you mention LoginForm in struts-config properly - I mean 




And mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 07, 2006 9:51 AM
To: Struts Users Mailing List
Subject: Re: exception

Error 500--Internal Server Error

javax.servlet.jsp.JspException: Exception creating bean of class
code.LoginForm: {1}
at
org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:487)
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:457)
at jsp_servlet.__index._jspService(__index.java:216)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
rvletStubImpl.java:996)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java:419)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java:463)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java:315)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
un(WebAppServletContext.java:6452)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
etContext.java:3661)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
java:2630)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)



On 9/6/06, David Friedman <[EMAIL PROTECTED]> wrote:
>
> What is the full stack trace in your application server logs?
>
> -Original Message-
> From: Tom Jerry [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 06, 2006 12:48 PM
> To: user@struts.apache.org
> Subject: exception
>
>
> Why do I get an "exception in creating bean" 
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: Cannot create JDBC driver of class '' for connect URL 'null'

2006-12-04 Thread Chandra.Ravinithala
Did you check
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.h
tml - examples

Chandra

 

-Original Message-
From: nagesh.kumar [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 04, 2006 9:43 AM
To: Struts Users Mailing List
Subject: Cannot create JDBC driver of class '' for connect URL 'null'

Hi iam working on jakarta-tomcat-5.5.9

iam trying to read DATASOuRCE configured from the server.xml  as defined
in the http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html

But iam getting this same error message on console iam strucked please
help me Thanks in ADVANCE.

DEBUG  org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
JDBC driver of class '' for connect URL 'null'






debug="5" reloadable="true" crossContext="true">




  
factory
org.apache.commons.dbcp.BasicDataSourceFactory
  
...



Thanks
Nagesh




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