Re: Regarding :

2004-01-28 Thread Raman Garg
Hello,
I hope following will resolve your problem:

 
<%
   String s=maxreqiddetail.getPrimary_skill();
%>
 

I haven't tested it but i think it will work.

Thanks,
-- Raman


- Original Message - 
From: "Ramachandran" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 28, 2004 1:43 PM
Subject: Regarding : 


> 
> Hi All,
>Can any one please tell me, how to assign a values to a string
> using 
> 
> Example:
> 
> 
> 
>In this iterator, i am having values in the name
> 'maxreqiddetails" as primary_skill and location.
> 
>I know how to print the values...by using< bean:write
> name="maxrediddetail" property="primary_skill"/>
> 
> But i wanto assing those values to a String. How can i do that one.
> 
> Please anu body having any idea plase reply me
> 
> 
> -
> 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:

2004-01-17 Thread Raman Garg
Thanks for your reply...
BUT
it take the default value="on"  when I do the way as you were telling me.
I want to put the value="232" where 232 is the id value corresponding to my
record.

-- Raman


- Original Message - 
From: "Mohan Radhakrishnan" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Saturday, January 17, 2004 5:02 PM
Subject: RE:  Raman,
>
> What's wrong with this ? 
>
> Shouldn't this pick up the property from the ActionForm and generate
> value="x" for example.
> Is yours dynamic ?
>
> Mohan
>
> -Original Message-
> From: Raman [mailto:[EMAIL PROTECTED]
> Sent: Saturday, January 17, 2004 12:43 PM
> To: Struts Users Mailing List
> Subject: 
>
> Hello,
>
> I have a checkbox and i want to assign  value. and that value should be my "id" value.
> How should i do that.
>
>
>
> 
> Delete
> 
> here i want value to be my "id" value of table.. i have this string in
> 
> What I did till now:
>
> I have 
> and assign this as  value="<%=val1%>">
> still it is not working and giving me error
>
> this may be simple issue.. but i have tried and couln't find solution..
Pls
> help.
>
>
> -- Raman
>
>
> -
> 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: session.invalidate() throws exception.

2003-12-10 Thread Raman Garg
Hello Antony

Here is a sample of code, hopes this solves your problem...

public ActionForward execute(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response) throws
Exception {

// Extract attributes and/or parameters we will need
Locale locale = getLocale(request);
MessageResources messages = getResources(request);
HttpSession session = request.getSession();

// Get already logged user info from session scope //  We have a
Customer Bean in session
Customer customer = (Customer)session.getAttribute(USER_KEY);

// If customer has not logged in, return control to User Login view
with
// that reason.
if (customer == null) {
return new ActionForward("/Login.do?reason=" +
LOGIN_REASON_NOT_LOGGED_IN, true);
}
}


-- Raman
- Original Message - 
From: "Antony Paul" <[EMAIL PROTECTED]>
To: "struts" <[EMAIL PROTECTED]>
Sent: Wednesday, December 10, 2003 5:08 PM
Subject: session.invalidate() throws exception.


> Hi,
> Calling session.invalidate() in index.jsp throws this exception
> java.lang.IllegalStateException: getAttribute: Session already invalidated
> at
>
org.apache.catalina.session.StandardSession.getAttribute(StandardSession.jav
> a:954)
> at
>
org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessi
> onFacade.java:171)
> at org.apache.struts.taglib.html.FormTag.renderToken(FormTag.java:641)
> at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:513)
> at org.apache.jsp.index_jsp._jspService(index_jsp.java:97)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
>
> How to change this behavior. Better if possible to do some house keeping
> before invalidating session like if a valid session and data is present in

> session then go to a certain page.
>
> rgds
> Antony Paul.
>
>
>
> -
> 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: Display Problem using Struts

2003-11-27 Thread Raman Garg
Hi Gurpreet
Try this


Hope this solves your problem



Thanks,

Raman garg




- Original Message - 

From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, November 27, 2003 3:52 PM
Subject: Display Problem using Struts


hi

I have an application, In which i want to display the contents posted by the
Administrator using HTML tags. Problem is when i am using









IT is displyaing me the following content without giving the effect of HTML
tags which were posted during content Managem,ent


HI this is an  Simple text


 It is not showing the effect of  TAG.


Any Help will of great use


Regards
gary


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



Re: Basic question about

2003-11-25 Thread Raman Garg
one thing more thing

following code, which is a mixture of standart html and struts, works fine!!
">




