Help Needed from Steve Muench

Dear Steve,
I am following the toystore demo. From the toystore demo, I have included a package, FwkExtensions. Now I wan't to write my own user validation. I have followed the way you have coded for your signin actions. From the login form whenever some one insert his login and password, I get it in ValidateUserAction.java, where the onValidateUser( ) is like:
public void onValidateUser(DataActionContext ctx)
HttpServletRequest request = ctx.getHttpServletRequest();
String target = request.getParameter("target");
if (isNullOrEmpty(target)) {
target = "welcome";
LoginForm loginForm = (LoginForm) ctx.getActionForm();
final String login = loginForm.getLogin();
final String password = loginForm.getPassword();
if (isNullOrEmpty(login)) {
ctx.getActionErrors().add("username", new ActionError(BLANKLOGIN));
else if (isNullOrEmpty(password)) {
ctx.getActionErrors().add("password", new ActionError(BLANKPASSWORD));
else
LoginService ls = getLoginService(ctx);
//Error Starts from the lower part
if (ls.validateUser(login, password))
AppUserInfo.signIn(request, loginForm.getLogin());
ctx.setActionForward(target);
return;
else
ctx.getActionErrors().add(ActionErrors.GLOBAL_ERROR,
new ActionError(INVALIDLOGIN));
saveErrors(ctx);
My DataForwardActionClass is shown below:
package neplogin.view;
import toystore.fwk.controller.ToyStoreDataForwardAction;
import java.text.*;
import java.util.*;
import oracle.adf.controller.struts.actions.DataActionContext;
import neplogin.service.common.LoginService;
public class LoginServiceDataForwardAction extends ToyStoreDataForwardAction
private static final String DATACONTROLNAME = "LoginService";
public LoginServiceDataForwardAction()
* Return the LoginAppModule custom interface that clients
* (like the data actions in this project) can use to invoke
* server-side business logic in a tier-independent way.
* @param ctx The DataAction context
* @return The LoginAppModule custom service interface
protected LoginService getLoginService(DataActionContext ctx) {
System.out.println("-------------- Login App Module Created Successfully ---------------");
return (LoginService) getApplicationModule(DATACONTROLNAME, ctx);
* Mark the LoginService data control to be released in stateless mode
* at the end of the request.
* @param ctx The DataAction context
protected void releaseLoginServiceStateless(DataActionContext ctx) {
releaseDataControlStateless(DATACONTROLNAME, ctx);
Whenever I call the method validateUser(login,password) I get Null Pointer Exception. Which implies that my LoginService (ApplicationModule) can't be instantiated. How to instantiate LoginService and how? I couldn't figure it out till now.
I am using JDeveloper 10.1.2, Default Web Application Framework, contains JSP, Strut and ADF.
Thanks in advance

Hi Guys,
A few more notes: The error messages are like:
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
05/08/24 12:34:37 -------------- Login App Module Created Successfully ---------------
05/08/24 12:34:37 Login Name = admin
05/08/24 12:34:37 Password is = himu
05/08/24 12:34:37 java.lang.NullPointerException
05/08/24 12:34:37      at neplogin.view.ValidateUserAction.onValidateUser(ValidateUserAction.java:71)
05/08/24 12:34:37      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
05/08/24 12:34:37      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
05/08/24 12:34:37      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
05/08/24 12:34:37      at java.lang.reflect.Method.invoke(Method.java)
05/08/24 12:34:37      at oracle.adf.controller.lifecycle.PageLifecycle.handleEvent(PageLifecycle.java:544)
05/08/24 12:34:37      at oracle.adf.controller.struts.actions.StrutsPageLifecycle.handleEvent(StrutsPageLifecycle.java:252)
05/08/24 12:34:37      at oracle.adf.controller.lifecycle.PageLifecycle.processComponentEvents(PageLifecycle.java:477)
05/08/24 12:34:37      at oracle.adf.controller.struts.actions.DataAction.processComponentEvents(DataAction.java:236)
05/08/24 12:34:37      at oracle.adf.controller.struts.actions.DataAction.processComponentEvents(DataAction.java:430)
05/08/24 12:34:37      at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:126)
05/08/24 12:34:37      at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
05/08/24 12:34:37      at toystore.fwk.controller.ToyStoreDataForwardAction.handleLifecycle(ToyStoreDataForwardAction.java:189)
05/08/24 12:34:37      at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)

Similar Messages

  • Error while running a sample XSQL from XML bible book from Steve Muench

    I am running the sample XSQL code from Chapter 03, which deals with exporting XML and transform into SQL statements. I'm using JDeveloper and I believe I've setup libraries and HTML root directory etc. I'm getting the following error:
    XSQL-011 Error processing XSLT stylesheet.
    XSL-1009 Attribute xsl:version not found in xsl:stylesheet.
    Can I get some help in fixing this error?
    Thanks a lot,
    Murali
    null

    Hi,
    This is the example I took from Steve Muench's book.
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="text"/>
    <xsl:template match="/">
    </xsl:template1>
    </xsl:stylesheet>
    As you can see, I do have the version=1.0 attribute. Why is it complaining still?

  • Dynamic JDBC Credentials: Example 14 from  Steve Muench

    Hi,
    Im trying example from Steve Muench, it's working fine.
    But I have some questions about it.
    If I want to connect to the db with a wrong username/password I see that it tries 5 times to connect to the database, Where Can I change this number of retries?
    Before the password should be used, it must be encrypted. I have two encryption methods, wich one should be used varies.
    If the first encryption gives a wrong result(no login) the second encryption should be used.
    What is a good place to encrypt the password?
    I was thinking of DynamicJDBCSessionCookieFactory because that is called more than 1 time if login fails.

    I placed my code to encrypt now in the DynamicJDBCBindingFilter.
    This how I try to connect twice
    catch (Exception e) {
                        if (isFailedLoginException(e)) {
                            System.out.println("Poging="+poging);
                            attemt+=1;
                            if (attemt<3){
                                FacesContext    fctx = FacesContext.getCurrentInstance();
                                ExternalContext ectx = fctx.getExternalContext();
                                HttpSession session2 = (HttpSession)ectx.getSession(false);
                                if (session2 != null) {
                                  session2.invalidate();
                                this.doFilter(request,response,chain);
                            }else{
                                signalFailedLoginAttempt(svrRequest);
                                redirectToLoginPageOnLogonError(request, response);
                        }As you can see I invalidate the session and then I call doFilter again.
    This is almost working, but when I'm forwarded to main.jsp with the table I see access denied istead of the table, I also get this error on the Jdev console:
    08/03/25 15:09:14 java.lang.IllegalStateException: Session was invalidated
    08/03/25 15:09:14      at com.evermind.server.http.EvermindHttpSession.setAttribute(EvermindHttpSession.java:151)
    08/03/25 15:09:14      at test.DynamicJDBCBindingFilter.doFilter(DynamicJDBCBindingFilter.java:84)
    08/03/25 15:09:14      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    08/03/25 15:09:14      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    08/03/25 15:09:14      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    08/03/25 15:09:14      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    08/03/25 15:09:14      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    08/03/25 15:09:14      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    08/03/25 15:09:14      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    08/03/25 15:09:14      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    08/03/25 15:09:14      at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    08/03/25 15:09:14      at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    08/03/25 15:09:14      at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    08/03/25 15:09:14      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    08/03/25 15:09:14      at java.lang.Thread.run(Thread.java:595)
    The session is invalidated, but If I don't to that it looks like that the new login credentials are not used. Because then I go back to the login page and see the message that the login\password was not correct.
    Someone who knows what I do wrong? I realy need to know this!!
    Message was edited by:
    KdeGraaf

  • Dynamic JDBC credentials example application from Steve Muench

    Apologies for this newbie question...but I'm trying to understand the Dynamic JDBC credentials example application from Steve Muench:
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#14
    I think I understand most of it but the one bit I dont understand is why it customizes the ADF Page Lifecycle (DynamicJDBCADFPhaseListener, DynamicJDBCPageLifecycle, DynamicJDBCPageLifecycleContext).
    Can anyone explain to an ex-forms developer why this code is there?
    I'm also trying to work out a way for the session to be invalidated when the user logins again
    e.g. a user logins, he doesnt use the logout function but uses the back button to go back to the login page. when he logs in with another set of credentials, would a new session start or as i supsect, it would use the original login credentials?
    Thanks

    You can ignore those three classes in the example. They are not related to the dynamic credential solution, and must have been left over from some other example I evolved into what you see. Sorry to have cluttered up the implementation with stuff that isn't really contributing to the actual solution. DOH!

  • Help needed from Adobe for unauthorised activity on my account

    Help please!
    I bought some education software from an Adobe supplier on the recommendation of my school. It turns out (without me knowing or being told when I placed the order) that I was being sold old software, at what he now claims was cost price (interesting as I subsequently bought the next version for just $30 more). I have not been able to register that software as it was the wrong version for my region, and after a month of trying I asked for a refund.
    He is now accessing my account, (probably from a link in an email i sent him!!) and is trying to get the software he sold me registered so he doesn't have to refund me!
    Okay, so bad enough that I have hassles with this "person" but worse that he has access to my account and I seem unable to change this.
    This whole process has been a nightmare!! I need to close two open cases immediately but can't get hold of Adobe by phone or on chat!!! Help please!

    You should be able to contact chat support from http://adobe.ly/yxj0t6

  • IPod Help needed from serious Apple gurus - iPod Touch 2g 16g stuck in restart loop. Will NOT enter DFU or recovery mode, NOT recognized by iTunes on Windows or Mac

    Ok, so here's the not so sad story. I bought an iPod Touch 2g 16g through Ebay - so forget warranties. Luckily I did not pay much. The description said it was stuck on the apple logo, so I figured it would be an easy put into recovery mode and restore problem.
    Not so much.
    If you plug the iPod in and charge up the battery the LCD will come to life after a while with the apple logo, then it displays the spinning wheel with the apple logo over it. That will last anywhere from 10 - 15 minutes, then the iPod will go blank for a few secs and then start up the cycle all over again.
    As stated, this iPod will NOT enter either DFU or recovery mode and believe me I've tried it several times several different ways with different timings, connected via USB to a Mac, connected to a different Mac running Windows, and connected to just the charger. Nothing. Occasionally the screen might go blank while holding the power and home buttons but nothing else happens and then it starts it's usual cycle again.
    Again, iPod NOT recognized by iTunes on either Mac or Windows side. Since I got off Ebay and seller didn't know much about it, I have no idea if someone tried to jailbreak this or not.
    I will not put much money into this machine. So I guess my question is: does this behavior mean that the motherboard is clearly fried? Are there any software programs that might diagnose what the problem is? Could it be as simple as a fried battery?
    And most importantly, is this iPod simply toast or is there anything anyone can suggest????
    Really any suggestions would be greatly greatly appreciated. Seems a shame to just trash an iPod touch that might need a simple fix...
    If it helps matters, I can tinker with iPods somewhat and have torn down and replaced several iPod touch 1g and 2g glass and digitizers with no problems. I'm somewhat software savvy but the whole jailbreak thing is new territory... and I can't really figure out the command in Windows or Mac terminals to list all connected devices so I have no idea if the computer even knows the iPod is there, even if iTunes doesn't. Guess that's it... ummm, please help???

    Nothing huh? No one's had this problem or this isn't fixable... oh well... if anybody comes up with anything I'll check in occasionally...

  • Inconsistent Update error: JBO: 25014.  Help Needed from Jdev team

    Hi,
    ***Please help me in solving this issue. urgent!!!. Thanks.***
    I need to know how can i Update after i browse throw a rowset
    and set the row attributes. Simple posting the changes and
    commit is giving me following error.
    I am getting JBO:25014 when i try to update a detail table for
    selected number of rows.
    I have a JSP page which allows the user to select either at
    master level or detail level using Radio Button and
    2 Text fields, one for date and other for comments at master
    level. This will appear mandatorily.
    In detail level, Number of rows which will be dynamically
    populated. If this level is selected, and say 5 lines are
    displayed, I will be having 5 text fields for dates and 5 text
    fields for comments. Upon submit, I pass these text fields
    values as params and receive in JSP page as String arrays in a
    seperate validation page .
    At the database end, I have Order Master table and Lines detail
    table.
    For some records in Order table, I am able to update records in
    both the tables. But for certain records in Order table, I am
    unable to update the detail table and throws me a JBO:25014
    error: : Another user has changed the row with primary key
    oracle.jbo.Key
    This record is very similar to other records and i am unable to
    update this record from sql*plus.
    In the validation Page, where i receive the parameters, I use
    View objects for Orders and Details, executeQuery for selected
    Order. Then I use Row Iterator for each of the view objects, in
    between the row iterator tags, I set the row attributes with the
    individual lines values if Libe level is selected or the common
    header date and comments value to all lines.
    Then i post changes and commit.
    The code is below for the way I update lines records.
    <jbo:DataSource id="ds"
    appid="LivePoheaders.LivePoheadersAppModule"
    viewobject="MyPOLinesView"/>
    <jbo:RowsetIterate datasource="ds" >
    <%
    //trying to get a row object
    rowln = ds.getRowSet().getCurrentRow();
    // formatting my date input to a valid string
    lnDateStr = PohdrFcastYear+"-"+PohdrFcastMon+"-"+PohdrFcastDay;
    out.println(PohdrComments);
    out.println("Header date" + lnDateStr);
    formatter.applyPattern("yyyy-MMM-dd");
    tempDate = formatter.parse(lnDateStr);
    formatter.applyPattern("yyyy-MM-dd");
    lnDateStr = formatter.format(tempDate);
    lnVenFcastDate = new oracle.jbo.domain.Date(lnDateStr);
    // setting the two attributes with input values
    rowln.setAttribute("VendorForecastDate", lnVenFcastDate);
    rowln.setAttribute("VendorComments",PohdrComments);
    }catch( Exception e)
    currErrorStatus = err.putErrorDesc(e.getMessage());
    err.setCurrentErrorStatus(currErrorStatus);
    %>
    <jbo:RollBack appid="LivePoheaders.LivePoheadersAppModule"/>
    <%
    throw new oracle.jbo.JboException(e);
    %>
    </jbo:RowsetIterate>
    <%
    try
    %>
    <P> <b>Posting Changes ...</b> </P>
    <jbo:PostChanges appid="LivePoheaders.LivePoheadersAppModule"/>
    <P> <b>Committing Changes...</b> </P>
    <jbo:Commit appid="LivePoheaders.LivePoheadersAppModule"/>
    <P> <b>Commit Successful...</b> </P>
    <%
    currErrorStatus = "-1";
    err.setCurrentErrorStatus(currErrorStatus);
    }catch( Exception e)
    currErrorStatus = err.putErrorDesc(e.getMessage());
    err.setCurrentErrorStatus(currErrorStatus);
    %>
    <jbo:RollBack appid="LivePoheaders.LivePoheadersAppModule"/>
    <%
    throw new oracle.jbo.JboException(e);
    %>

    From the JDeveloper 3.2.3 online documentation:
    JBO-25014: RowInconsistentException
    Cause: Comparison of the cached entity failed with the values in
    the database for that entity. This could happen when another
    user or operation has committed modifications to the same entity-
    row in the database. This exception can also be thrown if the
    equals() method on one of the domain-type attributes in the
    entity fails.
    Action: Choose from the following options:
    --Verify that another user or operation has not modified the
    same row in the database. If this entity has attributes of a
    domain type verify that the equals() method on these domains do
    not fail when comparing the existing cached value with the newly
    fetched value.
    --For any attributes/columns that are updated by the database,
    modify the entity attribute definition by selecting Refresh
    after update on the Attribute Settings page of the Entity Object
    Wizard.
    --Use view.executeQuery() frequently, especially after any
    operations that result in data being changed.

  • Help need from everyne " What does this mean"

    Verify and Repair disk “Stash Back Up”
    Checking HFS Plus volume.
    Checking Extents Overflow file.
    Checking Catalog file.
    Invalid index key
    Rebuilding Catalog B-tree.
    Rechecking volume.
    Checking HFS Plus volume.
    Checking Extents Overflow file.
    Checking Catalog file.
    Checking multi-linked files.
    Checking Catalog hierarchy.
    Checking Extended Attributes file.
    Checking volume bitmap.
    Volume Bit Map needs minor repair
    Checking volume information.
    Invalid volume file count
    (It should be 455649 instead of 446460)
    Invalid volume directory count
    (It should be 96500 instead of 95854)
    Invalid volume free block count
    (It should be 20444605 instead of 21555396)
    Volume Header needs minor repair
    Repairing volume.
    Rechecking volume.
    Checking HFS Plus volume.
    Checking Extents Overflow file.
    Checking Catalog file.
    Checking multi-linked files.
    Checking Catalog hierarchy.
    Checking Extended Attributes file.
    Checking volume bitmap.
    Checking volume information.
    The volume Stash Back Up was repaired successfully.
    Mounting Disk
    1 HFS volume checked
    Repair attempted on 1 volume
    1 HFS volume repaired
    It happens on both the backup and the real drive, so i figured the drives are not faulty but something wrong with a file some where
    plus help me
    i keep getting errors and stuff when installing a software from the CD rom
    I've change the rom and it still happens, so its not the rom itself
    thanks in advance

    Apparently it was on both of your drives. Not surprising if the backup drive was a clone of the main drive.
    yes it was a clone
    i was tryning to install Logic 7 and the Jam packs
    all had an error saying..
    "Disk error, please reinstall the software again"
    I've tried many times with no success
    I installed it on another mac and it works beautiful
    not sure whats wrong exactly

  • Printer help needed from the Apple community

    Hello Apple Community,
    Can you help me to print from a new Mac to an old Canon printer?
    I'm here in Vietnam (first time in Asia) as a teacher. I have the latest model MBP (running Mac OS X 10.8.4). There's an old Canon that I'm trying to print to. I've Google'd the model number but nothing comes up for Mac. There are sites in the Google search that say they have the software. I'm worried they might be malware sites.
    On the back of the printer it says L11121E. But when I connect it (via USB) and open Print & Scan it detects it as a Canon LBP2900.
    I looked here: http://support.apple.com/kb/HT4670 and here: http://support.apple.com/kb/HT4670.
    But neither of those links list the Canon L11121E or LBP2900.
    When I Google'd "L11121E mac driver" this link came up:
    http://support.apple.com/kb/DL899
    Do you think that would work?
    I checked for updates from the App Store (and System Preferences Print & Scan) with the USB cable of the printer plugged in. Nothing came back.
    I'm a teacher trying to print material for my students. Any help at all would be appreciated.
    Confused,
    .Sean

    Thank you, Linc!
    Following the instructions from AlexeyU (thread: https://discussions.apple.com/message/15765876#15765876) worked!
    AlexeyU's instructions:
    "Try this:
    1) Download & Install official drivers for Lion v3.36 – http://support-au.canon.com.au/contents/AU/EN/0100359005.html
    2) Download & Install this package –http://www.uzhva.com/temp/Canon_LBP3000_to_LBP2900_patcher.zip
    3) Reboot
    You probably will need to manually match your printer with LBP 2900 driver from drivers list."

  • Help needed from the GB experts! I've just installed Native instruments Session Strings PRO!

    Hello, I wasn't paying much attentionI've accidentally installed the VST and RTAS together with the AU format :-( Just wondering if this mistake has just caused me 3 x times the amount of hard disk space! I don't think I'd be using Protools (VST) or any of Steinberg's DAW (RTAS) anytime soon, I'm still new to all this different types of plugins, could someone tell me if I should leave these formats (VST and RTAS) in my hard drive?
    Thank you for reading

    lyndonfromcooks hill wrote:
    Thanks so much for the reply! I did manage to locate the VST and Digidesign folders as per your previous instructions, however both have empty files in them, I then clicked each and "get info" from the menu bar, just to make sure, but both do not have any files, nor taking any hard disk space, which is strange, maybe your correct by saying the samples that was loaded initialy AU (at 30+ gig size) are only referenced for use by the other two formats when needed...anyways I'm only using the Kontakt Player for this library so NI doesn't provide any support for any related issues, all good
    You're welcome!
    A few thoughts:
    First, make sure you check your plugin folders in both your hard drive library and home library. Perhaps it's in the other one (hard disk > library > plug-ins > etc. AND user name > library > plug-ins > etc.)
    However, because installing libraries in different formats isn't unheard of, I would guess that it doesn't install the big honking sound files more than once, for the very thing you're concerned about. Just a guess though. 
    As for NI... yeah... they're not exactly known for good tech support!
    lyndonfromcooks hill wrote:
    Matt, just on the side note I'm a long time lurker from this forum and I've read and learned a lot from your postings, glad to say with your help, I'd leave this topic solved for now.
    Thank you once again.
    Thanks for the kind words!
    (Finally, if after checking all the plug in folders, you still had questions about this, you could always post in the Logic forum since I know some of those people use both Logic and ProTools. I only use / and have installed AU's so haven't dealt with this one myself. I'm just kind of educated-guessing this!).

  • Help needed from someone far more clever than me.

    I'm trying to update the software on my e71 using Nokia software updater.
    Everything seemed to be running smoothly. My software was being updated from 100.something to 110.something.
    Then, as it was finishing my computer screen kept flashing up the message...
    "A new USB device has been detected...
    Nokia USB ROM
    And then it asks me whether I want to connect the device to my Mac or the Virtual machine (I'm doing this via parallels on my mac).
    This message flashes on and off intermittently, and it doesn't matter whether you click the 'virtual machine button'.
    The download bar sticks and the information given is that it will downoad in 15 mins.
    I have tried rebooting the computer, the phone. Nothing is working. It's very frustrating. Most frustrating of all, as the programme is still running it won't let me quit so I have to force quit the whole machine.
    Any help gratefully received.
    Thankyou.

    03-Dec-2008 10:42 AM
    benjamin163 wrote:
    Hey Rabi, we're you suggesting that the phone should be in offline mode whilst doing an upgrade? Why is that?
    If he did, he's incorrect. Instructions say specifically that the phone must be in "General" profile.
    As for N96 firmware updates, they're more often than not going to be by FOTA, which removes the need for a computer altogether. When I updated from 10.065 to 11.018, I did so by FOTA, but 11.018 to 11.101 was using NSU (and it failed first time round, too). Had I waited, I could have done that update by FOTA as well.
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • Help needed from AWT GURU's

    hi all
    I am totally new to this AWT forum and also new to the concept. I need help in figuring out how to use this in a JSP.
    1. I have used HTML so far to draw on the screen. But the problem is that it extends the screen length. I need it to find the screen.
    2. Somebody said try using AWT but i am not sure how to go about it.
    would appreciate some help from you AWT GURU's.
    If you need the code i shall send it over after seeing your reply.
    Thanks in advance

    Be a bit more specific, please.
    As far as I understand you by now, you want to use AWT in a JSP. I am quite sure that this will not work, as a JSP is basically a HTML page woth some Java inserted. But maybe you need to do something else...can you post some code or a more detailed description of your problem?

  • Cant connect jsp with mysqlserver..help needed from person in jsp on linux

    hii,
    I have installed mysql on linux 7.x.This was installed during installation of linux.From the shell prompt i can go inside mysql and can successfully execute all query statements.
    Now have downloaded mm.mysqljdbc driver(i.2c) and installed it,set the classpath in .bash_profile,sh file
    Everything ,including Tomcat Apache server is running fine
    But i am unable to connect a jsp page to mysql database.
    A error message "server configuration denies access to datasource " is coming .
    My code is like this
    <%
    String username-"root"
    String password="sdctest"
    %>
    <% try
    class.forname("org.gjt.mm.mysql.Driver");
    java.sql.Connectioncon= java.sql.DriverManager.getConnection("jdbc:mysql://localhost/products"username,password);
    then opening recordset ....
    Error is coming in the second line while establishing connection.
    Here i would like to mention that username and password is the username and password of the root user in LInux.
    Now i mm confused what username and password will have to be used in JSP.Because i did nt have to specify any username or password while entering mysql.
    If my problem is clear,somebody please help...all jobs stuck.

    Try doing it without the username and password, otherwise create a new user in MySQL.

  • Help needed from abapers working on fi module reports(urgent)

    hi all,
    i am developing a report for Asset Retirement.
    in that i am not getting that where is the
    1.Ret. Book Value is stored
    2. Ret. Depreciation is stored
    3. where the loss/ profit field is stored.
    i have followed the standard report RAABGA01. but i am not getting in it that from
    where these values r coming.
    plz give guiadence to me to how to get it.
    Thanks & Regards
    Sanjeev

    hi,
    look here:Re: help for asset retirement report
    A.

  • Check code ( urgent help needed from ABAP guys working on FI/CO)

    hi all,
    check my code & give me solution for getting only offsetting acounts depending on particular HKONT.
    plz i need its solution urgently.
    REPORT zglaccline NO STANDARD PAGE HEADING                              
                       LINE-SIZE 300                                         
                       LINE-COUNT 65(3).                                                                               
    TABLES : bkpf, bseg.                                                                               
    DATA : BEGIN OF it_bkpf OCCURS 0,                                       
            bukrs LIKE bkpf-bukrs,                                           
            belnr LIKE bkpf-belnr,                                           
            gjahr LIKE bkpf-gjahr,                                           
            monat LIKE bkpf-monat,                                           
            budat LIKE bkpf-budat,                                           
            brnch LIKE bkpf-brnch,                                           
            xblnr LIKE bkpf-xblnr,                                           
            waers LIKE bkpf-waers,                                           
            END OF it_bkpf.                                                                               
    DATA : BEGIN OF it_bseg OCCURS 0,                                        
    gsber LIKE bseg-gsber,                                                   
    hkont LIKE bseg-hkont,                                                   
    kunnr LIKE bseg-kunnr,                                                   
    sgtxt LIKE bseg-sgtxt,                                                   
    bschl LIKE bseg-bschl,                                                   
    wrbtr LIKE bseg-wrbtr,                                                   
    dmbtr LIKE bseg-dmbtr,                                                   
    pswsl LIKE bseg-pswsl,                                                   
    kostl LIKE bseg-kostl,                                                   
    prctr LIKE bseg-prctr,                                                   
    aufnr LIKE bseg-aufnr,                                                   
    shkzg LIKE bseg-shkzg,                                                   
    augbl LIKE bseg-augbl,                                                   
    END OF it_bseg.                                                                               
    DATA : BEGIN OF it_res OCCURS 0,                                           
    bukrs LIKE bkpf-bukrs,                                                    
    gjahr LIKE bkpf-gjahr,                                                    
    monat LIKE bkpf-monat,                                                    
    belnr LIKE bkpf-belnr,                                                    
    budat LIKE bkpf-budat,                                                    
    brnch LIKE bkpf-brnch,                                                    
    gsber LIKE bseg-gsber,                                                    
    hkont LIKE bseg-hkont,                                                    
    kunnr LIKE bseg-kunnr,                                                    
    bschl LIKE bseg-bschl,                                                    
    prctr LIKE bseg-prctr,                                                    
    kostl LIKE bseg-kostl,                                                    
    aufnr LIKE bseg-aufnr,                                                    
    pswsl LIKE bseg-pswsl,                                                    
    wrbtr LIKE bseg-wrbtr,                                                                               
    waers LIKE bkpf-waers,                                                 
    dmbtr LIKE bseg-dmbtr,                                                 
    xblnr LIKE bkpf-xblnr,                                                 
    txt50 LIKE skat-txt50,                                                 
    sgtxt LIKE bseg-sgtxt,                                                 
    shkzg LIKE bseg-shkzg,                                                 
    END OF it_res.                                                                               
    DATA : BEGIN OF itab_head OCCURS 0,                                     
           name1(20) TYPE c,                                                
           END OF itab_head.                                                
    SELECTION-SCREEN BEGIN OF BLOCK b_2 WITH FRAME TITLE text-002.          
    PARAMETERS : p_sel1 RADIOBUTTON GROUP sel,                              
                 p_sel2 RADIOBUTTON GROUP sel,                              
                 p_sel3 RADIOBUTTON GROUP sel.                              
    SELECTION-SCREEN END OF BLOCK b_2.                                      
    SELECTION-SCREEN SKIP 1.                                                
    SELECTION-SCREEN BEGIN OF BLOCK b_1 WITH FRAME TITLE text-001.          
    PARAMETER p_bukrs LIKE bkpf-bukrs DEFAULT 'ML' OBLIGATORY.              
    SELECT-OPTIONS : s_belnr FOR bkpf-belnr.                                
    SELECT-OPTIONS : s_gjahr FOR bkpf-gjahr OBLIGATORY.                     
    SELECT-OPTIONS : s_monat FOR bkpf-monat.                                
    SELECT-OPTIONS : s_blart FOR bkpf-blart.                                
    SELECT-OPTIONS : s_budat FOR bkpf-budat.                                
    SELECT-OPTIONS : s_waers FOR bkpf-waers.                                
    SELECT-OPTIONS : s_hkont FOR bseg-hkont.                                
    SELECT-OPTIONS : s_bldat FOR bkpf-bldat.                                
    SELECTION-SCREEN END OF BLOCK b_1.                                                                               
    SELECT bukrs belnr gjahr monat budat brnch xblnr waers                  
       INTO CORRESPONDING FIELDS OF TABLE it_bkpf                           
       FROM bkpf                                                            
       WHERE bukrs = p_bukrs                                                
       AND belnr IN s_belnr                                                 
       AND gjahr IN s_gjahr                                                 
       AND monat IN s_monat                                                 
       AND blart IN s_blart                                                 
       AND budat IN s_budat                                                 
       AND bldat IN s_bldat                                                 
       AND waers IN s_waers.                                                                               
    IF NOT it_bkpf[] IS INITIAL.                                            
      LOOP AT it_bkpf.                                                      
    IF p_sel1 = 'X'.                                                        
        SELECT gsber hkont kunnr sgtxt bschl wrbtr pswsl kostl shkzg        
                            dmbtr prctr aufnr augdt augbl                               
           INTO CORRESPONDING FIELDS OF TABLE it_bseg                       
           FROM bseg                                                        
           WHERE bukrs = it_bkpf-bukrs                                      
           AND belnr   = it_bkpf-belnr                                      
           AND gjahr   = it_bkpf-gjahr                                      
           AND pswsl   = it_bkpf-waers                                      
           AND hkont  IN s_hkont.                                           
    ELSEIF p_sel2 = 'X'.                                                    
        SELECT gsber hkont kunnr sgtxt bschl wrbtr pswsl kostl shkzg        
                dmbtr prctr aufnr augdt augbl                               
           INTO CORRESPONDING FIELDS OF TABLE it_bseg                       
           FROM bseg                                                        
           WHERE bukrs = it_bkpf-bukrs                                      
           AND belnr   = it_bkpf-belnr                                      
           AND gjahr   = it_bkpf-gjahr                                      
           AND pswsl   = it_bkpf-waers.                                    
          AND koart <> 'S'.                                              
    ENDIF.                                                                 
        IF sy-subrc EQ 0.                                                  
          LOOP AT it_bseg.                                                 
            SELECT SINGLE txt50 INTO it_res-txt50                          
                 FROM skat                                                 
                 WHERE spras = 'EN'                                        
                 AND   ktopl = 'PCA'                                       
                 AND   saknr = it_bseg-hkont.                                                                               
    it_res-bukrs = it_bkpf-bukrs.                                  
            it_res-gjahr = it_bkpf-gjahr.                                  
            it_res-monat = it_bkpf-monat.                                  
            it_res-gsber = it_bseg-gsber.                                  
            it_res-belnr = it_bkpf-belnr.                                  
            it_res-budat = it_bkpf-budat.                                  
            it_res-brnch = it_bkpf-brnch.                                  
            it_res-kunnr = it_bseg-kunnr.                                  
            it_res-hkont = it_bseg-hkont.                                  
            it_res-sgtxt = it_bseg-sgtxt.                                  
            it_res-bschl = it_bseg-bschl.                                  
            it_res-wrbtr = it_bseg-wrbtr.                                  
            it_res-pswsl = it_bseg-pswsl.                                  
            it_res-waers = it_bkpf-waers.                                  
            it_res-dmbtr = it_bseg-dmbtr.                                  
            it_res-kostl = it_bseg-kostl.                                  
            it_res-prctr = it_bseg-prctr.                                  
            it_res-aufnr = it_bseg-aufnr.                                  
            it_res-shkzg = it_bseg-shkzg.                                  
           it_res-augbl = it_bseg-augbl.                                 
            it_res-xblnr = it_bkpf-xblnr.                                  
            APPEND it_res.                                                 
            CLEAR it_res.                                                  
          ENDLOOP.                                                         
          CLEAR it_bkpf.                                                   
        ENDIF.                                                             
      ENDLOOP.                                                             
    ENDIF.                                                                 
    LOOP AT it_res.                                                        
      IF it_res-shkzg EQ 'H'.                                              
        it_res-wrbtr = it_res-wrbtr * -1.                                  
        it_res-dmbtr = it_res-dmbtr * -1.                                  
      ENDIF.                                                               
      WRITE : /2(4) it_res-bukrs,                                          
               13(4) it_res-gjahr,                                         
               21(2) it_res-monat,                                         
               31(10) it_res-belnr,                                        
               44(10) it_res-budat,                                        
               55(4) it_res-brnch,                                         
               60(4) it_res-gsber,                                          
               70(10) it_res-hkont,                                         
               82(10) it_res-kunnr,                                         
               94(2) it_res-bschl,                                          
               104(10) it_res-prctr,                                        
              116(10)  it_res-kostl,                                        
              128(12)  it_res-aufnr,                                        
              142(5)  it_res-pswsl,                                         
              148(13)  it_res-wrbtr,                                        
              164(5)  it_res-waers,                                         
              170(13)  it_res-dmbtr,                                        
             187(16)   it_res-xblnr,                                        
              205(50)  it_res-sgtxt.                                        
      MODIFY it_res.                                                        
      CLEAR it_res.                                                         
    ENDLOOP.                                                                
    plz give soltuion i am looking for it.
    i will aslo reward all ur precious effort.
    otherwise if anyone have any code on my reqirement then plz send it to me in my id- [email protected]
    thanks
    Message was edited by: sanjeev singh

    Hi
    You should a selection in BSIS and BSAS table instead of BKPF and BSEG:
    DATA : BEGIN OF it_res OCCURS 0,
    bukrs LIKE bkpf-bukrs,
    gjahr LIKE bkpf-gjahr,
    monat LIKE bkpf-monat,
    belnr LIKE bkpf-belnr,
    budat LIKE bkpf-budat,
    brnch LIKE bkpf-brnch,
    gsber LIKE bseg-gsber,
    hkont LIKE bseg-hkont,
    kunnr LIKE bseg-kunnr,
    bschl LIKE bseg-bschl,
    prctr LIKE bseg-prctr,
    kostl LIKE bseg-kostl,
    aufnr LIKE bseg-aufnr,
    pswsl LIKE bseg-pswsl,
    wrbtr LIKE bseg-wrbtr,
    waers LIKE bkpf-waers,
    dmbtr LIKE bseg-dmbtr,
    xblnr LIKE bkpf-xblnr,
    txt50 LIKE skat-txt50,
    sgtxt LIKE bseg-sgtxt,
    shkzg LIKE bseg-shkzg,
    END OF it_res.
    Open Item
    SELECT *
    INTO CORRESPONDING FIELDS OF TABLE it_res
    FROM <b>BSIS</b>
    WHERE bukrs = p_bukrs
    <b>AND HKONT IN S_HKONT</b>
    AND belnr IN s_belnr
    AND gjahr IN s_gjahr
    AND monat IN s_monat
    AND blart IN s_blart
    AND budat IN s_budat
    AND bldat IN s_bldat
    AND waers IN s_waers.
    Cleared Item
    SELECT *
    APPENDING CORRESPONDING FIELDS OF TABLE it_res
    FROM <b>BSAS</b>
    WHERE bukrs = p_bukrs
    <b>AND HKONT IN S_HKONT</b>
    AND belnr IN s_belnr
    AND gjahr IN s_gjahr
    AND monat IN s_monat
    AND blart IN s_blart
    AND budat IN s_budat
    AND bldat IN s_bldat
    AND waers IN s_waers.
    Max
    Message was edited by: max bianchi

Maybe you are looking for