how to send checkbox value?
hi all i have a prob in sending checkbox value. i like to send check box value of a page to another page when a link is clicked which does not go thru any form.its a struts environment sathish __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to send checkbox value?
hi all any no of checkboxes,fine. but how to know the box is checked r not and then send in url id u r able to find value of chekbox then u can better put in session r pass as hidden sathish __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to send checkbox value?
hi yep an eg will do finethat should do as, get the value of checkbox stored in a variable whether it is checked r not.. sathish __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to send checkbox value?
hi scott thanx for code...it will work for modify flow but how abt setup flow? sathish __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
from sathish:regarding locale
hi all in our coy we have decided to implement internationalization using Locale... can anybody give some idea abt to start with,like needed files,configurations,usage in jsp/java files. regards sathish __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Log4J
hi kwok how to initialize the class what am i doing is i m having loggers.java as package com.pronto.util; import java.io.*; import java.util.*; import org.apache.log4j.*; /** * Title: * Description: Uses new Log4j class to log all the message to a file * Copyright:Copyright (c) 2003 * Company: * @author Sathish Babu * @version 1.0 */ public class Loggers { public static int DEBUG_LOG_LEVEL = 1; public static int INFO_LOG_LEVEL = 2; public static int ERROR_LOG_LEVEL = 4; private static PrintWriter _printWriter = null; private static String _logFile = null; private static int _logLevel; private static Logger logger = Logger.getLogger(com.pronto.web); public static TreeMap levels = new TreeMap(); static { levels.put(String.valueOf(DEBUG_LOG_LEVEL), DEBUG); levels.put(String.valueOf(INFO_LOG_LEVEL), INFO); levels.put(String.valueOf(ERROR_LOG_LEVEL), ERROR); _logLevel = logger.getLevel().toInt(); ConsoleAppender app =(ConsoleAppender)logger.getAppender(Log); // RollingFileAppender app =(RollingFileAppender)logger.getAppender(Log); // _logFile = app.getFile(); } public synchronized static void logMessage(Object message, int logLevel) { System.out.println(got into log message); /*if(logLevel == ERROR_LOG_LEVEL) { logger.error(message); } else if(logLevel == INFO_LOG_LEVEL) { logger.info(message); } else {*/ System.out.println(got into debug message); logger.debug(message); //} } public static void setLoggingLevel(int level) { if( logger.getLevel().toInt() != level ) { if(level == DEBUG_LOG_LEVEL) logger.setLevel(Level.DEBUG); if(level == INFO_LOG_LEVEL) logger.setLevel(Level.INFO); if(level == ERROR_LOG_LEVEL) logger.setLevel(Level.ERROR); logMessage(Setting logging level to + levels.get(String.valueOf(level)), level); } } public static void clearLogFile() { try { if(_printWriter != null) _printWriter.close(); _printWriter = new PrintWriter(new FileWriter(_logFile), true); logMessage(Cleared out logfile, logger.getLevel().toInt()); } catch(Exception e) { logMessage(Error while Clearing logfile +e.getMessage(), ERROR_LOG_LEVEL); } } public static void writeFileToWriter(Writer out) { try { BufferedReader br = new BufferedReader(new FileReader(_logFile)); char[] buff = new char[2048]; int bytesRead; while(-1 != (bytesRead = br.read(buff, 0, buff.length))) { out.write(buff, 0, bytesRead); } br.close(); } catch(Exception e) { Loggers.logMessage(Error while writing the file to writer +e.getMessage(),ERROR_LOG_LEVEL); } } public static int getLoggingLevel() { return _logLevel; } private Loggers() { } public static void main(String[] args) { System.out.println(Hello World!); Loggers.logMessage(stupid..idiot, Loggers.ERROR_LOG_LEVEL); } } i m calling that in actionform class as Loggers.logMessage(stupid..idiot, Loggers.DEBUG_LOG_LEVEL); tell me solution sathish --- Kwok Peng Tuck [EMAIL PROTECTED] wrote: It says no class definition found rather than no class found, are you initializing the class correctly ? Sathish Babu K R wrote: hi kalra yep i have that log4j in lib folder sathish __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.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] __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4J
hi alan i don't use category class at all then how come its showing errori don't get it... whatz that jar that makes trick?tell me sathish __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4J
hi kalra com.pronto.web.accesssummaryreportform is in web-inf/classes will there be any probs due to log4j.prop..its as log4j.rootLogger=ALL ,Log log4j.appender.Log=org.apache.log4j.ConsoleAppender log4j.appender.Log.layout=org.apache.log4j.PatternLayout log4j.appender.Log.layout.ConversionPattern=%d{dd MMM yyy HH:mm:ss,SSS} %-5p %c - %m%n # Define the type of logger #log4j.appender.Log=org.apache.log4j.RollingFileAppender #log4j.appender.Log.File=logs/dbcube.log #log4j.appender.Log.MaxFileSize=1KB # Keep one backup file #log4j.appender.Log.MaxBackupIndex=1 # Define the stuff to log #log4j.appender.Log.layout=org.apache.log4j.PatternLayout #log4j.appender.Log.layout.ConversionPattern=%d{dd MMM yyy HH:mm:ss,SSS} %-5p %c - %m%n #log4j.logger.dbcube=ALL, Log regards sathish --- Kalra, Ashwani [EMAIL PROTECTED] wrote: from the code you sent , there doesnt seem to be any problem. i don't use category class at all then how come its showing errori don't get it... Some classes internally still uses this class. They will finally be removed. Check to see that Category class (org/apache/log4j/Category) is indeed present in you jar. one more check Where are your com.pronto.web.AccessSummaryReportForm class lying ? -Original Message- From: Sathish Babu K R [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 12:38 PM To: Struts Users Mailing List Subject: RE: Log4J hi alan i don't use category class at all then how come its showing errori don't get it... whatz that jar that makes trick?tell me sathish __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4J
hi kalra everything is fine in respective classpaths sathish --- Kalra, Ashwani [EMAIL PROTECTED] wrote: I dont see any problem here.Only thing is that your property file should be present in classpath somewhere. may be in web-inf\classes. Also check the req category class is present in jar file. and no other log4.jar is present in your classpath. -Original Message- From: Sathish Babu K R [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 12:47 PM To: Struts Users Mailing List Subject: RE: Log4J hi kalra com.pronto.web.accesssummaryreportform is in web-inf/classes will there be any probs due to log4j.prop..its as log4j.rootLogger=ALL ,Log log4j.appender.Log=org.apache.log4j.ConsoleAppender log4j.appender.Log.layout=org.apache.log4j.PatternLayout log4j.appender.Log.layout.ConversionPattern=%d{dd MMM yyy HH:mm:ss,SSS} %-5p %c - %m%n # Define the type of logger #log4j.appender.Log=org.apache.log4j.RollingFileAppender #log4j.appender.Log.File=logs/dbcube.log #log4j.appender.Log.MaxFileSize=1KB # Keep one backup file #log4j.appender.Log.MaxBackupIndex=1 # Define the stuff to log #log4j.appender.Log.layout=org.apache.log4j.PatternLayout #log4j.appender.Log.layout.ConversionPattern=%d{dd MMM yyy HH:mm:ss,SSS} %-5p %c - %m%n #log4j.logger.dbcube=ALL, Log regards sathish --- Kalra, Ashwani [EMAIL PROTECTED] wrote: from the code you sent , there doesnt seem to be any problem. i don't use category class at all then how come its showing errori don't get it... Some classes internally still uses this class. They will finally be removed. Check to see that Category class (org/apache/log4j/Category) is indeed present in you jar. one more check Where are your com.pronto.web.AccessSummaryReportForm class lying ? -Original Message- From: Sathish Babu K R [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 12:38 PM To: Struts Users Mailing List Subject: RE: Log4J hi alan i don't use category class at all then how come its showing errori don't get it... whatz that jar that makes trick?tell me sathish __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Log4J
hi all i m getting this error... java.lang.NoClassDefFoundError: org/apache/log4j/Category at com.pronto.web.AccessSummaryReportForm.validate(Unknown Source) at org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:2106) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1565) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:293) at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:602) at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:308) at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:779) at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:264) at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:107) at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:484) pls tell me y? sathish __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4J
hi kalra yep i have that log4j in lib folder sathish __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
from sathish
hi david i get session using request.getSession()?y whats in it?tell me. sathish __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
from sathish
hi all while access to the action class,i m getting the error as java.lang.NoSuchMethodError at com.pronto.web.ModifyGWQueuesAction.perform(Unknown Source) at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:293) at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:602) at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:308) at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:779) at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:264) at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:107) at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:479) the action class is package com.pronto.web ; import java.io.IOException; import java.util.Collection; import java.util.ArrayList; import javax.ejb.Handle; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionServlet; import com.pronto.gateway.IPGConfigurationManagerRemote; import com.pronto.gateway.PGQueueVO; import com.pronto.util.Debug; public final class ModifyGWQueuesAction extends Action { public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { HttpSession session = request.getSession(); ModifyGWQueuesForm theForm = (ModifyGWQueuesForm)form; long x=1,y=2,z=3; String b1=N,b2=N,b3=N; float abw1=1,abw2=1,abw3=1; boolean msg=true; String button=request.getParameter(Management); Debug.print(ModifyGWQueuesAction : perform() -- Button Clicked: + button); if(Save.equals(button)) { String queuename = theForm.getqueuename(); Debug.print(ModifyGWQueuesAction : perform() -- Queue Name1 : + queuename); String queuename1 = theForm.getqueuename1(); Debug.print(ModifyGWQueuesAction : perform() -- Queue Name2 : + queuename1); String queuename2 = theForm.getqueuename2(); Debug.print(ModifyGWQueuesAction : perform() -- Queue Name3 : + queuename2); String queuebandwidth = theForm.getqueuebandwidth(); Debug.print(ModifyGWQueuesAction : perform() -- Queue Bandwidth1 : + queuebandwidth); abw1=(new Float(queuebandwidth)).floatValue(); String queuebandwidth1 = theForm.getqueuebandwidth1(); Debug.print(ModifyGWQueuesAction : perform() -- Queue Bandwidth2 : + queuebandwidth1); abw2=(new Float(queuebandwidth1)).floatValue(); String queuebandwidth2 = theForm.getqueuebandwidth2(); Debug.print(ModifyGWQueuesAction : perform() -- Queue Bandwidth3 : + queuebandwidth2); abw3=(new Float(queuebandwidth2)).floatValue(); String queue = theForm.getqueue(); Debug.print(ModifyGWQueuesAction : perform() -- isolated 1 : + queue); String queue1 = theForm.getqueue1(); Debug.print(ModifyGWQueuesAction : perform() -- isolated 2 : + queue1); String queue2 = theForm.getqueue2(); Debug.print(ModifyGWQueuesAction : perform() -- isolated 3 : + queue2);
from sathish
hi david i m using the same method signature for all action classes.all files works fine except this.that is i m using HttpServletRequest and HttpServletResponse in all files but u have asked me to put ServletRequest and ServletResponse.is it right? sathish __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
from sathish
hi david when i used ur signature i m not able to get session from ur request.thatz creating probs.tell me any other sugg regards sathish __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]