- Original Message - 
From: "Ricky Lee" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 25, 2003 5:51 PM
Subject: Re: Basic question about  hi, so glad that i met the same question as you
>
> 
> module id:
> 
> 
>  />">abc
> 
> 
> article title:
> 
> 
>
> and it show me the errors:
>
> equal symbol expected
>
> ---
> can't nested tag like that? any solution about this?
>
>
>
>
>
> - Original Message -
> From: "Raman" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, November 25, 2003 8:11 PM
> Subject: Basic question about 
>
> > hello all,
> > i have a basic problem in  > I want to use it in the loop for radio buttons. But facing problems in
> > setting the "value" of the control. i have tried
> >
> > ">
> >
> > but this is not working.
> >
> > Any help regarding this??
> >
> >
> > -
> > 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: action-mappings, action not working

2003-11-13 Thread Raman Garg
Try to debug it using System.out.println ("<<<<<>>>>>");

in your action class
public ActionForward perform(ActionServlet servlet,
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
 throws IOException, ServletException {
System.out.println ("<<<<<>>>>>");
 return (mapping.findForward("success"));
   }

and check the output at tomcat after restarting it... this will ensure that
your class file is called.
if this goes ok then some problem is there in your index.jsp

cheers
Raman Garg







- Original Message -
From: "Ajay Kalidindi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 13, 2003 4:53 PM
Subject: action-mappings, action not working


> Hi
>
>
> I am using :
>
> Redhat 9
> Apache 2.0.48
> Tomcat 4.1.29
> Struts 1.1
>
> For some reason I am not getting any errors and control is not getting
forwarded
> to respective success forward from DummyAction.
> Any help is appreciated.
>
> Regards
>
> Ajay Kalidindi
>
> config and source  follows:
>
> struts-config.xml entry:
>
>  
>
>  
>
>  
>
> DummyAction.java :
>
> package com.kalidindis.home;
>
> import java.io.IOException;
> import javax.servlet.RequestDispatcher;
> import javax.servlet.*;
> import org.apache.struts.action.*;
> import org.apache.struts.util.*;
>
> /**
>  * Implementation of Action that lists contacts of Ajay
> Kalidindi.
>  */
>
> public final class DummyAction extends Action {
>   public ActionForward perform(ActionServlet servlet,
>ActionMapping mapping,
>ActionForm form,
>HttpServletRequest request,
>HttpServletResponse response)
> throws IOException, ServletException {
> return (mapping.findForward("success"));
>   }
> }
>
>
>
>
>


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



Problem of nested logic:Iterate

2003-11-13 Thread Raman Garg
Hi,

I have a problem regarding struts logic:iterate

I need to show category wise listing of products. so can anybody advice me
how to create nested logic iterate loops to accomplish this.

what i need is  there will be two nested logic iterates





FYI - some good links

2003-11-13 Thread Raman Garg
Tutorials with struts 
http://jakarta.apache.org/struts/resources/tutorials.html

For List of common errors in Struts
http://www.geocities.com/Colosseum/Field/7217/SW/struts/errors.html

Some code examples with struts
http://forum.exadel.com/viewtopic.php?t=120


do share yours!!!

Raman Garg


Problem of nested logic:iterate

2003-11-13 Thread Raman Garg
Hi,

I have a problem regarding struts logic:iterate

I need to show  category wise listing of products. so can anybody advice me how to 
create nested logic iterate loops to accomplish this.

what i need is  there will be two nested logic iterates 





File upload problem with Struts 1.1

2003-11-12 Thread Raman Garg
Hi,

 We are getting error while file uploading using struts 1.1. We have a demo code for 
file uploading which demostrates the file uploading using struts. When we run there 
application code works fine but  when we submit the form by setting enctype for the 
form it throws the following error. (Remember we are not doing anything in the action 
or in the form just getteer and setters) so issue is with enctype settings. It may use 
some internal class while sending data using enctype. Please advise us what to do.

We downloaded the sample file uploading code from : 
http://forum.exadel.com/viewtopic.php?t=120 

But according to me the problem can be with setting of enctype.

follwoing is the  code for our form











java.lang.NoSuchMethodError: org.apache.commons.fileupload.FileUpload.setSizeMax
(I)V
at org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest
(CommonsMultipartRequestHandler.java:219)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1055)
at org.apache.struts.action.RequestProcessor.processPopulate
(RequestProcessor.java:798)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:254)
at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1422)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at 
com.tavant.lg.controller.servlet.LoanGeniusFrontControllerServlet.service
(LoanGeniusFrontControllerServlet.java:81)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:387)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:305)
at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run
(WebAppServletContext.java:6291)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs
(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs
(SecurityManager.java:97)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet
(WebAppServletContext.java:3575)
at weblogic.servlet.internal.ServletRequestImpl.execute
(ServletRequestImpl.java:2573)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
 
==


Any Suggestion or help will be highly appreciated.


Best Regards
Raman Garg