JTable Listener problem - Urgent Please:)

How to make listeners detect both change of rows and columns.
I used ListSelectionListners but that only fires on change of row., How do I detect change of column within the same row?
Sincerely,

d

Similar Messages

  • 4 level masetr detail  problem urgent please

    hi all
    i have page with 4 level master detail first as a form and other as tables my problem is when i click on a record at the last table the second table stop the partial triger so when i chose any record in table 2 it didnt change data in table 3 and data still as it in table 3 and 4 without changing i need to solve this problem very very urgent
    please help me
    Edited by: user554540 on 31/12/2009 11:34 ص

    Do you have the partialTriggers set correctly on the 3rd and 4th level tables?
    As an alternative, you could write a custom selection listener for table 2 and programmatically ppr the 3rd and 4th tables..

  • JTable: renderer problem-urgent

    Thanx "pasteven". That url is too good.
    I wrote my own renderer for each cell in JTable that uses JCombobox for rendering purpose. But when i select an item in that combo box, some times renderer is not setting the selected item in that combobox. Sometimes when i change the selection of item in the previous cell,it is getting reflected in all other cells of that particular column.
    Here is my code. Please help me.
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    import javax.swing.table.TableCellEditor.*;
    import javax.swing.table.*;
    import javax.swing.DefaultCellEditor;
    public class Render extends javax.swing.JFrame {
    JTextField textField0=new JTextField();
    JComboBox cmb_Editor1=new JComboBox();
    JComboBox cmb_Editor2=new JComboBox();
    JComboBox cmb_Editor3=new JComboBox();
    EachRowRenderer rend;
    EachRowEditor eee;
    /** Creates new form Render */
    public Render() {
    initComponents ();
    rend=new EachRowRenderer();
    eee=new EachRowEditor(table);
    table.setDefaultRenderer(java.lang.Object.class,rend);
    table.setDefaultEditor(java.lang.Object.class,eee);
    cmb_Editor3.addItem("Y");
    cmb_Editor3.addItem("N");
    eee.setEditorAt(0,1,new DefaultCellEditor(cmb_Editor3));
    eee.setEditorAt(1,1,new DefaultCellEditor(cmb_Editor3));
    eee.setEditorAt(2,1,new DefaultCellEditor(cmb_Editor3));
    eee.setEditorAt(0,2,new DefaultCellEditor(new JCheckBox()));
    rend.add(0,2,new CheckBoxCellRenderer());
    rend.add(0,1,new ComboBoxCellRenderer(cmb_Editor3));
    rend.add(1,1,new ComboBoxCellRenderer(cmb_Editor3));
    rend.add(2,1,new ComboBoxCellRenderer(cmb_Editor3));
    JCheckBox chk=new JCheckBox();
    pack ();
    public class EachRowEditor implements TableCellEditor {
    protected Hashtable editors;
    protected TableCellEditor editor, defaultEditor;
    JTable table;
    public EachRowEditor(JTable table) {
    this.table = table;
    editors = new Hashtable();
    defaultEditor = new DefaultCellEditor(new JTextField());
    public void setEditorAt(int row,int column, TableCellEditor editor) {
    editors.put(""+row+column,editor);
    public Component getTableCellEditorComponent(JTable table,
    Object value, boolean isSelected, int row, int column) {
    return editor.getTableCellEditorComponent(table,
    value, isSelected, row, column);
    public Object getCellEditorValue() {
    return editor.getCellEditorValue();
    public boolean stopCellEditing() {
    return editor.stopCellEditing();
    public void cancelCellEditing() {
    editor.cancelCellEditing();
    public boolean isCellEditable(EventObject anEvent) {
    selectEditor((MouseEvent)anEvent);
    // editor.isCellEditable(anEvent);
         return true;
    public void addSeperateCellEditorListener(int row,int column,CellEditorListener l) {
    editor=(TableCellEditor)editors.get(""+row+column);
    editor.addCellEditorListener(l);
    public void addCellEditorListener(CellEditorListener l) {
    editor.addCellEditorListener(l);
    public void removeCellEditorListener(CellEditorListener l) {
    editor.removeCellEditorListener(l);
    public boolean shouldSelectCell(EventObject anEvent) {
    selectEditor((MouseEvent)anEvent);
    return editor.shouldSelectCell(anEvent);
    protected void selectEditor(MouseEvent e) {
    int row;
    int column;
    if (e == null) {
    row = table.getSelectionModel().getAnchorSelectionIndex();
    column=table.getSelectionModel().getLeadSelectionIndex();
    } else {
    row = table.rowAtPoint(e.getPoint());
    column=table.columnAtPoint(e.getPoint());
    editor = (TableCellEditor)editors.get(""+row+column);
    if (editor == null) {
    editor = defaultEditor;
    public class CheckBoxCellRenderer extends JCheckBox implements TableCellRenderer
    CheckBoxCellRenderer() {
    setHorizontalAlignment(JLabel.CENTER);
    public Component getTableCellRendererComponent(JTable table, Object value,
    boolean isSelected, boolean hasFocus,
    int row, int column) {
    setSelected((value != null && ((Boolean)value).booleanValue()));
    setToolTipText("checkbox");
    return this;
    public class TextFieldCellRenderer extends JTextField implements TableCellRenderer
    JTextField textField;
    TextFieldCellRenderer(JTextField textField) {
    this.textField=textField;
    public Component getTableCellRendererComponent(JTable table, Object value,
    boolean isSelected, boolean hasFocus,
    int row, int column) {
    setText((textField.getText() != null) ? textField.getText() : "");
    return textField;
    public class ComboBoxCellRenderer extends JComboBox implements TableCellRenderer
    JComboBox comboBox=null;
    ComboBoxCellRenderer(JComboBox comboBox) {
    this.comboBox=comboBox;
    public Component getTableCellRendererComponent(JTable table, Object value,
    boolean isSelected, boolean hasFocus,
    int row, int column) {
    setSelectedItem(comboBox.getSelectedItem());
    return this;
    public class EachRowRenderer implements TableCellRenderer {
    protected Hashtable renderers;
    protected TableCellRenderer renderer, defaultRenderer;
    public EachRowRenderer() {
    renderers = new Hashtable();
    defaultRenderer = new DefaultTableCellRenderer();
    public void add(int row,int column ,TableCellRenderer renderer) {
    renderers.put(""+row+column,renderer);
    public Component getTableCellRendererComponent(JTable table,
    Object value, boolean isSelected, boolean hasFocus,
    int row, int column) {
    renderer = (TableCellRenderer)renderers.get(""+row+column);
    if (renderer == null) {
    renderer = defaultRenderer;
    return renderer.getTableCellRendererComponent(table,
    value, isSelected, hasFocus, row, column);
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the FormEditor.
    private void initComponents() {
    jScrollPane1 = new javax.swing.JScrollPane();
    table = new javax.swing.JTable();
    addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowClosing(java.awt.event.WindowEvent evt) {
    exitForm(evt);
    table.setModel(new javax.swing.table.DefaultTableModel (
    new Object [][] {
    {null, null, null, null},
    {null, null, null, null},
    {null, null, null, null},
    {null, null, null, null}
    new String [] {
    "Title 1", "Title 2", "Title 3", "Title 4"
    Class[] types = new Class [] {
    java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class
    public Class getColumnClass (int columnIndex) {
    return types [columnIndex];
    jScrollPane1.setViewportView(table);
    getContentPane().add(jScrollPane1, java.awt.BorderLayout.CENTER);
    /** Exit the Application */
    private void exitForm(java.awt.event.WindowEvent evt) {
    System.exit (0);
    * @param args the command line arguments
    public static void main (String args[]) {
    new Render ().show ();
    // Variables declaration - do not modify
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTable table;
    // End of variables declaration
    Please help me.

    I ran into the same problem in Java 1.4. The problem is that the JTable is not feeding the initial value to the cell editor. I found the following workaround. You have to override the JTable method prepareEditor() like this:
    <CODE>
    public Component prepareEditor(TableCellEditor editor, int row, int column) {
    Component ret = super.prepareEditor(editor, row, column);
    // Translate column to the data model coordinates by using the
    // identifier. We'll check only for the JComboBox columns (in
    // this example columns 8 and 9).
    int col = 0;
    String id = (String)getColumnModel().getColumn(column).getIdentifier();
    if ( id.equals( tableModel.getColumnName(8) ) )
    col = 8;
    else if ( id.equals( tableModel.getColumnName(9) ) )
    col = 9;
    if (col == 8 || col == 9) {
    String item = (String)tableModel.getValueAt(row, col);
    ((JComboBox)((DefaultCellEditor)editor).getComponent()).setSelectedItem( item );
    return ret;
    </CODE>
    You have to translate from table coordinates to table model coordinates in case the user reorders column - if you don't allow this for your table then you won't have to do this.

  • JTable listener problem,  plz. help  code included

    hi,
    I need help in this JTable. If you run the following code you'll see when you double click in any cell scrollbars will appear if the text is too large for the JTextArea. What I want is when any cell is selected and if the text is too large to fit in the JTextArea I want the scrollbars to appear then. And if I double click in any cell I want some other action to take place. Here is the example code that I got from net and I am trying to play arround with this code. Please run the following code and see what I mean:
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import java.util.*;
    import javax.swing.table.*;
    import javax.swing.border.*;
    public class MyMultiRowTableTest extends JFrame
    public MyMultiRowTableTest()
    addWindowListener(new WindowAdapter()
    public void windowClosing(WindowEvent we)
    System.exit(0);
    getContentPane().setLayout(new BorderLayout());
    getContentPane().add(initComponents(), BorderLayout.CENTER);
    protected Container initComponents()
    JPanel mainPanel = new JPanel(new BorderLayout());
    Vector vRows = new Vector();
    Vector vColumns = new Vector();
    vColumns.add("Column1");
    vColumns.add("Column2");
    for (int i=0; i<20; i++)
    Vector vRow = new Vector(2);
    vRow.add(""+(i+1)+". abcdefghijklmnopqrstuvwxyzabcdefghijk" +
    "lmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmno" +
    "pqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstu" +
    "wxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdef" +
    "ghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrs"+
    "tuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghi" +
    "jklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"+
    "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrs"+
    "tuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz");
    vRow.add("asldfjasldfjal�dfjal�jdfal");
    vRows.add(vRow);
    JTable myTable = new JTable(vRows, vColumns);
    for (int i=0; i<myTable.getColumnCount(); i++)
    TableColumn tc = myTable.getColumn(myTable.getColumnName(i));
    if (tc!=null)
    tc.setCellRenderer(new MultiLineCellRenderer());
    tc.setCellEditor(new MultiLineCellEditor());
    myTable.setRowHeight(80);
    mainPanel.add(new JScrollPane(myTable));
    return mainPanel;
    public static void main(String[] args)
    JFrame frame = new MyMultiRowTableTest();
    frame.setSize(800,600);
    frame.setLocation(200,200);
    frame.setVisible(true);
    }//end of the class MyMultiRowTableTest
    class MultiLineCellEditor extends DefaultCellEditor
    protected JTextArea myEditingComponent;
    public MultiLineCellEditor()
    super(new JTextField());
    myEditingComponent = new JTextArea();
    myEditingComponent.setLineWrap(true);
    myEditingComponent.setWrapStyleWord(true);
    myEditingComponent.setOpaque(true);
    myEditingComponent.addKeyListener(new KeyAdapter()
    public void keyPressed(KeyEvent ke)
    if ((ke.getKeyCode()==ke.VK_ENTER) && (ke.getModifiers() == ke.CTRL_MASK))
    stopCellEditing();
    public Object getCellEditorValue()
    return myEditingComponent.getText();
    public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected,
    int row, int column)
    Component result = super.getTableCellEditorComponent(table,
    value, isSelected, row, column);
    myEditingComponent.setFont(table.getFont());
    myEditingComponent.setText(""+value);
    if (value instanceof String)
    result = new JScrollPane(myEditingComponent);
    return result ;
    }//end of the class MultiLineCellEditor
    class MultiLineCellRenderer extends JTextArea implements TableCellRenderer
    protected final static Border emptyBorder = BorderFactory.createEmptyBorder(1,2,1,2);
    protected final static Border focusBorder = UIManager.getBorder("Table.focusCellHighlightBorder");
    public MultiLineCellRenderer()
    setLineWrap(true);
    setWrapStyleWord(true);
    setOpaque(true);
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,
    boolean hasFocus, int row, int column)
    if (isSelected)
    setForeground(table.getSelectionForeground());
    setBackground(table.getSelectionBackground());
    else
    setForeground(table.getForeground());
    setBackground(table.getBackground());
    setFont(table.getFont());
    if (hasFocus)
    setBorder(focusBorder);
    if (table.isCellEditable(row, column))
    setForeground( UIManager.getColor("Table.focusCellForeground") );
    setBackground( UIManager.getColor("Table.focusCellBackground") );
    else
    setBorder(emptyBorder);
    if(value==null)
    myEditingComponent.setText("");
    return new JScrollPane
    (myEditingComponent);
    setText((value == null) ? "" : value.toString());
    return this;
    }//end of the class MultiLineCellRenderer
    If you see when you double click in the first column the scrollbars will appear as the text is too large. But what I need is that when the cell is selected the scrollbars should appear and when I doubleclick in the cell I want some other action to take place. Please help I really don't understand how this cellrenderer and celleditor works. Any help is really appreciated. And thank you in advance.

    hi friend
    i tried to solve your problem , but i couldn't clear myself with program logic u used. but your problem can be solved by trying with the following lines.you need to explore the right place in your logic.
    int v=ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS;
    int h=ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS;
    if (value instanceof String)
    result = new JScrollPane(myEditingComponent,v,h);
    return result ;
    in the meanwhile i will try with your code as soon i will get time.
    reply me back if it solves the problem
    bye

  • Sending mail Problem (Urgent Please)

    The following program mail coding program. I am in local System. Host is my server. But our Server (norton) firewall is enabled. I am not able to send any mail. Will you please tell me How to recover this problem or alter my coding. If anybody knows Please tell me.
    <html>
    <head>
    <title>JSP JavaMail Example </title>
    </head>
    <body>
    <%@ page import="java.util.*" %>
    <%@ page import="javax.mail.*" %>
    <%@ page import="javax.mail.internet.*" %>
    <%@ page import="javax.activation.*" %>
    <%
    try
    String host = "xxx.xxx.x.x";
    String to = request.getParameter("to");
    String from = request.getParameter("from");
    String subject = request.getParameter("subject");
    String messageText = request.getParameter("body");
    boolean sessionDebug = false;
    Properties props = System.getProperties();
    props.put("mail.host", host);
    props.put("mail.transport.protocol", "smtp");
    Session mailSession = Session.getDefaultInstance(props, null);
    mailSession.setDebug(sessionDebug);
    Message msg = new MimeMessage(mailSession);
    msg.setFrom(new InternetAddress(from));
    InternetAddress[] address = {new InternetAddress(to)};
    msg.setRecipients(Message.RecipientType.TO, address);
    msg.setSubject(subject);
    msg.setSentDate(new Date());
    msg.setText(messageText);
    Transport.send(msg);
    out.println("Mail was sent to " + to);
    out.println(" from " + from);
    out.println(" using host " + host + ".");
    catch(Exception e)
    System.out.println("Error");
    %>
    </table>
    </body>
    </html>
    Please tell me how to recover this problem
    Thanks in advance
    regards
    pooja

    Please tell me my mail coding is correct. If correct but i am not able receive any mail. what is the problem do u know. If you know please tell me
    regards
    pooja

  • Smartform : Printing Problem , Urgent Please

    Dear All,
    When I tried to print a smartform, I am Getting message 'Spool Request (number xxxxxx ) is created' .
    but It is not printing.
    I am facing this problem only with this form. I could print other forms / Scripts.
    What might be the error ? Please Let me Know ..
    Thanks & Regards
    Venkat
    Message was edited by: venkat Kumbham
    Message was edited by: venkat Kumbham

    Venkat,
    You can do that in two ways. Once is to set it in the USER DEFAULTS. Go to SU01 and you can see a tab for DEFAULTS.. There will be a check box for PRINT IMMEDIATELY.
    Or you can do that in the SMART Form parameters also. In the OUTPUT_OPTIONS parameters ther is a field TDIMMED. Set that to 'X'. That should print the form immediately.
    Regards,
    Ravi
    Note : Please close the thread, and mark the helpful answers if this solves your problem.

  • Installation problem - urgent, PLEASE help!!

    I'm trying to install Java3D and somehow it doesn't seem to be working. I'm not sure whether I should be installing the opengl or the
    directx version, but I've tried both with no luck. I'm running Windows
    M.E.
    I downloaded the JSDK beta 1.4 version (I have previously tried also
    with the 1.3 version, this didn't work either), and now have the
    jdk1.3.1 as a folder on my C drive ( C:\jdk1.3.1) . Then I downloaded
    Java3D from the website, onto C, as an executable file. When I clicked
    it, it went through the installation process (not giving me any
    options for where to install it, i was just clicking on 'next') and
    seemed to complete ok, but I'm trying to test it by running the
    helloUniverse demo, and the file isn't even there. There's a Java3D
    folder which has been created in Windows, but this just contains a
    folder called uninstall_info.
    On my Java plug-in control Panel, it is currently set to 'use java
    plug-in default'. The other options are to use JRE or JDK, in folders
    Program Files\JavaSoft or JDK1.3.1 respectively. I don't know which
    one I should be choosing! I think I tried it with the JDK option
    before and that didn't work either.
    If anyone can please help I'd be really grateful, this is getting
    quite urgent!

    Hi there!
    Well, try installing java3d in the same directory as ur java(which is c:\jdk1.3.1 for u).
    If i am not mistaken, java3d, by default, installs in c:\jdk1.2.2 directory.
    U also have 2 set the path and classpath in the autoexec.bat to addr to \bin and \lib sub-directories resp.

  • Tomcat problem urgent please

    Hi! All
    I just installed jdk1.1.8 and jakarta-tomcat 3.3.2 on windows 2000.
    I also set the path, java_home and tomcat_home as required. But when I try to run Tomcat, it says "Starting Tomcat in a new Window", then a new window opens up and closes immediately.
    Please advice.
    Thank in advance.

    Edit the ... I think it's tomcat.bat file, and where it says something like:
    call "%TOMCAT_HOME%\bin\tomcat-startup" start %1 %2 %3 %4 %5 %6 %7 %8 %9
    Change start to run. This will make it start tomcat in the same window and let you see what the error message is. Most likely it's either a classpath problem, or another application using the port tomcat is trying to use.

  • Session and Refresh problem, Urgent, please help

              Hi, Dear Everyone:
              I have two questions to ask. (Environment: OS: Nt4.0, Server: Weblogic5.1)
              (1). When I use session to store an object in servlet (processed results
              from database) then dispatch to a jsp page to display the results, I got the following
              error message.
              Wed May 16 15:54:31 CDT 2001:<I> <ServletContext-General> Generated java file:
              C:\weblogic\myserver\classfiles\jsp_servlet\_ccproject\_subdisplay.java
              java.lang.NullPointerException
              at jsp_servlet._ccproject._subdisplay._jspService(_subdisplay.java, Comp
              iled Code)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:106)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:124)
              at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
              cherImpl.java:154)
              at com.voy.CCPro.DataDumper.doPost(DataDumper.java:69)
              at com.voy.CCPro.DataDumper.doGet(DataDumper.java:85)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:106)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:907)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:851)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              ContextManager.java:252)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              a:364)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
              Here is my servlet code:
              HttpSession session = req.getSession(true);
              Vector temp = buildData.BuildForDisplay(rst);
              session.setAttribute("PostTitlePool", temp);
              String url = "/ccproject/subdisplay.jsp";
              RequestDispatcher dis = getServletContext().getRequestDispatcher(url);
              dis.forward(req, res);
              Here is my jsp
              <%@ page import="com.voy.CCPro.*" %>
              <%@ page import="java.util.*" %>
              <%
              Vector v = new Vector();
              v = (Vector)session.getAttribute("PostTitlePool");
              Enumeration enum = v.elements();
              SequenceData sq = new SequenceData();
              while(enum.hasMoreElements())
                   sq = (SequenceData)enum.nextElement();
                   if(sq.getIndicator()==0)
                        out.println(sq.getTitle());
                   else
                   out.print(sq.getTitle());
              %>
              Please tell me what I did wrong or What more do I need to do?
              (2). If I changed to use request.setAttribute in servlet, it works. But I got another
              strange
              result from browser. That is, if I keep on clicking refresh (IE5.5), the same result
              appending
              the previous one on the same page.
              Here is my code in servlet:
              req.setAttribute("PostTitlePool",temp);
              String url = "/ccproject/subdisplay.jsp";
              RequestDispatcher dis = getServletContext().getRequestDispatcher(url);
              dis.forward(req, res);
              Here is my jsp:
              <%@ page import="com.onvoy.CCPro.*" %>
              <%@ page import="java.util.*" %>
              <%
              Vector v = new Vector();
              v = (Vector)request.getAttribute("PostTitlePool");
              Enumeration enum = v.elements();
              SequenceData sq = new SequenceData();
              while(enum.hasMoreElements())
                   sq = (SequenceData)enum.nextElement();
                   if(sq.getIndicator()==0)
                        out.println(sq.getTitle());
                   else
                   out.print(sq.getTitle());
              %>
              Please explain it to me why that and how to fix it. I appreciate it very much.
              

    I control this as follows
    --> all JSP's don't create session (<@page session="false">)
    --> my FrontServlet checks
    session=request.getSession(false);
    if(session==null)
    //invoke method from LoginHandler (Helper Class)
    //for check logindata and create session
    else
    //invoke method from ProtectedResource (Helper Class)
    //for check, if user logged on
    --> LoginHandler
    //method UserAllowed returns true or false
    if(!UserAllowed())
    //invoke ServiceDispatcher method who displays
    //the 'AccessDenied'Page
    else
    //set loggedIn into the session
    session.setAttribute("loggedIn","OK");
    //invoke ServiceDispatcher method to display the requested Page
    --> ProtectedResource
    //check if user logged in
    Object o=session.getAttribute("loggedIn");
    if(o==null)
    //User not logged in
    //invoke ServiceDispatcher method to display 'Login' Page
    else
    //User logged in
    //invoke ServiceDispatcher method to display the requested Page
    --> URL of the Application
    Welcome: http://localhost:8000/APP/login.jsp
    submitted FORM sent to FrontServlet
    (FORM ACTION="servlet/FrontServlet")
    When everything is alright (username/password)
    new URL http://localhost:8000/APP/servlet/FrontServlet
    and the 'Main' Page is shown
    when session is timed out and i refresh page
    data is sent again (without asking for username and password)and new
    session is created and the 'Main' Page is shown again.
    How can i fix this problem
    thank you in advance :-)

  • WHT Challan problem urgent please........

    Hi all,
    in my customization of WHT, in t.code J1INCHLN, system is taking all but at the time of posting (i.e. after simulation of document) or saving the following error message has coming.
    Message no. 8I 704
    Diagnosis
    Number group is not maintained for the combination of company code
    &.1. section & 2 and business place &.3.
    System Response
    Challan update program could not proceed without this data.
    Procedure
    Check entries in table Z_1iewtnumgr and then start challan update program.
    but i checked the mentioned table in message, system is saying there is no table existing.
    instead of the Z table we are having J_1iewtnumgr. for this we maintain correctly.
    kindly suggest, please urgent.... my process are stucked

    Hello
    Check number range assignment
    Check challan update status
    In the Challan Update Status report, you can create a remittance challan for various documents: Select the documents that you want to remit the tax on and choose Challan Update. The system takes you to the Create Remittance Challans program, which you then execute. However, you can only process documents for one withholding tax section at a time.
    In the Bank Challan Status report, you can enter a bank challan: Select the documents (in this case identified by the internal challan numbers) that you have been sent a bank challan for and choose Bank Challan Update. The system takes you to the Enter Bank Challans program, which you then execute. However, you can only a single internal challan at a time.
    In the Certificate Status report, you can print withholding tax certificates: Select the documents that you want to print a certificate for and choose Certificate Printing. The system takes you to the Print Withholding Tax Certificates program. However, you can only process documents for one withholding tax section at a time
    Reg
    *assign points if useful

  • Iframe problem :Urgent Please

    Hello Guruz:
    I am stuck in an issue, i have two domain, e.g: domain 1
    & Domain 2. I am calling domain 2 from domain 1 by using IFrame
    in domain 1.
    I am using ASP Classic with SQL Server, and i have applied
    Dreamweaver Login User Server behaviour builtin, and restriction
    level is username,password & security.
    When ever i try to connect using my login page through IFRAME
    in domain 1, it want let me IN. i have designed a customizied error
    page, and its showing me that. When i just delete the dreamweaver
    user restriction extension from that page it get login successfully
    using IFRAME.???????????????//
    Can any body help me out
    please??????????????????????????????????????its kind of urgent
    matter, i am really bitting my nails out?

    Developer/Designer wrote:
    > Can any body help me out
    > please??????????????????????????????????????its kind of
    urgent
    > matter, i am really bitting my nails out?
    Show us the URL, please.
    Pete.
    Peter Connolly
    http://www.kpdirection.com
    Utah

  • Wrt54gs problem URGENT PLEASE HELP

    hello, i have had the wrt54gs for about 4 months and my internet has been perfect but about a few a days ago, when i play counter strike source online or anything else i get ridiculous lag and it not able to play (500-600 ping), i have not changed settings or anything. when i watch the network monitor it shows about 4-5 bars on signal strength and link quality but every like 30 seconds it says you are connected to the access point but the internet cannot be found then like 30 seconds later it goes back to normal.
    i have upgraded the firmware of my router and linksys helped me change some of the settings on the router but nothing happened.
    can you please help me
    thanks
    pete
    Message Edited by Stelth2k1 on 10-27-2007 07:14 PM

    If it's working well all the while and only have the problem recently, then I guess it can be the problem on Internet connection link, or ISP side.
    Try to connect your computer directly to the DSL/cable modem, then play the game, see anymore lagging..
    picoHat
    Home Network, Wireless Network and Computer Networking Made Easy

  • Huge icloud problem, urgent please help

    So I broke my old iphone and my dad gave me his old one, i restored it to factory settings and then set about putting my icloud recoery on, I signed into to my apple id and icloud, then i got to a terms and conditions page which I agreed to.
    HOWEVER and here is the problem, after a small wait of 'it may take a few minutes to set up your apple id' i am presented with a screen saying choose your backup, with various dates on it. I click on the latest one, and it it says
    "enter the apple id password for 'email address' to use for store purchases (including the appstore) iTunes store, and iBooks store"
    problem is, the email address isn't one i own, i have never seen this email address before in my life it certainly doesnt belong to me, or anybody I know, and I am really rather concerend as all of my backups are in this persons email from aol...
    HELP!

    Try the following :
    1.convert your string to a unicode format and than
    compress.
    2.decompress and than convert it back to the normal
    format.
    use following code suitably :
    byte []  bytes = null;
    try {
    bytes =     string1.getBytes ("UTF8");//encode
    string2  = new String (bytes, "UTF8");//decode
    } catch (UnsupportedEncodingException e) {
    e.printStackTrace();}
    Unless my understading of Java is completely wrong, after the code you've written, string1.equals(string2) should be true.
    And that is because string1 is a Java String, in unicode format (all Java strings are in unicode format). So, with
    bytes =     string1.getBytes ("UTF8");//encodeyou get the bytes of that String coresponding to it's UTF-8 representation. Then,
    string2 = new String (bytes, "UTF8");//decodeyou create a new String (in unicode) from the UTF8 bytes representation. In my opinion, string1 is always equal with string2.
    Please correct me if I'm wrong...

  • Ipod touch restore problem *URGENT PLEASE HELP*

    Ok well I just inherited an Ipod touch from my friend who upgraded to a iPhone and it has a lock code, which I don't know. I called up my friend and asked him the code, he didn't know it of course... so i just guessed passwords and it said it was locked, I only have one more try until it locks permanently. So, I tried resetting it and it didn,t work. so i put it in recovery mode and it was gonna be ok, but my problem is I have slow dial-up internet and cannot re-download the software because my internet turns off randomly and it takes about 35 hours straight to download the 280MB, my other problem is that every time the download is disrupted, what itunes has already downloaded deletes itself and I have to start over from zero. I cannot fully download the software and have no access to hi-speed internet, I need a solution please otherwise im sitting here with a $300 piece of junk.

    Just bring it over to your friends house and have him reset it for you. Then bring it to your house to put your music on it.
    It is as simple as that. Too bad you have dial-up still. I use broadband and it is very fast.
    Timothy Z.

  • Excel Download problem - Urgent please

    Hi All,
    I am using 4.6C version.
    The user is downloading the ALV output to excel from the output menu
    List > Save > File > Spreadsheet >
    User tried saving a file to the Local drive and got a "Disk is full" error.
    User realized that the export didn't complete (Partial download)
    because there wasn't enough disk space to export the report.
    User stated that if he had received an error message of some sort, he might have realized the problem.
    He didn't receive any kind of errors.
    User would like some kind of error message to come up in those situations.
    Without an error message, he assumes the reports are acurate and trusts them.
    <b>I have analysied and found a exit EXIT_SAPLGRAP_001 which triggres after the popup asking the file path. However this exit doesnot give me the file path</b>.
    After this i think i can make use of the class CL_GUI_FRONTEND_SERVICES and method GET_FREE_SPACE_FOR_DRIVE and FILE_GET_SIZE to check for disk space full.
    Kindly let me know how to get the file path given in the popup to get it in the exit EXIT_SAPLGRAP_001. Also there was no parameter id for the field.
    Thanks for your help.
    Senthil

    Senthil,
    "However in this case the sap didnot uses GUI_DOWNLOAD to download instead it uses download FM. "
    What "download FM" is 4.6 using then?
    The GUI_DOWNLOAD does check for a disk_full situation... I find it hard to believe that SAP made an oversight here.
    I believe that the user is not telling the truth to you... or something else happened in that they have not conveyed to you.

Maybe you are looking for