How to add entries a jsp file during a Source view
hi all,
im currently extending the tags present on BEA. im creating my own custom tag. when i tried to drag and drop it on the current source view of the jsp file..
is it possible for me to check the current source code of the jsp file first before preceding. For example. if the tag to be inserted must be within a certain tag only..
or modify an existing tag. say a <netui:form > and add some attributes on it.
Looks like Crystal Reports is using log4j for logging, which is so badly designed that it throws a fit if the log4j configuration is missing.
All you need to do to get it to work is put a log4j.properties file in the classpath (google for a dummy file with default values). It usually needs to be put in the root of the classpath.
Or you can initialize the log4j logging for your own application properly and Crystal Reports will piggyback on it.
Similar Messages
-
How to authorize my Login.jsp file to create LoginContext, deployed in war
I am currently doing a login process and I need to know how to give my Login.jsp file the permission to create a LoginContext. I packaged everything in a war file and deployed it to the server.
Specifically this is the error that I am getting:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: access denied (javax.security.auth.AuthPermission createLoginContext.studentportal)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
root cause
java.security.AccessControlException: access denied (javax.security.auth.AuthPermission createLoginContext.studentportal)
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
java.security.AccessController.checkPermission(AccessController.java:427)
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
javax.security.auth.login.LoginContext.init(LoginContext.java:224)
javax.security.auth.login.LoginContext.(LoginContext.java:403)
org.apache.jsp.Login_jsp._jspService(Login_jsp.java:55)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.
In my code in Login.jsp this is what I have at the top of the page:
<%@ page language="Java" import="portal.*,javax.security.auth.login.*" %>
<%
String s = request.getParameter("loginButton");
if (s != null) {
out.println("The user attempted to login");
String user = request.getParameter("username");
String psw = request.getParameter("psw");
AscCallbackHandler cbh = new AscCallbackHandler(user,psw);
LoginContext ctx;
try {
ctx = new LoginContext("studentportal",cbh);
} catch (LoginException le) {
out.println("Sorry, could NOT create context");
}The admin page tells me that portal is deployed at location:
${com.sun.aas.instanceRoot}/applications/j2ee-modules/portal
My entry in the server.policy file looks like so:
grant codeBase "file:/home/jay/sun/Creator2_1/SunAppServer8/domains/creator/applications/j2ee-modules/portal/WEB-INF/-" {
permission javax.security.auth.AuthPermission "createLoginContext.studentportal";
permission javax.security.auth.AuthPermission "modifyPrincipals";
permission javax.security.auth.AuthPermission "getLoginConfiguration";
Which gives the error shown above
Please help
Message was edited by:
jay_dawg
Placing code tagsjava.lang.NoClassDefFoundError: org/jdom/JDOMException
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
java.lang.Class.getConstructor0(Class.java:2671)
java.lang.Class.getConstructor(Class.java:1629)
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1164)
org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Generator.generate(Generator.java:3305)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)and following by this -
How can i access the jsp file in a asp file
Hi every one..
we have two projects one is developed in ASP and one is developed in JSP both are running in two different locations.
now i want to include a jsp file from one project to ASP file in the other project.
please tell me how can i insert the JSP file in ASP application.
thanx in advance.Wouldn't that be an ASP question for an ASP forum?
-
How to add the mail.jar file to my CLASSPATH ?
Hi;
I wish to Instal JavaMail 1.2
To use the JavaMail 1.2 API, i unbundle the javamail-1_3_1-upd.zip file.....and now, i would like to add the mail.jar file to your CLASSPATH.
My question is: how do you do this ?
- ok i did that for CATALINA_HOME & JAVA_HOME but how to add the mail.jar file to my CLASSPATH ??
1000 thanks.I think you're looking for "developer support", not packaged application support. different server, different batch of groups. . .
Since I have very little contact with devopers, I don't truly know. -
How to add other 2 control files at ASM in linux RAC
Hi Experts,
I am new for RAC .
the vendor build a RAC for us. I found there are only one control file in system.
we use oracle 10.2.0.4 at ASM with RAC in redhat linux 5.
how to add 2 additional control file to ASM for RAC ?
Please provide a procedur in detail.
Thanks
JimHi damorgan & Friends,
I could not find some infomration to add control into ASM . I can do this job( see below procedure) in no ASM .
My question, our database locates at ASM and control file with a system auto-number ( fully qualified filename ) as
+DATA1/SALE/controlfile/current.256.690290159
How do I physical copy and rename other 2 contril file in directory and modify location in pfile?
I saw some paper to use request as an alias (such as +dgroup2/control/ctl.f). i can not image to copy/rename control.
Please help me!!
Thanks
Jim
========added control file for no ASM database and works=====================
1)
SQL> create pfile from spfile;
File created.
2)
SQL> show parameter control_file
NAME TYPE VALUE
control_file_record_keep_time integer 7
control_files string C:\ORADATA\ORCL\CONTROL01.CTL
3)
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
4) modify pfile add additional control file2/3 as
control_files='C:\Oradata\ORCL\control01.ctl','C:\Oradata\ORCL\control02.ctl','C:\Oradata\ORCL\control03.ctl'
and physical copy control01.ctl and raname as control02.ctl,control03.ctl
5)
SQL> startup pfile='C:\oracle\product\10.2.0\db_2\database\initORCL.ora';
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1247900 bytes
Variable Size 62915940 bytes
Database Buffers 100663296 bytes
Redo Buffers 2945024 bytes
Database mounted.
Database opened.er database mount;
6)
SQL> Create spfile from pfile='C:\oracle\product\10.2.0\db_2\database\initORCL.ora';
File created.
7) check control file info under pfile environment
SQL> show parameter control_file
NAME TYPE VALUE
control_file_record_keep_time integer 7
control_files string C:\ORADATA\ORCL\CONTROL01.CTL,
C:\ORADATA\ORCL\CONTROL02.CTL
, C:\ORADATA\ORCL\CONTROL03.CT
L
8)SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
9) startup as spfile environment.
SQL> startup
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1247900 bytes
Variable Size 62915940 bytes
Database Buffers 100663296 bytes
Redo Buffers 2945024 bytes
Database mounted.
Database opened.
10) check control info for spfile environment
SQL> show parameter spfile
NAME TYPE VALUE
spfile string C:\ORACLE\PRODUCT\10.2.0\DB_2\
DATABASE\SPFILEORCL.ORA
SQL> show parameter control_file
NAME TYPE VALUE
control_file_record_keep_time integer 7
control_files string C:\ORADATA\ORCL\CONTROL01.CTL,
C:\ORADATA\ORCL\CONTROL02.CTL
, C:\ORADATA\ORCL\CONTROL03.CT
L -
How to add list of multiple file types to file type of file dialog box in LabVIEW
How to add list of multiple file types to file type of file dialog box in LabVIEW?
In file dialog box there is option to add only one file type,in the list,not by seperating commas,
regards,
Naresh.NWrite the file types in pattern Input string, separated by a semicolon ;
For example: *.vi;*.doc;*.jpeg;*.xls
This should return the set of files with matching extensions
Message Edited by devchander on 09-10-2008 08:02 AM
Message Edited by devchander on 09-10-2008 08:03 AM -
How to add entry to MEMSD_DEP (Packagesize for T51) second ;-)
Hi,
ok I posted the thread "How to add entry to MEMSD_DEP (Packagesize for T51)?" before and now I have created the view and I am able to add entries to the table....
BUT:
If I try to add the entry like they are described in the help.sap.com - search for "T51 MEMSD_DEP" - I get the following error:
"Entry T51SYNCBOCONFIG does not exsist in MEMSD - check your entry."
And it is right in the MEMSD there are all my applications and patches I have uploaded in the webconsole, but no T51SYNCBOCONFIG....
Can you help me out?
Greetings,
KaiHi Kai Meyer-Spradow,
<<<<
one main thing ..
<b>In that documentation , they have specified that there is one MCD named T51SYNCBOCONFIG .. I think in that sense ,
it written there as ,,</b>
1. Start the transaction mi_mcd.
2. Enter the application name and choose Display MCD.
3. Choose Display <-> Change.
4. Choose the SyncBO tab page.
5. Enter the following settings for each SyncBO of type Back-End-Driven:
The object ID in the SyncBO-ObjectID column.
The delay with which the job is to be scheduled in the Interval column.
6. Choose Save.
just look at that ...
>>>>>>>
just do one think ..
If that T51SYNCBOCONFIG is not there in ur MI server , create a new MCD with this name and include ur Back - end driven syncBo to this MCD. then proceed.
These are the primary keys of the table MEMSD_DEP.
Fields Check Table
NAMESPACE TRNSPACET
NAME MEMSD
VERSION MEMSD
TYPE MEMSD_DEPTYPE
TYPE_INDEX
DEPENDENCY_NAME
MEMSD
This table is the Mobile Component Descriptor master table.
This will contain the details of the created MCDs.
Inorder to insert values in the fields on which we have assigned the check table,
values must be present in this check table.
That means , to insert a new value in the NAME field of the MEMSD_DEP table , that entered value must be present in the MEMSD table .
If T51SYNCBOCONFIG is not in the MEMSD tabel , u cannot insert this value in the table MEMSD_DEP.
Regards
Kishor Gopinathan -
How can I back up my files during a Kernel Panic?
Hello, I am new to these forums.
Okay, so last week I updated my Macbook Pro like I normally do (I'm assuming it was 10.5.7), but then when I restarted my macbook I saw the apple logo and then the screen turned grey and a bunch of numbers and letters filled the screen (which I now know is a Kernel Panic or something).
I am unable to login at all or even see the log-in screen, all I can get to is the apple logo when I first turn on the computer. I plan on making an appointment at my local apple store, but they told me to back up any files I didn't want to lose.
So my question is...
How can i back up my files during a Kernel Panic if I can't even log in?
I have my original disks from when I got my macbook pro if that's any help?
Should I just tell my local apple store that I need help backing up my files?
or am I screwed?
Thanks for any helpWell, when I turn it on a box appears over the apple logo and says something like "please restart your machine or hold the power button for 7 seconds".
and the numbers and letters appear random to someone like me but I'm sure it says something to someone who knows about it. At the very beginning of the "random" numbers and letter it says something about kernel and panic and I googled some of the message and it kept leading me to other people who said it was a kernel panic.
Also I tried to start it while holding shift and it never goes to single user mode it just does the same thing as if I never pushed or held shift. I'll try the whole firewire thing if I can figure it out, but I don't have another mac so I'd have to do it with a PC.
Edit: Also I did one of those hardware tests using the osx dvd and the short test said i have an error (and when i googled that error it brought me to people with kernel panics) but when I did the extended test that took about an hour and a half it came back saying everything was fine.
Message was edited by: kennethalan -
How is add/insert jpeg/gif files on wiki (code gallery)
Hi;
I prepared new wiki-code gallery page. I must insert/add jpeg/gif files on my page. But I dont know How is add/insert jpeg/gif files on wiki (code gallery).
Please help me.
Thanks.
http://wiki.sdn.sap.com/wiki/display/Snippets/NewTimeDomainandConversionRoutineforTotalTimeHi;
Mr Moshe Naveh helped me. He sended me new template page.
I again prepared my wiki with new template. ( http://wiki.sdn.sap.com/wiki/pages/createpage-entervariables.action?spaceKey=stage&templateId=113147905 ) I added jpeg files on new wiki page.
Then He moved my new page.
Thanks him.
Best regards. -
How to "Add" Button to upload file in Notification PG?
I have a question on Extending/Customizing notfn to have "Add" attachment button to upload a document (some stnd template that Our business has) on either NotifDetailsPG or /oracle/apps/fnd/wf/worklist/webui/MoreInfoPG when a Approver opens notification to APPROVE/Reject
I'm wondering why Oracle didn't provide this feature of Uploading a file (along with Response input text area that they provided already) in NotifDetailsPG?
Business Reason: Our Business wants to upload a doc when an approver Rejects the notification (our case: iExpense module filing Exp Report) telling employee to follow some protocals
Question on OAF:
Is it possible to extend NotifDetailsPG or MoreInfoPG to upload a file. So, that when it goes to requestor they can open this file back and read thru. I know we need to insert a record in fnd_documents and fnd_attached_documents and /or fnd_lobs...but i don't know how to retrieve it back....Any hints....
Thanks
Raghu Kulkarnito clarify again....
In the WF notification during the time of "Reject"ion or "Approv"al, we want to upload a file and then perform Reject/Approve action. Can we extend the page to have Add button to upload file? Is that a lot of work?
Please any one give some suggestions...Thanks
Raghu Kulkarni -
How to add entries in possible fields in Account assignment model/Note 2596
Hi Friends,
I want to know How to apply OSS Note 2596, The basic requirement is to to add entries in the list of possible fields in Account assignment model( Exactly in program SAPDFKA6 in screen 120).
I found the note 2596 to achieve this, and the field that I want to add is KMZEI-PAOBJNR.
I gone through the note and it is very confusing for me .. If any one knows how to achieve this or how to apply this note, please let me know.
Thanks,
RkI got this myself.
Thanks,
Rk -
hi,
I have written following code.I have a file. i want to add data in this file.
When i add data then data is added but i donnot get the previous data. What`s the problem of my code? Is there anyone can help me? how i will add data with the previous data? Please help me.
String username=request.getParameter("UserName");
String userage=request.getParameter("UserAge");
String address=request.getParameter("UserAddress");
String sex=request.getParameter("sex");
FileWriter f = new FileWriter("d:\\download_dreamweaver\\Project_3\\WebContent\\SaveData.txt");
f.append(username);
f.close(); ith regards
binaLooks like you're creating a new file (which overwrites the old one) every time. You need to open the file first and then append to it.
-
How to add name from text file to jtable?
hello all,
how to add name (string) from the notepad file(.txt) into jTable rows.
I am not able to add it.
try {
FileInputStream fis = new FileInputStream("Devices/Devices_Lst.txt");
BufferedReader br = new BufferedReader(new InputStreamReader(fis));
String line = null;
Vector data = new Vector();
line = br.readLine();
while ( (line = br.readLine()) != null)
int rowCount1 = nmsTable.getRowCount();
for(int i=0;i<rowCount1;i++)
myTableInit(); // it initialize the table
/* nmsTable.setValueAt(i+1,i,0);
Table.setValueAt(line,i,1);
Table.setValueAt(" ",i,2);
Table.setValueAt(" ",i,3);
Table.setValueAt(" ",i,4);
Table.setValueAt(" ",i,5); */
int rowNo = nmsTable.getRowCount();
row.addElement((rowNo+1));
//row.addElement(ipText.getText()+"-"+nameText.getText());
row.addElement(line);
row.addElement((String)" ");
row.addElement((String) "");
row.addElement((String) "");
row.addElement((String) "");
row.addElement((String) "");
rows.add(row); //rows is the Vector for table row.
Table.addNotify();
br.close();
if possible give me some examples.
thank you.For every row you need to create a new Vector and add the data to that Vector. Then the Vector is added to the TableModel.
If you add 6 items to the single Vector, then you will get 6 columns. So you need to create 6 Vectors and add a single item to each Vector and therefore you will end up with 6 rows with 1 column of data. -
How to add entry in OMT3R and transport it to other clients
Hello Experts,
I am adding MRP4 view to tow Z transactions. I added entry in the screen ref. key which is associated with this transaction using t.code OMT3B - Define Structure of Data screens for each sreen sequence in development configuration client.
On saving changes in OMT3B it asks me to provide TR to save the changes.
In the TR following changes are saved:
5 Modifiable
5 AR4K908159 300 KJZK584 SCMQ_NS_PR01544_Updating of the Material Master MRP4 tab
5 AR4K908160 KJZK584 Customizing Task
5 View Cluster Maintenance: Data
5 V_CM1
5 T133A
300ZM29
5 T133B
300DZM29
300EZM29
300FZM29
5 T133C
300ZM2901
300ZM2902
300ZM2903
300ZM2904
300ZM2905
300ZM2906
It also adds MRP4 view as last entry in OMT3R - Maintain Order of Main and additional Screnes automatically. Then I went to OMT3R to cange the sequence number for MRP4 view. but on clicking Save it does not ask for any TR.
When I tried copiying the TR that hold above data it only copies changes done in OMT3B and but not of OMT3R to new client.
Can anyone tell me how can I copy the changes done in OMT3R to new client? I also tried activating Automatic Transport for object V_T133S_REIHFV but it is still not asking to TR while saving.
How can I add entry for MRP4 view in OMT3R?
Awating eagerly for replies.
Regards,
Mayur Patel
Edited by: Mayur Patel on Mar 9, 2010 6:10 AMHi, thanks for response.
It is in BW in infosource 0FI_AP_03 Vendor Line Item I see this field in communication Structure and Isource fields. But not in ODS and Cube. All update rules are start routines.
how easy it is? how many way we have and What is best way to do?
One more thing please Add as a Field or Add as a attrib of any filed waht is best way.
Thanks
Edited by: SAP_learner on Jan 14, 2008 7:27 PM -
How to run/build the JSP file using Eclipse
Hello,
I want to build a new project for running the jsp file in eclipse.
Can you help me in doing that?
with some structure format?
where to create web.xml file
how to configure that fiel with our eclipse java poject?
like that...
Thanks,
SooryaOn New Project creation, choose 'Dynamic Web Project'. Then the structure will be created for you.
Maybe you are looking for
-
Need Best Practice - Apex, multiple schemas, security model
We have an oracle database which contains a) named database users with no objects b) several schemas with data tables: sales marketing accounting We need to build GUI for tables in these schemas, every database users should belong to a group, each us
-
API to update ap_invoices_all table
Hello all, is there any API to update ap_invoices_all table? Please let me know. thanks,
-
ADD ATTACHMENT TO AUTO MAIL SENT DURING BIDDER CREATION
HOW TO ADD ATTACHMENT TO AUTO MAIL SENT DURING BIDDER CREATION (CREATE CONTACT PERSON) IN SRM PORTAL..
-
hi Using JDeveloper 10.1.3.3.0, I have this "Selected in Query" attribute, "Never" updatable, in my Entity Object. The Entity Object is based on the SCOTT.EMP table and the attribute, called "BonusInfo", is defined using the expression " '[bonus info
-
How do i get new security questions
how do i get new security questions i can anser