Why does getParameter("uri") returns null ???
Hi !
JAVA can be rather frustrating and I have run of of dukes. How about IOU ?
Unfortunately none of the previous questions in the db shed light on my problem.
I am trying to get at the "uri" and I have the following code fragment :
package com.developer;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.IOException;
import java.io.PrintWriter;
public class proptest extends HttpServlet
public void doGet( HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException
PrintWriter out = resp.getWriter();
out.println("Parameter Name: " + req.getParameter("uri"));
public void init() throws ServletException
// initialie the servlet here. Use ServletConfig object to get
// initialization parameters...
ServletConfig config = getServletConfig();
// ... more stuff ...
}
Hi!
In case anyone stumbles upon this in the database, I worked aroung it by using req.getRequestURI().
However I still do not know why getParameter() returns null. It would be useful e.g. if you want to display a list of all request params e.g.:
// stub code follows...
java.util.Enumeration enum = rea.getParameterNames();
while (enum.hasMoreElements())
String name = (String) enum.nextElement();
System.out.println("Parameter "+name + " " + req.getParameter(name))
...For me, nope, all nulls. If it works for you , do tell me.
Also if you look at the "bugs db" there seems to be a number of issues concerning getParameter().
Similar Messages
-
Request.getParameter() always returns null
I have a html file and am trying to retrieve the values from a formin my servlet.
here is the html code:
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<h1><b>Add DVD</b></h1>
</head>
<body>
<form action="add_dvd.do" method="POST">
Title:<input type="text" name="title" />
Year:<input type="text" name="year" />
Genre: <select name='gselected'>
<option value='Sci-Fi'>Sci-Fi</option>
</select>
or enter new genre:<input type="text" name='gentered' value="" />
<input type="submit" value="Add DVD" />
</form>
</body>
</html>
and here is the servlet code:
public class AddDVDServlet extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// System.out.println("in AddDVDServlet post method");
List errorMsgs = new LinkedList();
//retrieve form parameters
try{
String title = request.getParameter("title").trim();
String year = request.getParameter("year").trim();
*String gentered = request.getParameter("gentered");
String gselected = request.getParameter("gselected");
String genre="";
if("".equals(gentered))
genre = gselected;
else
genre = gentered;
// System.out.println("parameter retrieved");
if(!year.matches("\\d\\d\\d\\d"))
// System.out.println("year not 4 digit long");
errorMsgs.add("Year must be four digit long");
if("".equals(title))
// System.out.println("title not entered");
errorMsgs.add("Please enter the title of the dvd");
if("".equals(genre))
// System.out.println("genre not valid");zdf
errorMsgs.add("Enter genre.");
if(! errorMsgs.isEmpty())
//System.out.println("errors in entry ");
request.setAttribute("errors",errorMsgs);
// System.out.println("error attribute set in request");
RequestDispatcher rd = request.getRequestDispatcher("error.view");
rd.forward(request, response);
return;
//create DVDItem instance
DVDItem dvd = new DVDItem(title,year,genre);
request.setAttribute("dvdItem",dvd);
RequestDispatcher rd = request.getRequestDispatcher("success.view");
rd.forward(request, response);
catch(Exception e){
errorMsgs.add(e.getMessage());
request.setAttribute("errors",errorMsgs);
RequestDispatcher rd = request.getRequestDispatcher("error.view");
rd.forward(request, response);
e.printStackTrace();
System.out.println("exception:"+e);
why does getParameter always return null??? whats wrong?I don't know. However, I suspect that because you have a tag with the same name as 'title', its causing a name conflict. Chnage the name to something else. If it works, then that's the likely explaination.
-
Request.getParameter("_ROWKEY") returns null in JDev 3.2
My SubmitEditForm.jsp uses a bean which inherits from the EditCurrentRecord data web bean. In JDeveloper 3.1 'request.getParameter("ROWKEY")' in this JSP returns the rowkey for the record being edited, but in JDeveloper 3.2 'request.getParameter("_ROWKEY")' returns null. No modifications have bean made to the application - the working JDeveloper 3.1 app has only been compiled in JDeveloper 3.2. Can anyone help please?
Hi,
This exception is raised when the multipart/form-data parser has read the number of bytes specified by the Content-Length HTTP header, or tries to read past the end of the input stream, but has not parsed to the end of the message. As implied by the error text, this can happen for a couple of reasons.
Although its unlikely, it is possible for a client to sent an incorrect Content-Length header. However, we've so far only seen this with a user-written HTTP client. We have yet to see a browser send the wrong value.
The usual reason for this error is if a user hits the stop button while submitting a form. If the browser has already sent the HTTP header, including Content-Type, then the parser will try to read the entire message. However, this is going to fail, as the browser stops sending the request as soon as the stop button is pressed.
Finally, there is one more possible reason for this error, and that is if the request is somehow being 'munged' in some way between the browser and the servlet container.
To help us better understand what is happening here, can you supply
the following information:
- Does this problem happen consistently or occur only randomly?
- When it does happen, is it repeatable, or does it go away if the user hits the submit button again?
- Does it happen with certain HTML forms, any HTML form, or is it specific to the data entered into a pariticular form?
- Does it happen with any browser, or a specific version and/or implementation?
- What is your network configuration? For example, does the problem occur only when going through a proxy server or fire wall.
- Does it depend on network load? For example, does it happen only at heavy load times?
- What is you web server configuration, on what platform are you running it, and what JDK version are you using?
As I'm writing this, the TAR system is down for upgrades - my apologies if you've already supplied this information.
Regards,
Simon
null -
Why does Adobe promise return calls and then not do so?
Why does Adobe promise return calls and then not do so? To avoid talking with customers?
Thanks for your reply - unfortunately I have talked with an Adobe
representative in India and their action is to put one on hold
indefinitely. I am annoyed because I paid an additional $60 to them
for no reason. Appreciate your comment.
des -
Why ResultSet getDate() method returns null when querying .csv file?
Here is the full code:
import java.sql.*;
import java.sql.Types;
import java.sql.Date;
import myjava.support.CachedRowSetMaker;
import javax.sql.rowset.CachedRowSet;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
class jdbc2{
final private String s1="SELECT top 10 [DATE], [ADJ CLOSE] FROM [vwo-1.csv]";
private ResultSet result=null;
private Connection conn=null;
public static void main(String[] args) throws SQLException{
jdbc2 db=new jdbc2();
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
db.conn = DriverManager.getConnection("jdbc:odbc:STOCK_DATA");
PreparedStatement sql=db.conn.prepareStatement(db.s1);
db.result=sql.executeQuery();
// check column names and types using the ResultSetMetaData object.
ResultSetMetaData metaData = db.result.getMetaData();
System.out.println("Table Name : " + metaData.getTableName(2));
System.out.println("Field\t\tDataType");
for (int i = 0; i < metaData.getColumnCount(); i++) {
System.out.print(metaData.getColumnName(i + 1) + "\t");
System.out.println(metaData.getColumnTypeName(i+1));
System.out.print(metaData.getColumnName(1) + "\t"+metaData.getColumnName(2)+"\n");
while (db.result.next()){
System.out.print(db.result.getDate("DATE", Calendar.getInstance()));
System.out.format("\t%,.2f\n", db.result.getFloat("Adj Close"));
catch (Exception e) {
System.out.println("Error: " + e.getMessage());
finally {
db.result.close();
db.conn.close();
Everything works well, until getting to the block
while (db.result.next()){
System.out.print(db.result.getDate("DATE", Calendar.getInstance()));
System.out.format("\t%,.2f\n", db.result.getFloat("Adj Close"));
The getDate("DATE", Calendar.getInstance())); always returns null, instead of the date value in the vwo-1.csv.
Even though I change it to
java.sql.Date d=db.result.getDate("DATE") and convert to String using .toString(), I still gets nulls. The dollar amount in "Adj Close" field is fine, no problem.
The .csv fils is downloaded from YahooFinace.
Can anyone review the code and shed some light as to what I did wrong?
Thanks alot.CREATE TABLE `login` (
`username` varchar(40) DEFAULT NULL,
`password` varchar(40) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `amount` (
`amountid` int(11) NOT NULL,
`receiptid` int(11) DEFAULT NULL,
`loanid` int(11) DEFAULT NULL,
`amount` bigint(11) DEFAULT NULL,
`latefee` int(11) DEFAULT NULL,
`paymentid` int(11) DEFAULT NULL,
`pid` int(11) DEFAULT NULL,
PRIMARY KEY (`amountid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `applicationfee` (
`applicationfeeid` int(11) DEFAULT NULL,
`applicationamount` int(11) DEFAULT NULL,
`applicationfee` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `category` (
`categoryid` int(11) DEFAULT NULL,
`categoryname` varchar(40) DEFAULT NULL,
`categorydescription` varchar(500) DEFAULT NULL,
`cattype` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `commission` (
`commissionid` int(11) DEFAULT NULL,
`bussiness` int(11) DEFAULT NULL,
`commission` int(11) DEFAULT NULL,
`pid` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `customer` (
`cacno` int(11) NOT NULL DEFAULT '0',
`name` varchar(40) DEFAULT NULL,
`age` int(11) DEFAULT NULL,
`cphone` varchar(40) DEFAULT NULL,
`cmobile` varchar(40) DEFAULT NULL,
`caddress` varchar(500) DEFAULT NULL,
`cstatus` varchar(20) DEFAULT NULL,
`cphoto` longblob,
`pid` int(11) DEFAULT NULL,
PRIMARY KEY (`cacno`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `daybook` (
`closingbal` varchar(40) DEFAULT NULL,
`date` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `extraincome` (
`categoryid` int(11) NOT NULL,
`receiptid` int(11) DEFAULT NULL,
`date` date DEFAULT NULL,
`amountid` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `employee` (
`empno` int(11) DEFAULT NULL,
`empname` varchar(40) DEFAULT NULL,
`age` int(11) DEFAULT NULL,
`sal` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `image` (
`id` int(11) DEFAULT NULL,
`image` blob
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `loan` (
`loanid` int(11) NOT NULL DEFAULT '0',
`loanamt` varchar(40) DEFAULT NULL,
`payableamount` double DEFAULT NULL,
`installment` int(11) DEFAULT NULL,
`payableinstallments` int(11) DEFAULT NULL,
`monthlyinstallment` varchar(20) DEFAULT NULL,
`surityname` varchar(20) DEFAULT NULL,
`applicationfeeid` int(11) DEFAULT NULL,
`interestrate` float DEFAULT NULL,
`issuedate` date DEFAULT NULL,
`duedate` date DEFAULT NULL,
`nextduedate` date DEFAULT NULL,
`cacno` int(11) DEFAULT NULL,
`cname` varchar(20) DEFAULT NULL,
`pid` int(11) DEFAULT NULL,
`interestamt` double DEFAULT NULL,
`pendingamt` float DEFAULT NULL,
PRIMARY KEY (`loanid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `md` (
`mdid` int(11) NOT NULL DEFAULT '0',
`mdname` varchar(40) DEFAULT NULL,
`mdphoto` varchar(100) DEFAULT NULL,
`mdphone` varchar(40) DEFAULT NULL,
`mdmobile` varchar(40) DEFAULT NULL,
`mdaddress` varchar(500) DEFAULT NULL,
PRIMARY KEY (`mdid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `partner` (
`pid` int(11) NOT NULL DEFAULT '0',
`pname` varchar(40) DEFAULT NULL,
`paddress` varchar(500) DEFAULT NULL,
`pphoto` varchar(100) DEFAULT NULL,
`pphone` varchar(40) DEFAULT NULL,
`pmobile` varchar(40) DEFAULT NULL,
`pstatus` varchar(20) DEFAULT NULL,
`mdid` int(11) DEFAULT NULL,
`mdname` varchar(40) DEFAULT NULL,
`date` date DEFAULT NULL,
`nextpaydate` date DEFAULT NULL,
PRIMARY KEY (`pid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `partnerinvested` (
`pid` int(11) DEFAULT NULL,
`pname` varchar(20) DEFAULT NULL,
`receiptid` int(11) DEFAULT NULL,
`date` date DEFAULT NULL,
`amountinvested` int(11) DEFAULT NULL,
`latefee` int(11) DEFAULT NULL,
`amountid` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `payments` (
`paymentid` int(11) NOT NULL,
`categoryid` int(11) DEFAULT NULL,
`particulars` varchar(100) DEFAULT NULL,
`amountid` int(11) DEFAULT NULL,
`paymentdate` date DEFAULT NULL,
PRIMARY KEY (`paymentid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `receipts` (
`receiptid` int(11) DEFAULT NULL,
`paiddate` date DEFAULT NULL,
`amountid` int(11) DEFAULT NULL,
`loanid` int(11) DEFAULT NULL,
`latefee` int(11) DEFAULT NULL,
`installment` int(11) DEFAULT NULL,
`cacno` int(11) DEFAULT NULL,
`cname` varchar(40) DEFAULT NULL,
`pid` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1; -
How do I prevent the playhead from returning to it's original position after pausing or stopping with the spacebar or k button? With either the skimmer on or off, whenever I pause or stop the **** playhead will always return to the position it was last at. I don't understand why neither of the shortcuts would just stop the playhead at the point that is being played at. This may seem like an extremely edgy way to go about editing, but I might actually wish to pause the playhead at any given moment and position my playhead nearby said moment before creating an edit point (without having to add a marker and return to it with the blade tool, or take note of the specific duration and use the duration control to go to that specific point or any other unnecessary steps when doing a rough cut). I simply would like the playhead to pause/stop at the moment I press either keyboard shortcut. After the many attempts at trying to make FCP X work for me and the many "workarounds" by FCPX enthusiasts, it's disheartening to know that most other editors in my circle who make a living doing paid commercial work are wondering why I've decided to take a break from using CS6 (and it's integration with the industry-standard AE) to give FCP X a shot, all to make very simple tasks like the one aforementioned a mystery... any help in this matter would be greatly appreciated.
Thank you for your response Luis and for your previous help (regarding multiple selections being added to the timeline in reverse order when working in list view in the event browser).
Yes i've trashed my preferences, but I should be more specific as to what I am actually doing. Because I am working from my macbook pro and do not have a "home button" which was the original shortcut to "play from/go to beginning" and because I did not like the replacement shortcut in FCP X to play from beginning (without a home button it was something like Function + Shift something else on a laptop) I became used to Adobe Premiere CS6 and made the return key my "play from beginning" shortcut. It was available and did not have a use by itself (only to confirm changes/choices), did not effect it's use in conjunction with other shorctus so I choose enter as my "play from/go to beginning"...
So when I play from the beginning and attempt to pause or stop the playhead, regardless of how I choose to do it (spacebar or k) it does not stop at that specific instance and always returns to where it previously was. This seems very confusing and inconvenient, I would hope at least one of these shortcuts would actually stop the playhead where it was at that moment where I press stop or pause. It's extremely frustrating knowing that I cannot pause the playhead where it's playing if I choose my "play from beginning" shortcut.
Also since you seem to be a guru and an expert, i'd like to know if you cut with FCPX on a laptop and what shortcut you use whenever you'd like the playhead to go to the beginning of the timeline, end, etc since there are no "home" or "end" buttons on a laptop....
Thanks a million, talk soon...
Anthony -
Why does this print a null?
I have a snippet here that prints one row from a derby DB. The heading row works fine.
I
while (!cells[0].isEmpty()) {
for (int col = 0; col < colNames.length; col++) //System.out.print(cells[col].remove(0).toString() + "\t");
queryResult += cells[col].remove(0).toString() + "\t";
//System.out.print(cells[col].remove(0).toString() + "\t");
System.out.println("");results to Output window are:
IDNUM KANJI KANA ROMAJI ENGLISH
null1 愛 あい ai love I should mention that the string "queryResult" is passed out as a return value and printed to output (not shown).
Example 2, I do the same thing with a direct println to Output:
while (!cells[0].isEmpty()) {
for (int col = 0; col < colNames.length; col++) //System.out.print(cells[col].remove(0).toString() + "\t");
//queryResult += cells[col].remove(0).toString() + "\t";
System.out.print(cells[col].remove(0).toString() + "\t");
System.out.println("");Results are:
IDNUM KANJI KANA ROMAJI ENGLISH
1 愛 あい ai love
nullAgain we get a null, but this time its at the end!
Running the query in SQL using the Netbeans interface shows no null, nor does examining the table.
How am I introducing a null in here?
ThanksI don't know, but the results are a little funky. Perhaps the query results contains some control characters, like a carriage return and a null-terminator (\r and \0)? You could check this by not printing the string, but by printing the ASCII code of each individual character.
-
Why does view WWSBR_USER_FOLDERS return no rows to public ?
Hi,
I want to show a user dependent list of folders in a portal
report application component, but the view
portal30.wwsbr_user_folders does not show public folders to a
public (not logged in) user. The view does not return any rows. I
tested this by creating a portal report on the view, put the
report as a portlet on page. Logout and navigate to the page. The
report portlet shows "No Rows Returned". I would expect to see
the public folders in the report portlet. Am I doing something
wrong ? Is view portal30.wwsbr_user_folders the right view for
this kind of query ?
Environment:
9iAS version 1.0.2.2
Portal patch 3.0.9.8.1
RDBMS version 8.1.7.1.1
regards,
Willem-Pieter van der Lugt
Oracle Consulting NL.This is a bug. As a workaround, create two new views as follows:
create or replace view wwsbr_user_corners2 as
SELECT "ID","SITEID","LANGUAGE","PARENTID","NAME","TITLE","SETTIN
GSSETID","SETTINGSSETSITEID",
"ISPUBLIC","IMAGE","ROLLOVERIMAGE","TITLEIMAGE","LEADER","DESCRIP
TION",
"PRODUCTION","FRONTPAGE","CREATEDATE","CREATOR","UPDATEDATE","UPD
ATOR","SEQ",
"PUBLISHDATE","DISPLAYLEVEL","DISPLAYSUBCORNERS","ICON","LIFETIME
HITS","CTXTXT",
"NAVIGATIONCORNERID","ISTEMPLATE","ISPROJECT","HAVEITEMSECURITY",
"ITEMVERSIONING",
"DISPLAYINPARENT","TOPICID","TOPIC_SITEID","VALUE","NAVBARSITEID"
,"TYPE","TYPE_SITEID",
"BASE_TYPE","FOLDER_PATH_DISPLAY","MAILTO_LINK_DISPLAY","IS_CACHE
_VALID",
"IS_PORTLET","IS_CACHING_ON","QUOTA","TYPE_DISPLAY_FULL","SITECHA
RID","SYSPRIV_NAME",
"PLSQL_EXECUTOR","SUBSCRIBER_ID"
FROM WWV_CORNERS C
WHERE
-- Next line needed to select public folders
ISPUBLIC = 1
-- portal admin
OR EXISTS
SELECT 'x'
FROM WWSEC_SYS_PRIV$
WHERE OBJECT_TYPE_NAME = 'ANY_SITE'
AND NAME = 'ALL_OBJECTS'
AND OWNER = wwctx_api.get_product_schema
AND GRANTEE_TYPE = 'USER'
AND GRANTEE_USER_ID = wwctx_api.get_user_id
AND GRANTEE_GROUP_ID = 0
AND PRIVILEGE_CODE = 500 -- ADMIN
UNION ALL
SELECT 'x'
FROM WWSEC_SYS_PRIV$ P, WWSEC_FLAT$ F
WHERE P.OBJECT_TYPE_NAME = 'ANY_SITE'
AND P.NAME = 'ALL_OBJECTS'
AND P.OWNER = wwctx_api.get_product_schema
AND P.GRANTEE_TYPE = 'GROUP'
AND P.GRANTEE_USER_ID = 0
AND P.GRANTEE_GROUP_ID = F.GROUP_ID
AND P.PRIVILEGE_CODE = 500 -- ADMIN
AND F.PERSON_ID = wwctx_api.get_user_id
-- site admin
OR EXISTS
SELECT 'x'
FROM WWSEC_SYS_PRIV$
WHERE OBJECT_TYPE_NAME = 'SITE'
AND NAME = C.SITECHARID
AND OWNER = wwctx_api.get_product_schema
AND GRANTEE_TYPE = 'USER'
AND GRANTEE_USER_ID = wwctx_api.get_user_id
AND GRANTEE_GROUP_ID = 0
AND PRIVILEGE_CODE = 300 -- ADMIN
UNION ALL
SELECT 'x'
FROM WWSEC_SYS_PRIV$ P, WWSEC_FLAT$ F
WHERE P.OBJECT_TYPE_NAME = 'SITE'
AND P.NAME = C.SITECHARID
AND P.OWNER = wwctx_api.get_product_schema
AND P.GRANTEE_TYPE = 'GROUP'
AND P.GRANTEE_USER_ID = 0
AND P.GRANTEE_GROUP_ID = F.GROUP_ID
AND P.PRIVILEGE_CODE = 300 -- ADMIN
AND F.PERSON_ID = wwctx_api.get_user_id
-- owned; check the special groups too
OR EXISTS
SELECT 'x'
FROM WWSEC_SYS_PRIV$
WHERE OBJECT_TYPE_NAME = 'FOLDER'
AND NAME = C.SYSPRIV_NAME
AND OWNER = wwctx_api.get_product_schema
AND GRANTEE_TYPE = 'USER'
AND GRANTEE_USER_ID in (wwctx_api.get_user_id, 2)
AND GRANTEE_GROUP_ID = 0
AND PRIVILEGE_CODE = 700
OR EXISTS -- group grant to a specific group
SELECT 'x'
FROM WWSEC_SYS_PRIV$ P, WWSEC_FLAT$ F
WHERE P.OBJECT_TYPE_NAME = 'FOLDER'
AND P.NAME = C.SYSPRIV_NAME
AND P.OWNER = wwctx_api.get_product_schema
AND P.GRANTEE_TYPE = 'GROUP'
AND P.GRANTEE_USER_ID = 0
AND P.GRANTEE_GROUP_ID = F.GROUP_ID
AND F.PERSON_ID = wwctx_api.get_user_id
AND PRIVILEGE_CODE = 700
create or replace view wwsbr_user_folders2 as
SELECT c.id,
c.siteid caid,
c.language language,
c.name name,
c.title display_name,
c.topicid category_id,
c.topic_siteid category_caid,
c.description ,
c.type type_id,
c.type_siteid type_caid,
c.base_type base_type_id,
c.is_portlet is_portlet,
c.is_caching_on is_caching_on,
c.seq sub_folder_sequence,
c.displayinparent display_in_parent_folder,
c.itemversioning,
c.settingssetid style_id,
c.settingssetsiteid style_caid,
u.url url_value,
decode(c.base_type,3,c.value,null) search_value,
decode(c.base_type,4,c.value,null) plsql_value,
c.image title_image_name,
c.rolloverimage rollover_image_name,
c.titleimage banner_image_name ,
c.navigationcornerid navigation_bar_id,
c.navbarsiteid navigation_bar_caid,
c.ispublic is_public,
c.haveitemsecurity item_level_security,
c.type_display_full display_full_screen,
c.plsql_executor plsql_folder_executor,
c.createdate,
c.creator,
c.updatedate,
c.updator
FROM WWSBR_USER_CORNERS2 C,
WWSBR_URL$ U
WHERE c.value = u.url(+) and
c.siteid = u.object_siteid(+)
The first view adds the condition (WHERE ISPUBLIC=1) to show any
public folder.
Don't change the original view definitions, and be sure you
grant access on WWSBR_USER_FOLDERS2 (or whatever you choose to
call it) to PORTAL30_PUBLIC (or whatever your public portal
schema is called).
Regards,
Jerry -
When I run the following code
set nocount on
declare @i table(id int identity(1,1) primary key, sDate datetime)
while((select count(*) from @i)<10000)
begin
insert into @i(sDate) select getdate()
end
select top 5 sDate, count(id) selectCalls
from @i
group by sDate
order by count(id) desc
I get the following results.
sDate selectCalls
2014-07-30 14:50:27.510 406
2014-07-30 14:50:27.527 274
2014-07-30 14:50:27.540 219
2014-07-30 14:50:27.557 195
2014-07-30 14:50:27.573 170
As you can see the select getdate() function returned same time up to the milisecon 406 time for the first date value. This started happening when we moved our applications to a faster server with four processors. Is this correct or am I
going crazy?
Please let me know
BilalObserve that adding 2 ms is accurate only with datetime2. As noted above, datetime does not have ms resolution:
set nocount on
declare @d datetime, @i int, @d2 datetime2
select @d = getdate(), @i = 0, @d2 = sysdatetime()
while(@i<10)
begin
select @d2, @d, current_timestamp, getdate(), sysdatetime()
select @d = dateadd(ms,2,@d), @i = @i+1, @d2=dateadd(ms,2,@d2)
end
2014-08-09 08:36:11.1700395 2014-08-09 08:36:11.170 2014-08-09 08:36:11.170 2014-08-09 08:36:11.170 2014-08-09 08:36:11.1700395
2014-08-09 08:36:11.1720395 2014-08-09 08:36:11.173 2014-08-09 08:36:11.170 2014-08-09 08:36:11.170 2014-08-09 08:36:11.1700395
2014-08-09 08:36:11.1740395 2014-08-09 08:36:11.177 2014-08-09 08:36:11.170 2014-08-09 08:36:11.170 2014-08-09 08:36:11.1700395
2014-08-09 08:36:11.1760395 2014-08-09 08:36:11.180 2014-08-09 08:36:11.170 2014-08-09 08:36:11.170 2014-08-09 08:36:11.1700395
2014-08-09 08:36:11.1780395 2014-08-09 08:36:11.183 2014-08-09 08:36:11.170 2014-08-09 08:36:11.170 2014-08-09 08:36:11.1700395
2014-08-09 08:36:11.1800395 2014-08-09 08:36:11.187 2014-08-09 08:36:11.170 2014-08-09 08:36:11.170 2014-08-09 08:36:11.1700395
DATE/TIME functions:
http://www.sqlusa.com/bestpractices/datetimeconversion/
Kalman Toth Database & OLAP Architect
SQL Server 2014 Design & Programming
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
Why does the correct return address not show up on outgoing messages?
Hello,
Specs:
Windows NT
iPlanet Messaging Server 5.1
iPlanet Directory Server 4.13
One user recently went through an account change (spam reasons).
old uid: bob
old email: [email protected]
new uid: bsmith
new email: [email protected]
The problem is, that during testing, any email sent from the new account is arriving as having both the <Return-path> and <From> fields with the old email address.
Keep in mind that this is not a client-specific problem as everything has been changed correctly (outlook) If an email goes from "Clients computer" >> "3rd party smtp server" >> "Hotmail" or the like, it shows up as having the correct return address.
But the pickle I'm in, is that if an email goes from "Clients computer" >> "3rd party smtp server" >> "Our Server" , it shows up as having the OLD return address. - same thing if messages are sent internally (same server) through the webmail interface. The messaging server is somehow rewriting the email field when any message goes through it.
What makes this a super-pickle is that this is a NEW account., not just a 'change' of the old one. The old account has been deleted, and the command 'imadmin user purge' doesn't find it, nor is there any reference to the old 'bob@' address in the ldif file except for an address book entry or two (other users have added 'bob' into their address book)
Any help is greatly appreciated in advance. Sorry for the long description, but now all the bases I've covered are known.
Sincerely,
JoshJay,
I only mentioned SIMS 4.0 because I jumped directly from that to MS 6.0p1, and because what my customers wanted to do worked on SIMS and doesn't on MS6.
To complicate things more, my customer has multiple domains, but not all employees have e-mail addresses in both domains. For example, Joe is [email protected], Jane is [email protected], and John wants mail sent to either [email protected] or [email protected] to come to him.
I dealt with this by setting up abc & xyz as separate domains, and created a mailing list in xyz.com named "john" with an external member of [email protected] While this works fine, when I add an alias to that mailing list of "[email protected]" and John tries to send a message with "[email protected]" in the From, it is rewritten to [email protected] as that is his primary e-mail address.
In looking at the LDAP entries of mailing lists that are not working as I'd like, I see that the aliases are specified as mailAlternateAddress attributes. Are you saying that if I change these to MailEquivalentAddress attributes that they will then show up in the From unchanged?
Oh, and one more possible factor - they are sending mail using SMTP AUTH as they are roving users. Since the mail server knows that the authenticated user is truly [email protected], is that why his From of [email protected] gets nuked?
Thanks,
Bill -
Why does MOVE effect return object to original position?
I am trying to implement a MOVE for a CANVAS. The move works as desired however the Canvas returns to its original position. Essentially the move happens and then everything reverses and goes back to the original state. Code is below...
Thanks in advance,
Russell
<fx:Declarations>
<mx:Move id="moveDown" target="{addSlider}" yFrom="50" yTo="155" duration="1000" />
</fx:Declarations>
<mx:Canvas id="addSlider" width="235" height="105" top="50" left="70" backgroundColor="0x333333" backgroundAlpha="0.8" >
</mx:Canvas>
<s:Button id="btnSlider" width="50" height="30" top="155" left="255" label="Help" click="moveDown.end();moveDown.play();" />Thank you for your response Luis and for your previous help (regarding multiple selections being added to the timeline in reverse order when working in list view in the event browser).
Yes i've trashed my preferences, but I should be more specific as to what I am actually doing. Because I am working from my macbook pro and do not have a "home button" which was the original shortcut to "play from/go to beginning" and because I did not like the replacement shortcut in FCP X to play from beginning (without a home button it was something like Function + Shift something else on a laptop) I became used to Adobe Premiere CS6 and made the return key my "play from beginning" shortcut. It was available and did not have a use by itself (only to confirm changes/choices), did not effect it's use in conjunction with other shorctus so I choose enter as my "play from/go to beginning"...
So when I play from the beginning and attempt to pause or stop the playhead, regardless of how I choose to do it (spacebar or k) it does not stop at that specific instance and always returns to where it previously was. This seems very confusing and inconvenient, I would hope at least one of these shortcuts would actually stop the playhead where it was at that moment where I press stop or pause. It's extremely frustrating knowing that I cannot pause the playhead where it's playing if I choose my "play from beginning" shortcut.
Also since you seem to be a guru and an expert, i'd like to know if you cut with FCPX on a laptop and what shortcut you use whenever you'd like the playhead to go to the beginning of the timeline, end, etc since there are no "home" or "end" buttons on a laptop....
Thanks a million, talk soon...
Anthony -
Why does getFrom() method return array
Hi, all,
I wonder why getFrom() method of javax.mail.Message returns an array of addresses but not a single address. How can a message be from several users?
Is there a possibility to loose some sender if I use
message.getFrom()[0];ThanksIt's extremely rare, but the spec allows it. From RFC 2822:
The originator fields of a message consist of the from field, the
sender field (when applicable), and optionally the reply-to field.
The from field consists of the field name "From" and a
comma-separated list of one or more mailbox specifications. If the
from field contains more than one mailbox specification in the
mailbox-list, then the sender field, containing the field name
"Sender" and a single mailbox specification, MUST appear in the
message.I don't think I've ever seen a real message with more than one From address. -
Why Json get function returns null in jsp page??
Hi guys,
i have developed a simple program that send HTTPrequest and get json as response. now i want to display this json to Treeview but i have able to get the valid json, i create a json object and setData(json). still its ok. but when i do json.get("id"). i get null. it is not working for any of the key present in that json object. can some one help me?? below is the code i am using.
where sb is StringBuffer containt json in text form
System.out.println(sb);
JSONObject obj = new JSONObject();
obj.setData(sb);
System.out.println(obj.getData());
System.out.println(obj.get("id"));
thanks in advance...What is the data?
-
Why does the cursor return to the top of the screen?
The cursor starts at the top of the screen and returns there no matter where I drag it. It never goes past the middle of the screen. It works fine in safe mode. Same problem with all mice(tried 2 Bluetooth and one USB). I deleted Magic Prefs...no change. iMac 24, Mountain Lion, 2 monitors. This has been running solidly for 6 months.
Some more notes; this appears to be an issue if one of two things is true; the movie window is open - or - if I'm zoomed in too far (what the threshold is, I'm not sure.) I'm trying to automate dialog. In one instance, I need to adjust a cough; if I zoom in close enough to draw the automation, it returns the play head to bar one after each click. If I'm zoomed out a little bit, I can write the automation no problem.
-
Why does my IPAD return to home screen randomly
I am having problems with my IPad returning to home screen while I am in the middle of using it. Any ideas how to stop this.
Try This...
Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
Reset ( No Data will be Lost )
Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
Wait for the Apple logo to Appear...
Usually takes about 15 - 20 Seconds... ( But can take Longer...)
Release the Buttons...
Also consider Deleting any Apps you have Purchased / Downloaded but you now never use..
Maybe you are looking for
-
0FC_BP_ITEMS and DFKKOP: append structure
Hi BI fans DFKKOP is already filled with customer-defined ZZ-fields. The extractor for datasource 0FC_BP_ITEMS need to be enriched by these ZZ-fields. As I assume, there is no need to fill the extractor by a customer exit (CMOD, EXIT_SAPLRSAP_001) as
-
Latest Server Update CAN'T COPY TO SERVER FOLDERS Error Code -36
I've recently upgraded to the latest OS on my Mac Mini Server...which required an upgrade to the latest Mac Server. I have to say that it's been nothing but frustrations. Of all of them, one of the most lingering is issues with copying files to the s
-
Hi My printer is complaining that my justified text makes it look like there is no space after a full stop. In some cases, it does appear this way. Is there any way to set a minimum or uniform amount of space after each full stop, within justified te
-
IDOC Package / idxpw error
Hi Guys, I am trying to make the configuration for IDOC Package on XI, I put the MSGID and I got the Sender ID, Receiver ID and all the information but when I execute the transaction I got this error: Error in Insert Filter:: Message categories in fi
-
Weblogic Load Testing intermittent problem!
Hi All, We are running weblogic 5.1 sp8 to load testing, and using following setting: Weblogic.system.executeThreadCount=20; Weblogic.system.nativeIO.enable=ture; dbConnection Pool=20 while we increased 60 concurrent users, HPUX 11i started to hung i