9iDS Forms Help not working
I cannot get the Help to work in 9iDS forms. I have upgraded to 9iDS 9.0.2.0.1 (which I believe is the latest) and still have the problem. All other installations in our shop get a FRM-xxxxx error message.
I have had a TAR on Metalink for two weeks now and all of the advice of the support rep is doing no good.
Anyone else out there with the same problem?
Just a Wild hunch - has your Oracle_Home directory name got any spaces in it?
Similar Messages
-
Form is not working of multiple form check boxs, source posted. HELP.
Form is not working of multiple form check boxs, source posted. HELP.
I'm trying to have golive form be able to check one, two or all of the options in Graphics field.
As is it will only post results from the last checked box.
Here's the page
http://www.perfection-press.com/Pages/ContactForm.html
Here's where source in golive has scanning,design,filesupplied.
[code removed to fix forum topic display]Since the checkboxes all have the same name, the values are over-writing each other when being passed to the PHP script. The best way to fix that is to add a pair of empty square [] brackets after the checkbox names, so make the names "graphics[]" instead of "graphics". That tells PHP that the values are being passed as a list (an array) instead of a single value. As long as your processing script knows what to do from there (and it does), should solve the problem.
By the way, I noticed that two of the checkboxes were named "graphics" and the other was "graphic" (singular). You'll want to fix that too so they're all the same. -
Forms Personalization not working after R12 upgrade
Hi,
We have recently upgraded to R12. We have forms personalizations on the People, Enter and Maintain form and this is not working now after the R12 upgrade.
I went to one of the form personalizations and Validated and Applied again but it still did not work. I also created a new one but had no success with that either.
Any ideas how to get this working again ? Is there something extra that needs to be done for R12?
Thanks
Regards,
ShalanthaPl indicate which version of R12 and on what form you had the personalization in the previous version. Have you checked FND_FORM_CUSTOM_% tables to ensure that the personalization survived the upgrade ?
Pl see if these MOS Docs can help
Forms Personalizations Unavailable After Upgrade To 12.1.x (Doc ID 1245864.1)
Forms Personalization Not Working After Upgrade To R12.1.3 (Doc ID 1309458.1)
Form Personalization Value Field Not Being Retained After Upgrade (Doc ID 1266265.1)
Do Personalizations Holdup After A Patch Is Applied? (Doc ID 1286576.1)
HTH
Srini -
Home button in HTML Help Not Working
My Home button in HTML Help Not Working.
Also the Home option from the Options menu does not work. I receive the "This program cannot display the webpage" error.
I have the correct file name (titlepg.htm) in the Advanced Windows Ptoperties "Default" field and the "Home" field. However, I still receive the "This program cannot display the webpage" error.
How can I correct this situation? Thanks, your help is appreciated!Can you post a couple of screen captures please?
One where you show the Project Explorer with the desired topic in view. Another where you show the dialog where you specify the Home page destination.
Another thing you may wish to try is to define a totally new window, assign the values there and ensure you point to the window in the Single Source Layout recipe.
Oh, and one other thing. Are you using RoboHelp HTML or RoboHelp for Word?
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7, 8 or 9 within the day!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks -
Adobe creative cloud product online help not working. Any idea what is the reason ??
I have to manually copy pdf file to open help for all suite....Please try another browser, if still it is not working, check the internet connectivity http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
In case the issue is still not resolved, do contact Adobe Support.
Regards
Rajshree -
My 'contact' form is not working. When I send a test contact it returns to my adobe email account this:
"Contact Form" has a new form submission.What exactly is not working ? As you have mentioned form submission notification is received in your email account so form process is working I believe but you want the notifications to go to another email account I think.
Have you added the email address in "Email to" field in form options ? If yes and then also you are not receiving the form , then please provide me the site url and post a screenshot or form with option box open.
Thanks,
Sanjit -
My start and end form is not working .
My start and end form is not working .
It showing error that start form in invalid.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
DIALOG = 'X'
FORM = 'YSAMPLE1'
LANGUAGE = SY-LANGU.
loop at itab1.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = '525'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'.
endloop.
CALL FUNCTION 'START_FORM'
EXPORTING
ARCHIVE_INDEX =
FORM = 'ysample1'
LANGUAGE = ' '
STARTPAGE = 'next'.
CALL FUNCTION 'END_FORM'.
Thanks and regards
Mave
CALL FUNCTION 'CLOSE_FORM'.You should use END_FORM and START_FORM when you want to say to your system:
- OK! Here document print begins and there it finishes.
Infact you can print many document opening the sapscript only one time:
CALL OPEN_FORM
LOOP MY_DOCUMETS.
Here the print of document starts:
CALL START_FORM
CALL WRITE_FORM
CALL WRITE_FORM
Here the print of document finishes
CALL END_FORM
ENDLOOP.
CALL CLOSE_FORM. -
Hi
I use Adobe Livecycle Designer7.0 English and Acrobat7.0.8 Japanese. I made forms to upload to Workflow Server. One form I made does not work at all when the form is opened in the Form Manager.
It is strange that the PDF preview of the Designer works well.
1. Page Counter
In the master page of the form I set a page counter field from the custom library. In the preview it works well but when the form is opened from Form Manager it does not work. It looks like "Page ##/##".
2. Font is not shown
I put a button in the form. The font of the button is set to "MS UI Gothic", but when the form is opened from Form Manager the font of the button is "KozukaMincho".
3. JavaScript does not work
I wrote javascript to change the caption of fields like this.
----- form1.#subform[0].Button1::click - (Javascript, client)
FieldA.rawValue = "test";
FieldB.rawValue = "test2";
This script does not work too when the form is opened.
These issues are basic but I do not know where is wrong. Because no error message appears when I test the form in the PC.
Please advise about these issues.
Thanks,
AkiraHi Jared,<br /><br />I am very glad to read your reply. <br />I added a button with the script you wrote in previous reply and found that Form Manager changed the root tag. <br /><br />The xsd file I define to the data is like this<br /><br />b <Message> //rootnode name <br /><br /> <Heade></Header><br /> <Contents><br /> <FieldA></FieldA><br /> ......<br /> </Contents><br /> <Footer><Footer><br /></Message><br /><br />So, I set the structure of the form like this.<br /><br />b <Message> //This is name of contents area<br /><br /> <Header></Header> //Subform name<br /> <Contents> //Subform name<br /> <FieldA></FieldA><br /> ......<br /> </Contents><br /> <Footer></Footer> // Subform name<br /></Message> <br /><br />But the saveXML script write out like this:<br /><br />b <fields><br /><br /> <Header></Header><br /> <Contents><br /> <FieldA></FieldA><br /> ......<br /> </Contents><br /> <Footer></Footer><br /></fields> <br /><br />So I changed all of the Javascript using relative path and I upload this form again to the FM, but this form does not work...<br />I am not sure that it must be the same name between the rootnode of the xsd file and the name of the contents area. <br /><br />Jared and all, would you let me know whatever you find about this issues.<br /><br />Best regards,<br />Akira
-
HTML 5 Contact Form "Placeholder" instead of label makes form validation not work
Hi,
I am trying to implement a HTML 5 contact form which uses a "placeholder" within the field instead of a label. But now the form validation does not work.
The site is at http://www.partnerrealestate.ch/avenuedefrance23/index.html and it is not using any workflows from BC as the person receiving it is an external person and the process does not require a workflow.
Would appreciate any input into this.
Kindest Regards,
corinaThere is no label on input fields. The form does not work because you have edited the names. BC needs the ID and names to be as it is issue when you create the form so it knows what to use for the validation and what information to pass into the database.
So where you have edited these, you need to restore those.
You have some invalid html on some input's as well one has input="" inside of it when rendered so that is not right.
It is not to do with placeholder use. So fix up your HTML errors, correct the name and ID changes and it will work fine. -
F4 help not working in mss requisition form for erec
HI,
I am getting a problem while filling a mss requisition form for E recruting Ehp 4 . F4 help is not working for position id & org unit.it is not returning values while searching.I am using form scenarion sqr03.Plz suggest any solution.HI,
I am getting a problem while filling a mss requisition form for E recruting Ehp 4 . F4 help is not working for position id & org unit.it is not returning values while searching.I am using form scenarion sqr03.Plz suggest any solution. -
F4 help not working in custom backend service for PD form
Dear All,
Iam working with the Create position HCM PD form and i have a requirement to add two fields, one for the company code and the other is for the cost center and then create the relationship betwee the position and the cost center when the form is submitted.
I have defined a generic service and created an enhancement implementation and linked this generic service to the imppementaion. I have written the logic for the F4 help for the fields in the method GET_HELP_VALUES, i have written the scripting for the drop down field in the form to trigger the F4 help in the form.
When the cost center is being passed to the screen, i would then read the value of the cost center in the form workflow and create the relationship between S and K in the workflow as i am unable to achiev this in the design time of the PD form.
But my current problem in that he values are not getting passed from the method to the field on the screen. I have worked on quite a few scenarios for F4 help and doing validations in the implementation in the PA form and i have seen this functionality working fine.
My problem here is that i am unable to understand why the F4 value help is not working in my form. The standard PD service SAP_PD is also being used in the form to have the dropdown values for the account assignment feature.
Could you please suggest me with some clues to fix my issue? i can share more details for further analysis.
Thanks.
Best regards,
SridharanHi Chris,
Thanks for your inputs. please see my reply to your questions
First....are you sure you have "marked" that field as possible for F4 help?
Reply: Yes
Second...are you populating the help values strictly from that method...ie. not also using do_operations method to do it. If you refer to the documenation, it points out that trying to use both can cause issues.
Reply: i am using only the GET_HELP_VALUES method and nothing written in do_operations.
Third...when you debug your method, do you "see" the help values actually populating and as you say "not coming back to the screen"? I would check this first to make sure that there are actually values being found (ie. the logic within your service is correct).
Reply: i have put the external break-point in this method and when the form in opened for processing by the HR admininstrator,the form openes up and the control is not being sent to the debugger. I have written the scripting in the exit event of the events and scripts as suggested in the SAP help document. SO when i click on the dropdown field in the form, the debugger starts and executes the method and the code executes, then no values are populated on the screen.
Fourth...are you using any generic services for populating help values as well. HCM P&F has a nasty habit of "if one GS fails, they all fail" so often, your service might work fine but an error in another makes yours appear to fail as well....hard to debug and find those kind.
Reply: Yes i am using the generic service mainly for the purpose of F4 help. I do not see any issue with other gneric services as i have implemented a few generic services for PA forms and they are working fine.
Fifth...oops...forgot the obvious one...make sure it isn't a security issue...ie. make sure you have access to read the cost centers you want.
Reply: I dont get any auth error in SU53 while i test the process in R3
Lastly, you said:
"When the cost center is being passed to the screen, i would then read the value of the cost center in the form workflow and create the relationship between S and K in the workflow as i am unable to achiev this in the design time of the PD form."
You actually should be able to do this using an Advanced/Enhanced Generic Service (if this is in fact the step at which you want a true update to occur). Just a thought.
Reply: Could you please give some more information about this, how can i achieve it in advanced generic service.
Appreciate more thougts from you Chris!
Thanks,
Sridharan -
Forms 9i ---- Online Help not working
Hi !
Suddenly on my computer forms9i's Online help is not working? when i click on Help-->online Help option it gives error message FRM-18105 : Failed to Start Help System in a alert. Day back it was working fine.
Any idea about it???
Regards,
NeerajThanks Frank !
I have change some path setting to use webutil but i am still unable to use it. I am getting same error WUC-015. due to this help is not working here i am sending u current path setting.Please tell me what is wrong with it..
Classpath variable of windows
==============================
c:\ora9i\jlib\bigraphbean.jar;c:\ora9i\jlib\LW_PfjBean.jar;c:\ora9i\jlib\bigraphbean-nls.zip;c:\neerajtyagi\webutil\lib\webutil.jar;c:\neerajtyagi\webutil\lib\jacob.jar;c:\neerajtyagi\webutil\lib\demo90.jar;c:\ora9i\forms90\java\f90all.jar
Path variable of windows
==============================
c:\ora9i\bin;c:\dev6i\bin;c:\ora9i\jdk\jre\bin\classic;c:\ora9i\jdk\jre\bin;c:\ora9i\jlib;C:\Program Files\Oracle\jre\1.1.8\bin;C:\Program Files\Oracle\jre\1.3.1\bin;c:\jdk1.3.1\bin;c:\jdk1.3.1\jre;c:\jdk1.3.1\lib;c:\jdk1.3.1\jre\bin;c:\jdk1.3.1\jre\lib;c:\Inprise\vbroker\bin;c:\Inprise\vbroker\lib;c:\Inprise\vbroker\idl;c:\Inprise\vbroker\console;C:\ORANT\bin;C:\Program Files\Oracle\jre\1.1.7\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\centrun;c:\win32\exe;c:\cms\lib;c:\cms\Resource;c:\dev6i\jdk\bin;c:\neerajtyagi\webutil\lib;c:\neerajtyagi; c:\neerajtyagi\webutil
FORMS90_BUILDER_CLASSPATH
==============================
c:\ora9i\jlib\importer.jar;c:\ora9i\jlib\debugger.jar;c:\ora9i\jlib\utj90.jar;c:\ora9i\jlib\dfc90.jar;c:\ora9i\jlib\help3.jar;c:\ora9i\jlib\help3-nls.jar;c:\ora9i\jlib\oracle_ice5.jar;c:\ora9i\jlib\ewt3.jar;c:\ora9i\jlib\share.jar;c:\ora9i\jlib\f90srv.jar;c:\ora9i\forms90\java\f90all.jar;c:\neerajtyagi\webutil\lib\weutil.jar;c:\neerajtyagi\webutil\lib\jacob.jar;c:\neerajtyagi\webutil\lib\demo90.jar
FORMS90_CLASSPATH
======================
c:\ora9i\forms90\java\importer.jar;c:\ora9i\forms90\java\debugger.jar;c:\ora9i\forms90\java\utj90.jar;c:\ora9i\jlib\ewt3.jar;c:\ora9i\jlib\share.jar;c:\ora9i\forms90\java;c:\neerajtyagi\webutil\lib\weutil.jar;c:\neerajtyagi\webutil\lib\jacob.jar
FORMS90_JAVADIR
======================
c:\ora9i\forms90\java
orion-web.xml
==============
<?xml version="1.0"?>
<!DOCTYPE orion-web-app PUBLIC "-//Evermind//DTD Orion Web Application 2.3//EN" "http://xmlns.oracle.com/ias/dtds/orion-web.dtd">
<orion-web-app
deployment-version="9.0.2.0.0"
jsp-cache-directory="./persistence"
temporary-directory="./temp"
servlet-webdir="/servlet/"
>
<context-param-mapping name="configFileName">c:\ora9i/forms90/server/formsweb.cfg</context-param-mapping>
<virtual-directory virtual-path="/html" real-path="c:\ora9i/tools/web90/html" />
<virtual-directory virtual-path="/java" real-path="c:\ora9i/forms90/java" />
<virtual-directory virtual-path="/jinitiator" real-path="c:\ora9i/jinit" />
<virtual-directory virtual-path="/webutil" real-path="c:\neerajtyagi/webutil/lib" />
<session-tracking cookies="disabled" />
</orion-web-app>
formsweb.cfg
==============
baseHTML=c:\neerajtyagi\webutil\server\webutilbase.htm
baseHTMLjinitiator=c:\neerajtyagi\webutil\server\webutiljini.htm
baseHTMLjpi=c:\neerajtyagi\webutil\server\webutiljpi.htm
baseHTMLie=baseie.htm
HTMLdelimiter=%
workingDirectory=
envFile=default.env
# The next parameter specifies how to execute the Forms applet under
# Microsoft Internet Explorer 5.x. Put IE=native if you want the
# Forms applet to run in the browser's native JVM.
IE=JInitiator
form=test.fmx
userid=
otherparams=debug=%debug% buffer_records=%buffer% debug_messages=%debug_messages% array=%array% query_only=%query_only% quiet=%quiet% render=%render% host=%host% port=%port% record=%record% tracegroup=%tracegroup% log=%log% term=%term%
debug=no
buffer=no
debug_messages=no
array=no
query_only=no
quiet=yes
render=no
host=
port=
record=
tracegroup=
log=
term=
pageTitle=Oracle9iAS Forms Services
HTMLbodyAttrs=
HTMLbeforeForm=
HTMLafterForm=
serverURL=/forms90/l90servlet
codebase=/forms90/java
imageBase=documetBase
width=650
height=500
separateFrame=false
splashScreen=
background=
lookAndFeel=Oracle
colorScheme=teal
logo=
formsMessageListener=
recordFileName=
serverApp=default
archive_jini=f90all_jinit.jar
archive_ie=f90all.cab
archive=f90all.jar,demo90.jar
webUtilArchive=/form90/webutil/webutil.jar,/forms90/webutil/jacob.jar
jinit_classid=clsid:CAFECAFE-0013-0001-0009-ABCDEFABCDEF
jinit_exename=jinit.exe#Version=1,3,1,9
jinit_mimetype=application/x-jinit-applet;version=1.3.1.9
jpi_classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
jpi_codebase=http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0
jpi_mimetype=application/x-java-applet;version=1.3
oid_formsid=%OID_FORMSID%
oracle_home=c:\ora9i
[sepwin]
separateFrame=True
lookandfeel=Generic
[runrep]
forms=c:\neerajtyagi\run_rep
separateFrame=True
lookandfeel=Generic
[ienative]
IE=native
[jpi]
baseHTMLJInitiator=basejpi.htm
baseHTMLie=basejpi.htm
[debug]
serverURL=/servlet/l90servlet/debug
default.env
==============
FORMS90_PATH=c:\ora9i\forms90;c:\neerajtyagi\webutil\forms;c:\neerajtyagi;c:\neerajtyagi\webutil\lib
PATH=c:\ora9i\bin;c:\ora9i\jdk\jre\bin\classic
FORMS90=c:\ora9i\forms90
CLASSPATH=c:\ora9i\jlib\debugger.jar;c:\ora9i\jlib\ewt3.jar;c:\ora9i\jlib\share.jar;c:\ora9i\jlib\utj90.jar;c:\neerajtyagi\webutil\lib\webutil.jar;c:\neerajtyagi\webutil\lib\jacob.jar;c:\ora9i\jdk\jre\lib\rt.jar;c:\neerajtyagi\webutil\lib\demo90.jar;c:\ora9i\forms90\java\f90all.jar
WEBUTIL_CONFIG=c:\neerajtyagi\webutil\server\webutil.cfg
form90.conf
===========
# Virtual path mapping for Forms Java jar and class files (codebase)
AliasMatch ^/forms90/java/(..*) "c:\ora9i/forms90/java/$1"
AliasMatch ^/forms90/webutil/(..*) "c:\neerajtyagi/webutil/lib/$1"
# Virtual path for JInitiator downloadable executable and download page
AliasMatch ^/forms90/jinitiator/(..*) "c:\ora9i/jinit/$1"
# Virtual path for runform.htm (used to run a form for testing purposes)
AliasMatch ^/forms90/html/(..*) "c:\ora9i/tools/web90/html/$1"
# Configuration for JServ (if mod_jserv.c is available and not mod_oc4j.c)
<IfModule mod_jserv.c>
# Only configure for JServ if mod_oc4j is NOT available:
<IfModule !mod_oc4j.c>
# Virtual path mapping for FormsServlet and ListenerServlet.
# Purpose: paths to invoke the servlets should be /forms90/f90servlet
# and /forms90/l90servlet respectively.
# We map f90servlet to servlet.if90, and l90servlet to servlet.ifl90.
# The apJServAction directives (below) will then remap those.
AliasMatch ^/forms90/f90servlet(.*) "/servlet.if90"
AliasMatch ^/forms90/l90servlet(.*) "/servlet.ifl90"
ApJServMount /forms90/servlet /forms90
# Let the servlets be called by file extension (e.g /servlet.if90)
ApJServAction .if90 /forms90/servlet/f90servlet
ApJServAction .ifl90 /forms90/servlet/l90servlet
# Prevent access to the Forms Servlets by paths other than
# /forms90/f90servlet and /forms90/l90servlet.
# 1. Prevent access via the .if90 and .ifl90 file extensions:
<LocationMatch ^.*\.if.*90>
order deny,allow
deny from all
</LocationMatch>
# 2. Stop access by class (by paths like
# /forms90/servlet/oracle.forms.servlet.FormsServlet)
<LocationMatch ^/forms90/servlet/oracle\.forms.*>
order deny,allow
deny from all
</LocationMatch>
</IfModule>
</IfModule>
# Config. for OC4J
<IfModule mod_oc4j.c>
Oc4jMount /forms90 OC4J_BI_Forms
Oc4jMount /forms90/f90servlet OC4J_BI_Forms
Oc4jMount /forms90/f90servlet/* OC4J_BI_Forms
Oc4jMount /forms90/l90servlet OC4J_BI_Forms
Oc4jMount /forms90/l90servlet/* OC4J_BI_Forms
</IfModule> -
Help, my Muse website forms do not work in Firefox!!
The forms on the website created in Muse do not work in Firefox. When I go to click on "name" or "email" or anything in the form, it will not register. I have deleted the forms and made new ones but it still does not seem to work.
www.modalight.com
www.modalight.com/contact.html
If anyone knows how to fix this, please let me know.You have disabled clicking... both right and left for some reasion... other than that the form does work as long as the person can hack past your code block.
-
Insert in Tabular form does not work after the upgrade to APEX 4.0
Hi all,
Thx in advance for looking into the issue.
We are running into following issue when we upgraded APEX 3.2 to APEX 4.02
1) The Tabular form insert does not work.
2) We are fatching the value of the Global variable APEX_APPLICATION.g_XXXX in a procedure and we get null for this value after submit for new row to be inserted.
The tabular form was working fine in APEX 3.2.
The Update and Delete works just fine.
Any help in this regard is highly appreciated.
Thx and regards,
MaheshHere is my workaround to get the ADDROW/SUBMIT working again if you have a legacy Tabular Form:
1 PAGE ATTRIBUTES
JAVASCRIPT
FUNCTION AND GLOBAL VARIABLE DECLARATION
var htmldb_delete_message='"DELETE_CONFIRM_MSG"';
2 DELETE BUTTON
ACTION WHEN BUTTON CLICKED
URL Target change to
javascript:apex.confirm(htmldb_delete_message,'MULTI_ROW_DELETE');
3 ADDROW BUTTON
ACTION WHEN BUTTON CLICKED
Action
redirect to URL
URL Target
javascript:addRow();
4 PROCESS
APPLYMRU (activitated by button ADDROW)
CONDITION
never or delete
5 PROCESS
ADDROWS
CONDITION
never or delete
6 CHANGE PAGE TEMPLATE to e.g. THEME 13 One Level Tabs.
7 IF YOU WANT ADD FUNCTIONALITY TO GOTO BOTTOM OF PAGE AFTER ADDROW
1. In the page footer put <a name="bottom_of_page"></a>
2. Amend the action when the "ADD" button is clicked to scroll down to the new region by doing the following:
- edit "ADD" button
- Go to "Action when button Clicked" section
- Amend "URL Target" from
javascript:addRow();
to
javascript:addRow();window.location='#bottom_of_page' ;
regards
PaulP -
HTML multipart form is not working in jsp page
Hi
i have jsp page, has a HTML from with file upload field , when i click the send button , nothing happened as if the button did not submit the form. ie the message at line 12 is not printed out.
can any one help please.
<%@ page errorPage="..\error\error.jsp" %>
<%@ page pageEncoding="windows-1256" %>
<%@ page language="java" import="javazoom.upload.*,java.util.*,java.sql.ResultSet" %>
<jsp:useBean id="upBean" scope="page" class="javazoom.upload.UploadBean" >
<jsp:setProperty name="upBean" property="folderstore" value="<%=request.getRealPath("thuraya//uploads")%>" />
</jsp:useBean>
<jsp:useBean id="dbc" class="mypackage.DBConnection" scope="session" />
<!-- add news-->
<%
if(request.getParameter("addBTN") != null){
out.println("addbtn");
//do upload file + insert in database
if (MultipartFormDataRequest.isMultipartFormData(request))
// Uses MultipartFormDataRequest to parse the HTTP request.
MultipartFormDataRequest mrequest = new MultipartFormDataRequest(request);
String todo = null;
if (mrequest != null) todo = mrequest.getParameter("todo");
if ( (todo != null) && (todo.equalsIgnoreCase("upload")) )
Hashtable files = mrequest.getFiles();
if ( (files != null) && (!files.isEmpty()) )
UploadFile file = (UploadFile) files.get("filename");
if (file != null)
out.println("<li>Form field : uploadfile"+"<BR> Uploaded file : "+file.getFileName()+" ("+file.getFileSize()+" bytes)"+"<BR> Content Type : "+file.getContentType());
String fileName=file.getFileName();
String ran=System.currentTimeMillis()+"";
String ext=fileName.substring( ( fileName.length()-4),fileName.length() );
file.setFileName(ran+ext);
// Uses the bean now to store specified by jsp:setProperty at the top.
upBean.store(mrequest, "filename");
String title=request.getParameter("title");
String content=request.getParameter("elm1");
int x=dbc.addNews(title,content,file.getFileName(),2,1);
if(x==1)
out.print("New Vedio has been addedd Successfully");
response.setHeader("Refresh","1;URL=uploadVedio.jsp");
else{
out.print("An Error Occured while adding new Vedio");
response.setHeader("Refresh","1;URL=uploadVedio.jsp");
else
out.println("<li>No uploaded files");
else out.println("<BR> todo="+todo);
%>
<!-- end of add news-->
<form action="" method="post" enctype="multipart/form-data" name="upform" >
<table width="99%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td colspan="2" align="right" bgcolor="#EAEAEA" class="borderdTable"><p>'6'A) .(1 ,/J/</p></td>
</tr>
<tr>
<td width="87%" align="right"><label>
<input name="title" type="text" class="rightText" id="title">
</label></td>
<td width="13%" align="right">9FH'F 'D.(1</td>
</tr>
<tr>
<td align="right"><textarea name="elm1" cols="50" rows="10" id="elm1" style="direction:rtl" >
</textarea></td>
<td align="right">*A'5JD 'D.(1</td>
</tr>
<tr>
<td align="right"><label>
<input type="file" name="filename" id="filename">
</label></td>
<td align="right">5H1)</td>
</tr>
<tr>
<td align="right"><label>
<input onClick="submit()" name="addBTN" type="button" class="btn" id="addBTN" value=" '6'A) .(1 ">
</label></td>
<td align="right"> </td>
</tr>
</table>
</form>
<!-- TinyMCE -->
<script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "simple",
directionality : "rtl"
</script>
<!--end of TinyMCE -->the problem is not because of java code insdie jsp page
I have removed all things but the form and it is still not working
here is the modified code:
<!-- add news-->
<%
if(request.getParameter("addBTN") != null){
out.print("addBTN");
%>
<!-- end of add news-->
<form action="" method="post" enctype="multipart/form-data" name="upform" >
<table width="99%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td colspan="2" align="right" bgcolor="#EAEAEA" class="borderdTable"><p>'6'A) .(1 ,/J/</p></td>
</tr>
<tr>
<td width="87%" align="right"><label>
<input name="title" type="text" class="rightText" id="title">
</label></td>
<td width="13%" align="right">9FH'F 'D.(1</td>
</tr>
<tr>
<td align="right"><textarea name="elm1" cols="50" rows="10" id="elm1" style="direction:rtl" >
</textarea></td>
<td align="right">*A'5JD 'D.(1</td>
</tr>
<tr>
<td align="right"><label>
<input type="file" name="filename" id="filename">
</label></td>
<td align="right">5H1)</td>
</tr>
<tr>
<td align="right"><label>
<input name="addBTN" type="submit" class="btn" id="addBTN" value=" '6'A) .(1 ">
</label></td>
<td align="right"> </td>
</tr>
</table>
</form>
<!-- TinyMCE -->
<script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "simple",
directionality : "rtl"
</script>
<!--end of TinyMCE -->
Maybe you are looking for
-
How do I share an iTunes account?
I understand that if my wife and I share my iTunes account that she can access my purchases including the iBooks I have purchased. However, I do not understand how to set up my iTunes account so that she can 'share' it and still keep her own iTunes a
-
Vendor payment doc., reverse
Dear Experts, Please guide me, on this issue User raised one Payment document with document type KZ, with cheque no. , now they want cancel the cheque. they are trying to cancel the cheque in FCH8 one error message displaying, " account type D
-
It said the code was not properly activated what do I do?
-
[SOLVED] MacbookPro 8,1 13" - Dual boot with Mac OS X #rEFIt
Hi everyone, I want to share my experience and request for help regarding my attempt to install Arch on my MBP 8,1. I can't count the times I've tried to install it this week. What have I done? So I followed the Beginner's Guide to aid me in the inst
-
I have a 9850 os 7.1 and have been having speed dial problems. I can touch and hold a number but the phone will not always dial. Sometimes I have to hold it for 10-15 seconds before it starts to dial. Other time I have to release and try again. I've